gcc/testsuite/:
[official-gcc.git] / libstdc++-v3 / configure
blob6517ce5ca00a8977c4add06838ace9de6958eb05
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 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 mkdir_p 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 ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_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 LIBICONV 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_SRCDIR ATOMIC_WORD_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
858 [default=auto]
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
860 [default=$is_hosted]
861 --enable-cstdio=PACKAGE use target-specific I/O package
862 [default=stdio]
863 --enable-clocale[=MODEL]
864 use MODEL for target locale package
865 [default=auto]
866 --enable-nls use Native Language Support (default)
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
869 [default=auto]
870 --enable-cheaders=KIND construct "C" headers for g++
871 [default=$c_model]
872 --enable-c-mbchar enable multibyte (wide) characters
873 [default=yes]
874 --enable-c99 turns on ISO/IEC 9899:1999 support
875 [default=yes]
876 --enable-long-long enables I/O support for 'long long'
877 [default=yes]
878 --enable-concept-checks use Boost-derived template checks [default=no]
879 --enable-libstdcxx-debug-flags=FLAGS
880 pass compiler FLAGS when building debug library
881 [default="-g3 -O0"]
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
885 pass compiler FLAGS when building library
886 [default=]
887 --enable-symvers=STYLE enables symbol versioning of the shared library
888 [default=yes]
889 --enable-version-specific-runtime-libs
890 Specify that runtime libraries should be installed
891 in a compiler-specific directory
893 Optional Packages:
894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
896 --with-target-subdir=SUBDIR
897 configuring in a subdirectory
898 --with-cross-host=HOST configuring with a cross compiler
899 --with-newlib assume newlib as a system C library
900 --with-gnu-ld assume the C compiler uses GNU ld default=no
901 --with-pic try to use only PIC/non-PIC objects default=use both
902 --with-gxx-include-dir=DIR
903 installation directory for include files
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CXX C++ compiler command
913 CXXFLAGS C++ compiler flags
914 CXXCPP C++ preprocessor
915 CPP C preprocessor
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
920 _ACEOF
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935 ac_dir_suffix= ac_top_builddir=
938 case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
959 case "$ac_dir" in
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
977 case $ac_srcdir in
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 esac;;
991 esac
993 cd $ac_dir
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
996 echo
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
999 echo
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1003 echo
1004 $ac_configure --help
1005 else
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 cd $ac_popdir
1009 done
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014 cat <<\_ACEOF
1015 package-unused configure version-unused
1016 generated by GNU Autoconf 2.59
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021 _ACEOF
1022 exit 0
1024 exec 5>config.log
1025 cat >&5 <<_ACEOF
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1029 It was created by package-unused $as_me version-unused, which was
1030 generated by GNU Autoconf 2.59. Invocation command line was
1032 $ $0 $@
1034 _ACEOF
1036 cat <<_ASUNAME
1037 ## --------- ##
1038 ## Platform. ##
1039 ## --------- ##
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 _ASUNAME
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 for as_dir in $PATH
1063 IFS=$as_save_IFS
1064 test -z "$as_dir" && as_dir=.
1065 echo "PATH: $as_dir"
1066 done
1068 } >&5
1070 cat >&5 <<_ACEOF
1073 ## ----------- ##
1074 ## Core tests. ##
1075 ## ----------- ##
1077 _ACEOF
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_configure_args=
1086 ac_configure_args0=
1087 ac_configure_args1=
1088 ac_sep=
1089 ac_must_keep_next=false
1090 for ac_pass in 1 2
1092 for ac_arg
1094 case $ac_arg in
1095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 continue ;;
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 esac
1102 case $ac_pass in
1103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106 if test $ac_must_keep_next = true; then
1107 ac_must_keep_next=false # Got value, back to normal.
1108 else
1109 case $ac_arg in
1110 *=* | --config-cache | -C | -disable-* | --disable-* \
1111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113 | -with-* | --with-* | -without-* | --without-* | --x)
1114 case "$ac_configure_args0 " in
1115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 esac
1118 -* ) ac_must_keep_next=true ;;
1119 esac
1121 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122 # Get rid of the leading space.
1123 ac_sep=" "
1125 esac
1126 done
1127 done
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log. We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137 # Save into config.log some information that might help in debugging.
1139 echo
1141 cat <<\_ASBOX
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1145 _ASBOX
1146 echo
1147 # The following way of writing the cache mishandles newlines in values,
1149 (set) 2>&1 |
1150 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 *ac_space=\ *)
1152 sed -n \
1153 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 sed -n \
1158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 esac;
1162 echo
1164 cat <<\_ASBOX
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_vars
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1177 if test -n "$ac_subst_files"; then
1178 cat <<\_ASBOX
1179 ## ------------- ##
1180 ## Output files. ##
1181 ## ------------- ##
1182 _ASBOX
1183 echo
1184 for ac_var in $ac_subst_files
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1188 done | sort
1189 echo
1192 if test -s confdefs.h; then
1193 cat <<\_ASBOX
1194 ## ----------- ##
1195 ## confdefs.h. ##
1196 ## ----------- ##
1197 _ASBOX
1198 echo
1199 sed "/^$/d" confdefs.h | sort
1200 echo
1202 test "$ac_signal" != 0 &&
1203 echo "$as_me: caught signal $ac_signal"
1204 echo "$as_me: exit $exit_status"
1205 } >&5
1206 rm -f core *.core &&
1207 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 exit $exit_status
1210 for ac_signal in 1 2 13 15; do
1211 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 done
1213 ac_signal=0
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 echo >confdefs.h
1220 # Predefined preprocessor variables.
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 _ACEOF
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 _ACEOF
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250 if test "x$prefix" != xNONE; then
1251 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252 else
1253 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 for ac_site_file in $CONFIG_SITE; do
1257 if test -r "$ac_site_file"; then
1258 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260 sed 's/^/| /' "$ac_site_file" >&5
1261 . "$ac_site_file"
1263 done
1265 if test -r "$cache_file"; then
1266 # Some versions of bash will fail to source /dev/null (special
1267 # files actually), so we avoid doing that.
1268 if test -f "$cache_file"; then
1269 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1271 case $cache_file in
1272 [\\/]* | ?:[\\/]* ) . $cache_file;;
1273 *) . ./$cache_file;;
1274 esac
1276 else
1277 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1279 >$cache_file
1282 # Check that the precious variables saved in the cache have kept the same
1283 # value.
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288 eval ac_new_set=\$ac_env_${ac_var}_set
1289 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290 eval ac_new_val="\$ac_env_${ac_var}_value"
1291 case $ac_old_set,$ac_new_set in
1292 set,)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,set)
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1300 ,);;
1302 if test "x$ac_old_val" != "x$ac_new_val"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306 echo "$as_me: former value: $ac_old_val" >&2;}
1307 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308 echo "$as_me: current value: $ac_new_val" >&2;}
1309 ac_cache_corrupted=:
1310 fi;;
1311 esac
1312 # Pass precious variables to config.status.
1313 if test "$ac_new_set" = set; then
1314 case $ac_new_val in
1315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317 *) ac_arg=$ac_var=$ac_new_val ;;
1318 esac
1319 case " $ac_configure_args " in
1320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 esac
1324 done
1325 if $ac_cache_corrupted; then
1326 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330 { (exit 1); exit 1; }; }
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 ac_config_headers="$ac_config_headers config.h"
1369 # This works around the fact that libtool configuration may change LD
1370 # for this particular configuration, but some shells, instead of
1371 # keeping the changes in LD private, export them just because LD is
1372 # exported. Only used at the end of this file.
1373 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1375 # For libtool versioning info, format is CURRENT:REVISION:AGE
1376 libtool_VERSION=6:0:0
1379 # Find the rest of the source tree framework.
1381 # Sets up multi_basedir, which is srcdir/.. plus the usual
1382 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1383 # Default to --enable-multilib
1384 # Check whether --enable-multilib or --disable-multilib was given.
1385 if test "${enable_multilib+set}" = set; then
1386 enableval="$enable_multilib"
1387 case "$enableval" in
1388 yes) multilib=yes ;;
1389 no) multilib=no ;;
1390 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392 { (exit 1); exit 1; }; } ;;
1393 esac
1394 else
1395 multilib=yes
1398 # We may get other options which we leave undocumented:
1399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1400 # See config-ml.in if you want the gory details.
1402 if test "$srcdir" = "."; then
1403 if test "$with_target_subdir" != "."; then
1404 multi_basedir="$srcdir/$with_multisrctop../.."
1405 else
1406 multi_basedir="$srcdir/$with_multisrctop.."
1408 else
1409 multi_basedir="$srcdir/.."
1413 ac_config_commands="$ac_config_commands default-1"
1416 # The generated code is exactly the same, except that automake's looks in
1417 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1418 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1419 # know what they are or what the other differences might be (and they keep
1420 # changing anyhow).
1422 # Looking in multi_basedir seems smarter, so actually execute that branch.
1423 if false; then
1424 # this is for automake
1425 ac_aux_dir=
1426 for ac_dir in .. $srcdir/..; do
1427 if test -f $ac_dir/install-sh; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/install-sh -c"
1430 break
1431 elif test -f $ac_dir/install.sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install.sh -c"
1434 break
1435 elif test -f $ac_dir/shtool; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/shtool install -c"
1438 break
1440 done
1441 if test -z "$ac_aux_dir"; then
1442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1444 { (exit 1); exit 1; }; }
1446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1450 else
1451 # this is for autoconf
1452 ac_aux_dir=
1453 for ac_dir in ${multi_basedir}; do
1454 if test -f $ac_dir/install-sh; then
1455 ac_aux_dir=$ac_dir
1456 ac_install_sh="$ac_aux_dir/install-sh -c"
1457 break
1458 elif test -f $ac_dir/install.sh; then
1459 ac_aux_dir=$ac_dir
1460 ac_install_sh="$ac_aux_dir/install.sh -c"
1461 break
1462 elif test -f $ac_dir/shtool; then
1463 ac_aux_dir=$ac_dir
1464 ac_install_sh="$ac_aux_dir/shtool install -c"
1465 break
1467 done
1468 if test -z "$ac_aux_dir"; then
1469 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1471 { (exit 1); exit 1; }; }
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1481 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1483 # You will slowly go insane if you do not grok the following fact: when
1484 # building v3 as part of the compiler, the top-level /target/ becomes the
1485 # library's /host/. configure then causes --target to default to --host,
1486 # exactly like any other package using autoconf. Therefore, 'target' and
1487 # 'host' will always be the same. This makes sense both for native and
1488 # cross compilers, just think about it for a little while. :-)
1490 # Also, if v3 is being configured as part of a cross compiler, the top-level
1491 # configure script will pass the "real" host as $with_cross_host.
1493 # Do not delete or change the following two lines. For why, see
1494 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534 ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549 echo "$as_me:$LINENO: checking target system type" >&5
1550 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551 if test "${ac_cv_target+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_target_alias=$target_alias
1555 test "x$ac_cv_target_alias" = "x" &&
1556 ac_cv_target_alias=$ac_cv_host_alias
1557 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564 echo "${ECHO_T}$ac_cv_target" >&6
1565 target=$ac_cv_target
1566 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 # The aliases save the names the user supplied, while $host etc.
1572 # will get canonicalized.
1573 test -n "$target_alias" &&
1574 test "$program_prefix$program_suffix$program_transform_name" = \
1575 NONENONEs,x,x, &&
1576 program_prefix=${target_alias}-
1577 target_alias=${target_alias-$host_alias}
1579 # Handy for debugging:
1580 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1582 if test "$build" != "$host"; then
1583 # We are being configured with some form of cross compiler.
1584 GLIBCXX_IS_NATIVE=false
1586 else
1587 GLIBCXX_IS_NATIVE=true
1590 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1591 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1592 # 1.x: minimum required version
1593 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1594 # of other PACKAGE_* variables will, however, and there's nothing
1595 # we can do about that; they come from AC_INIT).
1596 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1597 # file in the top srcdir, etc, etc), so stop complaining.
1598 # no-dependencies: turns off auto dependency generation (just for now)
1599 # -Wall: turns on all automake warnings...
1600 # -Wno-portability: ...except this one, since GNU make is now required.
1601 am__api_version="1.8"
1602 # Find a good install program. We prefer a C program (faster),
1603 # so one script is as good as another. But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # OS/2's system install, which has a completely different semantic
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 # Account for people who put trailing slashes in PATH elements.
1627 case $as_dir/ in
1628 ./ | .// | /cC/* | \
1629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631 /usr/ucb/* ) ;;
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 # Don't use installbsd from OSF since it installs stuff as root
1635 # by default.
1636 for ac_prog in ginstall scoinst install; do
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639 if test $ac_prog = install &&
1640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # AIX install. It has an incompatible calling convention.
1643 elif test $ac_prog = install &&
1644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645 # program-specific install script used by HP pwplus--don't use.
1647 else
1648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649 break 3
1652 done
1653 done
1655 esac
1656 done
1660 if test "${ac_cv_path_install+set}" = set; then
1661 INSTALL=$ac_cv_path_install
1662 else
1663 # As a last resort, use the slow shell script. We don't cache a
1664 # path for INSTALL within a source directory, because that will
1665 # break other packages using the cache if that directory is
1666 # removed, or if the path is relative.
1667 INSTALL=$ac_install_sh
1670 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671 echo "${ECHO_T}$INSTALL" >&6
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1681 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1682 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1683 # Just in case
1684 sleep 1
1685 echo timestamp > conftest.file
1686 # Do `set' in a subshell so we don't clobber the current shell's
1687 # arguments. Must try -L first in case configure is actually a
1688 # symlink; some systems play weird games with the mod time of symlinks
1689 # (eg FreeBSD returns the mod time of the symlink's containing
1690 # directory).
1691 if (
1692 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1693 if test "$*" = "X"; then
1694 # -L didn't work.
1695 set X `ls -t $srcdir/configure conftest.file`
1697 rm -f conftest.file
1698 if test "$*" != "X $srcdir/configure conftest.file" \
1699 && test "$*" != "X conftest.file $srcdir/configure"; then
1701 # If neither matched, then we have a broken ls. This can happen
1702 # if, for instance, CONFIG_SHELL is bash and it inherits a
1703 # broken ls alias from the environment. This has actually
1704 # happened. Such a system could not be considered "sane".
1705 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1706 alias in your environment" >&5
1707 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1708 alias in your environment" >&2;}
1709 { (exit 1); exit 1; }; }
1712 test "$2" = conftest.file
1714 then
1715 # Ok.
1717 else
1718 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1719 Check your system clock" >&5
1720 echo "$as_me: error: newly created file is older than distributed files!
1721 Check your system clock" >&2;}
1722 { (exit 1); exit 1; }; }
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726 test "$program_prefix" != NONE &&
1727 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $. echo might interpret backslashes.
1732 # By default was `s,x,x', remove it if useless.
1733 cat <<\_ACEOF >conftest.sed
1734 s/[\\$]/&&/g;s/;s,x,x,$//
1735 _ACEOF
1736 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1737 rm conftest.sed
1739 # expand $ac_aux_dir to an absolute path
1740 am_aux_dir=`cd $ac_aux_dir && pwd`
1742 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1743 # Use eval to expand $SHELL
1744 if eval "$MISSING --run true"; then
1745 am_missing_run="$MISSING --run "
1746 else
1747 am_missing_run=
1748 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1749 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1752 if mkdir -p -- . 2>/dev/null; then
1753 # Keeping the `.' argument allows $(mkdir_p) to be used without
1754 # argument. Indeed, we sometimes output rules like
1755 # $(mkdir_p) $(somedir)
1756 # where $(somedir) is conditionally defined.
1757 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1758 # expensive solution, as it forces Make to start a sub-shell.)
1759 mkdir_p='mkdir -p -- .'
1760 else
1761 # On NextStep and OpenStep, the `mkdir' command does not
1762 # recognize any option. It will interpret all options as
1763 # directories to create, and then abort because `.' already
1764 # exists.
1765 for d in ./-p ./--;
1767 test -d $d && rmdir $d
1768 done
1769 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770 if test -f "$ac_aux_dir/mkinstalldirs"; then
1771 mkdir_p='$(mkinstalldirs)'
1772 else
1773 mkdir_p='$(install_sh) -d'
1777 for ac_prog in gawk mawk nawk awk
1779 # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$AWK"; then
1787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_AWK="$ac_prog"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807 echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 test -n "$AWK" && break
1815 done
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 cat >conftest.make <<\_ACEOF
1824 all:
1825 @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830 eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832 eval ac_cv_prog_make_${ac_make}_set=no
1834 rm -f conftest.make
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839 SET_MAKE=
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 SET_MAKE="MAKE=${MAKE-make}"
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849 am__leading_dot=.
1850 else
1851 am__leading_dot=_
1853 rmdir .tst 2>/dev/null
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857 test -f $srcdir/config.status; then
1858 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860 { (exit 1); exit 1; }; }
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865 if (cygpath --version) >/dev/null 2>/dev/null; then
1866 CYGPATH_W='cygpath -w'
1867 else
1868 CYGPATH_W=echo
1873 # Define the identity of the package.
1874 PACKAGE='libstdc++'
1875 VERSION='version-unused'
1878 # Some tools Automake needs.
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1895 AMTAR=${AMTAR-"${am_missing_run}tar"}
1897 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1899 # Installed binaries are usually stripped using `strip' when the user
1900 # run `make install-strip'. However `strip' might not be the right
1901 # tool to use in cross-compilation environments, therefore Automake
1902 # will honor the `STRIP' environment variable to overrule this program.
1903 if test "$cross_compiling" != no; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}strip; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_STRIP+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$STRIP"; then
1913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 STRIP=$ac_cv_prog_STRIP
1932 if test -n "$STRIP"; then
1933 echo "$as_me:$LINENO: result: $STRIP" >&5
1934 echo "${ECHO_T}$STRIP" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_STRIP"; then
1942 ac_ct_STRIP=$STRIP
1943 # Extract the first word of "strip", so it can be a program name with args.
1944 set dummy strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_STRIP"; then
1951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_STRIP="strip"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1967 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971 if test -n "$ac_ct_STRIP"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973 echo "${ECHO_T}$ac_ct_STRIP" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 STRIP=$ac_ct_STRIP
1980 else
1981 STRIP="$ac_cv_prog_STRIP"
1985 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1987 # We need awk for the "check" target. The system "awk" is bad on
1988 # some platforms.
1993 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1994 # up critical shell variables.
1996 # Keep these sync'd with the list in Makefile.am. The first provides an
1997 # expandable list at autoconf time; the second provides an expandable list
1998 # (i.e., shell variable) at configure time.
2000 SUBDIRS='include libmath libsupc++ src po testsuite'
2002 # These need to be absolute paths, yet at the same time need to
2003 # canonicalize only relative paths, because then amd will not unmount
2004 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2005 glibcxx_builddir=`${PWDCMD-pwd}`
2006 case $srcdir in
2007 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2008 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2009 esac
2010 toplevel_srcdir=${glibcxx_srcdir}/..
2015 # We use these options to decide which functions to include. They are
2016 # set from the top level.
2018 # Check whether --with-target-subdir or --without-target-subdir was given.
2019 if test "${with_target_subdir+set}" = set; then
2020 withval="$with_target_subdir"
2025 # Check whether --with-cross-host or --without-cross-host was given.
2026 if test "${with_cross_host+set}" = set; then
2027 withval="$with_cross_host"
2032 # Check whether --with-newlib or --without-newlib was given.
2033 if test "${with_newlib+set}" = set; then
2034 withval="$with_newlib"
2038 # We're almost certainly being configured before anything else which uses
2039 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2040 # we not cache the value of CXX that we "discover" here, because it's set
2041 # to something unique for us and libjava. Other target libraries need to
2042 # find CXX for themselves. We yank the rug out from under the normal AC_*
2043 # process by sneakily renaming the cache variable. This also lets us debug
2044 # the value of "our" CXX in postmortems.
2046 # We must also force CXX to /not/ be a precious variable, otherwise the
2047 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2048 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2049 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2050 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2052 # -fno-builtin must be present here so that a non-conflicting form of
2053 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2058 save_CXXFLAGS="$CXXFLAGS"
2059 CXXFLAGS="$CXXFLAGS -fno-builtin"
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2102 if test -z "$ac_cv_prog_CC"; then
2103 ac_ct_CC=$CC
2104 # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_ac_ct_CC="gcc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 CC=$ac_ct_CC
2140 else
2141 CC="$ac_cv_prog_CC"
2144 if test -z "$CC"; then
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}cc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2182 if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="cc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2219 CC=$ac_ct_CC
2220 else
2221 CC="$ac_cv_prog_CC"
2225 if test -z "$CC"; then
2226 # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2246 continue
2248 ac_cv_prog_CC="cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2255 if test $ac_prog_rejected = yes; then
2256 # We found a bogon in the path, so make sure we never use it.
2257 set dummy $ac_cv_prog_CC
2258 shift
2259 if test $# != 0; then
2260 # We chose a different compiler from the bogus one.
2261 # However, it has the same basename, so the bogon will be chosen
2262 # first if we set CC to just the basename; use the full file name.
2263 shift
2264 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 for ac_prog in cl
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2318 test -n "$CC" && break
2319 done
2321 if test -z "$CC"; then
2322 ac_ct_CC=$CC
2323 for ac_prog in cl
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_ac_ct_CC="$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2346 done
2347 done
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2355 else
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2360 test -n "$ac_ct_CC" && break
2361 done
2363 CC=$ac_ct_CC
2369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377 "checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380 (eval $ac_compiler --version </dev/null >&5) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385 (eval $ac_compiler -v </dev/null >&5) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390 (eval $ac_compiler -V </dev/null >&5) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 main ()
2407 return 0;
2409 _ACEOF
2410 # FIXME: Cleanup?
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 gcc_no_link=no
2417 else
2418 gcc_no_link=yes
2421 if test x$gcc_no_link = xyes; then
2422 # Setting cross_compile will disable run tests; it will
2423 # also disable AC_CHECK_FILE but that's generally
2424 # correct if we can't link.
2425 cross_compiling=yes
2426 EXEEXT=
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452 (eval $ac_link_default) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Find the output, starting from the most likely. This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2466 test -f "$ac_file" || continue
2467 case $ac_file in
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2470 conftest.$ac_ext )
2471 # This is the source file.
2473 [ab].out )
2474 # We found the default executable, but exeext='' is most
2475 # certainly right.
2476 break;;
2477 *.* )
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 # FIXME: I believe we export ac_cv_exeext for Libtool,
2480 # but it would be cool to find out if it's true. Does anybody
2481 # maintain Libtool? --akim.
2482 export ac_cv_exeext
2483 break;;
2485 break;;
2486 esac
2487 done
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496 { (exit 77); exit 77; }; }
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2503 # Check the compiler produces executables we can run. If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510 if { ac_try='./$ac_file'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 cross_compiling=no
2517 else
2518 if test "$cross_compiling" = maybe; then
2519 cross_compiling=yes
2520 else
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 export ac_cv_exeext
2560 break;;
2561 * ) break;;
2562 esac
2563 done
2564 else
2565 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2593 main ()
2597 return 0;
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 break;;
2611 esac
2612 done
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h. */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 main ()
2645 #ifndef __GNUC__
2646 choke me
2647 #endif
2650 return 0;
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -z "$ac_c_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_compiler_gnu=yes
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_compiler_gnu=no
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 CFLAGS="-g"
2692 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2693 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2694 if test "${ac_cv_prog_cc_g+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2705 main ()
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_g=yes
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 ac_cv_prog_cc_g=no
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2749 CFLAGS="-g -O2"
2750 else
2751 CFLAGS="-g"
2753 else
2754 if test "$GCC" = yes; then
2755 CFLAGS="-O2"
2756 else
2757 CFLAGS=
2760 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2761 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_cv_prog_cc_stdc=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781 char **p;
2782 int i;
2784 return p[i];
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2788 char *s;
2789 va_list v;
2790 va_start (v,p);
2791 s = g (p, va_arg (v,int));
2792 va_end (v);
2793 return s;
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2797 function prototypes and stuff, but not '\xHH' hex character constants.
2798 These don't provoke an error unfortunately, instead are silently treated
2799 as 'x'. The following induces an error, until -std1 is added to get
2800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2801 array size at least. It's necessary to write '\x00'==0 to get something
2802 that's true only with -std1. */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 int argc;
2810 char **argv;
2812 main ()
2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2816 return 0;
2818 _ACEOF
2819 # Don't try gcc -ansi; that turns off useful extensions and
2820 # breaks some systems' header files.
2821 # AIX -qlanglvl=ansi
2822 # Ultrix and OSF/1 -std1
2823 # HP-UX 10.20 and later -Ae
2824 # HP-UX older versions -Aa -D_HPUX_SOURCE
2825 # SVR4 -Xc -D__EXTENSIONS__
2826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 CC="$ac_save_CC $ac_arg"
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try='test -z "$ac_c_werror_flag"
2839 || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_stdc=$ac_arg
2852 break
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.err conftest.$ac_objext
2859 done
2860 rm -f conftest.$ac_ext conftest.$ac_objext
2861 CC=$ac_save_CC
2865 case "x$ac_cv_prog_cc_stdc" in
2866 x|xno)
2867 echo "$as_me:$LINENO: result: none needed" >&5
2868 echo "${ECHO_T}none needed" >&6 ;;
2870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2872 CC="$CC $ac_cv_prog_cc_stdc" ;;
2873 esac
2875 # Some people use a C++ compiler to compile C. Since we use `exit',
2876 # in C++ we need to declare it. In case someone uses the same compiler
2877 # for both compiling C and C++ we need to have the C++ compiler decide
2878 # the declaration of exit, since it's the most demanding environment.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #ifndef __cplusplus
2881 choke me
2882 #endif
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration in \
2907 '' \
2908 'extern "C" void std::exit (int) throw (); using std::exit;' \
2909 'extern "C" void std::exit (int); using std::exit;' \
2910 'extern "C" void exit (int) throw ();' \
2911 'extern "C" void exit (int);' \
2912 'void exit (int);'
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 $ac_declaration
2921 #include <stdlib.h>
2923 main ()
2925 exit (42);
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 (eval $ac_compile) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_c_werror_flag"
2940 || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 continue
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 $ac_declaration
2968 main ()
2970 exit (42);
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 break
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 done
3005 rm -f conftest*
3006 if test -n "$ac_declaration"; then
3007 echo '#ifdef __cplusplus' >>confdefs.h
3008 echo $ac_declaration >>confdefs.h
3009 echo '#endif' >>confdefs.h
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_ext=cc
3025 ac_cpp='$CXXCPP $CPPFLAGS'
3026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$CXX"; then
3040 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3058 CXX=$glibcxx_cv_prog_CXX
3059 if test -n "$CXX"; then
3060 echo "$as_me:$LINENO: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CXX" && break
3068 done
3070 if test -z "$CXX"; then
3071 ac_ct_CXX=$CXX
3072 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101 if test -n "$ac_ct_CXX"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3103 echo "${ECHO_T}$ac_ct_CXX" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CXX" && break
3110 done
3111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3113 CXX=$ac_ct_CXX
3117 # Provide some information about the compiler.
3118 echo "$as_me:$LINENO:" \
3119 "checking for C++ compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3122 (eval $ac_compiler --version </dev/null >&5) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }
3126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3127 (eval $ac_compiler -v </dev/null >&5) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3132 (eval $ac_compiler -V </dev/null >&5) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3150 main ()
3152 #ifndef __GNUC__
3153 choke me
3154 #endif
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_compiler_gnu=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_compiler_gnu=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3193 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3195 GXX=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CXXFLAGS=${CXXFLAGS+set}
3197 ac_save_CXXFLAGS=$CXXFLAGS
3198 CXXFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3200 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cxx_g+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_cxx_werror_flag"
3229 || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cxx_g=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_prog_cxx_g=no
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3252 if test "$ac_test_CXXFLAGS" = set; then
3253 CXXFLAGS=$ac_save_CXXFLAGS
3254 elif test $ac_cv_prog_cxx_g = yes; then
3255 if test "$GXX" = yes; then
3256 CXXFLAGS="-g -O2"
3257 else
3258 CXXFLAGS="-g"
3260 else
3261 if test "$GXX" = yes; then
3262 CXXFLAGS="-O2"
3263 else
3264 CXXFLAGS=
3267 for ac_declaration in \
3268 '' \
3269 'extern "C" void std::exit (int) throw (); using std::exit;' \
3270 'extern "C" void std::exit (int); using std::exit;' \
3271 'extern "C" void exit (int) throw ();' \
3272 'extern "C" void exit (int);' \
3273 'void exit (int);'
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 $ac_declaration
3282 #include <stdlib.h>
3284 main ()
3286 exit (42);
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 continue
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 $ac_declaration
3329 main ()
3331 exit (42);
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_cxx_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 break
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 done
3366 rm -f conftest*
3367 if test -n "$ac_declaration"; then
3368 echo '#ifdef __cplusplus' >>confdefs.h
3369 echo $ac_declaration >>confdefs.h
3370 echo '#endif' >>confdefs.h
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 CXXFLAGS="$save_CXXFLAGS"
3384 # For directory versioning (e.g., headers) and other variables.
3385 echo "$as_me:$LINENO: checking for GCC version number" >&5
3386 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3387 gcc_version=`$CXX -dumpversion`
3388 echo "$as_me:$LINENO: result: $gcc_version" >&5
3389 echo "${ECHO_T}$gcc_version" >&6
3391 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3392 # available). Uncomment the next line to force a particular method.
3393 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3394 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 LN_S=$as_ln_s
3396 if test "$LN_S" = "ln -s"; then
3397 echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3401 echo "${ECHO_T}no, using $LN_S" >&6
3404 #LN_S='cp -p'
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}as; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_AS+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$AS"; then
3415 ac_cv_prog_AS="$AS" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_AS="${ac_tool_prefix}as"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 AS=$ac_cv_prog_AS
3434 if test -n "$AS"; then
3435 echo "$as_me:$LINENO: result: $AS" >&5
3436 echo "${ECHO_T}$AS" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_AS"; then
3444 ac_ct_AS=$AS
3445 # Extract the first word of "as", so it can be a program name with args.
3446 set dummy as; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_AS"; then
3453 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_AS="as"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3472 if test -n "$ac_ct_AS"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3474 echo "${ECHO_T}$ac_ct_AS" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 AS=$ac_ct_AS
3481 else
3482 AS="$ac_cv_prog_AS"
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ar; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_AR+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$AR"; then
3494 ac_cv_prog_AR="$AR" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_AR="${ac_tool_prefix}ar"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3512 AR=$ac_cv_prog_AR
3513 if test -n "$AR"; then
3514 echo "$as_me:$LINENO: result: $AR" >&5
3515 echo "${ECHO_T}$AR" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3522 if test -z "$ac_cv_prog_AR"; then
3523 ac_ct_AR=$AR
3524 # Extract the first word of "ar", so it can be a program name with args.
3525 set dummy ar; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -n "$ac_ct_AR"; then
3532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_AR="ar"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3551 if test -n "$ac_ct_AR"; then
3552 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3553 echo "${ECHO_T}$ac_ct_AR" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 AR=$ac_ct_AR
3560 else
3561 AR="$ac_cv_prog_AR"
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_RANLIB+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 if test -n "$RANLIB"; then
3573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3586 done
3587 done
3591 RANLIB=$ac_cv_prog_RANLIB
3592 if test -n "$RANLIB"; then
3593 echo "$as_me:$LINENO: result: $RANLIB" >&5
3594 echo "${ECHO_T}$RANLIB" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3601 if test -z "$ac_cv_prog_RANLIB"; then
3602 ac_ct_RANLIB=$RANLIB
3603 # Extract the first word of "ranlib", so it can be a program name with args.
3604 set dummy ranlib; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -n "$ac_ct_RANLIB"; then
3611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_RANLIB="ranlib"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3627 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3631 if test -n "$ac_ct_RANLIB"; then
3632 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3633 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 RANLIB=$ac_ct_RANLIB
3640 else
3641 RANLIB="$ac_cv_prog_RANLIB"
3645 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3646 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3647 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3648 if test "${enable_maintainer_mode+set}" = set; then
3649 enableval="$enable_maintainer_mode"
3650 USE_MAINTAINER_MODE=$enableval
3651 else
3652 USE_MAINTAINER_MODE=no
3654 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3655 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINTAINER_MODE_TRUE=
3660 MAINTAINER_MODE_FALSE='#'
3661 else
3662 MAINTAINER_MODE_TRUE='#'
3663 MAINTAINER_MODE_FALSE=
3666 MAINT=$MAINTAINER_MODE_TRUE
3670 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3671 # which are themselves conditionally expanded.
3672 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3673 ## other macros from doing the same. This should be automated.) -pme
3674 need_libmath=no
3675 enable_wchar_t=no
3676 #enable_libstdcxx_debug=no
3677 #enable_libstdcxx_pch=no
3678 #enable_cheaders=c
3679 #c_compatibility=no
3680 #enable_abi_check=no
3681 #enable_symvers=no
3682 #enable_hosted_libstdcxx=yes
3684 # Find platform-specific directories containing configuration info.
3685 # Also possibly modify flags used elsewhere, as needed by the platform.
3687 . $glibcxx_srcdir/configure.host
3688 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3689 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3690 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3691 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3695 #AC_MSG_NOTICE([====== Starting libtool configuration])
3697 # Check whether --enable-shared or --disable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699 enableval="$enable_shared"
3700 p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_shared=yes ;;
3703 no) enable_shared=no ;;
3705 enable_shared=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3712 done
3713 IFS="$ac_save_ifs"
3715 esac
3716 else
3717 enable_shared=yes
3719 # Check whether --enable-static or --disable-static was given.
3720 if test "${enable_static+set}" = set; then
3721 enableval="$enable_static"
3722 p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3727 enable_static=no
3728 # Look at the argument we got. We use all the common list separators.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_static=yes
3734 done
3735 IFS="$ac_save_ifs"
3737 esac
3738 else
3739 enable_static=yes
3741 # Check whether --enable-fast-install or --disable-fast-install was given.
3742 if test "${enable_fast_install+set}" = set; then
3743 enableval="$enable_fast_install"
3744 p=${PACKAGE-default}
3745 case $enableval in
3746 yes) enable_fast_install=yes ;;
3747 no) enable_fast_install=no ;;
3749 enable_fast_install=no
3750 # Look at the argument we got. We use all the common list separators.
3751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3752 for pkg in $enableval; do
3753 if test "X$pkg" = "X$p"; then
3754 enable_fast_install=yes
3756 done
3757 IFS="$ac_save_ifs"
3759 esac
3760 else
3761 enable_fast_install=yes
3764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then
3766 withval="$with_gnu_ld"
3767 test "$withval" = no || with_gnu_ld=yes
3768 else
3769 with_gnu_ld=no
3771 ac_prog=ld
3772 if test "$GCC" = yes; then
3773 # Check if gcc -print-prog-name=ld gives a path.
3774 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3776 case $host in
3777 *-*-mingw*)
3778 # gcc leaves a trailing carriage return which upsets mingw
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782 esac
3783 case $ac_prog in
3784 # Accept absolute paths.
3785 [\\/]* | [A-Za-z]:[\\/]*)
3786 re_direlt='/[^/][^/]*/\.\./'
3787 # Canonicalize the path of ld
3788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3791 done
3792 test -z "$LD" && LD="$ac_prog"
3795 # If it fails, then pretend we aren't using GCC.
3796 ac_prog=ld
3799 # If it is relative, then search for the first ld in PATH.
3800 with_gnu_ld=unknown
3802 esac
3803 elif test "$with_gnu_ld" = yes; then
3804 echo "$as_me:$LINENO: checking for GNU ld" >&5
3805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3806 else
3807 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3810 if test "${lt_cv_path_LD+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 if test -z "$LD"; then
3814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3815 for ac_dir in $PATH; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3818 lt_cv_path_LD="$ac_dir/$ac_prog"
3819 # Check to see if the program is GNU ld. I'd rather use --version,
3820 # but apparently some GNU ld's only accept -v.
3821 # Break only if it was the GNU/non-GNU ld that we prefer.
3822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3823 test "$with_gnu_ld" != no && break
3824 else
3825 test "$with_gnu_ld" != yes && break
3828 done
3829 IFS="$ac_save_ifs"
3830 else
3831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837 echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845 { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3853 lt_cv_prog_gnu_ld=yes
3854 else
3855 lt_cv_prog_gnu_ld=no
3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3860 with_gnu_ld=$lt_cv_prog_gnu_ld
3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3865 if test "${lt_cv_ld_reload_flag+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 lt_cv_ld_reload_flag='-r'
3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3872 reload_flag=$lt_cv_ld_reload_flag
3873 test -n "$reload_flag" && reload_flag=" $reload_flag"
3875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3877 if test "${lt_cv_path_NM+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 if test -n "$NM"; then
3881 # Let the user override the test.
3882 lt_cv_path_NM="$NM"
3883 else
3884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3885 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3886 test -z "$ac_dir" && ac_dir=.
3887 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3888 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3889 # Check to see if the nm accepts a BSD-compat flag.
3890 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3891 # nm: unknown option "B" ignored
3892 # Tru64's nm complains that /dev/null is an invalid object file
3893 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3894 lt_cv_path_NM="$tmp_nm -B"
3895 break
3896 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3897 lt_cv_path_NM="$tmp_nm -p"
3898 break
3899 else
3900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901 continue # so that we can try to find one that supports BSD flags
3904 done
3905 IFS="$ac_save_ifs"
3906 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3910 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: result: $NM" >&5
3912 echo "${ECHO_T}$NM" >&6
3914 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3915 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3916 if test "${lt_cv_deplibs_check_method+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 lt_cv_file_magic_cmd='$MAGIC_CMD'
3920 lt_cv_file_magic_test_file=
3921 lt_cv_deplibs_check_method='unknown'
3922 # Need to set the preceding variable on all platforms that support
3923 # interlibrary dependencies.
3924 # 'none' -- dependencies not supported.
3925 # `unknown' -- same as none, but documents that we really don't know.
3926 # 'pass_all' -- all dependencies passed with no checks.
3927 # 'test_compile' -- check by making test program.
3928 # 'file_magic [regex]' -- check by looking for files in library path
3929 # which responds to the $file_magic_cmd with a given egrep regex.
3930 # If you have `file' or equivalent on your system and you're not sure
3931 # whether `pass_all' will *always* work, you probably want this one.
3933 case $host_os in
3934 aix*)
3935 lt_cv_deplibs_check_method=pass_all
3938 beos*)
3939 lt_cv_deplibs_check_method=pass_all
3942 bsdi4*)
3943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3944 lt_cv_file_magic_cmd='/usr/bin/file -L'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3948 cygwin* | mingw* |pw32*)
3949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950 lt_cv_file_magic_cmd='$OBJDUMP -f'
3953 darwin* | rhapsody*)
3954 # this will be overwritten by pass_all, but leave it in just in case
3955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3956 lt_cv_file_magic_cmd='/usr/bin/file -L'
3957 case "$host_os" in
3958 rhapsody* | darwin1.012)
3959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3961 *) # Darwin 1.3 on
3962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3964 esac
3965 lt_cv_deplibs_check_method=pass_all
3968 freebsd* )
3969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970 case $host_cpu in
3971 i*86 )
3972 # Not sure whether the presence of OpenBSD here was a mistake.
3973 # Let's accept both of them until this is cleared up.
3974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3975 lt_cv_file_magic_cmd=/usr/bin/file
3976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3978 esac
3979 else
3980 lt_cv_deplibs_check_method=pass_all
3984 gnu*)
3985 lt_cv_deplibs_check_method=pass_all
3988 hpux10.20*|hpux11*)
3989 case $host_cpu in
3990 hppa*)
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3992 lt_cv_file_magic_cmd=/usr/bin/file
3993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3995 ia64*)
3996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3997 lt_cv_file_magic_cmd=/usr/bin/file
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4000 esac
4003 irix5* | irix6*)
4004 case $host_os in
4005 irix5*)
4006 # this will be overridden with pass_all, but let us keep it just in case
4007 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4010 case $LD in
4011 *-32|*"-32 ") libmagic=32-bit;;
4012 *-n32|*"-n32 ") libmagic=N32;;
4013 *-64|*"-64 ") libmagic=64-bit;;
4014 *) libmagic=never-match;;
4015 esac
4016 # this will be overridden with pass_all, but let us keep it just in case
4017 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4019 esac
4020 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4021 lt_cv_deplibs_check_method=pass_all
4024 # This must be Linux ELF.
4025 linux-gnu*)
4026 case $host_cpu in
4027 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4028 lt_cv_deplibs_check_method=pass_all ;;
4030 # glibc up to 2.1.1 does not perform some relocations on ARM
4031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4032 esac
4033 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4036 netbsd*)
4037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4039 else
4040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4044 newsos6)
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4046 lt_cv_file_magic_cmd=/usr/bin/file
4047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4050 osf3* | osf4* | osf5*)
4051 # this will be overridden with pass_all, but let us keep it just in case
4052 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4053 lt_cv_file_magic_test_file=/shlib/libc.so
4054 lt_cv_deplibs_check_method=pass_all
4057 sco3.2v5*)
4058 lt_cv_deplibs_check_method=pass_all
4061 solaris*)
4062 lt_cv_deplibs_check_method=pass_all
4063 lt_cv_file_magic_test_file=/lib/libc.so
4066 sysv5uw[78]* | sysv4*uw2*)
4067 lt_cv_deplibs_check_method=pass_all
4070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4071 case $host_vendor in
4072 ncr)
4073 lt_cv_deplibs_check_method=pass_all
4075 motorola)
4076 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]'
4077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 esac
4081 esac
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4095 # Only perform the check for file, if the check method requires it
4096 case $deplibs_check_method in
4097 file_magic*)
4098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4099 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 case $MAGIC_CMD in
4106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4108 ?:/*)
4109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4112 ac_save_MAGIC_CMD="$MAGIC_CMD"
4113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4114 ac_dummy="/usr/bin:$PATH"
4115 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f $ac_dir/${ac_tool_prefix}file; then
4118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4119 if test -n "$file_magic_test_file"; then
4120 case $deplibs_check_method in
4121 "file_magic "*)
4122 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4125 egrep "$file_magic_regex" > /dev/null; then
4127 else
4128 cat <<EOF 1>&2
4130 *** Warning: the command libtool uses to detect shared libraries,
4131 *** $file_magic_cmd, produces output that libtool cannot recognize.
4132 *** The result is that libtool may fail to recognize shared libraries
4133 *** as such. This will affect the creation of libtool libraries that
4134 *** depend on shared libraries, but programs linked with such libtool
4135 *** libraries will work regardless of this problem. Nevertheless, you
4136 *** may want to report the problem to your system manager and/or to
4137 *** bug-libtool@gnu.org
4140 fi ;;
4141 esac
4143 break
4145 done
4146 IFS="$ac_save_ifs"
4147 MAGIC_CMD="$ac_save_MAGIC_CMD"
4149 esac
4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4153 if test -n "$MAGIC_CMD"; then
4154 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4155 echo "${ECHO_T}$MAGIC_CMD" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 if test -z "$lt_cv_path_MAGIC_CMD"; then
4162 if test -n "$ac_tool_prefix"; then
4163 echo "$as_me:$LINENO: checking for file" >&5
4164 echo $ECHO_N "checking for file... $ECHO_C" >&6
4165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 case $MAGIC_CMD in
4170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4172 ?:/*)
4173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4176 ac_save_MAGIC_CMD="$MAGIC_CMD"
4177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4178 ac_dummy="/usr/bin:$PATH"
4179 for ac_dir in $ac_dummy; do
4180 test -z "$ac_dir" && ac_dir=.
4181 if test -f $ac_dir/file; then
4182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4183 if test -n "$file_magic_test_file"; then
4184 case $deplibs_check_method in
4185 "file_magic "*)
4186 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4189 egrep "$file_magic_regex" > /dev/null; then
4191 else
4192 cat <<EOF 1>&2
4194 *** Warning: the command libtool uses to detect shared libraries,
4195 *** $file_magic_cmd, produces output that libtool cannot recognize.
4196 *** The result is that libtool may fail to recognize shared libraries
4197 *** as such. This will affect the creation of libtool libraries that
4198 *** depend on shared libraries, but programs linked with such libtool
4199 *** libraries will work regardless of this problem. Nevertheless, you
4200 *** may want to report the problem to your system manager and/or to
4201 *** bug-libtool@gnu.org
4204 fi ;;
4205 esac
4207 break
4209 done
4210 IFS="$ac_save_ifs"
4211 MAGIC_CMD="$ac_save_MAGIC_CMD"
4213 esac
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if test -n "$MAGIC_CMD"; then
4218 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4219 echo "${ECHO_T}$MAGIC_CMD" >&6
4220 else
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 else
4226 MAGIC_CMD=:
4232 esac
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_RANLIB+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263 echo "$as_me:$LINENO: result: $RANLIB" >&5
4264 echo "${ECHO_T}$RANLIB" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4271 if test -z "$ac_cv_prog_RANLIB"; then
4272 ac_ct_RANLIB=$RANLIB
4273 # Extract the first word of "ranlib", so it can be a program name with args.
4274 set dummy ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_RANLIB"; then
4281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_RANLIB="ranlib"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4297 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4301 if test -n "$ac_ct_RANLIB"; then
4302 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4303 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 else
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 RANLIB=$ac_ct_RANLIB
4310 else
4311 RANLIB="$ac_cv_prog_RANLIB"
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$STRIP"; then
4323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343 echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_STRIP"; then
4352 ac_ct_STRIP=$STRIP
4353 # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_STRIP="strip"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4377 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 STRIP=$ac_ct_STRIP
4390 else
4391 STRIP="$ac_cv_prog_STRIP"
4395 # Check for any special flags to pass to ltconfig.
4396 libtool_flags="--cache-file=$cache_file"
4397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406 enableval="$enable_libtool_lock"
4409 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4410 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4413 # Check whether --with-pic or --without-pic was given.
4414 if test "${with_pic+set}" = set; then
4415 withval="$with_pic"
4416 pic_mode="$withval"
4417 else
4418 pic_mode=default
4420 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4421 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4423 # Some flags need to be propagated to the compiler or linker for good
4424 # libtool support.
4425 case $host in
4426 *-*-irix6*)
4427 # Find out which ABI we are using.
4428 echo '#line 4428 "configure"' > conftest.$ac_ext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 if test "$lt_cv_prog_gnu_ld" = yes; then
4435 case `/usr/bin/file conftest.$ac_objext` in
4436 *32-bit*)
4437 LD="${LD-ld} -melf32bsmip"
4439 *N32*)
4440 LD="${LD-ld} -melf32bmipn32"
4442 *64-bit*)
4443 LD="${LD-ld} -melf64bmip"
4445 esac
4446 else
4447 case `/usr/bin/file conftest.$ac_objext` in
4448 *32-bit*)
4449 LD="${LD-ld} -32"
4451 *N32*)
4452 LD="${LD-ld} -n32"
4454 *64-bit*)
4455 LD="${LD-ld} -64"
4457 esac
4460 rm -rf conftest*
4463 ia64-*-hpux*)
4464 # Find out which ABI we are using.
4465 echo 'int i;' > conftest.$ac_ext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; then
4471 case "`/usr/bin/file conftest.o`" in
4472 *ELF-32*)
4473 HPUX_IA64_MODE="32"
4475 *ELF-64*)
4476 HPUX_IA64_MODE="64"
4478 esac
4480 rm -rf conftest*
4483 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4484 # Find out which ABI we are using.
4485 echo 'int i;' > conftest.$ac_ext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; then
4491 case "`/usr/bin/file conftest.o`" in
4492 *32-bit*)
4493 case $host in
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_i386"
4497 ppc64-*linux*|powerpc64-*linux*)
4498 LD="${LD-ld} -m elf32ppclinux"
4500 s390x-*linux*)
4501 LD="${LD-ld} -m elf_s390"
4503 sparc64-*linux*)
4504 LD="${LD-ld} -m elf32_sparc"
4506 esac
4508 *64-bit*)
4509 case $host in
4510 x86_64-*linux*)
4511 LD="${LD-ld} -m elf_x86_64"
4513 ppc*-*linux*|powerpc*-*linux*)
4514 LD="${LD-ld} -m elf64ppc"
4516 s390*-*linux*)
4517 LD="${LD-ld} -m elf64_s390"
4519 sparc*-*linux*)
4520 LD="${LD-ld} -m elf64_sparc"
4522 esac
4524 esac
4526 rm -rf conftest*
4529 *-*-sco3.2v5*)
4530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531 SAVE_CFLAGS="$CFLAGS"
4532 CFLAGS="$CFLAGS -belf"
4533 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4534 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4535 if test "${lt_cv_cc_needs_belf+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 if test x$gcc_no_link = xyes; then
4547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4549 { (exit 1); exit 1; }; }
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 lt_cv_cc_needs_belf=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 lt_cv_cc_needs_belf=no
4595 rm -f conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4608 CFLAGS="$SAVE_CFLAGS"
4613 esac
4616 # Save cache, so that ltconfig can load it
4617 cat >confcache <<\_ACEOF
4618 # This file is a shell script that caches the results of configure
4619 # tests run on this system so they can be shared between configure
4620 # scripts and configure runs, see configure's option --config-cache.
4621 # It is not useful on other systems. If it contains results you don't
4622 # want to keep, you may remove or edit it.
4624 # config.status only pays attention to the cache file if you give it
4625 # the --recheck option to rerun configure.
4627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4629 # following values.
4631 _ACEOF
4633 # The following way of writing the cache mishandles newlines in values,
4634 # but we know of no workaround that is simple, portable, and efficient.
4635 # So, don't put newlines in cache variables' values.
4636 # Ultrix sh set writes to stderr and can't be redirected directly,
4637 # and sets the high bit in the cache file unless we assign to the vars.
4639 (set) 2>&1 |
4640 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641 *ac_space=\ *)
4642 # `set' does not quote correctly, so add quotes (double-quote
4643 # substitution turns \\\\ into \\, and sed turns \\ into \).
4644 sed -n \
4645 "s/'/'\\\\''/g;
4646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4649 # `set' quotes correctly as required by POSIX, so do not add quotes.
4650 sed -n \
4651 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4653 esac;
4655 sed '
4656 t clear
4657 : clear
4658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4659 t end
4660 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661 : end' >>confcache
4662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4663 if test -w $cache_file; then
4664 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4665 cat confcache >$cache_file
4666 else
4667 echo "not updating unwritable cache $cache_file"
4670 rm -f confcache
4672 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4673 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4674 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4675 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4676 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4677 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4678 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4680 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4681 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4682 echo "$as_me: error: libtool configure failed" >&2;}
4683 { (exit 1); exit 1; }; }
4685 # Reload cache, that may have been modified by ltconfig
4686 if test -r "$cache_file"; then
4687 # Some versions of bash will fail to source /dev/null (special
4688 # files actually), so we avoid doing that.
4689 if test -f "$cache_file"; then
4690 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4691 echo "$as_me: loading cache $cache_file" >&6;}
4692 case $cache_file in
4693 [\\/]* | ?:[\\/]* ) . $cache_file;;
4694 *) . ./$cache_file;;
4695 esac
4697 else
4698 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4699 echo "$as_me: creating cache $cache_file" >&6;}
4700 >$cache_file
4704 # This can be used to rebuild libtool when needed
4705 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4707 # Always use our own libtool.
4708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4710 # Redirect the config.log output again, so that the ltconfig log is not
4711 # clobbered by the next message.
4712 exec 5>>./config.log
4714 ac_ext=cc
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4721 if test -z "$CXXCPP"; then
4722 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 # Double quotes because CXXCPP needs to be expanded
4726 for CXXCPP in "$CXX -E" "/lib/cpp"
4728 ac_preproc_ok=false
4729 for ac_cxx_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null; then
4758 if test -s conftest.err; then
4759 ac_cpp_err=$ac_cxx_preproc_warn_flag
4760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4761 else
4762 ac_cpp_err=
4764 else
4765 ac_cpp_err=yes
4767 if test -z "$ac_cpp_err"; then
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 # Broken: fails on valid input.
4774 continue
4776 rm -f conftest.err conftest.$ac_ext
4778 # OK, works on sane cases. Now check whether non-existent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } >/dev/null; then
4796 if test -s conftest.err; then
4797 ac_cpp_err=$ac_cxx_preproc_warn_flag
4798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4799 else
4800 ac_cpp_err=
4802 else
4803 ac_cpp_err=yes
4805 if test -z "$ac_cpp_err"; then
4806 # Broken: success on invalid input.
4807 continue
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 # Passes both tests.
4813 ac_preproc_ok=:
4814 break
4816 rm -f conftest.err conftest.$ac_ext
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822 break
4825 done
4826 ac_cv_prog_CXXCPP=$CXXCPP
4829 CXXCPP=$ac_cv_prog_CXXCPP
4830 else
4831 ac_cv_prog_CXXCPP=$CXXCPP
4833 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4834 echo "${ECHO_T}$CXXCPP" >&6
4835 ac_preproc_ok=false
4836 for ac_cxx_preproc_warn_flag in '' yes
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855 Syntax error
4856 _ACEOF
4857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null; then
4865 if test -s conftest.err; then
4866 ac_cpp_err=$ac_cxx_preproc_warn_flag
4867 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4868 else
4869 ac_cpp_err=
4871 else
4872 ac_cpp_err=yes
4874 if test -z "$ac_cpp_err"; then
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 # Broken: fails on valid input.
4881 continue
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether non-existent headers
4886 # can be detected and how.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } >/dev/null; then
4903 if test -s conftest.err; then
4904 ac_cpp_err=$ac_cxx_preproc_warn_flag
4905 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4906 else
4907 ac_cpp_err=
4909 else
4910 ac_cpp_err=yes
4912 if test -z "$ac_cpp_err"; then
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4923 rm -f conftest.err conftest.$ac_ext
4925 done
4926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927 rm -f conftest.err conftest.$ac_ext
4928 if $ac_preproc_ok; then
4930 else
4931 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4932 See \`config.log' for more details." >&5
4933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4934 See \`config.log' for more details." >&2;}
4935 { (exit 1); exit 1; }; }
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4947 lt_save_CC="$CC"
4948 lt_save_CFLAGS="$CFLAGS"
4949 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4950 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4951 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4952 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4953 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4954 deplibs_check_method="$deplibs_check_method" \
4955 file_magic_cmd="$file_magic_cmd" \
4956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4957 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4958 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4959 echo "$as_me: error: libtool tag configuration failed" >&2;}
4960 { (exit 1); exit 1; }; }
4961 CC="$lt_save_CC"
4962 CFLAGS="$lt_save_CFLAGS"
4964 # Redirect the config.log output again, so that the ltconfig log is not
4965 # clobbered by the next message.
4966 exec 5>>./config.log
4975 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4977 # Possibly disable most of the library.
4978 ## XXX Consider skipping unncessary tests altogether in this case, rather
4979 ## than just ignoring the results. Faster /and/ more correct, win win.
4981 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4982 if test "${enable_hosted_libstdcxx+set}" = set; then
4983 enableval="$enable_hosted_libstdcxx"
4985 else
4986 enable_hosted_libstdcxx=yes
4988 if test "$enable_hosted_libstdcxx" = no; then
4989 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4990 echo "$as_me: Only freestanding libraries will be built" >&6;}
4991 is_hosted=no
4992 hosted_define=0
4993 enable_abi_check=no
4994 enable_libstdcxx_pch=no
4995 else
4996 is_hosted=yes
4997 hosted_define=1
5001 cat >>confdefs.h <<_ACEOF
5002 #define _GLIBCXX_HOSTED $hosted_define
5003 _ACEOF
5007 # Check for support bits and g++ features that don't require linking.
5009 echo "$as_me:$LINENO: checking for exception model to use" >&5
5010 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5013 ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5020 if test "${enable_sjlj_exceptions+set}" = set; then
5021 enableval="$enable_sjlj_exceptions"
5023 case "$enableval" in
5024 yes|no|auto) ;;
5025 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5026 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028 esac
5030 else
5031 enable_sjlj_exceptions=auto
5035 if test $enable_sjlj_exceptions = auto; then
5036 # Botheration. Now we've got to detect the exception model. Link tests
5037 # against libgcc.a are problematic since we've not been given proper -L
5038 # bits for single-tree newlib and libgloss.
5040 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5041 cat > conftest.$ac_ext << EOF
5042 #line 5042 "configure"
5043 struct S { ~S(); };
5044 void bar();
5045 void foo()
5047 S s;
5048 bar();
5051 old_CXXFLAGS="$CXXFLAGS"
5052 CXXFLAGS=-S
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; then
5058 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5059 enable_sjlj_exceptions=yes
5060 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5061 enable_sjlj_exceptions=no
5064 CXXFLAGS="$old_CXXFLAGS"
5065 rm -f conftest*
5068 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5069 # to two different models.
5070 case $enable_sjlj_exceptions in
5071 yes)
5073 cat >>confdefs.h <<\_ACEOF
5074 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5075 _ACEOF
5077 ac_exception_model_name=sjlj
5080 ac_exception_model_name="call frame"
5083 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5084 echo "$as_me: error: unable to detect exception model" >&2;}
5085 { (exit 1); exit 1; }; }
5087 esac
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5095 echo "${ECHO_T}$ac_exception_model_name" >&6
5098 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5099 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5100 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5101 if test "${enable_libstdcxx_pch+set}" = set; then
5102 enableval="$enable_libstdcxx_pch"
5104 case "$enableval" in
5105 yes|no) ;;
5106 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5107 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5109 esac
5111 else
5112 enable_libstdcxx_pch=$is_hosted
5115 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5116 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5118 if test $enable_libstdcxx_pch = yes; then
5119 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5120 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5121 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 ac_save_CXXFLAGS="$CXXFLAGS"
5125 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 echo '#include <math.h>' > conftest.h
5135 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5136 -o conftest.h.gch 1>&5 2>&1 &&
5137 echo '#error "pch failed"' > conftest.h &&
5138 echo '#include "conftest.h"' > conftest.cc &&
5139 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5140 then
5141 glibcxx_cv_prog_CXX_pch=yes
5142 else
5143 glibcxx_cv_prog_CXX_pch=no
5145 rm -f conftest*
5146 CXXFLAGS=$ac_save_CXXFLAGS
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5156 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5157 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5161 if test $enable_libstdcxx_pch = yes; then
5162 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5163 else
5164 glibcxx_PCHFLAGS=""
5169 # Enable all the variable C++ runtime options.
5170 # NB: C_MBCHAR must come early.
5172 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5173 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5174 # Check whether --enable-cstdio or --disable-cstdio was given.
5175 if test "${enable_cstdio+set}" = set; then
5176 enableval="$enable_cstdio"
5178 case "$enableval" in
5179 stdio) ;;
5180 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5181 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5183 esac
5185 else
5186 enable_cstdio=stdio
5190 # Now that libio has been removed, you can have any color you want as long
5191 # as it's black. This is one big no-op until other packages are added, but
5192 # showing the framework never hurts.
5193 case ${enable_cstdio} in
5194 stdio)
5195 CSTDIO_H=config/io/c_io_stdio.h
5196 BASIC_FILE_H=config/io/basic_file_stdio.h
5197 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5198 echo "$as_me:$LINENO: result: stdio" >&5
5199 echo "${ECHO_T}stdio" >&6
5201 esac
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5214 # On Suns, sometimes $CPP names a directory.
5215 if test -n "$CPP" && test -d "$CPP"; then
5216 CPP=
5218 if test -z "$CPP"; then
5219 if test "${ac_cv_prog_CPP+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 # Double quotes because CPP needs to be expanded
5223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5225 ac_preproc_ok=false
5226 for ac_c_preproc_warn_flag in '' yes
5228 # Use a header file that comes with gcc, so configuring glibc
5229 # with a fresh cross-compiler works.
5230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231 # <limits.h> exists even on freestanding compilers.
5232 # On the NeXT, cc -E runs the code through the compiler's parser,
5233 # not just through cpp. "Syntax error" is here to catch this case.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245 Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5261 else
5262 ac_cpp_err=yes
5264 if test -z "$ac_cpp_err"; then
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Broken: fails on valid input.
5271 continue
5273 rm -f conftest.err conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether non-existent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_c_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296 else
5297 ac_cpp_err=
5299 else
5300 ac_cpp_err=yes
5302 if test -z "$ac_cpp_err"; then
5303 # Broken: success on invalid input.
5304 continue
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5313 rm -f conftest.err conftest.$ac_ext
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319 break
5322 done
5323 ac_cv_prog_CPP=$CPP
5326 CPP=$ac_cv_prog_CPP
5327 else
5328 ac_cv_prog_CPP=$CPP
5330 echo "$as_me:$LINENO: result: $CPP" >&5
5331 echo "${ECHO_T}$CPP" >&6
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #ifdef __STDC__
5348 # include <limits.h>
5349 #else
5350 # include <assert.h>
5351 #endif
5352 Syntax error
5353 _ACEOF
5354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null; then
5362 if test -s conftest.err; then
5363 ac_cpp_err=$ac_c_preproc_warn_flag
5364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365 else
5366 ac_cpp_err=
5368 else
5369 ac_cpp_err=yes
5371 if test -z "$ac_cpp_err"; then
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5378 continue
5380 rm -f conftest.err conftest.$ac_ext
5382 # OK, works on sane cases. Now check whether non-existent headers
5383 # can be detected and how.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5406 else
5407 ac_cpp_err=yes
5409 if test -z "$ac_cpp_err"; then
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5420 rm -f conftest.err conftest.$ac_ext
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5427 else
5428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 echo "$as_me:$LINENO: checking for egrep" >&5
5443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5444 if test "${ac_cv_prog_egrep+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5448 then ac_cv_prog_egrep='grep -E'
5449 else ac_cv_prog_egrep='egrep'
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5454 EGREP=$ac_cv_prog_egrep
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5474 main ()
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_stdc=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_header_stdc=no
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <string.h>
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "memchr" >/dev/null 2>&1; then
5526 else
5527 ac_cv_header_stdc=no
5529 rm -f conftest*
5533 if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <stdlib.h>
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev/null 2>&1; then
5547 else
5548 ac_cv_header_stdc=no
5550 rm -f conftest*
5554 if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5579 main ()
5581 int i;
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
5584 || toupper (i) != TOUPPER (i))
5585 exit(2);
5586 exit (0);
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5634 inttypes.h stdint.h unistd.h
5636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 eval "$as_ac_Header=yes"
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 eval "$as_ac_Header=no"
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5696 echo "$as_me:$LINENO: checking for C locale to use" >&5
5697 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5698 # Check whether --enable-clocale or --disable-clocale was given.
5699 if test "${enable_clocale+set}" = set; then
5700 enableval="$enable_clocale"
5702 case "$enableval" in
5703 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5704 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5705 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5706 { (exit 1); exit 1; }; } ;;
5707 esac
5709 else
5710 enable_clocale=auto
5714 # If they didn't use this option switch, or if they specified --enable
5715 # with no specific model, we'll have to look for one. If they
5716 # specified --disable (???), do likewise.
5717 if test $enable_clocale = no || test $enable_clocale = yes; then
5718 enable_clocale=auto
5721 # Either a known package, or "auto"
5722 enable_clocale_flag=$enable_clocale
5724 # Probe for locale support if no specific model is specified.
5725 # Default to "generic".
5726 if test $enable_clocale_flag = auto; then
5727 case x${target_os} in
5728 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 #include <features.h>
5737 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5738 _GLIBCXX_ok
5739 #endif
5741 _ACEOF
5742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5744 enable_clocale_flag=gnu
5745 else
5746 enable_clocale_flag=generic
5748 rm -f conftest*
5751 # Test for bugs early in glibc-2.2.x series
5752 if test x$enable_clocale_flag = xgnu; then
5753 if test "$cross_compiling" = yes; then
5754 enable_clocale_flag=generic
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #define _GNU_SOURCE 1
5764 #include <locale.h>
5765 #include <string.h>
5766 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5767 extern __typeof(newlocale) __newlocale;
5768 extern __typeof(duplocale) __duplocale;
5769 extern __typeof(strcoll_l) __strcoll_l;
5770 #endif
5771 int main()
5773 const char __one[] = "Äuglein Augmen";
5774 const char __two[] = "Äuglein";
5775 int i;
5776 int j;
5777 __locale_t loc;
5778 __locale_t loc_dup;
5779 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5780 loc_dup = __duplocale(loc);
5781 i = __strcoll_l(__one, __two, loc);
5782 j = __strcoll_l(__one, __two, loc_dup);
5783 return 0;
5786 _ACEOF
5787 rm -f conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789 (eval $ac_link) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 enable_clocale_flag=gnu
5799 else
5800 echo "$as_me: program exited with status $ac_status" >&5
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ( exit $ac_status )
5805 enable_clocale_flag=generic
5807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5811 # ... at some point put __strxfrm_l tests in as well.
5814 enable_clocale_flag=generic
5816 esac
5819 # Deal with gettext issues. Default to not using it (=no) until we detect
5820 # support for it later. Let the user turn it off via --e/d, but let that
5821 # default to on for easier handling.
5822 USE_NLS=no
5823 # Check whether --enable-nls or --disable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825 enableval="$enable_nls"
5827 else
5828 enable_nls=yes
5831 # Set configure bits for specified locale package
5832 case ${enable_clocale_flag} in
5833 generic)
5834 echo "$as_me:$LINENO: result: generic" >&5
5835 echo "${ECHO_T}generic" >&6
5837 CLOCALE_H=config/locale/generic/c_locale.h
5838 CLOCALE_CC=config/locale/generic/c_locale.cc
5839 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5840 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5841 CCOLLATE_CC=config/locale/generic/collate_members.cc
5842 CCTYPE_CC=config/locale/generic/ctype_members.cc
5843 CMESSAGES_H=config/locale/generic/messages_members.h
5844 CMESSAGES_CC=config/locale/generic/messages_members.cc
5845 CMONEY_CC=config/locale/generic/monetary_members.cc
5846 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5847 CTIME_H=config/locale/generic/time_members.h
5848 CTIME_CC=config/locale/generic/time_members.cc
5849 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5851 gnu)
5852 echo "$as_me:$LINENO: result: gnu" >&5
5853 echo "${ECHO_T}gnu" >&6
5855 # Declare intention to use gettext, and add support for specific
5856 # languages.
5857 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5858 ALL_LINGUAS="de fr"
5860 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5861 # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 if test -n "$check_msgfmt"; then
5869 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_check_msgfmt="yes"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5885 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5888 check_msgfmt=$ac_cv_prog_check_msgfmt
5889 if test -n "$check_msgfmt"; then
5890 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5891 echo "${ECHO_T}$check_msgfmt" >&6
5892 else
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5897 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5898 USE_NLS=yes
5900 # Export the build objects.
5901 for ling in $ALL_LINGUAS; do \
5902 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5903 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5904 done
5908 CLOCALE_H=config/locale/gnu/c_locale.h
5909 CLOCALE_CC=config/locale/gnu/c_locale.cc
5910 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5911 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5912 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5913 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5914 CMESSAGES_H=config/locale/gnu/messages_members.h
5915 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5916 CMONEY_CC=config/locale/gnu/monetary_members.cc
5917 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5918 CTIME_H=config/locale/gnu/time_members.h
5919 CTIME_CC=config/locale/gnu/time_members.cc
5920 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5922 ieee_1003.1-2001)
5923 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5924 echo "${ECHO_T}IEEE 1003.1" >&6
5926 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5927 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5928 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5929 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5930 CCOLLATE_CC=config/locale/generic/collate_members.cc
5931 CCTYPE_CC=config/locale/generic/ctype_members.cc
5932 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5933 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5934 CMONEY_CC=config/locale/generic/monetary_members.cc
5935 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5936 CTIME_H=config/locale/generic/time_members.h
5937 CTIME_CC=config/locale/generic/time_members.cc
5938 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5940 esac
5942 # This is where the testsuite looks for locale catalogs, using the
5943 # -DLOCALEDIR define during testsuite compilation.
5944 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5947 # A standalone libintl (e.g., GNU libintl) may be in use.
5948 if test $USE_NLS = yes; then
5950 for ac_header in libintl.h
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962 # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_header_compiler=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_compiler=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } >/dev/null; then
6026 if test -s conftest.err; then
6027 ac_cpp_err=$ac_c_preproc_warn_flag
6028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029 else
6030 ac_cpp_err=
6032 else
6033 ac_cpp_err=yes
6035 if test -z "$ac_cpp_err"; then
6036 ac_header_preproc=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_header_preproc=no
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6047 # So? What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049 yes:no: )
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054 ac_header_preproc=yes
6056 no:yes:* )
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6070 cat <<\_ASBOX
6071 ## ----------------------------------------- ##
6072 ## Report this to the package-unused lists. ##
6073 ## ----------------------------------------- ##
6074 _ASBOX
6076 sed "s/^/$as_me: WARNING: /" >&2
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 eval "$as_ac_Header=\$ac_header_preproc"
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6095 else
6096 USE_NLS=no
6099 done
6101 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6102 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6103 if test "${ac_cv_search_gettext+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 ac_func_search_save_LIBS=$LIBS
6107 ac_cv_search_gettext=no
6108 if test x$gcc_no_link = xyes; then
6109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6111 { (exit 1); exit 1; }; }
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6126 char gettext ();
6128 main ()
6130 gettext ();
6132 return 0;
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_gettext="none required"
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6165 if test "$ac_cv_search_gettext" = no; then
6166 for ac_lib in intl; do
6167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6168 if test x$gcc_no_link = xyes; then
6169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171 { (exit 1); exit 1; }; }
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char gettext ();
6188 main ()
6190 gettext ();
6192 return 0;
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_search_gettext="-l$ac_lib"
6218 break
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 done
6228 LIBS=$ac_func_search_save_LIBS
6230 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6231 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6232 if test "$ac_cv_search_gettext" != no; then
6233 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6235 else
6236 USE_NLS=no
6240 if test $USE_NLS = yes; then
6241 cat >>confdefs.h <<\_ACEOF
6242 #define _GLIBCXX_USE_NLS 1
6243 _ACEOF
6263 echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6264 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6265 # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6266 if test "${enable_libstdcxx_allocator+set}" = set; then
6267 enableval="$enable_libstdcxx_allocator"
6269 case "$enableval" in
6270 new|malloc|mt|bitmap|pool|yes|no|auto) ;;
6271 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6272 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6273 { (exit 1); exit 1; }; } ;;
6274 esac
6276 else
6277 enable_libstdcxx_allocator=auto
6280 # If they didn't use this option switch, or if they specified --enable
6281 # with no specific model, we'll have to look for one. If they
6282 # specified --disable (???), do likewise.
6283 if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6284 enable_libstdcxx_allocator=auto
6287 # Either a known package, or "auto"
6288 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6290 # Probe for host-specific support if no specific model is specified.
6291 # Default to "new".
6292 if test $enable_libstdcxx_allocator_flag = auto; then
6293 case ${target_os} in
6295 enable_libstdcxx_allocator_flag=new
6297 esac
6299 echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6300 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6303 # Set configure bits for specified locale package
6304 case ${enable_libstdcxx_allocator_flag} in
6305 bitmap)
6306 ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6307 ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6309 malloc)
6310 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6311 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6314 ALLOCATOR_H=config/allocator/mt_allocator_base.h
6315 ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6317 new)
6318 ALLOCATOR_H=config/allocator/new_allocator_base.h
6319 ALLOCATOR_NAME=__gnu_cxx::new_allocator
6321 pool)
6322 ALLOCATOR_H=config/allocator/pool_allocator_base.h
6323 ALLOCATOR_NAME=__gnu_cxx::__pool_alloc
6325 esac
6331 # Check whether --enable-cheaders or --disable-cheaders was given.
6332 if test "${enable_cheaders+set}" = set; then
6333 enableval="$enable_cheaders"
6335 case "$enableval" in
6336 c|c_std) ;;
6337 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6338 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6339 { (exit 1); exit 1; }; } ;;
6340 esac
6342 else
6343 enable_cheaders=$c_model
6346 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6347 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6349 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6356 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6357 if test "${enable_c_mbchar+set}" = set; then
6358 enableval="$enable_c_mbchar"
6360 case "$enableval" in
6361 yes|no) ;;
6362 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6363 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6364 { (exit 1); exit 1; }; } ;;
6365 esac
6367 else
6368 enable_c_mbchar=yes
6371 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6375 # Check whether --enable-c99 or --disable-c99 was given.
6376 if test "${enable_c99+set}" = set; then
6377 enableval="$enable_c99"
6379 case "$enableval" in
6380 yes|no) ;;
6381 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6382 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6383 { (exit 1); exit 1; }; } ;;
6384 esac
6386 else
6387 enable_c99=yes
6393 ac_ext=cc
6394 ac_cpp='$CXXCPP $CPPFLAGS'
6395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6400 # Check for the existence of <math.h> functions used if C99 is enabled.
6401 ac_c99_math=yes;
6402 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6403 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <math.h>
6412 main ()
6414 fpclassify(0.0);
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_cxx_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6442 else
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 ac_c99_math=no
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <math.h>
6457 main ()
6459 isfinite(0.0);
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_cxx_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_c99_math=no
6493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <math.h>
6502 main ()
6504 isinf(0.0);
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_cxx_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_c99_math=no
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 #include <math.h>
6547 main ()
6549 isnan(0.0);
6551 return 0;
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_c99_math=no
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <math.h>
6592 main ()
6594 isnormal(0.0);
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_cxx_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_c99_math=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <math.h>
6637 main ()
6639 signbit(0.0);
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_cxx_werror_flag"
6654 || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_c99_math=no
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <math.h>
6682 main ()
6684 isgreater(0.0,0.0);
6686 return 0;
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag"
6699 || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_c99_math=no
6718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <math.h>
6727 main ()
6729 isgreaterequal(0.0,0.0);
6731 return 0;
6733 _ACEOF
6734 rm -f conftest.$ac_objext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736 (eval $ac_compile) 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -z "$ac_cxx_werror_flag"
6744 || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_c99_math=no
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <math.h>
6772 main ()
6774 isless(0.0,0.0);
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781 (eval $ac_compile) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -z "$ac_cxx_werror_flag"
6789 || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest.$ac_objext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_c99_math=no
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <math.h>
6817 main ()
6819 islessequal(0.0,0.0);
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826 (eval $ac_compile) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_cxx_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest.$ac_objext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_c99_math=no
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <math.h>
6862 main ()
6864 islessgreater(0.0,0.0);
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_cxx_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_c99_math=no
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <math.h>
6907 main ()
6909 isunordered(0.0,0.0);
6911 return 0;
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -z "$ac_cxx_werror_flag"
6924 || test ! -s conftest.err'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; } &&
6930 { ac_try='test -s conftest.$ac_objext'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_c99_math=no
6943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6945 echo "${ECHO_T}$ac_c99_math" >&6
6947 if test x"$ac_c99_math" = x"yes"; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define _GLIBCXX_USE_C99_MATH 1
6950 _ACEOF
6954 # Check for the existence in <stdio.h> of vscanf, et. al.
6955 ac_c99_stdio=yes;
6956 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6957 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <stdio.h>
6966 main ()
6968 snprintf("12", 0, "%i");
6970 return 0;
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975 (eval $ac_compile) 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -z "$ac_cxx_werror_flag"
6983 || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_c99_stdio=no
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 #include <stdio.h>
7010 #include <stdarg.h>
7011 void foo(char* fmt, ...)
7012 {va_list args; va_start(args, fmt);
7013 vfscanf(stderr, "%i", args);}
7015 main ()
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_cxx_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_c99_stdio=no
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <stdio.h>
7059 #include <stdarg.h>
7060 void foo(char* fmt, ...)
7061 {va_list args; va_start(args, fmt);
7062 vscanf("%i", args);}
7064 main ()
7068 return 0;
7070 _ACEOF
7071 rm -f conftest.$ac_objext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest.$ac_objext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_c99_stdio=no
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <stdio.h>
7108 #include <stdarg.h>
7109 void foo(char* fmt, ...)
7110 {va_list args; va_start(args, fmt);
7111 vsnprintf(fmt, 0, "%i", args);}
7113 main ()
7117 return 0;
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -z "$ac_cxx_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7143 else
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7147 ac_c99_stdio=no
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <stdio.h>
7157 #include <stdarg.h>
7158 void foo(char* fmt, ...)
7159 {va_list args; va_start(args, fmt);
7160 vsscanf(fmt, "%i", args);}
7162 main ()
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_cxx_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_c99_stdio=no
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7200 echo "${ECHO_T}$ac_c99_stdio" >&6
7202 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7203 ac_c99_stdlib=yes;
7204 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7205 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7206 if test "${ac_c99_lldiv_t+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 #include <stdlib.h>
7218 main ()
7220 lldiv_t mydivt;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_cxx_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_c99_lldiv_t=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_c99_lldiv_t=no
7254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7259 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7261 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7262 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 #include <stdlib.h>
7271 main ()
7273 char* tmp; strtof("gnu", &tmp);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_cxx_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_c99_stdlib=no
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <stdlib.h>
7316 main ()
7318 char* tmp; strtold("gnu", &tmp);
7320 return 0;
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag"
7333 || test ! -s conftest.err'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; } &&
7339 { ac_try='test -s conftest.$ac_objext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 ac_c99_stdlib=no
7352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <stdlib.h>
7361 main ()
7363 llabs(10);
7365 return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_cxx_werror_flag"
7378 || 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 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <stdlib.h>
7406 main ()
7408 lldiv(10,1);
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_cxx_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_c99_stdlib=no
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <stdlib.h>
7451 main ()
7453 atoll("10");
7455 return 0;
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>conftest.er1
7461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_cxx_werror_flag"
7468 || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest.$ac_objext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_c99_stdlib=no
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 #include <stdlib.h>
7496 main ()
7498 _Exit(0);
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_cxx_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_c99_stdlib=no
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533 if test x"$ac_c99_lldiv_t" = x"no"; then
7534 ac_c99_stdlib=no;
7536 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7537 echo "${ECHO_T}$ac_c99_stdlib" >&6
7539 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7540 # XXX the wchar.h checks should be rolled into the general C99 bits.
7541 ac_c99_wchar=yes;
7542 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7543 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <wchar.h>
7552 main ()
7554 wcstold(L"10.0", NULL);
7556 return 0;
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -z "$ac_cxx_werror_flag"
7569 || test ! -s conftest.err'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_c99_wchar=no
7588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 #include <wchar.h>
7597 main ()
7599 wcstoll(L"10", NULL, 10);
7601 return 0;
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_cxx_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_c99_wchar=no
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <wchar.h>
7642 main ()
7644 wcstoull(L"10", NULL, 10);
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_cxx_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_c99_wchar=no
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7680 echo "${ECHO_T}$ac_c99_wchar" >&6
7682 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7683 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7684 if test x"$ac_c99_math" = x"no" ||
7685 test x"$ac_c99_stdio" = x"no" ||
7686 test x"$ac_c99_stdlib" = x"no" ||
7687 test x"$ac_c99_wchar" = x"no"; then
7688 enable_c99=no;
7690 echo "$as_me:$LINENO: result: $enable_c99" >&5
7691 echo "${ECHO_T}$enable_c99" >&6
7693 if test x"$ac_99_math" = x"yes"; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define _GLIBCXX_USE_C99_MATH 1
7696 _ACEOF
7700 # Option parsed, now set things appropriately
7701 if test x"$enable_c99" = x"yes"; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define _GLIBCXX_USE_C99 1
7704 _ACEOF
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716 # Check whether --enable-long-long or --disable-long-long was given.
7717 if test "${enable_long_long+set}" = set; then
7718 enableval="$enable_long_long"
7720 case "$enableval" in
7721 yes|no) ;;
7722 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7723 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7724 { (exit 1); exit 1; }; } ;;
7725 esac
7727 else
7728 enable_long_long=yes
7734 ac_ext=cc
7735 ac_cpp='$CXXCPP $CPPFLAGS'
7736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7741 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7742 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7743 # iostreams require strtoll, strtoull to compile
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #include <stdlib.h>
7752 main ()
7754 char* tmp; strtoll("gnu", &tmp, 10);
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_cxx_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 enable_long_long=no
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <stdlib.h>
7797 main ()
7799 char* tmp; strtoull("gnu", &tmp, 10);
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_cxx_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 enable_long_long=no
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 # Option parsed, now set things appropriately
7836 if test $enable_long_long = yes; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define _GLIBCXX_USE_LONG_LONG 1
7839 _ACEOF
7842 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7843 echo "${ECHO_T}$enable_long_long" >&6
7845 ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7854 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7855 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7856 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7857 echo "${ECHO_T}$target_thread_file" >&6
7859 if test $target_thread_file != single; then
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_GTHR_DEFAULT 1
7862 _ACEOF
7866 glibcxx_thread_h=gthr-$target_thread_file.h
7870 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7871 if test "${enable_concept_checks+set}" = set; then
7872 enableval="$enable_concept_checks"
7874 case "$enableval" in
7875 yes|no) ;;
7876 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7877 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7878 { (exit 1); exit 1; }; } ;;
7879 esac
7881 else
7882 enable_concept_checks=no
7885 if test $enable_concept_checks = yes; then
7886 cat >>confdefs.h <<\_ACEOF
7887 #define _GLIBCXX_CONCEPT_CHECKS 1
7888 _ACEOF
7893 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7894 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7895 enableval="$enable_libstdcxx_debug_flags"
7896 case "x$enable_libstdcxx_debug_flags" in
7897 xno | x) enable_libstdcxx_debug_flags= ;;
7898 x-*) ;;
7899 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7900 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7901 { (exit 1); exit 1; }; } ;;
7902 esac
7903 else
7904 enable_libstdcxx_debug_flags="-g3 -O0"
7908 # Option parsed, now set things appropriately
7909 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7912 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7913 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7916 echo "$as_me:$LINENO: checking for additional debug build" >&5
7917 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7918 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7919 if test "${enable_libstdcxx_debug+set}" = set; then
7920 enableval="$enable_libstdcxx_debug"
7922 case "$enableval" in
7923 yes|no) ;;
7924 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7925 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7926 { (exit 1); exit 1; }; } ;;
7927 esac
7929 else
7930 enable_libstdcxx_debug=no
7933 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7934 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7937 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7938 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7939 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7940 if test "${enable_cxx_flags+set}" = set; then
7941 enableval="$enable_cxx_flags"
7942 case "x$enable_cxx_flags" in
7943 xno | x) enable_cxx_flags= ;;
7944 x-*) ;;
7945 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7946 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7947 { (exit 1); exit 1; }; } ;;
7948 esac
7949 else
7950 enable_cxx_flags=
7954 # Run through flags (either default or command-line) and set anything
7955 # extra (e.g., #defines) that must accompany particular g++ options.
7956 if test -n "$enable_cxx_flags"; then
7957 for f in $enable_cxx_flags; do
7958 case "$f" in
7959 -fhonor-std) ;;
7960 -*) ;;
7961 *) # and we're trying to pass /what/ exactly?
7962 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7963 echo "$as_me: error: compiler flags start with a -" >&2;}
7964 { (exit 1); exit 1; }; } ;;
7965 esac
7966 done
7969 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7970 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7971 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7975 # No surprises, no surprises...
7976 if test $atomicity_dir = cpu/generic ; then
7977 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7978 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7979 if test $target_thread_file = single; then
7980 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7981 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7982 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7983 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7984 else
7985 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7986 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7987 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7988 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7993 if $GLIBCXX_IS_NATIVE; then
7995 # We can do more elaborate tests that assume a working linker.
7996 CANADIAN=no
7998 # Check for available headers.
8012 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8013 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
8014 sys/types.h
8016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8018 echo "$as_me:$LINENO: checking for $ac_header" >&5
8019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8025 else
8026 # Is the header compilable?
8027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #include <$ac_header>
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_header_compiler=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_header_compiler=no
8067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8069 echo "${ECHO_T}$ac_header_compiler" >&6
8071 # Is the header present?
8072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } >/dev/null; then
8090 if test -s conftest.err; then
8091 ac_cpp_err=$ac_c_preproc_warn_flag
8092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8093 else
8094 ac_cpp_err=
8096 else
8097 ac_cpp_err=yes
8099 if test -z "$ac_cpp_err"; then
8100 ac_header_preproc=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_header_preproc=no
8107 rm -f conftest.err conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8109 echo "${ECHO_T}$ac_header_preproc" >&6
8111 # So? What about this header?
8112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8113 yes:no: )
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8118 ac_header_preproc=yes
8120 no:yes:* )
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8134 cat <<\_ASBOX
8135 ## ----------------------------------------- ##
8136 ## Report this to the package-unused lists. ##
8137 ## ----------------------------------------- ##
8138 _ASBOX
8140 sed "s/^/$as_me: WARNING: /" >&2
8142 esac
8143 echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 eval "$as_ac_Header=\$ac_header_preproc"
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8157 _ACEOF
8161 done
8165 # All these tests are for C++; save the language and the compiler flags.
8166 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8167 # found in GLIBCXX_CONFIGURE.
8170 ac_ext=cc
8171 ac_cpp='$CXXCPP $CPPFLAGS'
8172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8176 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8177 ac_save_CXXFLAGS="$CXXFLAGS"
8179 # Check for maintainer-mode bits.
8180 if test x"$USE_MAINTAINER_MODE" = xno; then
8181 WERROR=''
8182 else
8183 WERROR='-Werror'
8186 # Check for -ffunction-sections -fdata-sections
8187 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8188 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8189 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8198 main ()
8200 int foo;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_cxx_werror_flag"
8215 || test ! -s conftest.err'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_fdsections=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 ac_fdsections=no
8234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235 if test "$ac_test_CXXFLAGS" = set; then
8236 CXXFLAGS="$ac_save_CXXFLAGS"
8237 else
8238 # this is the suspicious part
8239 CXXFLAGS=''
8241 if test x"$ac_fdsections" = x"yes"; then
8242 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8244 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8245 echo "${ECHO_T}$ac_fdsections" >&6
8247 ac_ext=c
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257 # If we're not using GNU ld, then there's no point in even trying these
8258 # tests. Check for that first. We should have already tested for gld
8259 # by now (in libtool), but require it now just to be safe...
8260 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8261 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8265 # The name set by libtool depends on the version of libtool. Shame on us
8266 # for depending on an impl detail, but c'est la vie. Older versions used
8267 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8268 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8269 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8270 # set (hence we're using an older libtool), then set it.
8271 if test x${with_gnu_ld+set} != xset; then
8272 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8273 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8274 with_gnu_ld=no
8275 else
8276 with_gnu_ld=$ac_cv_prog_gnu_ld
8280 # Start by getting the version number. I think the libtool test already
8281 # does some of this, but throws away the result.
8283 ldver=`$LD --version 2>/dev/null | head -1 | \
8284 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8286 glibcxx_gnu_ld_version=`echo $ldver | \
8287 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8289 # Set --gc-sections.
8290 if test "$with_gnu_ld" = "notbroken"; then
8291 # GNU ld it is! Joy and bunny rabbits!
8293 # All these tests are for C++; save the language and the compiler flags.
8294 # Need to do this so that g++ won't try to link in libstdc++
8295 ac_test_CFLAGS="${CFLAGS+set}"
8296 ac_save_CFLAGS="$CFLAGS"
8297 CFLAGS='-x c++ -Wl,--gc-sections'
8299 # Check for -Wl,--gc-sections
8300 # XXX This test is broken at the moment, as symbols required for linking
8301 # are now in libsupc++ (not built yet). In addition, this test has
8302 # cored on solaris in the past. In addition, --gc-sections doesn't
8303 # really work at the moment (keeps on discarding used sections, first
8304 # .eh_frame and now some of the glibc sections for iconv).
8305 # Bzzzzt. Thanks for playing, maybe next time.
8306 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8307 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8308 if test "$cross_compiling" = yes; then
8309 ac_sectionLDflags=yes
8310 else
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 int main(void)
8320 try { throw 1; }
8321 catch (...) { };
8322 return 0;
8325 _ACEOF
8326 rm -f conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_sectionLDflags=yes
8338 else
8339 echo "$as_me: program exited with status $ac_status" >&5
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ( exit $ac_status )
8344 ac_sectionLDflags=no
8346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 if test "$ac_test_CFLAGS" = set; then
8349 CFLAGS="$ac_save_CFLAGS"
8350 else
8351 # this is the suspicious part
8352 CFLAGS=''
8354 if test "$ac_sectionLDflags" = "yes"; then
8355 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8357 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8358 echo "${ECHO_T}$ac_sectionLDflags" >&6
8361 # Set linker optimization flags.
8362 if test x"$with_gnu_ld" = x"yes"; then
8363 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8370 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8371 ac_save_CXXFLAGS="$CXXFLAGS"
8372 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8374 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8375 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8376 if test "${ac_cv_lib_m_sin+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lm $LIBS"
8381 if test x$gcc_no_link = xyes; then
8382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8384 { (exit 1); exit 1; }; }
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 #ifdef __cplusplus
8395 extern "C"
8396 #endif
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399 char sin ();
8401 main ()
8403 sin ();
8405 return 0;
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410 (eval $ac_link) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_m_sin=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_lib_m_sin=no
8437 rm -f conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8441 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8442 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8443 if test $ac_cv_lib_m_sin = yes; then
8444 libm="-lm"
8447 ac_save_LIBS="$LIBS"
8448 LIBS="$LIBS $libm"
8452 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8453 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8454 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8455 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8461 ac_ext=cc
8462 ac_cpp='$CXXCPP $CPPFLAGS'
8463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 #include <math.h>
8474 #ifdef HAVE_IEEEFP_H
8475 #include <ieeefp.h>
8476 #endif
8479 main ()
8481 isinf(0);
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_cxx_werror_flag"
8496 || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 glibcxx_cv_func_isinf_use=yes
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 glibcxx_cv_func_isinf_use=no
8515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516 ac_ext=c
8517 ac_cpp='$CPP $CPPFLAGS'
8518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8526 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8527 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8529 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8531 for ac_func in isinf
8533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8534 echo "$as_me:$LINENO: checking for $ac_func" >&5
8535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8536 if eval "test \"\${$as_ac_var+set}\" = set"; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 if test x$gcc_no_link = xyes; then
8540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8542 { (exit 1); exit 1; }; }
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8552 #define $ac_func innocuous_$ac_func
8554 /* System header to define __stub macros and hopefully few prototypes,
8555 which can conflict with char $ac_func (); below.
8556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8557 <limits.h> exists even on freestanding compilers. */
8559 #ifdef __STDC__
8560 # include <limits.h>
8561 #else
8562 # include <assert.h>
8563 #endif
8565 #undef $ac_func
8567 /* Override any gcc2 internal prototype to avoid an error. */
8568 #ifdef __cplusplus
8569 extern "C"
8571 #endif
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8574 char $ac_func ();
8575 /* The GNU C library defines this for functions which it implements
8576 to always fail with ENOSYS. Some functions are actually named
8577 something starting with __ and the normal name is an alias. */
8578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8579 choke me
8580 #else
8581 char (*f) () = $ac_func;
8582 #endif
8583 #ifdef __cplusplus
8585 #endif
8588 main ()
8590 return f != $ac_func;
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 eval "$as_ac_var=yes"
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 eval "$as_ac_var=no"
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8629 if test `eval echo '${'$as_ac_var'}'` = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8632 _ACEOF
8635 done
8637 else
8639 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8640 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8641 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8642 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8648 ac_ext=cc
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 #include <math.h>
8661 #ifdef HAVE_IEEEFP_H
8662 #include <ieeefp.h>
8663 #endif
8666 main ()
8668 _isinf(0);
8670 return 0;
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675 (eval $ac_compile) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 glibcxx_cv_func__isinf_use=yes
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 glibcxx_cv_func__isinf_use=no
8702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8703 ac_ext=c
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8713 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8714 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8716 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8718 for ac_func in _isinf
8720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8721 echo "$as_me:$LINENO: checking for $ac_func" >&5
8722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8723 if eval "test \"\${$as_ac_var+set}\" = set"; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 if test x$gcc_no_link = xyes; then
8727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8729 { (exit 1); exit 1; }; }
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8739 #define $ac_func innocuous_$ac_func
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char $ac_func (); below.
8743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8744 <limits.h> exists even on freestanding compilers. */
8746 #ifdef __STDC__
8747 # include <limits.h>
8748 #else
8749 # include <assert.h>
8750 #endif
8752 #undef $ac_func
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 #ifdef __cplusplus
8756 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8761 char $ac_func ();
8762 /* The GNU C library defines this for functions which it implements
8763 to always fail with ENOSYS. Some functions are actually named
8764 something starting with __ and the normal name is an alias. */
8765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8766 choke me
8767 #else
8768 char (*f) () = $ac_func;
8769 #endif
8770 #ifdef __cplusplus
8772 #endif
8775 main ()
8777 return f != $ac_func;
8779 return 0;
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag"
8792 || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 eval "$as_ac_var=yes"
8805 else
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 eval "$as_ac_var=no"
8811 rm -f conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8816 if test `eval echo '${'$as_ac_var'}'` = yes; then
8817 cat >>confdefs.h <<_ACEOF
8818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8819 _ACEOF
8822 done
8829 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8830 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8831 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8832 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8838 ac_ext=cc
8839 ac_cpp='$CXXCPP $CPPFLAGS'
8840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 #include <math.h>
8851 #ifdef HAVE_IEEEFP_H
8852 #include <ieeefp.h>
8853 #endif
8856 main ()
8858 isnan(0);
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865 (eval $ac_compile) 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -z "$ac_cxx_werror_flag"
8873 || test ! -s conftest.err'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; } &&
8879 { ac_try='test -s conftest.$ac_objext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 glibcxx_cv_func_isnan_use=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 glibcxx_cv_func_isnan_use=no
8892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8893 ac_ext=c
8894 ac_cpp='$CPP $CPPFLAGS'
8895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8903 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8904 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8906 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8908 for ac_func in isnan
8910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8911 echo "$as_me:$LINENO: checking for $ac_func" >&5
8912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_var+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 if test x$gcc_no_link = xyes; then
8917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8919 { (exit 1); exit 1; }; }
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8929 #define $ac_func innocuous_$ac_func
8931 /* System header to define __stub macros and hopefully few prototypes,
8932 which can conflict with char $ac_func (); below.
8933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8934 <limits.h> exists even on freestanding compilers. */
8936 #ifdef __STDC__
8937 # include <limits.h>
8938 #else
8939 # include <assert.h>
8940 #endif
8942 #undef $ac_func
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 #ifdef __cplusplus
8946 extern "C"
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8951 char $ac_func ();
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8956 choke me
8957 #else
8958 char (*f) () = $ac_func;
8959 #endif
8960 #ifdef __cplusplus
8962 #endif
8965 main ()
8967 return f != $ac_func;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 eval "$as_ac_var=yes"
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 eval "$as_ac_var=no"
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9006 if test `eval echo '${'$as_ac_var'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009 _ACEOF
9012 done
9014 else
9016 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
9017 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
9018 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
9019 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9025 ac_ext=cc
9026 ac_cpp='$CXXCPP $CPPFLAGS'
9027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include <math.h>
9038 #ifdef HAVE_IEEEFP_H
9039 #include <ieeefp.h>
9040 #endif
9043 main ()
9045 _isnan(0);
9047 return 0;
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052 (eval $ac_compile) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_cxx_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest.$ac_objext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 glibcxx_cv_func__isnan_use=yes
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 glibcxx_cv_func__isnan_use=no
9079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9080 ac_ext=c
9081 ac_cpp='$CPP $CPPFLAGS'
9082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9091 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9093 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9095 for ac_func in _isnan
9097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9098 echo "$as_me:$LINENO: checking for $ac_func" >&5
9099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9100 if eval "test \"\${$as_ac_var+set}\" = set"; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 if test x$gcc_no_link = xyes; then
9104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9106 { (exit 1); exit 1; }; }
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9116 #define $ac_func innocuous_$ac_func
9118 /* System header to define __stub macros and hopefully few prototypes,
9119 which can conflict with char $ac_func (); below.
9120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9121 <limits.h> exists even on freestanding compilers. */
9123 #ifdef __STDC__
9124 # include <limits.h>
9125 #else
9126 # include <assert.h>
9127 #endif
9129 #undef $ac_func
9131 /* Override any gcc2 internal prototype to avoid an error. */
9132 #ifdef __cplusplus
9133 extern "C"
9135 #endif
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9138 char $ac_func ();
9139 /* The GNU C library defines this for functions which it implements
9140 to always fail with ENOSYS. Some functions are actually named
9141 something starting with __ and the normal name is an alias. */
9142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9143 choke me
9144 #else
9145 char (*f) () = $ac_func;
9146 #endif
9147 #ifdef __cplusplus
9149 #endif
9152 main ()
9154 return f != $ac_func;
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest$ac_exeext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 eval "$as_ac_var=yes"
9182 else
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 eval "$as_ac_var=no"
9188 rm -f conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9193 if test `eval echo '${'$as_ac_var'}'` = yes; then
9194 cat >>confdefs.h <<_ACEOF
9195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9196 _ACEOF
9199 done
9206 echo "$as_me:$LINENO: checking for finite declaration" >&5
9207 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9208 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9209 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9215 ac_ext=cc
9216 ac_cpp='$CXXCPP $CPPFLAGS'
9217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <math.h>
9228 #ifdef HAVE_IEEEFP_H
9229 #include <ieeefp.h>
9230 #endif
9233 main ()
9235 finite(0);
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_cxx_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 glibcxx_cv_func_finite_use=yes
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 glibcxx_cv_func_finite_use=no
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9270 ac_ext=c
9271 ac_cpp='$CPP $CPPFLAGS'
9272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9280 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9281 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9283 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9285 for ac_func in finite
9287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9288 echo "$as_me:$LINENO: checking for $ac_func" >&5
9289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9290 if eval "test \"\${$as_ac_var+set}\" = set"; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 if test x$gcc_no_link = xyes; then
9294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9296 { (exit 1); exit 1; }; }
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define $ac_func innocuous_$ac_func
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char $ac_func (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9313 #ifdef __STDC__
9314 # include <limits.h>
9315 #else
9316 # include <assert.h>
9317 #endif
9319 #undef $ac_func
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 #ifdef __cplusplus
9323 extern "C"
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char $ac_func ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 choke me
9334 #else
9335 char (*f) () = $ac_func;
9336 #endif
9337 #ifdef __cplusplus
9339 #endif
9342 main ()
9344 return f != $ac_func;
9346 return 0;
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 eval "$as_ac_var=yes"
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 eval "$as_ac_var=no"
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9383 if test `eval echo '${'$as_ac_var'}'` = yes; then
9384 cat >>confdefs.h <<_ACEOF
9385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9386 _ACEOF
9389 done
9391 else
9393 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9394 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9395 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9396 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9402 ac_ext=cc
9403 ac_cpp='$CXXCPP $CPPFLAGS'
9404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <math.h>
9415 #ifdef HAVE_IEEEFP_H
9416 #include <ieeefp.h>
9417 #endif
9420 main ()
9422 _finite(0);
9424 return 0;
9426 _ACEOF
9427 rm -f conftest.$ac_objext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429 (eval $ac_compile) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_cxx_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest.$ac_objext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 glibcxx_cv_func__finite_use=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 glibcxx_cv_func__finite_use=no
9456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 ac_ext=c
9458 ac_cpp='$CPP $CPPFLAGS'
9459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9467 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9468 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9470 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9472 for ac_func in _finite
9474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9475 echo "$as_me:$LINENO: checking for $ac_func" >&5
9476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_var+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 if test x$gcc_no_link = xyes; then
9481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9483 { (exit 1); exit 1; }; }
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define $ac_func innocuous_$ac_func
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char $ac_func (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9506 #undef $ac_func
9508 /* Override any gcc2 internal prototype to avoid an error. */
9509 #ifdef __cplusplus
9510 extern "C"
9512 #endif
9513 /* We use char because int might match the return type of a gcc2
9514 builtin and then its argument prototype would still apply. */
9515 char $ac_func ();
9516 /* The GNU C library defines this for functions which it implements
9517 to always fail with ENOSYS. Some functions are actually named
9518 something starting with __ and the normal name is an alias. */
9519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9520 choke me
9521 #else
9522 char (*f) () = $ac_func;
9523 #endif
9524 #ifdef __cplusplus
9526 #endif
9529 main ()
9531 return f != $ac_func;
9533 return 0;
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538 (eval $ac_link) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 eval "$as_ac_var=yes"
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 eval "$as_ac_var=no"
9565 rm -f conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9570 if test `eval echo '${'$as_ac_var'}'` = yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9573 _ACEOF
9576 done
9583 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9584 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9585 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9586 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9592 ac_ext=cc
9593 ac_cpp='$CXXCPP $CPPFLAGS'
9594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <math.h>
9606 main ()
9608 copysign(0, 0);
9610 return 0;
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_cxx_werror_flag"
9623 || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 glibcxx_cv_func_copysign_use=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 glibcxx_cv_func_copysign_use=no
9642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9643 ac_ext=c
9644 ac_cpp='$CPP $CPPFLAGS'
9645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9653 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9654 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9656 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9658 for ac_func in copysign
9660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9661 echo "$as_me:$LINENO: checking for $ac_func" >&5
9662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9663 if eval "test \"\${$as_ac_var+set}\" = set"; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 if test x$gcc_no_link = xyes; then
9667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9669 { (exit 1); exit 1; }; }
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9679 #define $ac_func innocuous_$ac_func
9681 /* System header to define __stub macros and hopefully few prototypes,
9682 which can conflict with char $ac_func (); below.
9683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9684 <limits.h> exists even on freestanding compilers. */
9686 #ifdef __STDC__
9687 # include <limits.h>
9688 #else
9689 # include <assert.h>
9690 #endif
9692 #undef $ac_func
9694 /* Override any gcc2 internal prototype to avoid an error. */
9695 #ifdef __cplusplus
9696 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9701 char $ac_func ();
9702 /* The GNU C library defines this for functions which it implements
9703 to always fail with ENOSYS. Some functions are actually named
9704 something starting with __ and the normal name is an alias. */
9705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9706 choke me
9707 #else
9708 char (*f) () = $ac_func;
9709 #endif
9710 #ifdef __cplusplus
9712 #endif
9715 main ()
9717 return f != $ac_func;
9719 return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag"
9732 || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 eval "$as_ac_var=yes"
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 eval "$as_ac_var=no"
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9756 if test `eval echo '${'$as_ac_var'}'` = yes; then
9757 cat >>confdefs.h <<_ACEOF
9758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9759 _ACEOF
9762 done
9764 else
9766 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9767 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9768 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9769 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9775 ac_ext=cc
9776 ac_cpp='$CXXCPP $CPPFLAGS'
9777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 #include <math.h>
9789 main ()
9791 _copysign(0, 0);
9793 return 0;
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798 (eval $ac_compile) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_cxx_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 glibcxx_cv_func__copysign_use=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 glibcxx_cv_func__copysign_use=no
9825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9826 ac_ext=c
9827 ac_cpp='$CPP $CPPFLAGS'
9828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9836 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9837 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9839 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9841 for ac_func in _copysign
9843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9844 echo "$as_me:$LINENO: checking for $ac_func" >&5
9845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9846 if eval "test \"\${$as_ac_var+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 if test x$gcc_no_link = xyes; then
9850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9852 { (exit 1); exit 1; }; }
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9862 #define $ac_func innocuous_$ac_func
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char $ac_func (); below.
9866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867 <limits.h> exists even on freestanding compilers. */
9869 #ifdef __STDC__
9870 # include <limits.h>
9871 #else
9872 # include <assert.h>
9873 #endif
9875 #undef $ac_func
9877 /* Override any gcc2 internal prototype to avoid an error. */
9878 #ifdef __cplusplus
9879 extern "C"
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884 char $ac_func ();
9885 /* The GNU C library defines this for functions which it implements
9886 to always fail with ENOSYS. Some functions are actually named
9887 something starting with __ and the normal name is an alias. */
9888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9889 choke me
9890 #else
9891 char (*f) () = $ac_func;
9892 #endif
9893 #ifdef __cplusplus
9895 #endif
9898 main ()
9900 return f != $ac_func;
9902 return 0;
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 eval "$as_ac_var=yes"
9928 else
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 eval "$as_ac_var=no"
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9939 if test `eval echo '${'$as_ac_var'}'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9942 _ACEOF
9945 done
9952 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9953 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9954 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9955 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9961 ac_ext=cc
9962 ac_cpp='$CXXCPP $CPPFLAGS'
9963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 #include <math.h>
9975 main ()
9977 sincos(0, 0, 0);
9979 return 0;
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_cxx_werror_flag"
9992 || test ! -s conftest.err'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 glibcxx_cv_func_sincos_use=yes
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 glibcxx_cv_func_sincos_use=no
10011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10012 ac_ext=c
10013 ac_cpp='$CPP $CPPFLAGS'
10014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10022 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
10023 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
10025 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
10027 for ac_func in sincos
10029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10030 echo "$as_me:$LINENO: checking for $ac_func" >&5
10031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10032 if eval "test \"\${$as_ac_var+set}\" = set"; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 if test x$gcc_no_link = xyes; then
10036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10038 { (exit 1); exit 1; }; }
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10061 #undef $ac_func
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 #ifdef __cplusplus
10065 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char $ac_func ();
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075 choke me
10076 #else
10077 char (*f) () = $ac_func;
10078 #endif
10079 #ifdef __cplusplus
10081 #endif
10084 main ()
10086 return f != $ac_func;
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 eval "$as_ac_var=yes"
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 eval "$as_ac_var=no"
10120 rm -f conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10125 if test `eval echo '${'$as_ac_var'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 _ACEOF
10131 done
10133 else
10135 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10136 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10137 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10138 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10144 ac_ext=cc
10145 ac_cpp='$CXXCPP $CPPFLAGS'
10146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <math.h>
10158 main ()
10160 _sincos(0, 0, 0);
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_cxx_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 glibcxx_cv_func__sincos_use=yes
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 glibcxx_cv_func__sincos_use=no
10194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10195 ac_ext=c
10196 ac_cpp='$CPP $CPPFLAGS'
10197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10205 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10206 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10208 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10210 for ac_func in _sincos
10212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10213 echo "$as_me:$LINENO: checking for $ac_func" >&5
10214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10215 if eval "test \"\${$as_ac_var+set}\" = set"; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 if test x$gcc_no_link = xyes; then
10219 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10221 { (exit 1); exit 1; }; }
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231 #define $ac_func innocuous_$ac_func
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char $ac_func (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10244 #undef $ac_func
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 #ifdef __cplusplus
10248 extern "C"
10250 #endif
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10253 char $ac_func ();
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10258 choke me
10259 #else
10260 char (*f) () = $ac_func;
10261 #endif
10262 #ifdef __cplusplus
10264 #endif
10267 main ()
10269 return f != $ac_func;
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext conftest$ac_exeext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 eval "$as_ac_var=yes"
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 eval "$as_ac_var=no"
10303 rm -f conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then
10309 cat >>confdefs.h <<_ACEOF
10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10311 _ACEOF
10314 done
10321 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10322 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10323 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10324 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10330 ac_ext=cc
10331 ac_cpp='$CXXCPP $CPPFLAGS'
10332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <math.h>
10343 #ifdef HAVE_IEEEFP_H
10344 #include <ieeefp.h>
10345 #endif
10348 main ()
10350 fpclass(0);
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_cxx_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 glibcxx_cv_func_fpclass_use=yes
10378 else
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 glibcxx_cv_func_fpclass_use=no
10384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 ac_ext=c
10386 ac_cpp='$CPP $CPPFLAGS'
10387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10395 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10396 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10398 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10400 for ac_func in fpclass
10402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10403 echo "$as_me:$LINENO: checking for $ac_func" >&5
10404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10405 if eval "test \"\${$as_ac_var+set}\" = set"; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408 if test x$gcc_no_link = xyes; then
10409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10411 { (exit 1); exit 1; }; }
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10421 #define $ac_func innocuous_$ac_func
10423 /* System header to define __stub macros and hopefully few prototypes,
10424 which can conflict with char $ac_func (); below.
10425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426 <limits.h> exists even on freestanding compilers. */
10428 #ifdef __STDC__
10429 # include <limits.h>
10430 #else
10431 # include <assert.h>
10432 #endif
10434 #undef $ac_func
10436 /* Override any gcc2 internal prototype to avoid an error. */
10437 #ifdef __cplusplus
10438 extern "C"
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10443 char $ac_func ();
10444 /* The GNU C library defines this for functions which it implements
10445 to always fail with ENOSYS. Some functions are actually named
10446 something starting with __ and the normal name is an alias. */
10447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10448 choke me
10449 #else
10450 char (*f) () = $ac_func;
10451 #endif
10452 #ifdef __cplusplus
10454 #endif
10457 main ()
10459 return f != $ac_func;
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 eval "$as_ac_var=yes"
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 eval "$as_ac_var=no"
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10498 if test `eval echo '${'$as_ac_var'}'` = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 _ACEOF
10504 done
10506 else
10508 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10509 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10510 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10511 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10517 ac_ext=cc
10518 ac_cpp='$CXXCPP $CPPFLAGS'
10519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 #include <math.h>
10530 #ifdef HAVE_IEEEFP_H
10531 #include <ieeefp.h>
10532 #endif
10535 main ()
10537 _fpclass(0);
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_cxx_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest.$ac_objext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 glibcxx_cv_func__fpclass_use=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 glibcxx_cv_func__fpclass_use=no
10571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10572 ac_ext=c
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10582 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10583 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10585 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10587 for ac_func in _fpclass
10589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10590 echo "$as_me:$LINENO: checking for $ac_func" >&5
10591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10592 if eval "test \"\${$as_ac_var+set}\" = set"; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 if test x$gcc_no_link = xyes; then
10596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10598 { (exit 1); exit 1; }; }
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608 #define $ac_func innocuous_$ac_func
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char $ac_func (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10615 #ifdef __STDC__
10616 # include <limits.h>
10617 #else
10618 # include <assert.h>
10619 #endif
10621 #undef $ac_func
10623 /* Override any gcc2 internal prototype to avoid an error. */
10624 #ifdef __cplusplus
10625 extern "C"
10627 #endif
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10630 char $ac_func ();
10631 /* The GNU C library defines this for functions which it implements
10632 to always fail with ENOSYS. Some functions are actually named
10633 something starting with __ and the normal name is an alias. */
10634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10635 choke me
10636 #else
10637 char (*f) () = $ac_func;
10638 #endif
10639 #ifdef __cplusplus
10641 #endif
10644 main ()
10646 return f != $ac_func;
10648 return 0;
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 eval "$as_ac_var=yes"
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 eval "$as_ac_var=no"
10680 rm -f conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10685 if test `eval echo '${'$as_ac_var'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10688 _ACEOF
10691 done
10698 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10699 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10700 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10701 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10707 ac_ext=cc
10708 ac_cpp='$CXXCPP $CPPFLAGS'
10709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 #include <math.h>
10720 #ifdef HAVE_IEEEFP_H
10721 #include <ieeefp.h>
10722 #endif
10725 main ()
10727 qfpclass(0);
10729 return 0;
10731 _ACEOF
10732 rm -f conftest.$ac_objext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10734 (eval $ac_compile) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_cxx_werror_flag"
10742 || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest.$ac_objext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 glibcxx_cv_func_qfpclass_use=yes
10755 else
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 glibcxx_cv_func_qfpclass_use=no
10761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10762 ac_ext=c
10763 ac_cpp='$CPP $CPPFLAGS'
10764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10773 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10775 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10777 for ac_func in qfpclass
10779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10780 echo "$as_me:$LINENO: checking for $ac_func" >&5
10781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10782 if eval "test \"\${$as_ac_var+set}\" = set"; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785 if test x$gcc_no_link = xyes; then
10786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10788 { (exit 1); exit 1; }; }
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10798 #define $ac_func innocuous_$ac_func
10800 /* System header to define __stub macros and hopefully few prototypes,
10801 which can conflict with char $ac_func (); below.
10802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10803 <limits.h> exists even on freestanding compilers. */
10805 #ifdef __STDC__
10806 # include <limits.h>
10807 #else
10808 # include <assert.h>
10809 #endif
10811 #undef $ac_func
10813 /* Override any gcc2 internal prototype to avoid an error. */
10814 #ifdef __cplusplus
10815 extern "C"
10817 #endif
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10820 char $ac_func ();
10821 /* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
10824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10825 choke me
10826 #else
10827 char (*f) () = $ac_func;
10828 #endif
10829 #ifdef __cplusplus
10831 #endif
10834 main ()
10836 return f != $ac_func;
10838 return 0;
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -z "$ac_c_werror_flag"
10851 || test ! -s conftest.err'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; } &&
10857 { ac_try='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 eval "$as_ac_var=yes"
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 eval "$as_ac_var=no"
10870 rm -f conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10875 if test `eval echo '${'$as_ac_var'}'` = yes; then
10876 cat >>confdefs.h <<_ACEOF
10877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10878 _ACEOF
10881 done
10883 else
10885 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10886 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10887 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10888 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10894 ac_ext=cc
10895 ac_cpp='$CXXCPP $CPPFLAGS'
10896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 #include <math.h>
10907 #ifdef HAVE_IEEEFP_H
10908 #include <ieeefp.h>
10909 #endif
10912 main ()
10914 _qfpclass(0);
10916 return 0;
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10921 (eval $ac_compile) 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_cxx_werror_flag"
10929 || test ! -s conftest.err'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 glibcxx_cv_func__qfpclass_use=yes
10942 else
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 glibcxx_cv_func__qfpclass_use=no
10948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10949 ac_ext=c
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10959 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10960 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10962 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10964 for ac_func in _qfpclass
10966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10967 echo "$as_me:$LINENO: checking for $ac_func" >&5
10968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10969 if eval "test \"\${$as_ac_var+set}\" = set"; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 if test x$gcc_no_link = xyes; then
10973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10975 { (exit 1); exit 1; }; }
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985 #define $ac_func innocuous_$ac_func
10987 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char $ac_func (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10992 #ifdef __STDC__
10993 # include <limits.h>
10994 #else
10995 # include <assert.h>
10996 #endif
10998 #undef $ac_func
11000 /* Override any gcc2 internal prototype to avoid an error. */
11001 #ifdef __cplusplus
11002 extern "C"
11004 #endif
11005 /* We use char because int might match the return type of a gcc2
11006 builtin and then its argument prototype would still apply. */
11007 char $ac_func ();
11008 /* The GNU C library defines this for functions which it implements
11009 to always fail with ENOSYS. Some functions are actually named
11010 something starting with __ and the normal name is an alias. */
11011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11012 choke me
11013 #else
11014 char (*f) () = $ac_func;
11015 #endif
11016 #ifdef __cplusplus
11018 #endif
11021 main ()
11023 return f != $ac_func;
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 eval "$as_ac_var=yes"
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 eval "$as_ac_var=no"
11057 rm -f conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11062 if test `eval echo '${'$as_ac_var'}'` = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11065 _ACEOF
11068 done
11075 echo "$as_me:$LINENO: checking for hypot declaration" >&5
11076 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11077 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11078 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11084 ac_ext=cc
11085 ac_cpp='$CXXCPP $CPPFLAGS'
11086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <math.h>
11098 main ()
11100 hypot(0, 0);
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_cxx_werror_flag"
11115 || test ! -s conftest.err'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11127 glibcxx_cv_func_hypot_use=yes
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 glibcxx_cv_func_hypot_use=no
11134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11135 ac_ext=c
11136 ac_cpp='$CPP $CPPFLAGS'
11137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11146 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11148 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11150 for ac_func in hypot
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 if test x$gcc_no_link = xyes; then
11159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11161 { (exit 1); exit 1; }; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11171 #define $ac_func innocuous_$ac_func
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char $ac_func (); below.
11175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11176 <limits.h> exists even on freestanding compilers. */
11178 #ifdef __STDC__
11179 # include <limits.h>
11180 #else
11181 # include <assert.h>
11182 #endif
11184 #undef $ac_func
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 #ifdef __cplusplus
11188 extern "C"
11190 #endif
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char $ac_func ();
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11198 choke me
11199 #else
11200 char (*f) () = $ac_func;
11201 #endif
11202 #ifdef __cplusplus
11204 #endif
11207 main ()
11209 return f != $ac_func;
11211 return 0;
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "$as_ac_var=yes"
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 eval "$as_ac_var=no"
11243 rm -f conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11248 if test `eval echo '${'$as_ac_var'}'` = yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF
11254 done
11256 else
11258 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11259 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11260 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11261 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11267 ac_ext=cc
11268 ac_cpp='$CXXCPP $CPPFLAGS'
11269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <math.h>
11281 main ()
11283 _hypot(0, 0);
11285 return 0;
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290 (eval $ac_compile) 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -z "$ac_cxx_werror_flag"
11298 || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 glibcxx_cv_func__hypot_use=yes
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 glibcxx_cv_func__hypot_use=no
11317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318 ac_ext=c
11319 ac_cpp='$CPP $CPPFLAGS'
11320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11328 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11329 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11331 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11333 for ac_func in _hypot
11335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11336 echo "$as_me:$LINENO: checking for $ac_func" >&5
11337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11338 if eval "test \"\${$as_ac_var+set}\" = set"; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 if test x$gcc_no_link = xyes; then
11342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11344 { (exit 1); exit 1; }; }
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11354 #define $ac_func innocuous_$ac_func
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11361 #ifdef __STDC__
11362 # include <limits.h>
11363 #else
11364 # include <assert.h>
11365 #endif
11367 #undef $ac_func
11369 /* Override any gcc2 internal prototype to avoid an error. */
11370 #ifdef __cplusplus
11371 extern "C"
11373 #endif
11374 /* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */
11376 char $ac_func ();
11377 /* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11381 choke me
11382 #else
11383 char (*f) () = $ac_func;
11384 #endif
11385 #ifdef __cplusplus
11387 #endif
11390 main ()
11392 return f != $ac_func;
11394 return 0;
11396 _ACEOF
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest$ac_exeext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 eval "$as_ac_var=yes"
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 eval "$as_ac_var=no"
11426 rm -f conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11431 if test `eval echo '${'$as_ac_var'}'` = yes; then
11432 cat >>confdefs.h <<_ACEOF
11433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11434 _ACEOF
11437 done
11444 echo "$as_me:$LINENO: checking for float trig functions" >&5
11445 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11446 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11452 ac_ext=cc
11453 ac_cpp='$CXXCPP $CPPFLAGS'
11454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #include <math.h>
11466 main ()
11468 `for x in acosf asinf atanf \
11469 cosf sinf tanf \
11470 coshf sinhf tanhf; do echo "$x (0);"; done`
11472 return 0;
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_cxx_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 glibcxx_cv_func_float_trig_use=yes
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 glibcxx_cv_func_float_trig_use=no
11504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11505 ac_ext=c
11506 ac_cpp='$CPP $CPPFLAGS'
11507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11513 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11514 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11515 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11525 for ac_func in acosf asinf atanf \
11526 cosf sinf tanf \
11527 coshf sinhf tanhf
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"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 eval "$as_ac_var=yes"
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 eval "$as_ac_var=no"
11620 rm -f conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11625 if test `eval echo '${'$as_ac_var'}'` = yes; then
11626 cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 _ACEOF
11631 done
11636 echo "$as_me:$LINENO: checking for float round functions" >&5
11637 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11638 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11644 ac_ext=cc
11645 ac_cpp='$CXXCPP $CPPFLAGS'
11646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 #include <math.h>
11658 main ()
11660 `for x in ceilf floorf; do echo "$x (0);"; done`
11662 return 0;
11664 _ACEOF
11665 rm -f conftest.$ac_objext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_cxx_werror_flag"
11675 || test ! -s conftest.err'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest.$ac_objext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 glibcxx_cv_func_float_round_use=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 glibcxx_cv_func_float_round_use=no
11694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11695 ac_ext=c
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11704 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11705 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11708 for ac_func in ceilf floorf
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11713 if eval "test \"\${$as_ac_var+set}\" = set"; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 if test x$gcc_no_link = xyes; then
11717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11719 { (exit 1); exit 1; }; }
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11729 #define $ac_func innocuous_$ac_func
11731 /* System header to define __stub macros and hopefully few prototypes,
11732 which can conflict with char $ac_func (); below.
11733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734 <limits.h> exists even on freestanding compilers. */
11736 #ifdef __STDC__
11737 # include <limits.h>
11738 #else
11739 # include <assert.h>
11740 #endif
11742 #undef $ac_func
11744 /* Override any gcc2 internal prototype to avoid an error. */
11745 #ifdef __cplusplus
11746 extern "C"
11748 #endif
11749 /* We use char because int might match the return type of a gcc2
11750 builtin and then its argument prototype would still apply. */
11751 char $ac_func ();
11752 /* The GNU C library defines this for functions which it implements
11753 to always fail with ENOSYS. Some functions are actually named
11754 something starting with __ and the normal name is an alias. */
11755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11756 choke me
11757 #else
11758 char (*f) () = $ac_func;
11759 #endif
11760 #ifdef __cplusplus
11762 #endif
11765 main ()
11767 return f != $ac_func;
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>conftest.er1
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag"
11782 || test ! -s conftest.err'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11795 else
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 eval "$as_ac_var=no"
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11806 if test `eval echo '${'$as_ac_var'}'` = yes; then
11807 cat >>confdefs.h <<_ACEOF
11808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11809 _ACEOF
11812 done
11818 echo "$as_me:$LINENO: checking for expf declaration" >&5
11819 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11820 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11821 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11827 ac_ext=cc
11828 ac_cpp='$CXXCPP $CPPFLAGS'
11829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11833 cat >conftest.$ac_ext <<_ACEOF
11834 /* confdefs.h. */
11835 _ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 #include <math.h>
11840 #ifdef HAVE_IEEEFP_H
11841 #include <ieeefp.h>
11842 #endif
11845 main ()
11847 expf(0);
11849 return 0;
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_cxx_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 glibcxx_cv_func_expf_use=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 glibcxx_cv_func_expf_use=no
11881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 ac_ext=c
11883 ac_cpp='$CPP $CPPFLAGS'
11884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11892 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11893 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11895 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11897 for ac_func in expf
11899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11900 echo "$as_me:$LINENO: checking for $ac_func" >&5
11901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11902 if eval "test \"\${$as_ac_var+set}\" = set"; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 if test x$gcc_no_link = xyes; then
11906 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11907 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11908 { (exit 1); exit 1; }; }
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11918 #define $ac_func innocuous_$ac_func
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11925 #ifdef __STDC__
11926 # include <limits.h>
11927 #else
11928 # include <assert.h>
11929 #endif
11931 #undef $ac_func
11933 /* Override any gcc2 internal prototype to avoid an error. */
11934 #ifdef __cplusplus
11935 extern "C"
11937 #endif
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char $ac_func ();
11941 /* The GNU C library defines this for functions which it implements
11942 to always fail with ENOSYS. Some functions are actually named
11943 something starting with __ and the normal name is an alias. */
11944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11945 choke me
11946 #else
11947 char (*f) () = $ac_func;
11948 #endif
11949 #ifdef __cplusplus
11951 #endif
11954 main ()
11956 return f != $ac_func;
11958 return 0;
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag"
11971 || test ! -s conftest.err'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 eval "$as_ac_var=yes"
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 eval "$as_ac_var=no"
11990 rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11995 if test `eval echo '${'$as_ac_var'}'` = yes; then
11996 cat >>confdefs.h <<_ACEOF
11997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11998 _ACEOF
12001 done
12003 else
12005 echo "$as_me:$LINENO: checking for _expf declaration" >&5
12006 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
12007 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12008 if test "${glibcxx_cv_func__expf_use+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12014 ac_ext=cc
12015 ac_cpp='$CXXCPP $CPPFLAGS'
12016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <math.h>
12027 #ifdef HAVE_IEEEFP_H
12028 #include <ieeefp.h>
12029 #endif
12032 main ()
12034 _expf(0);
12036 return 0;
12038 _ACEOF
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_cxx_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest.$ac_objext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 glibcxx_cv_func__expf_use=yes
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 glibcxx_cv_func__expf_use=no
12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 ac_ext=c
12070 ac_cpp='$CPP $CPPFLAGS'
12071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12080 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12082 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12084 for ac_func in _expf
12086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12087 echo "$as_me:$LINENO: checking for $ac_func" >&5
12088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_var+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 if test x$gcc_no_link = xyes; then
12093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12095 { (exit 1); exit 1; }; }
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12105 #define $ac_func innocuous_$ac_func
12107 /* System header to define __stub macros and hopefully few prototypes,
12108 which can conflict with char $ac_func (); below.
12109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110 <limits.h> exists even on freestanding compilers. */
12112 #ifdef __STDC__
12113 # include <limits.h>
12114 #else
12115 # include <assert.h>
12116 #endif
12118 #undef $ac_func
12120 /* Override any gcc2 internal prototype to avoid an error. */
12121 #ifdef __cplusplus
12122 extern "C"
12124 #endif
12125 /* We use char because int might match the return type of a gcc2
12126 builtin and then its argument prototype would still apply. */
12127 char $ac_func ();
12128 /* The GNU C library defines this for functions which it implements
12129 to always fail with ENOSYS. Some functions are actually named
12130 something starting with __ and the normal name is an alias. */
12131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12132 choke me
12133 #else
12134 char (*f) () = $ac_func;
12135 #endif
12136 #ifdef __cplusplus
12138 #endif
12141 main ()
12143 return f != $ac_func;
12145 return 0;
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -z "$ac_c_werror_flag"
12158 || test ! -s conftest.err'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170 eval "$as_ac_var=yes"
12171 else
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 eval "$as_ac_var=no"
12177 rm -f conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12182 if test `eval echo '${'$as_ac_var'}'` = yes; then
12183 cat >>confdefs.h <<_ACEOF
12184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185 _ACEOF
12188 done
12195 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12196 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12197 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12198 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12204 ac_ext=cc
12205 ac_cpp='$CXXCPP $CPPFLAGS'
12206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <math.h>
12217 #ifdef HAVE_IEEEFP_H
12218 #include <ieeefp.h>
12219 #endif
12222 main ()
12224 isnanf(0);
12226 return 0;
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231 (eval $ac_compile) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -z "$ac_cxx_werror_flag"
12239 || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 glibcxx_cv_func_isnanf_use=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 glibcxx_cv_func_isnanf_use=no
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259 ac_ext=c
12260 ac_cpp='$CPP $CPPFLAGS'
12261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12270 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12272 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12274 for ac_func in isnanf
12276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12277 echo "$as_me:$LINENO: checking for $ac_func" >&5
12278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12279 if eval "test \"\${$as_ac_var+set}\" = set"; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282 if test x$gcc_no_link = xyes; then
12283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12285 { (exit 1); exit 1; }; }
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12295 #define $ac_func innocuous_$ac_func
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func (); below.
12299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12300 <limits.h> exists even on freestanding compilers. */
12302 #ifdef __STDC__
12303 # include <limits.h>
12304 #else
12305 # include <assert.h>
12306 #endif
12308 #undef $ac_func
12310 /* Override any gcc2 internal prototype to avoid an error. */
12311 #ifdef __cplusplus
12312 extern "C"
12314 #endif
12315 /* We use char because int might match the return type of a gcc2
12316 builtin and then its argument prototype would still apply. */
12317 char $ac_func ();
12318 /* The GNU C library defines this for functions which it implements
12319 to always fail with ENOSYS. Some functions are actually named
12320 something starting with __ and the normal name is an alias. */
12321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12322 choke me
12323 #else
12324 char (*f) () = $ac_func;
12325 #endif
12326 #ifdef __cplusplus
12328 #endif
12331 main ()
12333 return f != $ac_func;
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag"
12348 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 eval "$as_ac_var=yes"
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 eval "$as_ac_var=no"
12367 rm -f conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12372 if test `eval echo '${'$as_ac_var'}'` = yes; then
12373 cat >>confdefs.h <<_ACEOF
12374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12375 _ACEOF
12378 done
12380 else
12382 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12383 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12384 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12385 if test "${glibcxx_cv_func__isnanf_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 _isnanf(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"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 glibcxx_cv_func__isnanf_use=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 glibcxx_cv_func__isnanf_use=no
12445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12446 ac_ext=c
12447 ac_cpp='$CPP $CPPFLAGS'
12448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12456 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12457 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12459 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12461 for ac_func in _isnanf
12463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464 echo "$as_me:$LINENO: checking for $ac_func" >&5
12465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12466 if eval "test \"\${$as_ac_var+set}\" = set"; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469 if test x$gcc_no_link = xyes; then
12470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12472 { (exit 1); exit 1; }; }
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12482 #define $ac_func innocuous_$ac_func
12484 /* System header to define __stub macros and hopefully few prototypes,
12485 which can conflict with char $ac_func (); below.
12486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12487 <limits.h> exists even on freestanding compilers. */
12489 #ifdef __STDC__
12490 # include <limits.h>
12491 #else
12492 # include <assert.h>
12493 #endif
12495 #undef $ac_func
12497 /* Override any gcc2 internal prototype to avoid an error. */
12498 #ifdef __cplusplus
12499 extern "C"
12501 #endif
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char $ac_func ();
12505 /* The GNU C library defines this for functions which it implements
12506 to always fail with ENOSYS. Some functions are actually named
12507 something starting with __ and the normal name is an alias. */
12508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12509 choke me
12510 #else
12511 char (*f) () = $ac_func;
12512 #endif
12513 #ifdef __cplusplus
12515 #endif
12518 main ()
12520 return f != $ac_func;
12522 return 0;
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527 (eval $ac_link) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -z "$ac_c_werror_flag"
12535 || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 eval "$as_ac_var=yes"
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 eval "$as_ac_var=no"
12554 rm -f conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12559 if test `eval echo '${'$as_ac_var'}'` = yes; then
12560 cat >>confdefs.h <<_ACEOF
12561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12562 _ACEOF
12565 done
12572 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12573 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12574 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12575 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12581 ac_ext=cc
12582 ac_cpp='$CXXCPP $CPPFLAGS'
12583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h. */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593 #include <math.h>
12594 #ifdef HAVE_IEEEFP_H
12595 #include <ieeefp.h>
12596 #endif
12599 main ()
12601 isinff(0);
12603 return 0;
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -z "$ac_cxx_werror_flag"
12616 || test ! -s conftest.err'
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); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 glibcxx_cv_func_isinff_use=yes
12629 else
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 glibcxx_cv_func_isinff_use=no
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 ac_ext=c
12637 ac_cpp='$CPP $CPPFLAGS'
12638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12647 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12649 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12651 for ac_func in isinff
12653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12656 if eval "test \"\${$as_ac_var+set}\" = set"; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 if test x$gcc_no_link = xyes; then
12660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12661 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12662 { (exit 1); exit 1; }; }
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12672 #define $ac_func innocuous_$ac_func
12674 /* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char $ac_func (); below.
12676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 <limits.h> exists even on freestanding compilers. */
12679 #ifdef __STDC__
12680 # include <limits.h>
12681 #else
12682 # include <assert.h>
12683 #endif
12685 #undef $ac_func
12687 /* Override any gcc2 internal prototype to avoid an error. */
12688 #ifdef __cplusplus
12689 extern "C"
12691 #endif
12692 /* We use char because int might match the return type of a gcc2
12693 builtin and then its argument prototype would still apply. */
12694 char $ac_func ();
12695 /* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12699 choke me
12700 #else
12701 char (*f) () = $ac_func;
12702 #endif
12703 #ifdef __cplusplus
12705 #endif
12708 main ()
12710 return f != $ac_func;
12712 return 0;
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag"
12725 || test ! -s conftest.err'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest$ac_exeext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 eval "$as_ac_var=yes"
12738 else
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 eval "$as_ac_var=no"
12744 rm -f conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12749 if test `eval echo '${'$as_ac_var'}'` = yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12752 _ACEOF
12755 done
12757 else
12759 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12760 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12761 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12762 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12768 ac_ext=cc
12769 ac_cpp='$CXXCPP $CPPFLAGS'
12770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h. */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 #include <math.h>
12781 #ifdef HAVE_IEEEFP_H
12782 #include <ieeefp.h>
12783 #endif
12786 main ()
12788 _isinff(0);
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_cxx_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 glibcxx_cv_func__isinff_use=yes
12816 else
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 glibcxx_cv_func__isinff_use=no
12822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823 ac_ext=c
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12833 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12834 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12836 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12838 for ac_func in _isinff
12840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12841 echo "$as_me:$LINENO: checking for $ac_func" >&5
12842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12843 if eval "test \"\${$as_ac_var+set}\" = set"; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 if test x$gcc_no_link = xyes; then
12847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12849 { (exit 1); exit 1; }; }
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12859 #define $ac_func innocuous_$ac_func
12861 /* System header to define __stub macros and hopefully few prototypes,
12862 which can conflict with char $ac_func (); below.
12863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12864 <limits.h> exists even on freestanding compilers. */
12866 #ifdef __STDC__
12867 # include <limits.h>
12868 #else
12869 # include <assert.h>
12870 #endif
12872 #undef $ac_func
12874 /* Override any gcc2 internal prototype to avoid an error. */
12875 #ifdef __cplusplus
12876 extern "C"
12878 #endif
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12881 char $ac_func ();
12882 /* The GNU C library defines this for functions which it implements
12883 to always fail with ENOSYS. Some functions are actually named
12884 something starting with __ and the normal name is an alias. */
12885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12886 choke me
12887 #else
12888 char (*f) () = $ac_func;
12889 #endif
12890 #ifdef __cplusplus
12892 #endif
12895 main ()
12897 return f != $ac_func;
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 eval "$as_ac_var=yes"
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 eval "$as_ac_var=no"
12931 rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12936 if test `eval echo '${'$as_ac_var'}'` = yes; then
12937 cat >>confdefs.h <<_ACEOF
12938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939 _ACEOF
12942 done
12949 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12950 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12951 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12952 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12958 ac_ext=cc
12959 ac_cpp='$CXXCPP $CPPFLAGS'
12960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <math.h>
12972 main ()
12974 atan2f(0, 0);
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -z "$ac_cxx_werror_flag"
12989 || test ! -s conftest.err'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 glibcxx_cv_func_atan2f_use=yes
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 glibcxx_cv_func_atan2f_use=no
13008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 ac_ext=c
13010 ac_cpp='$CPP $CPPFLAGS'
13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
13020 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
13022 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13024 for ac_func in atan2f
13026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13027 echo "$as_me:$LINENO: checking for $ac_func" >&5
13028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_var+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 if test x$gcc_no_link = xyes; then
13033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13035 { (exit 1); exit 1; }; }
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13045 #define $ac_func innocuous_$ac_func
13047 /* System header to define __stub macros and hopefully few prototypes,
13048 which can conflict with char $ac_func (); below.
13049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13050 <limits.h> exists even on freestanding compilers. */
13052 #ifdef __STDC__
13053 # include <limits.h>
13054 #else
13055 # include <assert.h>
13056 #endif
13058 #undef $ac_func
13060 /* Override any gcc2 internal prototype to avoid an error. */
13061 #ifdef __cplusplus
13062 extern "C"
13064 #endif
13065 /* We use char because int might match the return type of a gcc2
13066 builtin and then its argument prototype would still apply. */
13067 char $ac_func ();
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13072 choke me
13073 #else
13074 char (*f) () = $ac_func;
13075 #endif
13076 #ifdef __cplusplus
13078 #endif
13081 main ()
13083 return f != $ac_func;
13085 return 0;
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag"
13098 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest$ac_exeext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 eval "$as_ac_var=yes"
13111 else
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 eval "$as_ac_var=no"
13117 rm -f conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13122 if test `eval echo '${'$as_ac_var'}'` = yes; then
13123 cat >>confdefs.h <<_ACEOF
13124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13125 _ACEOF
13128 done
13130 else
13132 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13133 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13134 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13135 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13141 ac_ext=cc
13142 ac_cpp='$CXXCPP $CPPFLAGS'
13143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147 cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h. */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 #include <math.h>
13155 main ()
13157 _atan2f(0, 0);
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_cxx_werror_flag"
13172 || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 glibcxx_cv_func__atan2f_use=yes
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 glibcxx_cv_func__atan2f_use=no
13191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13192 ac_ext=c
13193 ac_cpp='$CPP $CPPFLAGS'
13194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13203 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13205 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13207 for ac_func in _atan2f
13209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13210 echo "$as_me:$LINENO: checking for $ac_func" >&5
13211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13212 if eval "test \"\${$as_ac_var+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215 if test x$gcc_no_link = xyes; then
13216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13218 { (exit 1); exit 1; }; }
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13228 #define $ac_func innocuous_$ac_func
13230 /* System header to define __stub macros and hopefully few prototypes,
13231 which can conflict with char $ac_func (); below.
13232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13233 <limits.h> exists even on freestanding compilers. */
13235 #ifdef __STDC__
13236 # include <limits.h>
13237 #else
13238 # include <assert.h>
13239 #endif
13241 #undef $ac_func
13243 /* Override any gcc2 internal prototype to avoid an error. */
13244 #ifdef __cplusplus
13245 extern "C"
13247 #endif
13248 /* We use char because int might match the return type of a gcc2
13249 builtin and then its argument prototype would still apply. */
13250 char $ac_func ();
13251 /* The GNU C library defines this for functions which it implements
13252 to always fail with ENOSYS. Some functions are actually named
13253 something starting with __ and the normal name is an alias. */
13254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13255 choke me
13256 #else
13257 char (*f) () = $ac_func;
13258 #endif
13259 #ifdef __cplusplus
13261 #endif
13264 main ()
13266 return f != $ac_func;
13268 return 0;
13270 _ACEOF
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13273 (eval $ac_link) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 eval "$as_ac_var=no"
13300 rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13305 if test `eval echo '${'$as_ac_var'}'` = yes; then
13306 cat >>confdefs.h <<_ACEOF
13307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13308 _ACEOF
13311 done
13318 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13319 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13320 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13321 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13327 ac_ext=cc
13328 ac_cpp='$CXXCPP $CPPFLAGS'
13329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 #include <math.h>
13340 #ifdef HAVE_IEEEFP_H
13341 #include <ieeefp.h>
13342 #endif
13345 main ()
13347 fabsf(0);
13349 return 0;
13351 _ACEOF
13352 rm -f conftest.$ac_objext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13354 (eval $ac_compile) 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_cxx_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 glibcxx_cv_func_fabsf_use=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 glibcxx_cv_func_fabsf_use=no
13381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13382 ac_ext=c
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13392 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13393 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13395 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13397 for ac_func in fabsf
13399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_func" >&5
13401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_var+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405 if test x$gcc_no_link = xyes; then
13406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13408 { (exit 1); exit 1; }; }
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13418 #define $ac_func innocuous_$ac_func
13420 /* System header to define __stub macros and hopefully few prototypes,
13421 which can conflict with char $ac_func (); below.
13422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13423 <limits.h> exists even on freestanding compilers. */
13425 #ifdef __STDC__
13426 # include <limits.h>
13427 #else
13428 # include <assert.h>
13429 #endif
13431 #undef $ac_func
13433 /* Override any gcc2 internal prototype to avoid an error. */
13434 #ifdef __cplusplus
13435 extern "C"
13437 #endif
13438 /* We use char because int might match the return type of a gcc2
13439 builtin and then its argument prototype would still apply. */
13440 char $ac_func ();
13441 /* The GNU C library defines this for functions which it implements
13442 to always fail with ENOSYS. Some functions are actually named
13443 something starting with __ and the normal name is an alias. */
13444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13445 choke me
13446 #else
13447 char (*f) () = $ac_func;
13448 #endif
13449 #ifdef __cplusplus
13451 #endif
13454 main ()
13456 return f != $ac_func;
13458 return 0;
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 eval "$as_ac_var=yes"
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 eval "$as_ac_var=no"
13490 rm -f conftest.err conftest.$ac_objext \
13491 conftest$ac_exeext conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13495 if test `eval echo '${'$as_ac_var'}'` = yes; then
13496 cat >>confdefs.h <<_ACEOF
13497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13498 _ACEOF
13501 done
13503 else
13505 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13506 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13507 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13508 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13514 ac_ext=cc
13515 ac_cpp='$CXXCPP $CPPFLAGS'
13516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #include <math.h>
13527 #ifdef HAVE_IEEEFP_H
13528 #include <ieeefp.h>
13529 #endif
13532 main ()
13534 _fabsf(0);
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_cxx_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 glibcxx_cv_func__fabsf_use=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 glibcxx_cv_func__fabsf_use=no
13568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 ac_ext=c
13570 ac_cpp='$CPP $CPPFLAGS'
13571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13580 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13582 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13584 for ac_func in _fabsf
13586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13587 echo "$as_me:$LINENO: checking for $ac_func" >&5
13588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13589 if eval "test \"\${$as_ac_var+set}\" = set"; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 if test x$gcc_no_link = xyes; then
13593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13595 { (exit 1); exit 1; }; }
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13605 #define $ac_func innocuous_$ac_func
13607 /* System header to define __stub macros and hopefully few prototypes,
13608 which can conflict with char $ac_func (); below.
13609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13610 <limits.h> exists even on freestanding compilers. */
13612 #ifdef __STDC__
13613 # include <limits.h>
13614 #else
13615 # include <assert.h>
13616 #endif
13618 #undef $ac_func
13620 /* Override any gcc2 internal prototype to avoid an error. */
13621 #ifdef __cplusplus
13622 extern "C"
13624 #endif
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13627 char $ac_func ();
13628 /* The GNU C library defines this for functions which it implements
13629 to always fail with ENOSYS. Some functions are actually named
13630 something starting with __ and the normal name is an alias. */
13631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13632 choke me
13633 #else
13634 char (*f) () = $ac_func;
13635 #endif
13636 #ifdef __cplusplus
13638 #endif
13641 main ()
13643 return f != $ac_func;
13645 return 0;
13647 _ACEOF
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13650 (eval $ac_link) 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag"
13658 || test ! -s conftest.err'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest$ac_exeext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 eval "$as_ac_var=yes"
13671 else
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 eval "$as_ac_var=no"
13677 rm -f conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13682 if test `eval echo '${'$as_ac_var'}'` = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13685 _ACEOF
13688 done
13695 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13696 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13697 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13698 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13704 ac_ext=cc
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #include <math.h>
13718 main ()
13720 fmodf(0, 0);
13722 return 0;
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_cxx_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 glibcxx_cv_func_fmodf_use=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 glibcxx_cv_func_fmodf_use=no
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 ac_ext=c
13756 ac_cpp='$CPP $CPPFLAGS'
13757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13765 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13766 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13768 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13770 for ac_func in fmodf
13772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13773 echo "$as_me:$LINENO: checking for $ac_func" >&5
13774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13775 if eval "test \"\${$as_ac_var+set}\" = set"; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778 if test x$gcc_no_link = xyes; then
13779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13781 { (exit 1); exit 1; }; }
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13791 #define $ac_func innocuous_$ac_func
13793 /* System header to define __stub macros and hopefully few prototypes,
13794 which can conflict with char $ac_func (); below.
13795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13796 <limits.h> exists even on freestanding compilers. */
13798 #ifdef __STDC__
13799 # include <limits.h>
13800 #else
13801 # include <assert.h>
13802 #endif
13804 #undef $ac_func
13806 /* Override any gcc2 internal prototype to avoid an error. */
13807 #ifdef __cplusplus
13808 extern "C"
13810 #endif
13811 /* We use char because int might match the return type of a gcc2
13812 builtin and then its argument prototype would still apply. */
13813 char $ac_func ();
13814 /* The GNU C library defines this for functions which it implements
13815 to always fail with ENOSYS. Some functions are actually named
13816 something starting with __ and the normal name is an alias. */
13817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13818 choke me
13819 #else
13820 char (*f) () = $ac_func;
13821 #endif
13822 #ifdef __cplusplus
13824 #endif
13827 main ()
13829 return f != $ac_func;
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 eval "$as_ac_var=yes"
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 eval "$as_ac_var=no"
13863 rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13868 if test `eval echo '${'$as_ac_var'}'` = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13871 _ACEOF
13874 done
13876 else
13878 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13879 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13880 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13881 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13887 ac_ext=cc
13888 ac_cpp='$CXXCPP $CPPFLAGS'
13889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h. */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 #include <math.h>
13901 main ()
13903 _fmodf(0, 0);
13905 return 0;
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>conftest.er1
13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_cxx_werror_flag"
13918 || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 glibcxx_cv_func__fmodf_use=yes
13931 else
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 glibcxx_cv_func__fmodf_use=no
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13938 ac_ext=c
13939 ac_cpp='$CPP $CPPFLAGS'
13940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13948 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13949 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13951 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13953 for ac_func in _fmodf
13955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13956 echo "$as_me:$LINENO: checking for $ac_func" >&5
13957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13958 if eval "test \"\${$as_ac_var+set}\" = set"; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 if test x$gcc_no_link = xyes; then
13962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13964 { (exit 1); exit 1; }; }
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13974 #define $ac_func innocuous_$ac_func
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func (); below.
13978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13979 <limits.h> exists even on freestanding compilers. */
13981 #ifdef __STDC__
13982 # include <limits.h>
13983 #else
13984 # include <assert.h>
13985 #endif
13987 #undef $ac_func
13989 /* Override any gcc2 internal prototype to avoid an error. */
13990 #ifdef __cplusplus
13991 extern "C"
13993 #endif
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996 char $ac_func ();
13997 /* The GNU C library defines this for functions which it implements
13998 to always fail with ENOSYS. Some functions are actually named
13999 something starting with __ and the normal name is an alias. */
14000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14001 choke me
14002 #else
14003 char (*f) () = $ac_func;
14004 #endif
14005 #ifdef __cplusplus
14007 #endif
14010 main ()
14012 return f != $ac_func;
14014 return 0;
14016 _ACEOF
14017 rm -f conftest.$ac_objext conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest$ac_exeext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 eval "$as_ac_var=yes"
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 eval "$as_ac_var=no"
14046 rm -f conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14051 if test `eval echo '${'$as_ac_var'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054 _ACEOF
14057 done
14064 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
14065 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
14066 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
14067 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14073 ac_ext=cc
14074 ac_cpp='$CXXCPP $CPPFLAGS'
14075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #include <math.h>
14087 main ()
14089 frexpf(0, 0);
14091 return 0;
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_cxx_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 glibcxx_cv_func_frexpf_use=yes
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 glibcxx_cv_func_frexpf_use=no
14123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14124 ac_ext=c
14125 ac_cpp='$CPP $CPPFLAGS'
14126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14134 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14135 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14137 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14139 for ac_func in frexpf
14141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14142 echo "$as_me:$LINENO: checking for $ac_func" >&5
14143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_var+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 if test x$gcc_no_link = xyes; then
14148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14150 { (exit 1); exit 1; }; }
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14160 #define $ac_func innocuous_$ac_func
14162 /* System header to define __stub macros and hopefully few prototypes,
14163 which can conflict with char $ac_func (); below.
14164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14165 <limits.h> exists even on freestanding compilers. */
14167 #ifdef __STDC__
14168 # include <limits.h>
14169 #else
14170 # include <assert.h>
14171 #endif
14173 #undef $ac_func
14175 /* Override any gcc2 internal prototype to avoid an error. */
14176 #ifdef __cplusplus
14177 extern "C"
14179 #endif
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14182 char $ac_func ();
14183 /* The GNU C library defines this for functions which it implements
14184 to always fail with ENOSYS. Some functions are actually named
14185 something starting with __ and the normal name is an alias. */
14186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14187 choke me
14188 #else
14189 char (*f) () = $ac_func;
14190 #endif
14191 #ifdef __cplusplus
14193 #endif
14196 main ()
14198 return f != $ac_func;
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 eval "$as_ac_var=yes"
14226 else
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 eval "$as_ac_var=no"
14232 rm -f conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14237 if test `eval echo '${'$as_ac_var'}'` = yes; then
14238 cat >>confdefs.h <<_ACEOF
14239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14240 _ACEOF
14243 done
14245 else
14247 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14248 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14249 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14250 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14256 ac_ext=cc
14257 ac_cpp='$CXXCPP $CPPFLAGS'
14258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <math.h>
14270 main ()
14272 _frexpf(0, 0);
14274 return 0;
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279 (eval $ac_compile) 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_cxx_werror_flag"
14287 || test ! -s conftest.err'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 glibcxx_cv_func__frexpf_use=yes
14300 else
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 glibcxx_cv_func__frexpf_use=no
14306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14307 ac_ext=c
14308 ac_cpp='$CPP $CPPFLAGS'
14309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14318 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14320 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14322 for ac_func in _frexpf
14324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14325 echo "$as_me:$LINENO: checking for $ac_func" >&5
14326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_var+set}\" = set"; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330 if test x$gcc_no_link = xyes; then
14331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14333 { (exit 1); exit 1; }; }
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14343 #define $ac_func innocuous_$ac_func
14345 /* System header to define __stub macros and hopefully few prototypes,
14346 which can conflict with char $ac_func (); below.
14347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14348 <limits.h> exists even on freestanding compilers. */
14350 #ifdef __STDC__
14351 # include <limits.h>
14352 #else
14353 # include <assert.h>
14354 #endif
14356 #undef $ac_func
14358 /* Override any gcc2 internal prototype to avoid an error. */
14359 #ifdef __cplusplus
14360 extern "C"
14362 #endif
14363 /* We use char because int might match the return type of a gcc2
14364 builtin and then its argument prototype would still apply. */
14365 char $ac_func ();
14366 /* The GNU C library defines this for functions which it implements
14367 to always fail with ENOSYS. Some functions are actually named
14368 something starting with __ and the normal name is an alias. */
14369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14370 choke me
14371 #else
14372 char (*f) () = $ac_func;
14373 #endif
14374 #ifdef __cplusplus
14376 #endif
14379 main ()
14381 return f != $ac_func;
14383 return 0;
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest$ac_exeext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 eval "$as_ac_var=yes"
14409 else
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 eval "$as_ac_var=no"
14415 rm -f conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14420 if test `eval echo '${'$as_ac_var'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14423 _ACEOF
14426 done
14433 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14434 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14435 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14436 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14442 ac_ext=cc
14443 ac_cpp='$CXXCPP $CPPFLAGS'
14444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <math.h>
14456 main ()
14458 hypotf(0, 0);
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_cxx_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 glibcxx_cv_func_hypotf_use=yes
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 glibcxx_cv_func_hypotf_use=no
14492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14493 ac_ext=c
14494 ac_cpp='$CPP $CPPFLAGS'
14495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14503 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14504 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14506 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14508 for ac_func in hypotf
14510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511 echo "$as_me:$LINENO: checking for $ac_func" >&5
14512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14513 if eval "test \"\${$as_ac_var+set}\" = set"; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 if test x$gcc_no_link = xyes; then
14517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14519 { (exit 1); exit 1; }; }
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14529 #define $ac_func innocuous_$ac_func
14531 /* System header to define __stub macros and hopefully few prototypes,
14532 which can conflict with char $ac_func (); below.
14533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 <limits.h> exists even on freestanding compilers. */
14536 #ifdef __STDC__
14537 # include <limits.h>
14538 #else
14539 # include <assert.h>
14540 #endif
14542 #undef $ac_func
14544 /* Override any gcc2 internal prototype to avoid an error. */
14545 #ifdef __cplusplus
14546 extern "C"
14548 #endif
14549 /* We use char because int might match the return type of a gcc2
14550 builtin and then its argument prototype would still apply. */
14551 char $ac_func ();
14552 /* The GNU C library defines this for functions which it implements
14553 to always fail with ENOSYS. Some functions are actually named
14554 something starting with __ and the normal name is an alias. */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 choke me
14557 #else
14558 char (*f) () = $ac_func;
14559 #endif
14560 #ifdef __cplusplus
14562 #endif
14565 main ()
14567 return f != $ac_func;
14569 return 0;
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 eval "$as_ac_var=yes"
14595 else
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 eval "$as_ac_var=no"
14601 rm -f conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 _ACEOF
14612 done
14614 else
14616 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14617 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14618 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14619 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14625 ac_ext=cc
14626 ac_cpp='$CXXCPP $CPPFLAGS'
14627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 #include <math.h>
14639 main ()
14641 _hypotf(0, 0);
14643 return 0;
14645 _ACEOF
14646 rm -f conftest.$ac_objext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_cxx_werror_flag"
14656 || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 glibcxx_cv_func__hypotf_use=yes
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 glibcxx_cv_func__hypotf_use=no
14675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14676 ac_ext=c
14677 ac_cpp='$CPP $CPPFLAGS'
14678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14687 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14689 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14691 for ac_func in _hypotf
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 if test x$gcc_no_link = xyes; then
14700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14702 { (exit 1); exit 1; }; }
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h. */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712 #define $ac_func innocuous_$ac_func
14714 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14719 #ifdef __STDC__
14720 # include <limits.h>
14721 #else
14722 # include <assert.h>
14723 #endif
14725 #undef $ac_func
14727 /* Override any gcc2 internal prototype to avoid an error. */
14728 #ifdef __cplusplus
14729 extern "C"
14731 #endif
14732 /* We use char because int might match the return type of a gcc2
14733 builtin and then its argument prototype would still apply. */
14734 char $ac_func ();
14735 /* The GNU C library defines this for functions which it implements
14736 to always fail with ENOSYS. Some functions are actually named
14737 something starting with __ and the normal name is an alias. */
14738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14739 choke me
14740 #else
14741 char (*f) () = $ac_func;
14742 #endif
14743 #ifdef __cplusplus
14745 #endif
14748 main ()
14750 return f != $ac_func;
14752 return 0;
14754 _ACEOF
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757 (eval $ac_link) 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag"
14765 || test ! -s conftest.err'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest$ac_exeext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 eval "$as_ac_var=yes"
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 eval "$as_ac_var=no"
14784 rm -f conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14789 if test `eval echo '${'$as_ac_var'}'` = yes; then
14790 cat >>confdefs.h <<_ACEOF
14791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14792 _ACEOF
14795 done
14802 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14803 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14804 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14805 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14811 ac_ext=cc
14812 ac_cpp='$CXXCPP $CPPFLAGS'
14813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <math.h>
14825 main ()
14827 ldexpf(0, 0);
14829 return 0;
14831 _ACEOF
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834 (eval $ac_compile) 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_cxx_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 glibcxx_cv_func_ldexpf_use=yes
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 glibcxx_cv_func_ldexpf_use=no
14861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14862 ac_ext=c
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14873 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14875 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14877 for ac_func in ldexpf
14879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14880 echo "$as_me:$LINENO: checking for $ac_func" >&5
14881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14882 if eval "test \"\${$as_ac_var+set}\" = set"; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885 if test x$gcc_no_link = xyes; then
14886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14888 { (exit 1); exit 1; }; }
14890 cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h. */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14898 #define $ac_func innocuous_$ac_func
14900 /* System header to define __stub macros and hopefully few prototypes,
14901 which can conflict with char $ac_func (); below.
14902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14903 <limits.h> exists even on freestanding compilers. */
14905 #ifdef __STDC__
14906 # include <limits.h>
14907 #else
14908 # include <assert.h>
14909 #endif
14911 #undef $ac_func
14913 /* Override any gcc2 internal prototype to avoid an error. */
14914 #ifdef __cplusplus
14915 extern "C"
14917 #endif
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char $ac_func ();
14921 /* The GNU C library defines this for functions which it implements
14922 to always fail with ENOSYS. Some functions are actually named
14923 something starting with __ and the normal name is an alias. */
14924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14925 choke me
14926 #else
14927 char (*f) () = $ac_func;
14928 #endif
14929 #ifdef __cplusplus
14931 #endif
14934 main ()
14936 return f != $ac_func;
14938 return 0;
14940 _ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943 (eval $ac_link) 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_c_werror_flag"
14951 || test ! -s conftest.err'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 eval "$as_ac_var=yes"
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 eval "$as_ac_var=no"
14970 rm -f conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14975 if test `eval echo '${'$as_ac_var'}'` = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14978 _ACEOF
14981 done
14983 else
14985 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14986 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14987 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14988 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14994 ac_ext=cc
14995 ac_cpp='$CXXCPP $CPPFLAGS'
14996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <math.h>
15008 main ()
15010 _ldexpf(0, 0);
15012 return 0;
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15017 (eval $ac_compile) 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_cxx_werror_flag"
15025 || test ! -s conftest.err'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; } &&
15031 { ac_try='test -s conftest.$ac_objext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 glibcxx_cv_func__ldexpf_use=yes
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 glibcxx_cv_func__ldexpf_use=no
15044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15045 ac_ext=c
15046 ac_cpp='$CPP $CPPFLAGS'
15047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15055 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
15056 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
15058 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
15060 for ac_func in _ldexpf
15062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 echo "$as_me:$LINENO: checking for $ac_func" >&5
15064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15065 if eval "test \"\${$as_ac_var+set}\" = set"; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068 if test x$gcc_no_link = xyes; then
15069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15071 { (exit 1); exit 1; }; }
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15081 #define $ac_func innocuous_$ac_func
15083 /* System header to define __stub macros and hopefully few prototypes,
15084 which can conflict with char $ac_func (); below.
15085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15086 <limits.h> exists even on freestanding compilers. */
15088 #ifdef __STDC__
15089 # include <limits.h>
15090 #else
15091 # include <assert.h>
15092 #endif
15094 #undef $ac_func
15096 /* Override any gcc2 internal prototype to avoid an error. */
15097 #ifdef __cplusplus
15098 extern "C"
15100 #endif
15101 /* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103 char $ac_func ();
15104 /* The GNU C library defines this for functions which it implements
15105 to always fail with ENOSYS. Some functions are actually named
15106 something starting with __ and the normal name is an alias. */
15107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15108 choke me
15109 #else
15110 char (*f) () = $ac_func;
15111 #endif
15112 #ifdef __cplusplus
15114 #endif
15117 main ()
15119 return f != $ac_func;
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -z "$ac_c_werror_flag"
15134 || test ! -s conftest.err'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest$ac_exeext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 eval "$as_ac_var=yes"
15147 else
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 eval "$as_ac_var=no"
15153 rm -f conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15158 if test `eval echo '${'$as_ac_var'}'` = yes; then
15159 cat >>confdefs.h <<_ACEOF
15160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15161 _ACEOF
15164 done
15171 echo "$as_me:$LINENO: checking for logf declaration" >&5
15172 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15173 if test x${glibcxx_cv_func_logf_use+set} != xset; then
15174 if test "${glibcxx_cv_func_logf_use+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15180 ac_ext=cc
15181 ac_cpp='$CXXCPP $CPPFLAGS'
15182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <math.h>
15193 #ifdef HAVE_IEEEFP_H
15194 #include <ieeefp.h>
15195 #endif
15198 main ()
15200 logf(0);
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_cxx_werror_flag"
15215 || test ! -s conftest.err'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 glibcxx_cv_func_logf_use=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 glibcxx_cv_func_logf_use=no
15234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15235 ac_ext=c
15236 ac_cpp='$CPP $CPPFLAGS'
15237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15245 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15246 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15248 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15250 for ac_func in logf
15252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15253 echo "$as_me:$LINENO: checking for $ac_func" >&5
15254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_var+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 if test x$gcc_no_link = xyes; then
15259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15261 { (exit 1); exit 1; }; }
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15271 #define $ac_func innocuous_$ac_func
15273 /* System header to define __stub macros and hopefully few prototypes,
15274 which can conflict with char $ac_func (); below.
15275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15276 <limits.h> exists even on freestanding compilers. */
15278 #ifdef __STDC__
15279 # include <limits.h>
15280 #else
15281 # include <assert.h>
15282 #endif
15284 #undef $ac_func
15286 /* Override any gcc2 internal prototype to avoid an error. */
15287 #ifdef __cplusplus
15288 extern "C"
15290 #endif
15291 /* We use char because int might match the return type of a gcc2
15292 builtin and then its argument prototype would still apply. */
15293 char $ac_func ();
15294 /* The GNU C library defines this for functions which it implements
15295 to always fail with ENOSYS. Some functions are actually named
15296 something starting with __ and the normal name is an alias. */
15297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15298 choke me
15299 #else
15300 char (*f) () = $ac_func;
15301 #endif
15302 #ifdef __cplusplus
15304 #endif
15307 main ()
15309 return f != $ac_func;
15311 return 0;
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -z "$ac_c_werror_flag"
15324 || test ! -s conftest.err'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 eval "$as_ac_var=yes"
15337 else
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 eval "$as_ac_var=no"
15343 rm -f conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15348 if test `eval echo '${'$as_ac_var'}'` = yes; then
15349 cat >>confdefs.h <<_ACEOF
15350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15351 _ACEOF
15354 done
15356 else
15358 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15359 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15360 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15361 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15367 ac_ext=cc
15368 ac_cpp='$CXXCPP $CPPFLAGS'
15369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #include <math.h>
15380 #ifdef HAVE_IEEEFP_H
15381 #include <ieeefp.h>
15382 #endif
15385 main ()
15387 _logf(0);
15389 return 0;
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_cxx_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 glibcxx_cv_func__logf_use=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 glibcxx_cv_func__logf_use=no
15421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15422 ac_ext=c
15423 ac_cpp='$CPP $CPPFLAGS'
15424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15433 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15435 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15437 for ac_func in _logf
15439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15440 echo "$as_me:$LINENO: checking for $ac_func" >&5
15441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15442 if eval "test \"\${$as_ac_var+set}\" = set"; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 if test x$gcc_no_link = xyes; then
15446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15448 { (exit 1); exit 1; }; }
15450 cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h. */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15458 #define $ac_func innocuous_$ac_func
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func (); below.
15462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463 <limits.h> exists even on freestanding compilers. */
15465 #ifdef __STDC__
15466 # include <limits.h>
15467 #else
15468 # include <assert.h>
15469 #endif
15471 #undef $ac_func
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 #ifdef __cplusplus
15475 extern "C"
15477 #endif
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15480 char $ac_func ();
15481 /* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15485 choke me
15486 #else
15487 char (*f) () = $ac_func;
15488 #endif
15489 #ifdef __cplusplus
15491 #endif
15494 main ()
15496 return f != $ac_func;
15498 return 0;
15500 _ACEOF
15501 rm -f conftest.$ac_objext conftest$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest$ac_exeext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 eval "$as_ac_var=yes"
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 eval "$as_ac_var=no"
15530 rm -f conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15535 if test `eval echo '${'$as_ac_var'}'` = yes; then
15536 cat >>confdefs.h <<_ACEOF
15537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15538 _ACEOF
15541 done
15548 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15549 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15550 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15551 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15557 ac_ext=cc
15558 ac_cpp='$CXXCPP $CPPFLAGS'
15559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <math.h>
15570 #ifdef HAVE_IEEEFP_H
15571 #include <ieeefp.h>
15572 #endif
15575 main ()
15577 log10f(0);
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_cxx_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 glibcxx_cv_func_log10f_use=yes
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 glibcxx_cv_func_log10f_use=no
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 ac_ext=c
15613 ac_cpp='$CPP $CPPFLAGS'
15614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15622 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15623 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15625 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15627 for ac_func in log10f
15629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15630 echo "$as_me:$LINENO: checking for $ac_func" >&5
15631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15632 if eval "test \"\${$as_ac_var+set}\" = set"; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 if test x$gcc_no_link = xyes; then
15636 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15638 { (exit 1); exit 1; }; }
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648 #define $ac_func innocuous_$ac_func
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15655 #ifdef __STDC__
15656 # include <limits.h>
15657 #else
15658 # include <assert.h>
15659 #endif
15661 #undef $ac_func
15663 /* Override any gcc2 internal prototype to avoid an error. */
15664 #ifdef __cplusplus
15665 extern "C"
15667 #endif
15668 /* We use char because int might match the return type of a gcc2
15669 builtin and then its argument prototype would still apply. */
15670 char $ac_func ();
15671 /* The GNU C library defines this for functions which it implements
15672 to always fail with ENOSYS. Some functions are actually named
15673 something starting with __ and the normal name is an alias. */
15674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15675 choke me
15676 #else
15677 char (*f) () = $ac_func;
15678 #endif
15679 #ifdef __cplusplus
15681 #endif
15684 main ()
15686 return f != $ac_func;
15688 return 0;
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15693 (eval $ac_link) 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag"
15701 || test ! -s conftest.err'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; } &&
15707 { ac_try='test -s conftest$ac_exeext'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 eval "$as_ac_var=yes"
15714 else
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 eval "$as_ac_var=no"
15720 rm -f conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 _ACEOF
15731 done
15733 else
15735 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15736 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15737 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15738 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15744 ac_ext=cc
15745 ac_cpp='$CXXCPP $CPPFLAGS'
15746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <math.h>
15757 #ifdef HAVE_IEEEFP_H
15758 #include <ieeefp.h>
15759 #endif
15762 main ()
15764 _log10f(0);
15766 return 0;
15768 _ACEOF
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771 (eval $ac_compile) 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_cxx_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 glibcxx_cv_func__log10f_use=yes
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 glibcxx_cv_func__log10f_use=no
15798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799 ac_ext=c
15800 ac_cpp='$CPP $CPPFLAGS'
15801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15809 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15810 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15812 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15814 for ac_func in _log10f
15816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15817 echo "$as_me:$LINENO: checking for $ac_func" >&5
15818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15819 if eval "test \"\${$as_ac_var+set}\" = set"; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822 if test x$gcc_no_link = xyes; then
15823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15825 { (exit 1); exit 1; }; }
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15835 #define $ac_func innocuous_$ac_func
15837 /* System header to define __stub macros and hopefully few prototypes,
15838 which can conflict with char $ac_func (); below.
15839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840 <limits.h> exists even on freestanding compilers. */
15842 #ifdef __STDC__
15843 # include <limits.h>
15844 #else
15845 # include <assert.h>
15846 #endif
15848 #undef $ac_func
15850 /* Override any gcc2 internal prototype to avoid an error. */
15851 #ifdef __cplusplus
15852 extern "C"
15854 #endif
15855 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */
15857 char $ac_func ();
15858 /* The GNU C library defines this for functions which it implements
15859 to always fail with ENOSYS. Some functions are actually named
15860 something starting with __ and the normal name is an alias. */
15861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15862 choke me
15863 #else
15864 char (*f) () = $ac_func;
15865 #endif
15866 #ifdef __cplusplus
15868 #endif
15871 main ()
15873 return f != $ac_func;
15875 return 0;
15877 _ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880 (eval $ac_link) 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_c_werror_flag"
15888 || test ! -s conftest.err'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest$ac_exeext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 eval "$as_ac_var=yes"
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 eval "$as_ac_var=no"
15907 rm -f conftest.err conftest.$ac_objext \
15908 conftest$ac_exeext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15912 if test `eval echo '${'$as_ac_var'}'` = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15915 _ACEOF
15918 done
15925 echo "$as_me:$LINENO: checking for modff declaration" >&5
15926 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15927 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15928 if test "${glibcxx_cv_func_modff_use+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15934 ac_ext=cc
15935 ac_cpp='$CXXCPP $CPPFLAGS'
15936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h. */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <math.h>
15948 main ()
15950 modff(0, 0);
15952 return 0;
15954 _ACEOF
15955 rm -f conftest.$ac_objext
15956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15957 (eval $ac_compile) 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
15964 { ac_try='test -z "$ac_cxx_werror_flag"
15965 || test ! -s conftest.err'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest.$ac_objext'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 glibcxx_cv_func_modff_use=yes
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 glibcxx_cv_func_modff_use=no
15984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15985 ac_ext=c
15986 ac_cpp='$CPP $CPPFLAGS'
15987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15995 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15996 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15998 if test x$glibcxx_cv_func_modff_use = x"yes"; then
16000 for ac_func in modff
16002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16003 echo "$as_me:$LINENO: checking for $ac_func" >&5
16004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_var+set}\" = set"; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 if test x$gcc_no_link = xyes; then
16009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16011 { (exit 1); exit 1; }; }
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define $ac_func innocuous_$ac_func
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char $ac_func (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16028 #ifdef __STDC__
16029 # include <limits.h>
16030 #else
16031 # include <assert.h>
16032 #endif
16034 #undef $ac_func
16036 /* Override any gcc2 internal prototype to avoid an error. */
16037 #ifdef __cplusplus
16038 extern "C"
16040 #endif
16041 /* We use char because int might match the return type of a gcc2
16042 builtin and then its argument prototype would still apply. */
16043 char $ac_func ();
16044 /* The GNU C library defines this for functions which it implements
16045 to always fail with ENOSYS. Some functions are actually named
16046 something starting with __ and the normal name is an alias. */
16047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16048 choke me
16049 #else
16050 char (*f) () = $ac_func;
16051 #endif
16052 #ifdef __cplusplus
16054 #endif
16057 main ()
16059 return f != $ac_func;
16061 return 0;
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 eval "$as_ac_var=yes"
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 eval "$as_ac_var=no"
16093 rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16098 if test `eval echo '${'$as_ac_var'}'` = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16101 _ACEOF
16104 done
16106 else
16108 echo "$as_me:$LINENO: checking for _modff declaration" >&5
16109 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16110 if test x${glibcxx_cv_func__modff_use+set} != xset; then
16111 if test "${glibcxx_cv_func__modff_use+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16117 ac_ext=cc
16118 ac_cpp='$CXXCPP $CPPFLAGS'
16119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <math.h>
16131 main ()
16133 _modff(0, 0);
16135 return 0;
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_cxx_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 glibcxx_cv_func__modff_use=yes
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 glibcxx_cv_func__modff_use=no
16167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 ac_ext=c
16169 ac_cpp='$CPP $CPPFLAGS'
16170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16178 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16179 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16181 if test x$glibcxx_cv_func__modff_use = x"yes"; then
16183 for ac_func in _modff
16185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16186 echo "$as_me:$LINENO: checking for $ac_func" >&5
16187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16188 if eval "test \"\${$as_ac_var+set}\" = set"; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191 if test x$gcc_no_link = xyes; then
16192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16194 { (exit 1); exit 1; }; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16211 #ifdef __STDC__
16212 # include <limits.h>
16213 #else
16214 # include <assert.h>
16215 #endif
16217 #undef $ac_func
16219 /* Override any gcc2 internal prototype to avoid an error. */
16220 #ifdef __cplusplus
16221 extern "C"
16223 #endif
16224 /* We use char because int might match the return type of a gcc2
16225 builtin and then its argument prototype would still apply. */
16226 char $ac_func ();
16227 /* The GNU C library defines this for functions which it implements
16228 to always fail with ENOSYS. Some functions are actually named
16229 something starting with __ and the normal name is an alias. */
16230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16231 choke me
16232 #else
16233 char (*f) () = $ac_func;
16234 #endif
16235 #ifdef __cplusplus
16237 #endif
16240 main ()
16242 return f != $ac_func;
16244 return 0;
16246 _ACEOF
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 _ACEOF
16287 done
16294 echo "$as_me:$LINENO: checking for powf declaration" >&5
16295 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16296 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16297 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16303 ac_ext=cc
16304 ac_cpp='$CXXCPP $CPPFLAGS'
16305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 #include <math.h>
16317 main ()
16319 powf(0, 0);
16321 return 0;
16323 _ACEOF
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -z "$ac_cxx_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 glibcxx_cv_func_powf_use=yes
16347 else
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 glibcxx_cv_func_powf_use=no
16353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16354 ac_ext=c
16355 ac_cpp='$CPP $CPPFLAGS'
16356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16365 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16367 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16369 for ac_func in powf
16371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16372 echo "$as_me:$LINENO: checking for $ac_func" >&5
16373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16374 if eval "test \"\${$as_ac_var+set}\" = set"; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377 if test x$gcc_no_link = xyes; then
16378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16380 { (exit 1); exit 1; }; }
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16390 #define $ac_func innocuous_$ac_func
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func (); below.
16394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16395 <limits.h> exists even on freestanding compilers. */
16397 #ifdef __STDC__
16398 # include <limits.h>
16399 #else
16400 # include <assert.h>
16401 #endif
16403 #undef $ac_func
16405 /* Override any gcc2 internal prototype to avoid an error. */
16406 #ifdef __cplusplus
16407 extern "C"
16409 #endif
16410 /* We use char because int might match the return type of a gcc2
16411 builtin and then its argument prototype would still apply. */
16412 char $ac_func ();
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16417 choke me
16418 #else
16419 char (*f) () = $ac_func;
16420 #endif
16421 #ifdef __cplusplus
16423 #endif
16426 main ()
16428 return f != $ac_func;
16430 return 0;
16432 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16435 (eval $ac_link) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag"
16443 || test ! -s conftest.err'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest$ac_exeext'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 eval "$as_ac_var=yes"
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 eval "$as_ac_var=no"
16462 rm -f conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16467 if test `eval echo '${'$as_ac_var'}'` = yes; then
16468 cat >>confdefs.h <<_ACEOF
16469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16470 _ACEOF
16473 done
16475 else
16477 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16478 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16479 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16480 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16486 ac_ext=cc
16487 ac_cpp='$CXXCPP $CPPFLAGS'
16488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <math.h>
16500 main ()
16502 _powf(0, 0);
16504 return 0;
16506 _ACEOF
16507 rm -f conftest.$ac_objext
16508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16509 (eval $ac_compile) 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_cxx_werror_flag"
16517 || test ! -s conftest.err'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 glibcxx_cv_func__powf_use=yes
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 glibcxx_cv_func__powf_use=no
16536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16537 ac_ext=c
16538 ac_cpp='$CPP $CPPFLAGS'
16539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16547 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16548 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16550 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16552 for ac_func in _powf
16554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16555 echo "$as_me:$LINENO: checking for $ac_func" >&5
16556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16557 if eval "test \"\${$as_ac_var+set}\" = set"; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560 if test x$gcc_no_link = xyes; then
16561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16563 { (exit 1); exit 1; }; }
16565 cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h. */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16573 #define $ac_func innocuous_$ac_func
16575 /* System header to define __stub macros and hopefully few prototypes,
16576 which can conflict with char $ac_func (); below.
16577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16578 <limits.h> exists even on freestanding compilers. */
16580 #ifdef __STDC__
16581 # include <limits.h>
16582 #else
16583 # include <assert.h>
16584 #endif
16586 #undef $ac_func
16588 /* Override any gcc2 internal prototype to avoid an error. */
16589 #ifdef __cplusplus
16590 extern "C"
16592 #endif
16593 /* We use char because int might match the return type of a gcc2
16594 builtin and then its argument prototype would still apply. */
16595 char $ac_func ();
16596 /* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16600 choke me
16601 #else
16602 char (*f) () = $ac_func;
16603 #endif
16604 #ifdef __cplusplus
16606 #endif
16609 main ()
16611 return f != $ac_func;
16613 return 0;
16615 _ACEOF
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>conftest.er1
16619 ac_status=$?
16620 grep -v '^ *+' conftest.er1 >conftest.err
16621 rm -f conftest.er1
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } &&
16625 { ac_try='test -z "$ac_c_werror_flag"
16626 || test ! -s conftest.err'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; } &&
16632 { ac_try='test -s conftest$ac_exeext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638 eval "$as_ac_var=yes"
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 eval "$as_ac_var=no"
16645 rm -f conftest.err conftest.$ac_objext \
16646 conftest$ac_exeext conftest.$ac_ext
16648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16650 if test `eval echo '${'$as_ac_var'}'` = yes; then
16651 cat >>confdefs.h <<_ACEOF
16652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16653 _ACEOF
16656 done
16663 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16664 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16665 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16666 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16672 ac_ext=cc
16673 ac_cpp='$CXXCPP $CPPFLAGS'
16674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <math.h>
16685 #ifdef HAVE_IEEEFP_H
16686 #include <ieeefp.h>
16687 #endif
16690 main ()
16692 sqrtf(0);
16694 return 0;
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_cxx_werror_flag"
16707 || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 glibcxx_cv_func_sqrtf_use=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 glibcxx_cv_func_sqrtf_use=no
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16727 ac_ext=c
16728 ac_cpp='$CPP $CPPFLAGS'
16729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16737 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16738 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16740 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16742 for ac_func in sqrtf
16744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16745 echo "$as_me:$LINENO: checking for $ac_func" >&5
16746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16747 if eval "test \"\${$as_ac_var+set}\" = set"; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750 if test x$gcc_no_link = xyes; then
16751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16753 { (exit 1); exit 1; }; }
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763 #define $ac_func innocuous_$ac_func
16765 /* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char $ac_func (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16776 #undef $ac_func
16778 /* Override any gcc2 internal prototype to avoid an error. */
16779 #ifdef __cplusplus
16780 extern "C"
16782 #endif
16783 /* We use char because int might match the return type of a gcc2
16784 builtin and then its argument prototype would still apply. */
16785 char $ac_func ();
16786 /* The GNU C library defines this for functions which it implements
16787 to always fail with ENOSYS. Some functions are actually named
16788 something starting with __ and the normal name is an alias. */
16789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16790 choke me
16791 #else
16792 char (*f) () = $ac_func;
16793 #endif
16794 #ifdef __cplusplus
16796 #endif
16799 main ()
16801 return f != $ac_func;
16803 return 0;
16805 _ACEOF
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16808 (eval $ac_link) 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag"
16816 || test ! -s conftest.err'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest$ac_exeext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 eval "$as_ac_var=yes"
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 eval "$as_ac_var=no"
16835 rm -f conftest.err conftest.$ac_objext \
16836 conftest$ac_exeext conftest.$ac_ext
16838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16840 if test `eval echo '${'$as_ac_var'}'` = yes; then
16841 cat >>confdefs.h <<_ACEOF
16842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16843 _ACEOF
16846 done
16848 else
16850 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16851 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16852 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16853 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16859 ac_ext=cc
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16865 cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h. */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <math.h>
16872 #ifdef HAVE_IEEEFP_H
16873 #include <ieeefp.h>
16874 #endif
16877 main ()
16879 _sqrtf(0);
16881 return 0;
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_cxx_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 glibcxx_cv_func__sqrtf_use=yes
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 glibcxx_cv_func__sqrtf_use=no
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914 ac_ext=c
16915 ac_cpp='$CPP $CPPFLAGS'
16916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16924 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16925 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16927 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16929 for ac_func in _sqrtf
16931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16932 echo "$as_me:$LINENO: checking for $ac_func" >&5
16933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16934 if eval "test \"\${$as_ac_var+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 if test x$gcc_no_link = xyes; then
16938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16940 { (exit 1); exit 1; }; }
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16950 #define $ac_func innocuous_$ac_func
16952 /* System header to define __stub macros and hopefully few prototypes,
16953 which can conflict with char $ac_func (); below.
16954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955 <limits.h> exists even on freestanding compilers. */
16957 #ifdef __STDC__
16958 # include <limits.h>
16959 #else
16960 # include <assert.h>
16961 #endif
16963 #undef $ac_func
16965 /* Override any gcc2 internal prototype to avoid an error. */
16966 #ifdef __cplusplus
16967 extern "C"
16969 #endif
16970 /* We use char because int might match the return type of a gcc2
16971 builtin and then its argument prototype would still apply. */
16972 char $ac_func ();
16973 /* The GNU C library defines this for functions which it implements
16974 to always fail with ENOSYS. Some functions are actually named
16975 something starting with __ and the normal name is an alias. */
16976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16977 choke me
16978 #else
16979 char (*f) () = $ac_func;
16980 #endif
16981 #ifdef __cplusplus
16983 #endif
16986 main ()
16988 return f != $ac_func;
16990 return 0;
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16995 (eval $ac_link) 2>conftest.er1
16996 ac_status=$?
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag"
17003 || test ! -s conftest.err'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 eval "$as_ac_var=yes"
17016 else
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 eval "$as_ac_var=no"
17022 rm -f conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17027 if test `eval echo '${'$as_ac_var'}'` = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17030 _ACEOF
17033 done
17040 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
17041 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
17042 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
17043 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17049 ac_ext=cc
17050 ac_cpp='$CXXCPP $CPPFLAGS'
17051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <math.h>
17063 main ()
17065 sincosf(0, 0, 0);
17067 return 0;
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17072 (eval $ac_compile) 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_cxx_werror_flag"
17080 || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 glibcxx_cv_func_sincosf_use=yes
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 glibcxx_cv_func_sincosf_use=no
17099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17100 ac_ext=c
17101 ac_cpp='$CPP $CPPFLAGS'
17102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17110 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17111 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17113 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17115 for ac_func in sincosf
17117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17118 echo "$as_me:$LINENO: checking for $ac_func" >&5
17119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17120 if eval "test \"\${$as_ac_var+set}\" = set"; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123 if test x$gcc_no_link = xyes; then
17124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17126 { (exit 1); exit 1; }; }
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136 #define $ac_func innocuous_$ac_func
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char $ac_func (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17143 #ifdef __STDC__
17144 # include <limits.h>
17145 #else
17146 # include <assert.h>
17147 #endif
17149 #undef $ac_func
17151 /* Override any gcc2 internal prototype to avoid an error. */
17152 #ifdef __cplusplus
17153 extern "C"
17155 #endif
17156 /* We use char because int might match the return type of a gcc2
17157 builtin and then its argument prototype would still apply. */
17158 char $ac_func ();
17159 /* The GNU C library defines this for functions which it implements
17160 to always fail with ENOSYS. Some functions are actually named
17161 something starting with __ and the normal name is an alias. */
17162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17163 choke me
17164 #else
17165 char (*f) () = $ac_func;
17166 #endif
17167 #ifdef __cplusplus
17169 #endif
17172 main ()
17174 return f != $ac_func;
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17181 (eval $ac_link) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag"
17189 || test ! -s conftest.err'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; } &&
17195 { ac_try='test -s conftest$ac_exeext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 eval "$as_ac_var=yes"
17202 else
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 eval "$as_ac_var=no"
17208 rm -f conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17213 if test `eval echo '${'$as_ac_var'}'` = yes; then
17214 cat >>confdefs.h <<_ACEOF
17215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17216 _ACEOF
17219 done
17221 else
17223 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17224 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17225 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17226 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17232 ac_ext=cc
17233 ac_cpp='$CXXCPP $CPPFLAGS'
17234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17238 cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h. */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 #include <math.h>
17246 main ()
17248 _sincosf(0, 0, 0);
17250 return 0;
17252 _ACEOF
17253 rm -f conftest.$ac_objext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_cxx_werror_flag"
17263 || test ! -s conftest.err'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest.$ac_objext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 glibcxx_cv_func__sincosf_use=yes
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 glibcxx_cv_func__sincosf_use=no
17282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17283 ac_ext=c
17284 ac_cpp='$CPP $CPPFLAGS'
17285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17293 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17294 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17296 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17298 for ac_func in _sincosf
17300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301 echo "$as_me:$LINENO: checking for $ac_func" >&5
17302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17303 if eval "test \"\${$as_ac_var+set}\" = set"; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306 if test x$gcc_no_link = xyes; then
17307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17309 { (exit 1); exit 1; }; }
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h. */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17319 #define $ac_func innocuous_$ac_func
17321 /* System header to define __stub macros and hopefully few prototypes,
17322 which can conflict with char $ac_func (); below.
17323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17324 <limits.h> exists even on freestanding compilers. */
17326 #ifdef __STDC__
17327 # include <limits.h>
17328 #else
17329 # include <assert.h>
17330 #endif
17332 #undef $ac_func
17334 /* Override any gcc2 internal prototype to avoid an error. */
17335 #ifdef __cplusplus
17336 extern "C"
17338 #endif
17339 /* We use char because int might match the return type of a gcc2
17340 builtin and then its argument prototype would still apply. */
17341 char $ac_func ();
17342 /* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17346 choke me
17347 #else
17348 char (*f) () = $ac_func;
17349 #endif
17350 #ifdef __cplusplus
17352 #endif
17355 main ()
17357 return f != $ac_func;
17359 return 0;
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17364 (eval $ac_link) 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest$ac_exeext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 eval "$as_ac_var=yes"
17385 else
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 eval "$as_ac_var=no"
17391 rm -f conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17396 if test `eval echo '${'$as_ac_var'}'` = yes; then
17397 cat >>confdefs.h <<_ACEOF
17398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17399 _ACEOF
17402 done
17409 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17410 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17411 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17412 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17418 ac_ext=cc
17419 ac_cpp='$CXXCPP $CPPFLAGS'
17420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <math.h>
17431 #ifdef HAVE_IEEEFP_H
17432 #include <ieeefp.h>
17433 #endif
17436 main ()
17438 finitef(0);
17440 return 0;
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445 (eval $ac_compile) 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_cxx_werror_flag"
17453 || test ! -s conftest.err'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest.$ac_objext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 glibcxx_cv_func_finitef_use=yes
17466 else
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 glibcxx_cv_func_finitef_use=no
17472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473 ac_ext=c
17474 ac_cpp='$CPP $CPPFLAGS'
17475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17483 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17484 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17486 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17488 for ac_func in finitef
17490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17491 echo "$as_me:$LINENO: checking for $ac_func" >&5
17492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17493 if eval "test \"\${$as_ac_var+set}\" = set"; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 if test x$gcc_no_link = xyes; then
17497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17499 { (exit 1); exit 1; }; }
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17509 #define $ac_func innocuous_$ac_func
17511 /* System header to define __stub macros and hopefully few prototypes,
17512 which can conflict with char $ac_func (); below.
17513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514 <limits.h> exists even on freestanding compilers. */
17516 #ifdef __STDC__
17517 # include <limits.h>
17518 #else
17519 # include <assert.h>
17520 #endif
17522 #undef $ac_func
17524 /* Override any gcc2 internal prototype to avoid an error. */
17525 #ifdef __cplusplus
17526 extern "C"
17528 #endif
17529 /* We use char because int might match the return type of a gcc2
17530 builtin and then its argument prototype would still apply. */
17531 char $ac_func ();
17532 /* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17536 choke me
17537 #else
17538 char (*f) () = $ac_func;
17539 #endif
17540 #ifdef __cplusplus
17542 #endif
17545 main ()
17547 return f != $ac_func;
17549 return 0;
17551 _ACEOF
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554 (eval $ac_link) 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest$ac_exeext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 eval "$as_ac_var=yes"
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 eval "$as_ac_var=no"
17581 rm -f conftest.err conftest.$ac_objext \
17582 conftest$ac_exeext conftest.$ac_ext
17584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17586 if test `eval echo '${'$as_ac_var'}'` = yes; then
17587 cat >>confdefs.h <<_ACEOF
17588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17589 _ACEOF
17592 done
17594 else
17596 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17597 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17598 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17599 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17605 ac_ext=cc
17606 ac_cpp='$CXXCPP $CPPFLAGS'
17607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h. */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17617 #include <math.h>
17618 #ifdef HAVE_IEEEFP_H
17619 #include <ieeefp.h>
17620 #endif
17623 main ()
17625 _finitef(0);
17627 return 0;
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632 (eval $ac_compile) 2>conftest.er1
17633 ac_status=$?
17634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_cxx_werror_flag"
17640 || test ! -s conftest.err'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 glibcxx_cv_func__finitef_use=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 glibcxx_cv_func__finitef_use=no
17659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17660 ac_ext=c
17661 ac_cpp='$CPP $CPPFLAGS'
17662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17670 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17671 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17673 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17675 for ac_func in _finitef
17677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678 echo "$as_me:$LINENO: checking for $ac_func" >&5
17679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17680 if eval "test \"\${$as_ac_var+set}\" = set"; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 if test x$gcc_no_link = xyes; then
17684 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17686 { (exit 1); exit 1; }; }
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h. */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17696 #define $ac_func innocuous_$ac_func
17698 /* System header to define __stub macros and hopefully few prototypes,
17699 which can conflict with char $ac_func (); below.
17700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17701 <limits.h> exists even on freestanding compilers. */
17703 #ifdef __STDC__
17704 # include <limits.h>
17705 #else
17706 # include <assert.h>
17707 #endif
17709 #undef $ac_func
17711 /* Override any gcc2 internal prototype to avoid an error. */
17712 #ifdef __cplusplus
17713 extern "C"
17715 #endif
17716 /* We use char because int might match the return type of a gcc2
17717 builtin and then its argument prototype would still apply. */
17718 char $ac_func ();
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17723 choke me
17724 #else
17725 char (*f) () = $ac_func;
17726 #endif
17727 #ifdef __cplusplus
17729 #endif
17732 main ()
17734 return f != $ac_func;
17736 return 0;
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 eval "$as_ac_var=yes"
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 eval "$as_ac_var=no"
17768 rm -f conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17773 if test `eval echo '${'$as_ac_var'}'` = yes; then
17774 cat >>confdefs.h <<_ACEOF
17775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17776 _ACEOF
17779 done
17786 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17787 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17788 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17794 ac_ext=cc
17795 ac_cpp='$CXXCPP $CPPFLAGS'
17796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 #include <math.h>
17808 main ()
17810 `for x in acosl asinl atanl \
17811 cosl sinl tanl \
17812 coshl sinhl tanhl; do echo "$x (0);"; done`
17814 return 0;
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_cxx_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 glibcxx_cv_func_long_double_trig_use=yes
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 glibcxx_cv_func_long_double_trig_use=no
17846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17847 ac_ext=c
17848 ac_cpp='$CPP $CPPFLAGS'
17849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17855 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17856 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17857 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17867 for ac_func in acosl asinl atanl \
17868 cosl sinl tanl \
17869 coshl sinhl tanhl
17871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872 echo "$as_me:$LINENO: checking for $ac_func" >&5
17873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17874 if eval "test \"\${$as_ac_var+set}\" = set"; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 if test x$gcc_no_link = xyes; then
17878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17880 { (exit 1); exit 1; }; }
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define $ac_func innocuous_$ac_func
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17897 #ifdef __STDC__
17898 # include <limits.h>
17899 #else
17900 # include <assert.h>
17901 #endif
17903 #undef $ac_func
17905 /* Override any gcc2 internal prototype to avoid an error. */
17906 #ifdef __cplusplus
17907 extern "C"
17909 #endif
17910 /* We use char because int might match the return type of a gcc2
17911 builtin and then its argument prototype would still apply. */
17912 char $ac_func ();
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17917 choke me
17918 #else
17919 char (*f) () = $ac_func;
17920 #endif
17921 #ifdef __cplusplus
17923 #endif
17926 main ()
17928 return f != $ac_func;
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 eval "$as_ac_var=yes"
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 eval "$as_ac_var=no"
17962 rm -f conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970 _ACEOF
17973 done
17978 echo "$as_me:$LINENO: checking for long double round functions" >&5
17979 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17980 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17986 ac_ext=cc
17987 ac_cpp='$CXXCPP $CPPFLAGS'
17988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 #include <math.h>
18000 main ()
18002 `for x in ceill floorl; do echo "$x (0);"; done`
18004 return 0;
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_cxx_werror_flag"
18017 || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 glibcxx_cv_func_long_double_round_use=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 glibcxx_cv_func_long_double_round_use=no
18036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18037 ac_ext=c
18038 ac_cpp='$CPP $CPPFLAGS'
18039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18045 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
18046 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
18047 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
18050 for ac_func in ceill floorl
18052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18053 echo "$as_me:$LINENO: checking for $ac_func" >&5
18054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_var+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058 if test x$gcc_no_link = xyes; then
18059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18061 { (exit 1); exit 1; }; }
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h. */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18071 #define $ac_func innocuous_$ac_func
18073 /* System header to define __stub macros and hopefully few prototypes,
18074 which can conflict with char $ac_func (); below.
18075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18076 <limits.h> exists even on freestanding compilers. */
18078 #ifdef __STDC__
18079 # include <limits.h>
18080 #else
18081 # include <assert.h>
18082 #endif
18084 #undef $ac_func
18086 /* Override any gcc2 internal prototype to avoid an error. */
18087 #ifdef __cplusplus
18088 extern "C"
18090 #endif
18091 /* We use char because int might match the return type of a gcc2
18092 builtin and then its argument prototype would still apply. */
18093 char $ac_func ();
18094 /* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18098 choke me
18099 #else
18100 char (*f) () = $ac_func;
18101 #endif
18102 #ifdef __cplusplus
18104 #endif
18107 main ()
18109 return f != $ac_func;
18111 return 0;
18113 _ACEOF
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116 (eval $ac_link) 2>conftest.er1
18117 ac_status=$?
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 eval "$as_ac_var=yes"
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 eval "$as_ac_var=no"
18143 rm -f conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18148 if test `eval echo '${'$as_ac_var'}'` = yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18151 _ACEOF
18154 done
18160 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18161 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18162 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18163 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18169 ac_ext=cc
18170 ac_cpp='$CXXCPP $CPPFLAGS'
18171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <math.h>
18182 #ifdef HAVE_IEEEFP_H
18183 #include <ieeefp.h>
18184 #endif
18187 main ()
18189 isnanl(0);
18191 return 0;
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_cxx_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 glibcxx_cv_func_isnanl_use=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 glibcxx_cv_func_isnanl_use=no
18223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 ac_ext=c
18225 ac_cpp='$CPP $CPPFLAGS'
18226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18234 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18235 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18237 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18239 for ac_func in isnanl
18241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 echo "$as_me:$LINENO: checking for $ac_func" >&5
18243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18244 if eval "test \"\${$as_ac_var+set}\" = set"; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 if test x$gcc_no_link = xyes; then
18248 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18250 { (exit 1); exit 1; }; }
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18260 #define $ac_func innocuous_$ac_func
18262 /* System header to define __stub macros and hopefully few prototypes,
18263 which can conflict with char $ac_func (); below.
18264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18265 <limits.h> exists even on freestanding compilers. */
18267 #ifdef __STDC__
18268 # include <limits.h>
18269 #else
18270 # include <assert.h>
18271 #endif
18273 #undef $ac_func
18275 /* Override any gcc2 internal prototype to avoid an error. */
18276 #ifdef __cplusplus
18277 extern "C"
18279 #endif
18280 /* We use char because int might match the return type of a gcc2
18281 builtin and then its argument prototype would still apply. */
18282 char $ac_func ();
18283 /* The GNU C library defines this for functions which it implements
18284 to always fail with ENOSYS. Some functions are actually named
18285 something starting with __ and the normal name is an alias. */
18286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18287 choke me
18288 #else
18289 char (*f) () = $ac_func;
18290 #endif
18291 #ifdef __cplusplus
18293 #endif
18296 main ()
18298 return f != $ac_func;
18300 return 0;
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>conftest.er1
18306 ac_status=$?
18307 grep -v '^ *+' conftest.er1 >conftest.err
18308 rm -f conftest.er1
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 eval "$as_ac_var=yes"
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 eval "$as_ac_var=no"
18332 rm -f conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext conftest.$ac_ext
18335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18337 if test `eval echo '${'$as_ac_var'}'` = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18340 _ACEOF
18343 done
18345 else
18347 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18348 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18349 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18350 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18356 ac_ext=cc
18357 ac_cpp='$CXXCPP $CPPFLAGS'
18358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18362 cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h. */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18368 #include <math.h>
18369 #ifdef HAVE_IEEEFP_H
18370 #include <ieeefp.h>
18371 #endif
18374 main ()
18376 _isnanl(0);
18378 return 0;
18380 _ACEOF
18381 rm -f conftest.$ac_objext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18383 (eval $ac_compile) 2>conftest.er1
18384 ac_status=$?
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } &&
18390 { ac_try='test -z "$ac_cxx_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 glibcxx_cv_func__isnanl_use=yes
18404 else
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 glibcxx_cv_func__isnanl_use=no
18410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18411 ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18421 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18422 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18424 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18426 for ac_func in _isnanl
18428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18429 echo "$as_me:$LINENO: checking for $ac_func" >&5
18430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18431 if eval "test \"\${$as_ac_var+set}\" = set"; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434 if test x$gcc_no_link = xyes; then
18435 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18436 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18437 { (exit 1); exit 1; }; }
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18447 #define $ac_func innocuous_$ac_func
18449 /* System header to define __stub macros and hopefully few prototypes,
18450 which can conflict with char $ac_func (); below.
18451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18452 <limits.h> exists even on freestanding compilers. */
18454 #ifdef __STDC__
18455 # include <limits.h>
18456 #else
18457 # include <assert.h>
18458 #endif
18460 #undef $ac_func
18462 /* Override any gcc2 internal prototype to avoid an error. */
18463 #ifdef __cplusplus
18464 extern "C"
18466 #endif
18467 /* We use char because int might match the return type of a gcc2
18468 builtin and then its argument prototype would still apply. */
18469 char $ac_func ();
18470 /* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18474 choke me
18475 #else
18476 char (*f) () = $ac_func;
18477 #endif
18478 #ifdef __cplusplus
18480 #endif
18483 main ()
18485 return f != $ac_func;
18487 return 0;
18489 _ACEOF
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18492 (eval $ac_link) 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 eval "$as_ac_var=yes"
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 eval "$as_ac_var=no"
18519 rm -f conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18524 if test `eval echo '${'$as_ac_var'}'` = yes; then
18525 cat >>confdefs.h <<_ACEOF
18526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18527 _ACEOF
18530 done
18537 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18538 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18539 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18540 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18546 ac_ext=cc
18547 ac_cpp='$CXXCPP $CPPFLAGS'
18548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18552 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 #include <math.h>
18559 #ifdef HAVE_IEEEFP_H
18560 #include <ieeefp.h>
18561 #endif
18564 main ()
18566 isinfl(0);
18568 return 0;
18570 _ACEOF
18571 rm -f conftest.$ac_objext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18573 (eval $ac_compile) 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_cxx_werror_flag"
18581 || test ! -s conftest.err'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest.$ac_objext'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 glibcxx_cv_func_isinfl_use=yes
18594 else
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 glibcxx_cv_func_isinfl_use=no
18600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18601 ac_ext=c
18602 ac_cpp='$CPP $CPPFLAGS'
18603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18611 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18612 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18614 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18616 for ac_func in isinfl
18618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18619 echo "$as_me:$LINENO: checking for $ac_func" >&5
18620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18621 if eval "test \"\${$as_ac_var+set}\" = set"; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624 if test x$gcc_no_link = xyes; then
18625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18627 { (exit 1); exit 1; }; }
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18637 #define $ac_func innocuous_$ac_func
18639 /* System header to define __stub macros and hopefully few prototypes,
18640 which can conflict with char $ac_func (); below.
18641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18642 <limits.h> exists even on freestanding compilers. */
18644 #ifdef __STDC__
18645 # include <limits.h>
18646 #else
18647 # include <assert.h>
18648 #endif
18650 #undef $ac_func
18652 /* Override any gcc2 internal prototype to avoid an error. */
18653 #ifdef __cplusplus
18654 extern "C"
18656 #endif
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18659 char $ac_func ();
18660 /* The GNU C library defines this for functions which it implements
18661 to always fail with ENOSYS. Some functions are actually named
18662 something starting with __ and the normal name is an alias. */
18663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18664 choke me
18665 #else
18666 char (*f) () = $ac_func;
18667 #endif
18668 #ifdef __cplusplus
18670 #endif
18673 main ()
18675 return f != $ac_func;
18677 return 0;
18679 _ACEOF
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 eval "$as_ac_var=yes"
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 eval "$as_ac_var=no"
18709 rm -f conftest.err conftest.$ac_objext \
18710 conftest$ac_exeext conftest.$ac_ext
18712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18714 if test `eval echo '${'$as_ac_var'}'` = yes; then
18715 cat >>confdefs.h <<_ACEOF
18716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18717 _ACEOF
18720 done
18722 else
18724 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18725 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18726 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18727 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18733 ac_ext=cc
18734 ac_cpp='$CXXCPP $CPPFLAGS'
18735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 #include <math.h>
18746 #ifdef HAVE_IEEEFP_H
18747 #include <ieeefp.h>
18748 #endif
18751 main ()
18753 _isinfl(0);
18755 return 0;
18757 _ACEOF
18758 rm -f conftest.$ac_objext
18759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18760 (eval $ac_compile) 2>conftest.er1
18761 ac_status=$?
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_cxx_werror_flag"
18768 || test ! -s conftest.err'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; } &&
18774 { ac_try='test -s conftest.$ac_objext'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 glibcxx_cv_func__isinfl_use=yes
18781 else
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 glibcxx_cv_func__isinfl_use=no
18787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18788 ac_ext=c
18789 ac_cpp='$CPP $CPPFLAGS'
18790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18798 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18799 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18801 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18803 for ac_func in _isinfl
18805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18806 echo "$as_me:$LINENO: checking for $ac_func" >&5
18807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18808 if eval "test \"\${$as_ac_var+set}\" = set"; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811 if test x$gcc_no_link = xyes; then
18812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18814 { (exit 1); exit 1; }; }
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18824 #define $ac_func innocuous_$ac_func
18826 /* System header to define __stub macros and hopefully few prototypes,
18827 which can conflict with char $ac_func (); below.
18828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18829 <limits.h> exists even on freestanding compilers. */
18831 #ifdef __STDC__
18832 # include <limits.h>
18833 #else
18834 # include <assert.h>
18835 #endif
18837 #undef $ac_func
18839 /* Override any gcc2 internal prototype to avoid an error. */
18840 #ifdef __cplusplus
18841 extern "C"
18843 #endif
18844 /* We use char because int might match the return type of a gcc2
18845 builtin and then its argument prototype would still apply. */
18846 char $ac_func ();
18847 /* The GNU C library defines this for functions which it implements
18848 to always fail with ENOSYS. Some functions are actually named
18849 something starting with __ and the normal name is an alias. */
18850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18851 choke me
18852 #else
18853 char (*f) () = $ac_func;
18854 #endif
18855 #ifdef __cplusplus
18857 #endif
18860 main ()
18862 return f != $ac_func;
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 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_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 eval "$as_ac_var=yes"
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 eval "$as_ac_var=no"
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18904 _ACEOF
18907 done
18914 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18915 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18916 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18917 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18923 ac_ext=cc
18924 ac_cpp='$CXXCPP $CPPFLAGS'
18925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <math.h>
18937 main ()
18939 copysignl(0, 0);
18941 return 0;
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_cxx_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 glibcxx_cv_func_copysignl_use=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 glibcxx_cv_func_copysignl_use=no
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974 ac_ext=c
18975 ac_cpp='$CPP $CPPFLAGS'
18976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18985 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18987 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18989 for ac_func in copysignl
18991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18992 echo "$as_me:$LINENO: checking for $ac_func" >&5
18993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18994 if eval "test \"\${$as_ac_var+set}\" = set"; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997 if test x$gcc_no_link = xyes; then
18998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19000 { (exit 1); exit 1; }; }
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19010 #define $ac_func innocuous_$ac_func
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char $ac_func (); below.
19014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19015 <limits.h> exists even on freestanding compilers. */
19017 #ifdef __STDC__
19018 # include <limits.h>
19019 #else
19020 # include <assert.h>
19021 #endif
19023 #undef $ac_func
19025 /* Override any gcc2 internal prototype to avoid an error. */
19026 #ifdef __cplusplus
19027 extern "C"
19029 #endif
19030 /* We use char because int might match the return type of a gcc2
19031 builtin and then its argument prototype would still apply. */
19032 char $ac_func ();
19033 /* The GNU C library defines this for functions which it implements
19034 to always fail with ENOSYS. Some functions are actually named
19035 something starting with __ and the normal name is an alias. */
19036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19037 choke me
19038 #else
19039 char (*f) () = $ac_func;
19040 #endif
19041 #ifdef __cplusplus
19043 #endif
19046 main ()
19048 return f != $ac_func;
19050 return 0;
19052 _ACEOF
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19055 (eval $ac_link) 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -z "$ac_c_werror_flag"
19063 || test ! -s conftest.err'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 eval "$as_ac_var=yes"
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 eval "$as_ac_var=no"
19082 rm -f conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
19085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19087 if test `eval echo '${'$as_ac_var'}'` = yes; then
19088 cat >>confdefs.h <<_ACEOF
19089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19090 _ACEOF
19093 done
19095 else
19097 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19098 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19099 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19100 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19106 ac_ext=cc
19107 ac_cpp='$CXXCPP $CPPFLAGS'
19108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <math.h>
19120 main ()
19122 _copysignl(0, 0);
19124 return 0;
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_cxx_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest.$ac_objext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 glibcxx_cv_func__copysignl_use=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 glibcxx_cv_func__copysignl_use=no
19156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19157 ac_ext=c
19158 ac_cpp='$CPP $CPPFLAGS'
19159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19167 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19168 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19170 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19172 for ac_func in _copysignl
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:$LINENO: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180 if test x$gcc_no_link = xyes; then
19181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19183 { (exit 1); exit 1; }; }
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h. */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19193 #define $ac_func innocuous_$ac_func
19195 /* System header to define __stub macros and hopefully few prototypes,
19196 which can conflict with char $ac_func (); below.
19197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19198 <limits.h> exists even on freestanding compilers. */
19200 #ifdef __STDC__
19201 # include <limits.h>
19202 #else
19203 # include <assert.h>
19204 #endif
19206 #undef $ac_func
19208 /* Override any gcc2 internal prototype to avoid an error. */
19209 #ifdef __cplusplus
19210 extern "C"
19212 #endif
19213 /* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19215 char $ac_func ();
19216 /* The GNU C library defines this for functions which it implements
19217 to always fail with ENOSYS. Some functions are actually named
19218 something starting with __ and the normal name is an alias. */
19219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19220 choke me
19221 #else
19222 char (*f) () = $ac_func;
19223 #endif
19224 #ifdef __cplusplus
19226 #endif
19229 main ()
19231 return f != $ac_func;
19233 return 0;
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag"
19246 || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest$ac_exeext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 eval "$as_ac_var=yes"
19259 else
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 eval "$as_ac_var=no"
19265 rm -f conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19270 if test `eval echo '${'$as_ac_var'}'` = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19273 _ACEOF
19276 done
19283 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19284 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19285 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19286 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19292 ac_ext=cc
19293 ac_cpp='$CXXCPP $CPPFLAGS'
19294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h. */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 #include <math.h>
19306 main ()
19308 atan2l(0, 0);
19310 return 0;
19312 _ACEOF
19313 rm -f conftest.$ac_objext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest.$ac_objext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 glibcxx_cv_func_atan2l_use=yes
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 glibcxx_cv_func_atan2l_use=no
19342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19343 ac_ext=c
19344 ac_cpp='$CPP $CPPFLAGS'
19345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19354 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19356 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19358 for ac_func in atan2l
19360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19361 echo "$as_me:$LINENO: checking for $ac_func" >&5
19362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19363 if eval "test \"\${$as_ac_var+set}\" = set"; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366 if test x$gcc_no_link = xyes; then
19367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19369 { (exit 1); exit 1; }; }
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19379 #define $ac_func innocuous_$ac_func
19381 /* System header to define __stub macros and hopefully few prototypes,
19382 which can conflict with char $ac_func (); below.
19383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19384 <limits.h> exists even on freestanding compilers. */
19386 #ifdef __STDC__
19387 # include <limits.h>
19388 #else
19389 # include <assert.h>
19390 #endif
19392 #undef $ac_func
19394 /* Override any gcc2 internal prototype to avoid an error. */
19395 #ifdef __cplusplus
19396 extern "C"
19398 #endif
19399 /* We use char because int might match the return type of a gcc2
19400 builtin and then its argument prototype would still apply. */
19401 char $ac_func ();
19402 /* The GNU C library defines this for functions which it implements
19403 to always fail with ENOSYS. Some functions are actually named
19404 something starting with __ and the normal name is an alias. */
19405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19406 choke me
19407 #else
19408 char (*f) () = $ac_func;
19409 #endif
19410 #ifdef __cplusplus
19412 #endif
19415 main ()
19417 return f != $ac_func;
19419 return 0;
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19424 (eval $ac_link) 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag"
19432 || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 eval "$as_ac_var=yes"
19445 else
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 eval "$as_ac_var=no"
19451 rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19456 if test `eval echo '${'$as_ac_var'}'` = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19459 _ACEOF
19462 done
19464 else
19466 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19467 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19468 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19469 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19475 ac_ext=cc
19476 ac_cpp='$CXXCPP $CPPFLAGS'
19477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 #include <math.h>
19489 main ()
19491 _atan2l(0, 0);
19493 return 0;
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_cxx_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 glibcxx_cv_func__atan2l_use=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 glibcxx_cv_func__atan2l_use=no
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_ext=c
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19537 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19539 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19541 for ac_func in _atan2l
19543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19544 echo "$as_me:$LINENO: checking for $ac_func" >&5
19545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19546 if eval "test \"\${$as_ac_var+set}\" = set"; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 if test x$gcc_no_link = xyes; then
19550 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19551 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19552 { (exit 1); exit 1; }; }
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19562 #define $ac_func innocuous_$ac_func
19564 /* System header to define __stub macros and hopefully few prototypes,
19565 which can conflict with char $ac_func (); below.
19566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19567 <limits.h> exists even on freestanding compilers. */
19569 #ifdef __STDC__
19570 # include <limits.h>
19571 #else
19572 # include <assert.h>
19573 #endif
19575 #undef $ac_func
19577 /* Override any gcc2 internal prototype to avoid an error. */
19578 #ifdef __cplusplus
19579 extern "C"
19581 #endif
19582 /* We use char because int might match the return type of a gcc2
19583 builtin and then its argument prototype would still apply. */
19584 char $ac_func ();
19585 /* The GNU C library defines this for functions which it implements
19586 to always fail with ENOSYS. Some functions are actually named
19587 something starting with __ and the normal name is an alias. */
19588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19589 choke me
19590 #else
19591 char (*f) () = $ac_func;
19592 #endif
19593 #ifdef __cplusplus
19595 #endif
19598 main ()
19600 return f != $ac_func;
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607 (eval $ac_link) 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_c_werror_flag"
19615 || test ! -s conftest.err'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 eval "$as_ac_var=yes"
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 eval "$as_ac_var=no"
19634 rm -f conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19639 if test `eval echo '${'$as_ac_var'}'` = yes; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19642 _ACEOF
19645 done
19652 echo "$as_me:$LINENO: checking for expl declaration" >&5
19653 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19654 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19655 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19661 ac_ext=cc
19662 ac_cpp='$CXXCPP $CPPFLAGS'
19663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <math.h>
19674 #ifdef HAVE_IEEEFP_H
19675 #include <ieeefp.h>
19676 #endif
19679 main ()
19681 expl(0);
19683 return 0;
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_cxx_werror_flag"
19696 || test ! -s conftest.err'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 glibcxx_cv_func_expl_use=yes
19709 else
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 glibcxx_cv_func_expl_use=no
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 ac_ext=c
19717 ac_cpp='$CPP $CPPFLAGS'
19718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19727 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19729 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19731 for ac_func in expl
19733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19734 echo "$as_me:$LINENO: checking for $ac_func" >&5
19735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19736 if eval "test \"\${$as_ac_var+set}\" = set"; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739 if test x$gcc_no_link = xyes; then
19740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19742 { (exit 1); exit 1; }; }
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19752 #define $ac_func innocuous_$ac_func
19754 /* System header to define __stub macros and hopefully few prototypes,
19755 which can conflict with char $ac_func (); below.
19756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19757 <limits.h> exists even on freestanding compilers. */
19759 #ifdef __STDC__
19760 # include <limits.h>
19761 #else
19762 # include <assert.h>
19763 #endif
19765 #undef $ac_func
19767 /* Override any gcc2 internal prototype to avoid an error. */
19768 #ifdef __cplusplus
19769 extern "C"
19771 #endif
19772 /* We use char because int might match the return type of a gcc2
19773 builtin and then its argument prototype would still apply. */
19774 char $ac_func ();
19775 /* The GNU C library defines this for functions which it implements
19776 to always fail with ENOSYS. Some functions are actually named
19777 something starting with __ and the normal name is an alias. */
19778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19779 choke me
19780 #else
19781 char (*f) () = $ac_func;
19782 #endif
19783 #ifdef __cplusplus
19785 #endif
19788 main ()
19790 return f != $ac_func;
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 eval "$as_ac_var=yes"
19818 else
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 eval "$as_ac_var=no"
19824 rm -f conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19829 if test `eval echo '${'$as_ac_var'}'` = yes; then
19830 cat >>confdefs.h <<_ACEOF
19831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19832 _ACEOF
19835 done
19837 else
19839 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19840 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19841 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19842 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19848 ac_ext=cc
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <math.h>
19861 #ifdef HAVE_IEEEFP_H
19862 #include <ieeefp.h>
19863 #endif
19866 main ()
19868 _expl(0);
19870 return 0;
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875 (eval $ac_compile) 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -z "$ac_cxx_werror_flag"
19883 || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 glibcxx_cv_func__expl_use=yes
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 glibcxx_cv_func__expl_use=no
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903 ac_ext=c
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19913 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19914 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19916 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19918 for ac_func in _expl
19920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19921 echo "$as_me:$LINENO: checking for $ac_func" >&5
19922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19923 if eval "test \"\${$as_ac_var+set}\" = set"; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926 if test x$gcc_no_link = xyes; then
19927 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19928 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19929 { (exit 1); exit 1; }; }
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19946 #ifdef __STDC__
19947 # include <limits.h>
19948 #else
19949 # include <assert.h>
19950 #endif
19952 #undef $ac_func
19954 /* Override any gcc2 internal prototype to avoid an error. */
19955 #ifdef __cplusplus
19956 extern "C"
19958 #endif
19959 /* We use char because int might match the return type of a gcc2
19960 builtin and then its argument prototype would still apply. */
19961 char $ac_func ();
19962 /* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
19965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19966 choke me
19967 #else
19968 char (*f) () = $ac_func;
19969 #endif
19970 #ifdef __cplusplus
19972 #endif
19975 main ()
19977 return f != $ac_func;
19979 return 0;
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest$ac_exeext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 eval "$as_ac_var=yes"
20005 else
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 eval "$as_ac_var=no"
20011 rm -f conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20016 if test `eval echo '${'$as_ac_var'}'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20019 _ACEOF
20022 done
20029 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
20030 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
20031 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
20032 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20038 ac_ext=cc
20039 ac_cpp='$CXXCPP $CPPFLAGS'
20040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <math.h>
20051 #ifdef HAVE_IEEEFP_H
20052 #include <ieeefp.h>
20053 #endif
20056 main ()
20058 fabsl(0);
20060 return 0;
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_cxx_werror_flag"
20073 || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 glibcxx_cv_func_fabsl_use=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 glibcxx_cv_func_fabsl_use=no
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20093 ac_ext=c
20094 ac_cpp='$CPP $CPPFLAGS'
20095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20104 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20106 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20108 for ac_func in fabsl
20110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20111 echo "$as_me:$LINENO: checking for $ac_func" >&5
20112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20113 if eval "test \"\${$as_ac_var+set}\" = set"; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 if test x$gcc_no_link = xyes; then
20117 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20119 { (exit 1); exit 1; }; }
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h. */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20129 #define $ac_func innocuous_$ac_func
20131 /* System header to define __stub macros and hopefully few prototypes,
20132 which can conflict with char $ac_func (); below.
20133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20134 <limits.h> exists even on freestanding compilers. */
20136 #ifdef __STDC__
20137 # include <limits.h>
20138 #else
20139 # include <assert.h>
20140 #endif
20142 #undef $ac_func
20144 /* Override any gcc2 internal prototype to avoid an error. */
20145 #ifdef __cplusplus
20146 extern "C"
20148 #endif
20149 /* We use char because int might match the return type of a gcc2
20150 builtin and then its argument prototype would still apply. */
20151 char $ac_func ();
20152 /* The GNU C library defines this for functions which it implements
20153 to always fail with ENOSYS. Some functions are actually named
20154 something starting with __ and the normal name is an alias. */
20155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20156 choke me
20157 #else
20158 char (*f) () = $ac_func;
20159 #endif
20160 #ifdef __cplusplus
20162 #endif
20165 main ()
20167 return f != $ac_func;
20169 return 0;
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20174 (eval $ac_link) 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 eval "$as_ac_var=yes"
20195 else
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 eval "$as_ac_var=no"
20201 rm -f conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20206 if test `eval echo '${'$as_ac_var'}'` = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20209 _ACEOF
20212 done
20214 else
20216 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20217 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20218 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20219 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20225 ac_ext=cc
20226 ac_cpp='$CXXCPP $CPPFLAGS'
20227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 #include <math.h>
20238 #ifdef HAVE_IEEEFP_H
20239 #include <ieeefp.h>
20240 #endif
20243 main ()
20245 _fabsl(0);
20247 return 0;
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>conftest.er1
20253 ac_status=$?
20254 grep -v '^ *+' conftest.er1 >conftest.err
20255 rm -f conftest.er1
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_cxx_werror_flag"
20260 || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 glibcxx_cv_func__fabsl_use=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 glibcxx_cv_func__fabsl_use=no
20279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20290 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20291 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20293 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20295 for ac_func in _fabsl
20297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20298 echo "$as_me:$LINENO: checking for $ac_func" >&5
20299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20300 if eval "test \"\${$as_ac_var+set}\" = set"; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303 if test x$gcc_no_link = xyes; then
20304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20306 { (exit 1); exit 1; }; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20316 #define $ac_func innocuous_$ac_func
20318 /* System header to define __stub macros and hopefully few prototypes,
20319 which can conflict with char $ac_func (); below.
20320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20321 <limits.h> exists even on freestanding compilers. */
20323 #ifdef __STDC__
20324 # include <limits.h>
20325 #else
20326 # include <assert.h>
20327 #endif
20329 #undef $ac_func
20331 /* Override any gcc2 internal prototype to avoid an error. */
20332 #ifdef __cplusplus
20333 extern "C"
20335 #endif
20336 /* We use char because int might match the return type of a gcc2
20337 builtin and then its argument prototype would still apply. */
20338 char $ac_func ();
20339 /* The GNU C library defines this for functions which it implements
20340 to always fail with ENOSYS. Some functions are actually named
20341 something starting with __ and the normal name is an alias. */
20342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20343 choke me
20344 #else
20345 char (*f) () = $ac_func;
20346 #endif
20347 #ifdef __cplusplus
20349 #endif
20352 main ()
20354 return f != $ac_func;
20356 return 0;
20358 _ACEOF
20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20361 (eval $ac_link) 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest$ac_exeext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 eval "$as_ac_var=yes"
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 eval "$as_ac_var=no"
20388 rm -f conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20393 if test `eval echo '${'$as_ac_var'}'` = yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20396 _ACEOF
20399 done
20406 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20407 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20408 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20409 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20415 ac_ext=cc
20416 ac_cpp='$CXXCPP $CPPFLAGS'
20417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 #include <math.h>
20429 main ()
20431 fmodl(0, 0);
20433 return 0;
20435 _ACEOF
20436 rm -f conftest.$ac_objext
20437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20438 (eval $ac_compile) 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_cxx_werror_flag"
20446 || test ! -s conftest.err'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest.$ac_objext'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 glibcxx_cv_func_fmodl_use=yes
20459 else
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463 glibcxx_cv_func_fmodl_use=no
20465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20466 ac_ext=c
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20476 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20477 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20479 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20481 for ac_func in fmodl
20483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20484 echo "$as_me:$LINENO: checking for $ac_func" >&5
20485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20486 if eval "test \"\${$as_ac_var+set}\" = set"; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489 if test x$gcc_no_link = xyes; then
20490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20492 { (exit 1); exit 1; }; }
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20502 #define $ac_func innocuous_$ac_func
20504 /* System header to define __stub macros and hopefully few prototypes,
20505 which can conflict with char $ac_func (); below.
20506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20507 <limits.h> exists even on freestanding compilers. */
20509 #ifdef __STDC__
20510 # include <limits.h>
20511 #else
20512 # include <assert.h>
20513 #endif
20515 #undef $ac_func
20517 /* Override any gcc2 internal prototype to avoid an error. */
20518 #ifdef __cplusplus
20519 extern "C"
20521 #endif
20522 /* We use char because int might match the return type of a gcc2
20523 builtin and then its argument prototype would still apply. */
20524 char $ac_func ();
20525 /* The GNU C library defines this for functions which it implements
20526 to always fail with ENOSYS. Some functions are actually named
20527 something starting with __ and the normal name is an alias. */
20528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20529 choke me
20530 #else
20531 char (*f) () = $ac_func;
20532 #endif
20533 #ifdef __cplusplus
20535 #endif
20538 main ()
20540 return f != $ac_func;
20542 return 0;
20544 _ACEOF
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20547 (eval $ac_link) 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag"
20555 || test ! -s conftest.err'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest$ac_exeext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 eval "$as_ac_var=yes"
20568 else
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 eval "$as_ac_var=no"
20574 rm -f conftest.err conftest.$ac_objext \
20575 conftest$ac_exeext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20579 if test `eval echo '${'$as_ac_var'}'` = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20582 _ACEOF
20585 done
20587 else
20589 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20590 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20591 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20592 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20598 ac_ext=cc
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <math.h>
20612 main ()
20614 _fmodl(0, 0);
20616 return 0;
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>conftest.er1
20622 ac_status=$?
20623 grep -v '^ *+' conftest.er1 >conftest.err
20624 rm -f conftest.er1
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -z "$ac_cxx_werror_flag"
20629 || test ! -s conftest.err'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 glibcxx_cv_func__fmodl_use=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 glibcxx_cv_func__fmodl_use=no
20648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649 ac_ext=c
20650 ac_cpp='$CPP $CPPFLAGS'
20651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20660 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20662 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20664 for ac_func in _fmodl
20666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20667 echo "$as_me:$LINENO: checking for $ac_func" >&5
20668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20669 if eval "test \"\${$as_ac_var+set}\" = set"; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 if test x$gcc_no_link = xyes; then
20673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20675 { (exit 1); exit 1; }; }
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20685 #define $ac_func innocuous_$ac_func
20687 /* System header to define __stub macros and hopefully few prototypes,
20688 which can conflict with char $ac_func (); below.
20689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20690 <limits.h> exists even on freestanding compilers. */
20692 #ifdef __STDC__
20693 # include <limits.h>
20694 #else
20695 # include <assert.h>
20696 #endif
20698 #undef $ac_func
20700 /* Override any gcc2 internal prototype to avoid an error. */
20701 #ifdef __cplusplus
20702 extern "C"
20704 #endif
20705 /* We use char because int might match the return type of a gcc2
20706 builtin and then its argument prototype would still apply. */
20707 char $ac_func ();
20708 /* The GNU C library defines this for functions which it implements
20709 to always fail with ENOSYS. Some functions are actually named
20710 something starting with __ and the normal name is an alias. */
20711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20712 choke me
20713 #else
20714 char (*f) () = $ac_func;
20715 #endif
20716 #ifdef __cplusplus
20718 #endif
20721 main ()
20723 return f != $ac_func;
20725 return 0;
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } &&
20737 { ac_try='test -z "$ac_c_werror_flag"
20738 || test ! -s conftest.err'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 eval "$as_ac_var=yes"
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 eval "$as_ac_var=no"
20757 rm -f conftest.err conftest.$ac_objext \
20758 conftest$ac_exeext conftest.$ac_ext
20760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20762 if test `eval echo '${'$as_ac_var'}'` = yes; then
20763 cat >>confdefs.h <<_ACEOF
20764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20765 _ACEOF
20768 done
20775 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20776 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20777 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20778 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20784 ac_ext=cc
20785 ac_cpp='$CXXCPP $CPPFLAGS'
20786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h. */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 #include <math.h>
20798 main ()
20800 frexpl(0, 0);
20802 return 0;
20804 _ACEOF
20805 rm -f conftest.$ac_objext
20806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807 (eval $ac_compile) 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_cxx_werror_flag"
20815 || test ! -s conftest.err'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; } &&
20821 { ac_try='test -s conftest.$ac_objext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 glibcxx_cv_func_frexpl_use=yes
20828 else
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 glibcxx_cv_func_frexpl_use=no
20834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835 ac_ext=c
20836 ac_cpp='$CPP $CPPFLAGS'
20837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20846 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20848 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20850 for ac_func in frexpl
20852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20853 echo "$as_me:$LINENO: checking for $ac_func" >&5
20854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20855 if eval "test \"\${$as_ac_var+set}\" = set"; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 if test x$gcc_no_link = xyes; then
20859 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20861 { (exit 1); exit 1; }; }
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h. */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define $ac_func innocuous_$ac_func
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20878 #ifdef __STDC__
20879 # include <limits.h>
20880 #else
20881 # include <assert.h>
20882 #endif
20884 #undef $ac_func
20886 /* Override any gcc2 internal prototype to avoid an error. */
20887 #ifdef __cplusplus
20888 extern "C"
20890 #endif
20891 /* We use char because int might match the return type of a gcc2
20892 builtin and then its argument prototype would still apply. */
20893 char $ac_func ();
20894 /* The GNU C library defines this for functions which it implements
20895 to always fail with ENOSYS. Some functions are actually named
20896 something starting with __ and the normal name is an alias. */
20897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20898 choke me
20899 #else
20900 char (*f) () = $ac_func;
20901 #endif
20902 #ifdef __cplusplus
20904 #endif
20907 main ()
20909 return f != $ac_func;
20911 return 0;
20913 _ACEOF
20914 rm -f conftest.$ac_objext conftest$ac_exeext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20916 (eval $ac_link) 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_c_werror_flag"
20924 || test ! -s conftest.err'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest$ac_exeext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 eval "$as_ac_var=yes"
20937 else
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 eval "$as_ac_var=no"
20943 rm -f conftest.err conftest.$ac_objext \
20944 conftest$ac_exeext conftest.$ac_ext
20946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20948 if test `eval echo '${'$as_ac_var'}'` = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20951 _ACEOF
20954 done
20956 else
20958 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20959 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20960 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20961 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20967 ac_ext=cc
20968 ac_cpp='$CXXCPP $CPPFLAGS'
20969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20973 cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h. */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20979 #include <math.h>
20981 main ()
20983 _frexpl(0, 0);
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20990 (eval $ac_compile) 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_cxx_werror_flag"
20998 || test ! -s conftest.err'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try='test -s conftest.$ac_objext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 glibcxx_cv_func__frexpl_use=yes
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 glibcxx_cv_func__frexpl_use=no
21017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21018 ac_ext=c
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
21029 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
21031 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
21033 for ac_func in _frexpl
21035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21036 echo "$as_me:$LINENO: checking for $ac_func" >&5
21037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21038 if eval "test \"\${$as_ac_var+set}\" = set"; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041 if test x$gcc_no_link = xyes; then
21042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21044 { (exit 1); exit 1; }; }
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21054 #define $ac_func innocuous_$ac_func
21056 /* System header to define __stub macros and hopefully few prototypes,
21057 which can conflict with char $ac_func (); below.
21058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059 <limits.h> exists even on freestanding compilers. */
21061 #ifdef __STDC__
21062 # include <limits.h>
21063 #else
21064 # include <assert.h>
21065 #endif
21067 #undef $ac_func
21069 /* Override any gcc2 internal prototype to avoid an error. */
21070 #ifdef __cplusplus
21071 extern "C"
21073 #endif
21074 /* We use char because int might match the return type of a gcc2
21075 builtin and then its argument prototype would still apply. */
21076 char $ac_func ();
21077 /* The GNU C library defines this for functions which it implements
21078 to always fail with ENOSYS. Some functions are actually named
21079 something starting with __ and the normal name is an alias. */
21080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21081 choke me
21082 #else
21083 char (*f) () = $ac_func;
21084 #endif
21085 #ifdef __cplusplus
21087 #endif
21090 main ()
21092 return f != $ac_func;
21094 return 0;
21096 _ACEOF
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -z "$ac_c_werror_flag"
21107 || test ! -s conftest.err'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 eval "$as_ac_var=yes"
21120 else
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 eval "$as_ac_var=no"
21126 rm -f conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21131 if test `eval echo '${'$as_ac_var'}'` = yes; then
21132 cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21134 _ACEOF
21137 done
21144 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21145 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21146 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21147 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21153 ac_ext=cc
21154 ac_cpp='$CXXCPP $CPPFLAGS'
21155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <math.h>
21167 main ()
21169 hypotl(0, 0);
21171 return 0;
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_cxx_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21196 glibcxx_cv_func_hypotl_use=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 glibcxx_cv_func_hypotl_use=no
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 ac_ext=c
21205 ac_cpp='$CPP $CPPFLAGS'
21206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21215 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21217 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21219 for ac_func in hypotl
21221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21222 echo "$as_me:$LINENO: checking for $ac_func" >&5
21223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21224 if eval "test \"\${$as_ac_var+set}\" = set"; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227 if test x$gcc_no_link = xyes; then
21228 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21229 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21230 { (exit 1); exit 1; }; }
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21240 #define $ac_func innocuous_$ac_func
21242 /* System header to define __stub macros and hopefully few prototypes,
21243 which can conflict with char $ac_func (); below.
21244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21245 <limits.h> exists even on freestanding compilers. */
21247 #ifdef __STDC__
21248 # include <limits.h>
21249 #else
21250 # include <assert.h>
21251 #endif
21253 #undef $ac_func
21255 /* Override any gcc2 internal prototype to avoid an error. */
21256 #ifdef __cplusplus
21257 extern "C"
21259 #endif
21260 /* We use char because int might match the return type of a gcc2
21261 builtin and then its argument prototype would still apply. */
21262 char $ac_func ();
21263 /* The GNU C library defines this for functions which it implements
21264 to always fail with ENOSYS. Some functions are actually named
21265 something starting with __ and the normal name is an alias. */
21266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21267 choke me
21268 #else
21269 char (*f) () = $ac_func;
21270 #endif
21271 #ifdef __cplusplus
21273 #endif
21276 main ()
21278 return f != $ac_func;
21280 return 0;
21282 _ACEOF
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21285 (eval $ac_link) 2>conftest.er1
21286 ac_status=$?
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
21292 { ac_try='test -z "$ac_c_werror_flag"
21293 || test ! -s conftest.err'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest$ac_exeext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 eval "$as_ac_var=yes"
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 eval "$as_ac_var=no"
21312 rm -f conftest.err conftest.$ac_objext \
21313 conftest$ac_exeext conftest.$ac_ext
21315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21317 if test `eval echo '${'$as_ac_var'}'` = yes; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21320 _ACEOF
21323 done
21325 else
21327 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21328 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21329 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21330 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21336 ac_ext=cc
21337 ac_cpp='$CXXCPP $CPPFLAGS'
21338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h. */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 #include <math.h>
21350 main ()
21352 _hypotl(0, 0);
21354 return 0;
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try='test -z "$ac_cxx_werror_flag"
21367 || test ! -s conftest.err'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 glibcxx_cv_func__hypotl_use=yes
21380 else
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 glibcxx_cv_func__hypotl_use=no
21386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21387 ac_ext=c
21388 ac_cpp='$CPP $CPPFLAGS'
21389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21397 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21398 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21400 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21402 for ac_func in _hypotl
21404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405 echo "$as_me:$LINENO: checking for $ac_func" >&5
21406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21407 if eval "test \"\${$as_ac_var+set}\" = set"; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410 if test x$gcc_no_link = xyes; then
21411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21413 { (exit 1); exit 1; }; }
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define $ac_func innocuous_$ac_func
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char $ac_func (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21430 #ifdef __STDC__
21431 # include <limits.h>
21432 #else
21433 # include <assert.h>
21434 #endif
21436 #undef $ac_func
21438 /* Override any gcc2 internal prototype to avoid an error. */
21439 #ifdef __cplusplus
21440 extern "C"
21442 #endif
21443 /* We use char because int might match the return type of a gcc2
21444 builtin and then its argument prototype would still apply. */
21445 char $ac_func ();
21446 /* The GNU C library defines this for functions which it implements
21447 to always fail with ENOSYS. Some functions are actually named
21448 something starting with __ and the normal name is an alias. */
21449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21450 choke me
21451 #else
21452 char (*f) () = $ac_func;
21453 #endif
21454 #ifdef __cplusplus
21456 #endif
21459 main ()
21461 return f != $ac_func;
21463 return 0;
21465 _ACEOF
21466 rm -f conftest.$ac_objext conftest$ac_exeext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468 (eval $ac_link) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_c_werror_flag"
21476 || test ! -s conftest.err'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest$ac_exeext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 eval "$as_ac_var=yes"
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 eval "$as_ac_var=no"
21495 rm -f conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21500 if test `eval echo '${'$as_ac_var'}'` = yes; then
21501 cat >>confdefs.h <<_ACEOF
21502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21503 _ACEOF
21506 done
21513 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21514 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21515 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21516 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21522 ac_ext=cc
21523 ac_cpp='$CXXCPP $CPPFLAGS'
21524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21528 cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h. */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 #include <math.h>
21536 main ()
21538 ldexpl(0, 0);
21540 return 0;
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
21552 { ac_try='test -z "$ac_cxx_werror_flag"
21553 || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 glibcxx_cv_func_ldexpl_use=yes
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 glibcxx_cv_func_ldexpl_use=no
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 ac_ext=c
21574 ac_cpp='$CPP $CPPFLAGS'
21575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21583 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21584 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21586 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21588 for ac_func in ldexpl
21590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21591 echo "$as_me:$LINENO: checking for $ac_func" >&5
21592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_var+set}\" = set"; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596 if test x$gcc_no_link = xyes; then
21597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21599 { (exit 1); exit 1; }; }
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h. */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21609 #define $ac_func innocuous_$ac_func
21611 /* System header to define __stub macros and hopefully few prototypes,
21612 which can conflict with char $ac_func (); below.
21613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21614 <limits.h> exists even on freestanding compilers. */
21616 #ifdef __STDC__
21617 # include <limits.h>
21618 #else
21619 # include <assert.h>
21620 #endif
21622 #undef $ac_func
21624 /* Override any gcc2 internal prototype to avoid an error. */
21625 #ifdef __cplusplus
21626 extern "C"
21628 #endif
21629 /* We use char because int might match the return type of a gcc2
21630 builtin and then its argument prototype would still apply. */
21631 char $ac_func ();
21632 /* The GNU C library defines this for functions which it implements
21633 to always fail with ENOSYS. Some functions are actually named
21634 something starting with __ and the normal name is an alias. */
21635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21636 choke me
21637 #else
21638 char (*f) () = $ac_func;
21639 #endif
21640 #ifdef __cplusplus
21642 #endif
21645 main ()
21647 return f != $ac_func;
21649 return 0;
21651 _ACEOF
21652 rm -f conftest.$ac_objext conftest$ac_exeext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21654 (eval $ac_link) 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest$ac_exeext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 eval "$as_ac_var=yes"
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 eval "$as_ac_var=no"
21681 rm -f conftest.err conftest.$ac_objext \
21682 conftest$ac_exeext conftest.$ac_ext
21684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21686 if test `eval echo '${'$as_ac_var'}'` = yes; then
21687 cat >>confdefs.h <<_ACEOF
21688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21689 _ACEOF
21692 done
21694 else
21696 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21697 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21698 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21699 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21705 ac_ext=cc
21706 ac_cpp='$CXXCPP $CPPFLAGS'
21707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <math.h>
21719 main ()
21721 _ldexpl(0, 0);
21723 return 0;
21725 _ACEOF
21726 rm -f conftest.$ac_objext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21728 (eval $ac_compile) 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
21735 { ac_try='test -z "$ac_cxx_werror_flag"
21736 || test ! -s conftest.err'
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest.$ac_objext'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 glibcxx_cv_func__ldexpl_use=yes
21749 else
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21753 glibcxx_cv_func__ldexpl_use=no
21755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21756 ac_ext=c
21757 ac_cpp='$CPP $CPPFLAGS'
21758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21766 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21767 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21769 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21771 for ac_func in _ldexpl
21773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21774 echo "$as_me:$LINENO: checking for $ac_func" >&5
21775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21776 if eval "test \"\${$as_ac_var+set}\" = set"; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 if test x$gcc_no_link = xyes; then
21780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21782 { (exit 1); exit 1; }; }
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21792 #define $ac_func innocuous_$ac_func
21794 /* System header to define __stub macros and hopefully few prototypes,
21795 which can conflict with char $ac_func (); below.
21796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21797 <limits.h> exists even on freestanding compilers. */
21799 #ifdef __STDC__
21800 # include <limits.h>
21801 #else
21802 # include <assert.h>
21803 #endif
21805 #undef $ac_func
21807 /* Override any gcc2 internal prototype to avoid an error. */
21808 #ifdef __cplusplus
21809 extern "C"
21811 #endif
21812 /* We use char because int might match the return type of a gcc2
21813 builtin and then its argument prototype would still apply. */
21814 char $ac_func ();
21815 /* The GNU C library defines this for functions which it implements
21816 to always fail with ENOSYS. Some functions are actually named
21817 something starting with __ and the normal name is an alias. */
21818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21819 choke me
21820 #else
21821 char (*f) () = $ac_func;
21822 #endif
21823 #ifdef __cplusplus
21825 #endif
21828 main ()
21830 return f != $ac_func;
21832 return 0;
21834 _ACEOF
21835 rm -f conftest.$ac_objext conftest$ac_exeext
21836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21837 (eval $ac_link) 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
21844 { ac_try='test -z "$ac_c_werror_flag"
21845 || test ! -s conftest.err'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest$ac_exeext'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857 eval "$as_ac_var=yes"
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 eval "$as_ac_var=no"
21864 rm -f conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21869 if test `eval echo '${'$as_ac_var'}'` = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21872 _ACEOF
21875 done
21882 echo "$as_me:$LINENO: checking for logl declaration" >&5
21883 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21884 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21885 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21891 ac_ext=cc
21892 ac_cpp='$CXXCPP $CPPFLAGS'
21893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <math.h>
21904 #ifdef HAVE_IEEEFP_H
21905 #include <ieeefp.h>
21906 #endif
21909 main ()
21911 logl(0);
21913 return 0;
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918 (eval $ac_compile) 2>conftest.er1
21919 ac_status=$?
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
21925 { ac_try='test -z "$ac_cxx_werror_flag"
21926 || test ! -s conftest.err'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest.$ac_objext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 glibcxx_cv_func_logl_use=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 glibcxx_cv_func_logl_use=no
21945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21946 ac_ext=c
21947 ac_cpp='$CPP $CPPFLAGS'
21948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21956 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21957 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21959 if test x$glibcxx_cv_func_logl_use = x"yes"; then
21961 for ac_func in logl
21963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21964 echo "$as_me:$LINENO: checking for $ac_func" >&5
21965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21966 if eval "test \"\${$as_ac_var+set}\" = set"; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969 if test x$gcc_no_link = xyes; then
21970 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21972 { (exit 1); exit 1; }; }
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21982 #define $ac_func innocuous_$ac_func
21984 /* System header to define __stub macros and hopefully few prototypes,
21985 which can conflict with char $ac_func (); below.
21986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21987 <limits.h> exists even on freestanding compilers. */
21989 #ifdef __STDC__
21990 # include <limits.h>
21991 #else
21992 # include <assert.h>
21993 #endif
21995 #undef $ac_func
21997 /* Override any gcc2 internal prototype to avoid an error. */
21998 #ifdef __cplusplus
21999 extern "C"
22001 #endif
22002 /* We use char because int might match the return type of a gcc2
22003 builtin and then its argument prototype would still apply. */
22004 char $ac_func ();
22005 /* The GNU C library defines this for functions which it implements
22006 to always fail with ENOSYS. Some functions are actually named
22007 something starting with __ and the normal name is an alias. */
22008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22009 choke me
22010 #else
22011 char (*f) () = $ac_func;
22012 #endif
22013 #ifdef __cplusplus
22015 #endif
22018 main ()
22020 return f != $ac_func;
22022 return 0;
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>conftest.er1
22028 ac_status=$?
22029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_c_werror_flag"
22035 || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 eval "$as_ac_var=yes"
22048 else
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 eval "$as_ac_var=no"
22054 rm -f conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22062 _ACEOF
22065 done
22067 else
22069 echo "$as_me:$LINENO: checking for _logl declaration" >&5
22070 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22071 if test x${glibcxx_cv_func__logl_use+set} != xset; then
22072 if test "${glibcxx_cv_func__logl_use+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22078 ac_ext=cc
22079 ac_cpp='$CXXCPP $CPPFLAGS'
22080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <math.h>
22091 #ifdef HAVE_IEEEFP_H
22092 #include <ieeefp.h>
22093 #endif
22096 main ()
22098 _logl(0);
22100 return 0;
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105 (eval $ac_compile) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_cxx_werror_flag"
22113 || test ! -s conftest.err'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest.$ac_objext'
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 glibcxx_cv_func__logl_use=yes
22126 else
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 glibcxx_cv_func__logl_use=no
22132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22133 ac_ext=c
22134 ac_cpp='$CPP $CPPFLAGS'
22135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22143 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22144 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22146 if test x$glibcxx_cv_func__logl_use = x"yes"; then
22148 for ac_func in _logl
22150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22151 echo "$as_me:$LINENO: checking for $ac_func" >&5
22152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22153 if eval "test \"\${$as_ac_var+set}\" = set"; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156 if test x$gcc_no_link = xyes; then
22157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22159 { (exit 1); exit 1; }; }
22161 cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h. */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22169 #define $ac_func innocuous_$ac_func
22171 /* System header to define __stub macros and hopefully few prototypes,
22172 which can conflict with char $ac_func (); below.
22173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22174 <limits.h> exists even on freestanding compilers. */
22176 #ifdef __STDC__
22177 # include <limits.h>
22178 #else
22179 # include <assert.h>
22180 #endif
22182 #undef $ac_func
22184 /* Override any gcc2 internal prototype to avoid an error. */
22185 #ifdef __cplusplus
22186 extern "C"
22188 #endif
22189 /* We use char because int might match the return type of a gcc2
22190 builtin and then its argument prototype would still apply. */
22191 char $ac_func ();
22192 /* The GNU C library defines this for functions which it implements
22193 to always fail with ENOSYS. Some functions are actually named
22194 something starting with __ and the normal name is an alias. */
22195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22196 choke me
22197 #else
22198 char (*f) () = $ac_func;
22199 #endif
22200 #ifdef __cplusplus
22202 #endif
22205 main ()
22207 return f != $ac_func;
22209 return 0;
22211 _ACEOF
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22214 (eval $ac_link) 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try='test -z "$ac_c_werror_flag"
22222 || test ! -s conftest.err'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest$ac_exeext'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 eval "$as_ac_var=yes"
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 eval "$as_ac_var=no"
22241 rm -f conftest.err conftest.$ac_objext \
22242 conftest$ac_exeext conftest.$ac_ext
22244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22246 if test `eval echo '${'$as_ac_var'}'` = yes; then
22247 cat >>confdefs.h <<_ACEOF
22248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22249 _ACEOF
22252 done
22259 echo "$as_me:$LINENO: checking for log10l declaration" >&5
22260 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22261 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22262 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22268 ac_ext=cc
22269 ac_cpp='$CXXCPP $CPPFLAGS'
22270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h. */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 #include <math.h>
22281 #ifdef HAVE_IEEEFP_H
22282 #include <ieeefp.h>
22283 #endif
22286 main ()
22288 log10l(0);
22290 return 0;
22292 _ACEOF
22293 rm -f conftest.$ac_objext
22294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22295 (eval $ac_compile) 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_cxx_werror_flag"
22303 || test ! -s conftest.err'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; } &&
22309 { ac_try='test -s conftest.$ac_objext'
22310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; }; then
22315 glibcxx_cv_func_log10l_use=yes
22316 else
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 glibcxx_cv_func_log10l_use=no
22322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22323 ac_ext=c
22324 ac_cpp='$CPP $CPPFLAGS'
22325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22334 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22336 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22338 for ac_func in log10l
22340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22341 echo "$as_me:$LINENO: checking for $ac_func" >&5
22342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22343 if eval "test \"\${$as_ac_var+set}\" = set"; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346 if test x$gcc_no_link = xyes; then
22347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22349 { (exit 1); exit 1; }; }
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22359 #define $ac_func innocuous_$ac_func
22361 /* System header to define __stub macros and hopefully few prototypes,
22362 which can conflict with char $ac_func (); below.
22363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364 <limits.h> exists even on freestanding compilers. */
22366 #ifdef __STDC__
22367 # include <limits.h>
22368 #else
22369 # include <assert.h>
22370 #endif
22372 #undef $ac_func
22374 /* Override any gcc2 internal prototype to avoid an error. */
22375 #ifdef __cplusplus
22376 extern "C"
22378 #endif
22379 /* We use char because int might match the return type of a gcc2
22380 builtin and then its argument prototype would still apply. */
22381 char $ac_func ();
22382 /* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
22385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22386 choke me
22387 #else
22388 char (*f) () = $ac_func;
22389 #endif
22390 #ifdef __cplusplus
22392 #endif
22395 main ()
22397 return f != $ac_func;
22399 return 0;
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22404 (eval $ac_link) 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
22411 { ac_try='test -z "$ac_c_werror_flag"
22412 || test ! -s conftest.err'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest$ac_exeext'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22424 eval "$as_ac_var=yes"
22425 else
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 eval "$as_ac_var=no"
22431 rm -f conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22436 if test `eval echo '${'$as_ac_var'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22439 _ACEOF
22442 done
22444 else
22446 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22447 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22448 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22449 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 else
22455 ac_ext=cc
22456 ac_cpp='$CXXCPP $CPPFLAGS'
22457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <math.h>
22468 #ifdef HAVE_IEEEFP_H
22469 #include <ieeefp.h>
22470 #endif
22473 main ()
22475 _log10l(0);
22477 return 0;
22479 _ACEOF
22480 rm -f conftest.$ac_objext
22481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22482 (eval $ac_compile) 2>conftest.er1
22483 ac_status=$?
22484 grep -v '^ *+' conftest.er1 >conftest.err
22485 rm -f conftest.er1
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_cxx_werror_flag"
22490 || test ! -s conftest.err'
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; } &&
22496 { ac_try='test -s conftest.$ac_objext'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; }; then
22502 glibcxx_cv_func__log10l_use=yes
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 glibcxx_cv_func__log10l_use=no
22509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22510 ac_ext=c
22511 ac_cpp='$CPP $CPPFLAGS'
22512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22520 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22521 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22523 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22525 for ac_func in _log10l
22527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22528 echo "$as_me:$LINENO: checking for $ac_func" >&5
22529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22530 if eval "test \"\${$as_ac_var+set}\" = set"; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 if test x$gcc_no_link = xyes; then
22534 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22536 { (exit 1); exit 1; }; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22546 #define $ac_func innocuous_$ac_func
22548 /* System header to define __stub macros and hopefully few prototypes,
22549 which can conflict with char $ac_func (); below.
22550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22551 <limits.h> exists even on freestanding compilers. */
22553 #ifdef __STDC__
22554 # include <limits.h>
22555 #else
22556 # include <assert.h>
22557 #endif
22559 #undef $ac_func
22561 /* Override any gcc2 internal prototype to avoid an error. */
22562 #ifdef __cplusplus
22563 extern "C"
22565 #endif
22566 /* We use char because int might match the return type of a gcc2
22567 builtin and then its argument prototype would still apply. */
22568 char $ac_func ();
22569 /* The GNU C library defines this for functions which it implements
22570 to always fail with ENOSYS. Some functions are actually named
22571 something starting with __ and the normal name is an alias. */
22572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22573 choke me
22574 #else
22575 char (*f) () = $ac_func;
22576 #endif
22577 #ifdef __cplusplus
22579 #endif
22582 main ()
22584 return f != $ac_func;
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>conftest.er1
22592 ac_status=$?
22593 grep -v '^ *+' conftest.er1 >conftest.err
22594 rm -f conftest.er1
22595 cat conftest.err >&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } &&
22598 { ac_try='test -z "$ac_c_werror_flag"
22599 || test ! -s conftest.err'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; } &&
22605 { ac_try='test -s conftest$ac_exeext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 eval "$as_ac_var=yes"
22612 else
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 eval "$as_ac_var=no"
22618 rm -f conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22623 if test `eval echo '${'$as_ac_var'}'` = yes; then
22624 cat >>confdefs.h <<_ACEOF
22625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22626 _ACEOF
22629 done
22636 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22637 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22638 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22639 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22645 ac_ext=cc
22646 ac_cpp='$CXXCPP $CPPFLAGS'
22647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 #include <math.h>
22659 main ()
22661 modfl(0, 0);
22663 return 0;
22665 _ACEOF
22666 rm -f conftest.$ac_objext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22668 (eval $ac_compile) 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } &&
22675 { ac_try='test -z "$ac_cxx_werror_flag"
22676 || test ! -s conftest.err'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; } &&
22682 { ac_try='test -s conftest.$ac_objext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 glibcxx_cv_func_modfl_use=yes
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 glibcxx_cv_func_modfl_use=no
22695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22696 ac_ext=c
22697 ac_cpp='$CPP $CPPFLAGS'
22698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22706 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22707 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22709 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22711 for ac_func in modfl
22713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22714 echo "$as_me:$LINENO: checking for $ac_func" >&5
22715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22716 if eval "test \"\${$as_ac_var+set}\" = set"; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719 if test x$gcc_no_link = xyes; then
22720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22722 { (exit 1); exit 1; }; }
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22732 #define $ac_func innocuous_$ac_func
22734 /* System header to define __stub macros and hopefully few prototypes,
22735 which can conflict with char $ac_func (); below.
22736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22737 <limits.h> exists even on freestanding compilers. */
22739 #ifdef __STDC__
22740 # include <limits.h>
22741 #else
22742 # include <assert.h>
22743 #endif
22745 #undef $ac_func
22747 /* Override any gcc2 internal prototype to avoid an error. */
22748 #ifdef __cplusplus
22749 extern "C"
22751 #endif
22752 /* We use char because int might match the return type of a gcc2
22753 builtin and then its argument prototype would still apply. */
22754 char $ac_func ();
22755 /* The GNU C library defines this for functions which it implements
22756 to always fail with ENOSYS. Some functions are actually named
22757 something starting with __ and the normal name is an alias. */
22758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22759 choke me
22760 #else
22761 char (*f) () = $ac_func;
22762 #endif
22763 #ifdef __cplusplus
22765 #endif
22768 main ()
22770 return f != $ac_func;
22772 return 0;
22774 _ACEOF
22775 rm -f conftest.$ac_objext conftest$ac_exeext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777 (eval $ac_link) 2>conftest.er1
22778 ac_status=$?
22779 grep -v '^ *+' conftest.er1 >conftest.err
22780 rm -f conftest.er1
22781 cat conftest.err >&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } &&
22784 { ac_try='test -z "$ac_c_werror_flag"
22785 || test ! -s conftest.err'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; } &&
22791 { ac_try='test -s conftest$ac_exeext'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
22797 eval "$as_ac_var=yes"
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 eval "$as_ac_var=no"
22804 rm -f conftest.err conftest.$ac_objext \
22805 conftest$ac_exeext conftest.$ac_ext
22807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22809 if test `eval echo '${'$as_ac_var'}'` = yes; then
22810 cat >>confdefs.h <<_ACEOF
22811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22812 _ACEOF
22815 done
22817 else
22819 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22820 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22821 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22822 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22828 ac_ext=cc
22829 ac_cpp='$CXXCPP $CPPFLAGS'
22830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22834 cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h. */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <math.h>
22842 main ()
22844 _modfl(0, 0);
22846 return 0;
22848 _ACEOF
22849 rm -f conftest.$ac_objext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22851 (eval $ac_compile) 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
22855 cat conftest.err >&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } &&
22858 { ac_try='test -z "$ac_cxx_werror_flag"
22859 || test ! -s conftest.err'
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; } &&
22865 { ac_try='test -s conftest.$ac_objext'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; }; then
22871 glibcxx_cv_func__modfl_use=yes
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 glibcxx_cv_func__modfl_use=no
22878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22879 ac_ext=c
22880 ac_cpp='$CPP $CPPFLAGS'
22881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22889 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22890 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22892 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22894 for ac_func in _modfl
22896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22897 echo "$as_me:$LINENO: checking for $ac_func" >&5
22898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22899 if eval "test \"\${$as_ac_var+set}\" = set"; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902 if test x$gcc_no_link = xyes; then
22903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22905 { (exit 1); exit 1; }; }
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h. */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22915 #define $ac_func innocuous_$ac_func
22917 /* System header to define __stub macros and hopefully few prototypes,
22918 which can conflict with char $ac_func (); below.
22919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22920 <limits.h> exists even on freestanding compilers. */
22922 #ifdef __STDC__
22923 # include <limits.h>
22924 #else
22925 # include <assert.h>
22926 #endif
22928 #undef $ac_func
22930 /* Override any gcc2 internal prototype to avoid an error. */
22931 #ifdef __cplusplus
22932 extern "C"
22934 #endif
22935 /* We use char because int might match the return type of a gcc2
22936 builtin and then its argument prototype would still apply. */
22937 char $ac_func ();
22938 /* The GNU C library defines this for functions which it implements
22939 to always fail with ENOSYS. Some functions are actually named
22940 something starting with __ and the normal name is an alias. */
22941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22942 choke me
22943 #else
22944 char (*f) () = $ac_func;
22945 #endif
22946 #ifdef __cplusplus
22948 #endif
22951 main ()
22953 return f != $ac_func;
22955 return 0;
22957 _ACEOF
22958 rm -f conftest.$ac_objext conftest$ac_exeext
22959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22960 (eval $ac_link) 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } &&
22967 { ac_try='test -z "$ac_c_werror_flag"
22968 || test ! -s conftest.err'
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; } &&
22974 { ac_try='test -s conftest$ac_exeext'
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 eval "$as_ac_var=yes"
22981 else
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 eval "$as_ac_var=no"
22987 rm -f conftest.err conftest.$ac_objext \
22988 conftest$ac_exeext conftest.$ac_ext
22990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22992 if test `eval echo '${'$as_ac_var'}'` = yes; then
22993 cat >>confdefs.h <<_ACEOF
22994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22995 _ACEOF
22998 done
23005 echo "$as_me:$LINENO: checking for powl declaration" >&5
23006 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
23007 if test x${glibcxx_cv_func_powl_use+set} != xset; then
23008 if test "${glibcxx_cv_func_powl_use+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23014 ac_ext=cc
23015 ac_cpp='$CXXCPP $CPPFLAGS'
23016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 #include <math.h>
23028 main ()
23030 powl(0, 0);
23032 return 0;
23034 _ACEOF
23035 rm -f conftest.$ac_objext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23037 (eval $ac_compile) 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_cxx_werror_flag"
23045 || test ! -s conftest.err'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest.$ac_objext'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; }; then
23057 glibcxx_cv_func_powl_use=yes
23058 else
23059 echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23062 glibcxx_cv_func_powl_use=no
23064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23065 ac_ext=c
23066 ac_cpp='$CPP $CPPFLAGS'
23067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23076 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23078 if test x$glibcxx_cv_func_powl_use = x"yes"; then
23080 for ac_func in powl
23082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23083 echo "$as_me:$LINENO: checking for $ac_func" >&5
23084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23085 if eval "test \"\${$as_ac_var+set}\" = set"; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 else
23088 if test x$gcc_no_link = xyes; then
23089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23091 { (exit 1); exit 1; }; }
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23101 #define $ac_func innocuous_$ac_func
23103 /* System header to define __stub macros and hopefully few prototypes,
23104 which can conflict with char $ac_func (); below.
23105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23106 <limits.h> exists even on freestanding compilers. */
23108 #ifdef __STDC__
23109 # include <limits.h>
23110 #else
23111 # include <assert.h>
23112 #endif
23114 #undef $ac_func
23116 /* Override any gcc2 internal prototype to avoid an error. */
23117 #ifdef __cplusplus
23118 extern "C"
23120 #endif
23121 /* We use char because int might match the return type of a gcc2
23122 builtin and then its argument prototype would still apply. */
23123 char $ac_func ();
23124 /* The GNU C library defines this for functions which it implements
23125 to always fail with ENOSYS. Some functions are actually named
23126 something starting with __ and the normal name is an alias. */
23127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23128 choke me
23129 #else
23130 char (*f) () = $ac_func;
23131 #endif
23132 #ifdef __cplusplus
23134 #endif
23137 main ()
23139 return f != $ac_func;
23141 return 0;
23143 _ACEOF
23144 rm -f conftest.$ac_objext conftest$ac_exeext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23146 (eval $ac_link) 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest$ac_exeext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 eval "$as_ac_var=yes"
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 eval "$as_ac_var=no"
23173 rm -f conftest.err conftest.$ac_objext \
23174 conftest$ac_exeext conftest.$ac_ext
23176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23178 if test `eval echo '${'$as_ac_var'}'` = yes; then
23179 cat >>confdefs.h <<_ACEOF
23180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23181 _ACEOF
23184 done
23186 else
23188 echo "$as_me:$LINENO: checking for _powl declaration" >&5
23189 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23190 if test x${glibcxx_cv_func__powl_use+set} != xset; then
23191 if test "${glibcxx_cv_func__powl_use+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 else
23197 ac_ext=cc
23198 ac_cpp='$CXXCPP $CPPFLAGS'
23199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h. */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <math.h>
23211 main ()
23213 _powl(0, 0);
23215 return 0;
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23220 (eval $ac_compile) 2>conftest.er1
23221 ac_status=$?
23222 grep -v '^ *+' conftest.er1 >conftest.err
23223 rm -f conftest.er1
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } &&
23227 { ac_try='test -z "$ac_cxx_werror_flag"
23228 || test ! -s conftest.err'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try='test -s conftest.$ac_objext'
23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23237 ac_status=$?
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; }; then
23240 glibcxx_cv_func__powl_use=yes
23241 else
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 glibcxx_cv_func__powl_use=no
23247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23248 ac_ext=c
23249 ac_cpp='$CPP $CPPFLAGS'
23250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23258 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23259 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23261 if test x$glibcxx_cv_func__powl_use = x"yes"; then
23263 for ac_func in _powl
23265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23266 echo "$as_me:$LINENO: checking for $ac_func" >&5
23267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23268 if eval "test \"\${$as_ac_var+set}\" = set"; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271 if test x$gcc_no_link = xyes; then
23272 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23273 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23274 { (exit 1); exit 1; }; }
23276 cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h. */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h. */
23282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23284 #define $ac_func innocuous_$ac_func
23286 /* System header to define __stub macros and hopefully few prototypes,
23287 which can conflict with char $ac_func (); below.
23288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23289 <limits.h> exists even on freestanding compilers. */
23291 #ifdef __STDC__
23292 # include <limits.h>
23293 #else
23294 # include <assert.h>
23295 #endif
23297 #undef $ac_func
23299 /* Override any gcc2 internal prototype to avoid an error. */
23300 #ifdef __cplusplus
23301 extern "C"
23303 #endif
23304 /* We use char because int might match the return type of a gcc2
23305 builtin and then its argument prototype would still apply. */
23306 char $ac_func ();
23307 /* The GNU C library defines this for functions which it implements
23308 to always fail with ENOSYS. Some functions are actually named
23309 something starting with __ and the normal name is an alias. */
23310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23311 choke me
23312 #else
23313 char (*f) () = $ac_func;
23314 #endif
23315 #ifdef __cplusplus
23317 #endif
23320 main ()
23322 return f != $ac_func;
23324 return 0;
23326 _ACEOF
23327 rm -f conftest.$ac_objext conftest$ac_exeext
23328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23329 (eval $ac_link) 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } &&
23336 { ac_try='test -z "$ac_c_werror_flag"
23337 || test ! -s conftest.err'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; } &&
23343 { ac_try='test -s conftest$ac_exeext'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 eval "$as_ac_var=yes"
23350 else
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 eval "$as_ac_var=no"
23356 rm -f conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23361 if test `eval echo '${'$as_ac_var'}'` = yes; then
23362 cat >>confdefs.h <<_ACEOF
23363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23364 _ACEOF
23367 done
23374 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23375 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23376 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23377 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23379 else
23383 ac_ext=cc
23384 ac_cpp='$CXXCPP $CPPFLAGS'
23385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23389 cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h. */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 #include <math.h>
23396 #ifdef HAVE_IEEEFP_H
23397 #include <ieeefp.h>
23398 #endif
23401 main ()
23403 sqrtl(0);
23405 return 0;
23407 _ACEOF
23408 rm -f conftest.$ac_objext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23410 (eval $ac_compile) 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } &&
23417 { ac_try='test -z "$ac_cxx_werror_flag"
23418 || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } &&
23424 { ac_try='test -s conftest.$ac_objext'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 glibcxx_cv_func_sqrtl_use=yes
23431 else
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 glibcxx_cv_func_sqrtl_use=no
23437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23438 ac_ext=c
23439 ac_cpp='$CPP $CPPFLAGS'
23440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23448 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23449 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23451 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23453 for ac_func in sqrtl
23455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23456 echo "$as_me:$LINENO: checking for $ac_func" >&5
23457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23458 if eval "test \"\${$as_ac_var+set}\" = set"; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 else
23461 if test x$gcc_no_link = xyes; then
23462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23464 { (exit 1); exit 1; }; }
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23474 #define $ac_func innocuous_$ac_func
23476 /* System header to define __stub macros and hopefully few prototypes,
23477 which can conflict with char $ac_func (); below.
23478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23479 <limits.h> exists even on freestanding compilers. */
23481 #ifdef __STDC__
23482 # include <limits.h>
23483 #else
23484 # include <assert.h>
23485 #endif
23487 #undef $ac_func
23489 /* Override any gcc2 internal prototype to avoid an error. */
23490 #ifdef __cplusplus
23491 extern "C"
23493 #endif
23494 /* We use char because int might match the return type of a gcc2
23495 builtin and then its argument prototype would still apply. */
23496 char $ac_func ();
23497 /* The GNU C library defines this for functions which it implements
23498 to always fail with ENOSYS. Some functions are actually named
23499 something starting with __ and the normal name is an alias. */
23500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23501 choke me
23502 #else
23503 char (*f) () = $ac_func;
23504 #endif
23505 #ifdef __cplusplus
23507 #endif
23510 main ()
23512 return f != $ac_func;
23514 return 0;
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23519 (eval $ac_link) 2>conftest.er1
23520 ac_status=$?
23521 grep -v '^ *+' conftest.er1 >conftest.err
23522 rm -f conftest.er1
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } &&
23526 { ac_try='test -z "$ac_c_werror_flag"
23527 || test ! -s conftest.err'
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; } &&
23533 { ac_try='test -s conftest$ac_exeext'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 eval "$as_ac_var=yes"
23540 else
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 eval "$as_ac_var=no"
23546 rm -f conftest.err conftest.$ac_objext \
23547 conftest$ac_exeext conftest.$ac_ext
23549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23551 if test `eval echo '${'$as_ac_var'}'` = yes; then
23552 cat >>confdefs.h <<_ACEOF
23553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23554 _ACEOF
23557 done
23559 else
23561 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23562 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23563 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23564 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 else
23570 ac_ext=cc
23571 ac_cpp='$CXXCPP $CPPFLAGS'
23572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23576 cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h. */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 #include <math.h>
23583 #ifdef HAVE_IEEEFP_H
23584 #include <ieeefp.h>
23585 #endif
23588 main ()
23590 _sqrtl(0);
23592 return 0;
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23597 (eval $ac_compile) 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
23604 { ac_try='test -z "$ac_cxx_werror_flag"
23605 || test ! -s conftest.err'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; } &&
23611 { ac_try='test -s conftest.$ac_objext'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 glibcxx_cv_func__sqrtl_use=yes
23618 else
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622 glibcxx_cv_func__sqrtl_use=no
23624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23625 ac_ext=c
23626 ac_cpp='$CPP $CPPFLAGS'
23627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23635 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23636 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23638 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23640 for ac_func in _sqrtl
23642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23643 echo "$as_me:$LINENO: checking for $ac_func" >&5
23644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23645 if eval "test \"\${$as_ac_var+set}\" = set"; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648 if test x$gcc_no_link = xyes; then
23649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23651 { (exit 1); exit 1; }; }
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23661 #define $ac_func innocuous_$ac_func
23663 /* System header to define __stub macros and hopefully few prototypes,
23664 which can conflict with char $ac_func (); below.
23665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23666 <limits.h> exists even on freestanding compilers. */
23668 #ifdef __STDC__
23669 # include <limits.h>
23670 #else
23671 # include <assert.h>
23672 #endif
23674 #undef $ac_func
23676 /* Override any gcc2 internal prototype to avoid an error. */
23677 #ifdef __cplusplus
23678 extern "C"
23680 #endif
23681 /* We use char because int might match the return type of a gcc2
23682 builtin and then its argument prototype would still apply. */
23683 char $ac_func ();
23684 /* The GNU C library defines this for functions which it implements
23685 to always fail with ENOSYS. Some functions are actually named
23686 something starting with __ and the normal name is an alias. */
23687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23688 choke me
23689 #else
23690 char (*f) () = $ac_func;
23691 #endif
23692 #ifdef __cplusplus
23694 #endif
23697 main ()
23699 return f != $ac_func;
23701 return 0;
23703 _ACEOF
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23706 (eval $ac_link) 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
23713 { ac_try='test -z "$ac_c_werror_flag"
23714 || test ! -s conftest.err'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest$ac_exeext'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 eval "$as_ac_var=yes"
23727 else
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 eval "$as_ac_var=no"
23733 rm -f conftest.err conftest.$ac_objext \
23734 conftest$ac_exeext conftest.$ac_ext
23736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23738 if test `eval echo '${'$as_ac_var'}'` = yes; then
23739 cat >>confdefs.h <<_ACEOF
23740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23741 _ACEOF
23744 done
23751 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23752 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23753 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23754 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23760 ac_ext=cc
23761 ac_cpp='$CXXCPP $CPPFLAGS'
23762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23766 cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h. */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23772 #include <math.h>
23774 main ()
23776 sincosl(0, 0, 0);
23778 return 0;
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23783 (eval $ac_compile) 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } &&
23790 { ac_try='test -z "$ac_cxx_werror_flag"
23791 || test ! -s conftest.err'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; } &&
23797 { ac_try='test -s conftest.$ac_objext'
23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799 (eval $ac_try) 2>&5
23800 ac_status=$?
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; }; then
23803 glibcxx_cv_func_sincosl_use=yes
23804 else
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23808 glibcxx_cv_func_sincosl_use=no
23810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23811 ac_ext=c
23812 ac_cpp='$CPP $CPPFLAGS'
23813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23821 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23822 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23824 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23826 for ac_func in sincosl
23828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23829 echo "$as_me:$LINENO: checking for $ac_func" >&5
23830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23831 if eval "test \"\${$as_ac_var+set}\" = set"; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834 if test x$gcc_no_link = xyes; then
23835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23837 { (exit 1); exit 1; }; }
23839 cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h. */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23847 #define $ac_func innocuous_$ac_func
23849 /* System header to define __stub macros and hopefully few prototypes,
23850 which can conflict with char $ac_func (); below.
23851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23852 <limits.h> exists even on freestanding compilers. */
23854 #ifdef __STDC__
23855 # include <limits.h>
23856 #else
23857 # include <assert.h>
23858 #endif
23860 #undef $ac_func
23862 /* Override any gcc2 internal prototype to avoid an error. */
23863 #ifdef __cplusplus
23864 extern "C"
23866 #endif
23867 /* We use char because int might match the return type of a gcc2
23868 builtin and then its argument prototype would still apply. */
23869 char $ac_func ();
23870 /* The GNU C library defines this for functions which it implements
23871 to always fail with ENOSYS. Some functions are actually named
23872 something starting with __ and the normal name is an alias. */
23873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23874 choke me
23875 #else
23876 char (*f) () = $ac_func;
23877 #endif
23878 #ifdef __cplusplus
23880 #endif
23883 main ()
23885 return f != $ac_func;
23887 return 0;
23889 _ACEOF
23890 rm -f conftest.$ac_objext conftest$ac_exeext
23891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23892 (eval $ac_link) 2>conftest.er1
23893 ac_status=$?
23894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
23899 { ac_try='test -z "$ac_c_werror_flag"
23900 || test ! -s conftest.err'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; } &&
23906 { ac_try='test -s conftest$ac_exeext'
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; }; then
23912 eval "$as_ac_var=yes"
23913 else
23914 echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23917 eval "$as_ac_var=no"
23919 rm -f conftest.err conftest.$ac_objext \
23920 conftest$ac_exeext conftest.$ac_ext
23922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23924 if test `eval echo '${'$as_ac_var'}'` = yes; then
23925 cat >>confdefs.h <<_ACEOF
23926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23927 _ACEOF
23930 done
23932 else
23934 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23935 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23936 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23937 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 else
23943 ac_ext=cc
23944 ac_cpp='$CXXCPP $CPPFLAGS'
23945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23949 cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h. */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23955 #include <math.h>
23957 main ()
23959 _sincosl(0, 0, 0);
23961 return 0;
23963 _ACEOF
23964 rm -f conftest.$ac_objext
23965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23966 (eval $ac_compile) 2>conftest.er1
23967 ac_status=$?
23968 grep -v '^ *+' conftest.er1 >conftest.err
23969 rm -f conftest.er1
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -z "$ac_cxx_werror_flag"
23974 || test ! -s conftest.err'
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; } &&
23980 { ac_try='test -s conftest.$ac_objext'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 glibcxx_cv_func__sincosl_use=yes
23987 else
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 glibcxx_cv_func__sincosl_use=no
23993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23994 ac_ext=c
23995 ac_cpp='$CPP $CPPFLAGS'
23996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24004 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
24005 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
24007 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
24009 for ac_func in _sincosl
24011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24012 echo "$as_me:$LINENO: checking for $ac_func" >&5
24013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24014 if eval "test \"\${$as_ac_var+set}\" = set"; then
24015 echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017 if test x$gcc_no_link = xyes; then
24018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24020 { (exit 1); exit 1; }; }
24022 cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h. */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h. */
24028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24030 #define $ac_func innocuous_$ac_func
24032 /* System header to define __stub macros and hopefully few prototypes,
24033 which can conflict with char $ac_func (); below.
24034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24035 <limits.h> exists even on freestanding compilers. */
24037 #ifdef __STDC__
24038 # include <limits.h>
24039 #else
24040 # include <assert.h>
24041 #endif
24043 #undef $ac_func
24045 /* Override any gcc2 internal prototype to avoid an error. */
24046 #ifdef __cplusplus
24047 extern "C"
24049 #endif
24050 /* We use char because int might match the return type of a gcc2
24051 builtin and then its argument prototype would still apply. */
24052 char $ac_func ();
24053 /* The GNU C library defines this for functions which it implements
24054 to always fail with ENOSYS. Some functions are actually named
24055 something starting with __ and the normal name is an alias. */
24056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24057 choke me
24058 #else
24059 char (*f) () = $ac_func;
24060 #endif
24061 #ifdef __cplusplus
24063 #endif
24066 main ()
24068 return f != $ac_func;
24070 return 0;
24072 _ACEOF
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075 (eval $ac_link) 2>conftest.er1
24076 ac_status=$?
24077 grep -v '^ *+' conftest.er1 >conftest.err
24078 rm -f conftest.er1
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
24082 { ac_try='test -z "$ac_c_werror_flag"
24083 || test ! -s conftest.err'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; } &&
24089 { ac_try='test -s conftest$ac_exeext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24092 ac_status=$?
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 eval "$as_ac_var=yes"
24096 else
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 eval "$as_ac_var=no"
24102 rm -f conftest.err conftest.$ac_objext \
24103 conftest$ac_exeext conftest.$ac_ext
24105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24107 if test `eval echo '${'$as_ac_var'}'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110 _ACEOF
24113 done
24120 echo "$as_me:$LINENO: checking for finitel declaration" >&5
24121 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24122 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24123 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24129 ac_ext=cc
24130 ac_cpp='$CXXCPP $CPPFLAGS'
24131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 #include <math.h>
24142 #ifdef HAVE_IEEEFP_H
24143 #include <ieeefp.h>
24144 #endif
24147 main ()
24149 finitel(0);
24151 return 0;
24153 _ACEOF
24154 rm -f conftest.$ac_objext
24155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24156 (eval $ac_compile) 2>conftest.er1
24157 ac_status=$?
24158 grep -v '^ *+' conftest.er1 >conftest.err
24159 rm -f conftest.er1
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } &&
24163 { ac_try='test -z "$ac_cxx_werror_flag"
24164 || test ! -s conftest.err'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; } &&
24170 { ac_try='test -s conftest.$ac_objext'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; }; then
24176 glibcxx_cv_func_finitel_use=yes
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 glibcxx_cv_func_finitel_use=no
24183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24184 ac_ext=c
24185 ac_cpp='$CPP $CPPFLAGS'
24186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24194 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24195 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24197 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24199 for ac_func in finitel
24201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24202 echo "$as_me:$LINENO: checking for $ac_func" >&5
24203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24204 if eval "test \"\${$as_ac_var+set}\" = set"; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 else
24207 if test x$gcc_no_link = xyes; then
24208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24210 { (exit 1); exit 1; }; }
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h. */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24220 #define $ac_func innocuous_$ac_func
24222 /* System header to define __stub macros and hopefully few prototypes,
24223 which can conflict with char $ac_func (); below.
24224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24225 <limits.h> exists even on freestanding compilers. */
24227 #ifdef __STDC__
24228 # include <limits.h>
24229 #else
24230 # include <assert.h>
24231 #endif
24233 #undef $ac_func
24235 /* Override any gcc2 internal prototype to avoid an error. */
24236 #ifdef __cplusplus
24237 extern "C"
24239 #endif
24240 /* We use char because int might match the return type of a gcc2
24241 builtin and then its argument prototype would still apply. */
24242 char $ac_func ();
24243 /* The GNU C library defines this for functions which it implements
24244 to always fail with ENOSYS. Some functions are actually named
24245 something starting with __ and the normal name is an alias. */
24246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24247 choke me
24248 #else
24249 char (*f) () = $ac_func;
24250 #endif
24251 #ifdef __cplusplus
24253 #endif
24256 main ()
24258 return f != $ac_func;
24260 return 0;
24262 _ACEOF
24263 rm -f conftest.$ac_objext conftest$ac_exeext
24264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24265 (eval $ac_link) 2>conftest.er1
24266 ac_status=$?
24267 grep -v '^ *+' conftest.er1 >conftest.err
24268 rm -f conftest.er1
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
24272 { ac_try='test -z "$ac_c_werror_flag"
24273 || test ! -s conftest.err'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; } &&
24279 { ac_try='test -s conftest$ac_exeext'
24280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281 (eval $ac_try) 2>&5
24282 ac_status=$?
24283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); }; }; then
24285 eval "$as_ac_var=yes"
24286 else
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24290 eval "$as_ac_var=no"
24292 rm -f conftest.err conftest.$ac_objext \
24293 conftest$ac_exeext conftest.$ac_ext
24295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24297 if test `eval echo '${'$as_ac_var'}'` = yes; then
24298 cat >>confdefs.h <<_ACEOF
24299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24300 _ACEOF
24303 done
24305 else
24307 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24308 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24309 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24310 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24312 else
24316 ac_ext=cc
24317 ac_cpp='$CXXCPP $CPPFLAGS'
24318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h. */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 #include <math.h>
24329 #ifdef HAVE_IEEEFP_H
24330 #include <ieeefp.h>
24331 #endif
24334 main ()
24336 _finitel(0);
24338 return 0;
24340 _ACEOF
24341 rm -f conftest.$ac_objext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24343 (eval $ac_compile) 2>conftest.er1
24344 ac_status=$?
24345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
24350 { ac_try='test -z "$ac_cxx_werror_flag"
24351 || test ! -s conftest.err'
24352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); }; } &&
24357 { ac_try='test -s conftest.$ac_objext'
24358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359 (eval $ac_try) 2>&5
24360 ac_status=$?
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); }; }; then
24363 glibcxx_cv_func__finitel_use=yes
24364 else
24365 echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24368 glibcxx_cv_func__finitel_use=no
24370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24371 ac_ext=c
24372 ac_cpp='$CPP $CPPFLAGS'
24373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24381 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24382 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24384 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24386 for ac_func in _finitel
24388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24389 echo "$as_me:$LINENO: checking for $ac_func" >&5
24390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24391 if eval "test \"\${$as_ac_var+set}\" = set"; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394 if test x$gcc_no_link = xyes; then
24395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24397 { (exit 1); exit 1; }; }
24399 cat >conftest.$ac_ext <<_ACEOF
24400 /* confdefs.h. */
24401 _ACEOF
24402 cat confdefs.h >>conftest.$ac_ext
24403 cat >>conftest.$ac_ext <<_ACEOF
24404 /* end confdefs.h. */
24405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24407 #define $ac_func innocuous_$ac_func
24409 /* System header to define __stub macros and hopefully few prototypes,
24410 which can conflict with char $ac_func (); below.
24411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24412 <limits.h> exists even on freestanding compilers. */
24414 #ifdef __STDC__
24415 # include <limits.h>
24416 #else
24417 # include <assert.h>
24418 #endif
24420 #undef $ac_func
24422 /* Override any gcc2 internal prototype to avoid an error. */
24423 #ifdef __cplusplus
24424 extern "C"
24426 #endif
24427 /* We use char because int might match the return type of a gcc2
24428 builtin and then its argument prototype would still apply. */
24429 char $ac_func ();
24430 /* The GNU C library defines this for functions which it implements
24431 to always fail with ENOSYS. Some functions are actually named
24432 something starting with __ and the normal name is an alias. */
24433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24434 choke me
24435 #else
24436 char (*f) () = $ac_func;
24437 #endif
24438 #ifdef __cplusplus
24440 #endif
24443 main ()
24445 return f != $ac_func;
24447 return 0;
24449 _ACEOF
24450 rm -f conftest.$ac_objext conftest$ac_exeext
24451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24452 (eval $ac_link) 2>conftest.er1
24453 ac_status=$?
24454 grep -v '^ *+' conftest.er1 >conftest.err
24455 rm -f conftest.er1
24456 cat conftest.err >&5
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); } &&
24459 { ac_try='test -z "$ac_c_werror_flag"
24460 || test ! -s conftest.err'
24461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; } &&
24466 { ac_try='test -s conftest$ac_exeext'
24467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468 (eval $ac_try) 2>&5
24469 ac_status=$?
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); }; }; then
24472 eval "$as_ac_var=yes"
24473 else
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 eval "$as_ac_var=no"
24479 rm -f conftest.err conftest.$ac_objext \
24480 conftest$ac_exeext conftest.$ac_ext
24482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24484 if test `eval echo '${'$as_ac_var'}'` = yes; then
24485 cat >>confdefs.h <<_ACEOF
24486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24487 _ACEOF
24490 done
24498 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24499 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24500 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24501 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 else
24506 ac_ext=cc
24507 ac_cpp='$CXXCPP $CPPFLAGS'
24508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h. */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 #include <math.h>
24520 main ()
24522 `for x in _acosf _asinf _atanf \
24523 _cosf _sinf _tanf \
24524 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24526 return 0;
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24531 (eval $ac_compile) 2>conftest.er1
24532 ac_status=$?
24533 grep -v '^ *+' conftest.er1 >conftest.err
24534 rm -f conftest.er1
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -z "$ac_cxx_werror_flag"
24539 || test ! -s conftest.err'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest.$ac_objext'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24551 glibcxx_cv_func__float_trig_use=yes
24552 else
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 glibcxx_cv_func__float_trig_use=no
24558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24559 ac_ext=c
24560 ac_cpp='$CPP $CPPFLAGS'
24561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24567 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24568 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24569 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24579 for ac_func in _acosf _asinf _atanf \
24580 _cosf _sinf _tanf \
24581 _coshf _sinhf _tanhf
24583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24584 echo "$as_me:$LINENO: checking for $ac_func" >&5
24585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24586 if eval "test \"\${$as_ac_var+set}\" = set"; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589 if test x$gcc_no_link = xyes; then
24590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24592 { (exit 1); exit 1; }; }
24594 cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h. */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h. */
24600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24602 #define $ac_func innocuous_$ac_func
24604 /* System header to define __stub macros and hopefully few prototypes,
24605 which can conflict with char $ac_func (); below.
24606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24607 <limits.h> exists even on freestanding compilers. */
24609 #ifdef __STDC__
24610 # include <limits.h>
24611 #else
24612 # include <assert.h>
24613 #endif
24615 #undef $ac_func
24617 /* Override any gcc2 internal prototype to avoid an error. */
24618 #ifdef __cplusplus
24619 extern "C"
24621 #endif
24622 /* We use char because int might match the return type of a gcc2
24623 builtin and then its argument prototype would still apply. */
24624 char $ac_func ();
24625 /* The GNU C library defines this for functions which it implements
24626 to always fail with ENOSYS. Some functions are actually named
24627 something starting with __ and the normal name is an alias. */
24628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24629 choke me
24630 #else
24631 char (*f) () = $ac_func;
24632 #endif
24633 #ifdef __cplusplus
24635 #endif
24638 main ()
24640 return f != $ac_func;
24642 return 0;
24644 _ACEOF
24645 rm -f conftest.$ac_objext conftest$ac_exeext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24647 (eval $ac_link) 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } &&
24654 { ac_try='test -z "$ac_c_werror_flag"
24655 || test ! -s conftest.err'
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; } &&
24661 { ac_try='test -s conftest$ac_exeext'
24662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); }; }; then
24667 eval "$as_ac_var=yes"
24668 else
24669 echo "$as_me: failed program was:" >&5
24670 sed 's/^/| /' conftest.$ac_ext >&5
24672 eval "$as_ac_var=no"
24674 rm -f conftest.err conftest.$ac_objext \
24675 conftest$ac_exeext conftest.$ac_ext
24677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24679 if test `eval echo '${'$as_ac_var'}'` = yes; then
24680 cat >>confdefs.h <<_ACEOF
24681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24682 _ACEOF
24685 done
24690 echo "$as_me:$LINENO: checking for _float round functions" >&5
24691 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24692 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24698 ac_ext=cc
24699 ac_cpp='$CXXCPP $CPPFLAGS'
24700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h. */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 #include <math.h>
24712 main ()
24714 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24716 return 0;
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24721 (eval $ac_compile) 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_cxx_werror_flag"
24729 || test ! -s conftest.err'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest.$ac_objext'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24741 glibcxx_cv_func__float_round_use=yes
24742 else
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 glibcxx_cv_func__float_round_use=no
24748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24749 ac_ext=c
24750 ac_cpp='$CPP $CPPFLAGS'
24751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24757 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24758 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24759 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24762 for ac_func in _ceilf _floorf
24764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24765 echo "$as_me:$LINENO: checking for $ac_func" >&5
24766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24767 if eval "test \"\${$as_ac_var+set}\" = set"; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24770 if test x$gcc_no_link = xyes; then
24771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24773 { (exit 1); exit 1; }; }
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h. */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24783 #define $ac_func innocuous_$ac_func
24785 /* System header to define __stub macros and hopefully few prototypes,
24786 which can conflict with char $ac_func (); below.
24787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24788 <limits.h> exists even on freestanding compilers. */
24790 #ifdef __STDC__
24791 # include <limits.h>
24792 #else
24793 # include <assert.h>
24794 #endif
24796 #undef $ac_func
24798 /* Override any gcc2 internal prototype to avoid an error. */
24799 #ifdef __cplusplus
24800 extern "C"
24802 #endif
24803 /* We use char because int might match the return type of a gcc2
24804 builtin and then its argument prototype would still apply. */
24805 char $ac_func ();
24806 /* The GNU C library defines this for functions which it implements
24807 to always fail with ENOSYS. Some functions are actually named
24808 something starting with __ and the normal name is an alias. */
24809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24810 choke me
24811 #else
24812 char (*f) () = $ac_func;
24813 #endif
24814 #ifdef __cplusplus
24816 #endif
24819 main ()
24821 return f != $ac_func;
24823 return 0;
24825 _ACEOF
24826 rm -f conftest.$ac_objext conftest$ac_exeext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828 (eval $ac_link) 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try='test -s conftest$ac_exeext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 eval "$as_ac_var=yes"
24849 else
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 eval "$as_ac_var=no"
24855 rm -f conftest.err conftest.$ac_objext \
24856 conftest$ac_exeext conftest.$ac_ext
24858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24860 if test `eval echo '${'$as_ac_var'}'` = yes; then
24861 cat >>confdefs.h <<_ACEOF
24862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24863 _ACEOF
24866 done
24872 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24873 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24874 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 else
24880 ac_ext=cc
24881 ac_cpp='$CXXCPP $CPPFLAGS'
24882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24886 cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h. */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 #include <math.h>
24894 main ()
24896 `for x in _acosl _asinl _atanl \
24897 _cosl _sinl _tanl \
24898 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24900 return 0;
24902 _ACEOF
24903 rm -f conftest.$ac_objext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24905 (eval $ac_compile) 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } &&
24912 { ac_try='test -z "$ac_cxx_werror_flag"
24913 || test ! -s conftest.err'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; } &&
24919 { ac_try='test -s conftest.$ac_objext'
24920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); }; }; then
24925 glibcxx_cv_func__long_double_trig_use=yes
24926 else
24927 echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24930 glibcxx_cv_func__long_double_trig_use=no
24932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24933 ac_ext=c
24934 ac_cpp='$CPP $CPPFLAGS'
24935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24941 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24942 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24943 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24953 for ac_func in _acosl _asinl _atanl \
24954 _cosl _sinl _tanl \
24955 _coshl _sinhl _tanhl
24957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24958 echo "$as_me:$LINENO: checking for $ac_func" >&5
24959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24960 if eval "test \"\${$as_ac_var+set}\" = set"; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 else
24963 if test x$gcc_no_link = xyes; then
24964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24966 { (exit 1); exit 1; }; }
24968 cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h. */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24976 #define $ac_func innocuous_$ac_func
24978 /* System header to define __stub macros and hopefully few prototypes,
24979 which can conflict with char $ac_func (); below.
24980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24981 <limits.h> exists even on freestanding compilers. */
24983 #ifdef __STDC__
24984 # include <limits.h>
24985 #else
24986 # include <assert.h>
24987 #endif
24989 #undef $ac_func
24991 /* Override any gcc2 internal prototype to avoid an error. */
24992 #ifdef __cplusplus
24993 extern "C"
24995 #endif
24996 /* We use char because int might match the return type of a gcc2
24997 builtin and then its argument prototype would still apply. */
24998 char $ac_func ();
24999 /* The GNU C library defines this for functions which it implements
25000 to always fail with ENOSYS. Some functions are actually named
25001 something starting with __ and the normal name is an alias. */
25002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25003 choke me
25004 #else
25005 char (*f) () = $ac_func;
25006 #endif
25007 #ifdef __cplusplus
25009 #endif
25012 main ()
25014 return f != $ac_func;
25016 return 0;
25018 _ACEOF
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25021 (eval $ac_link) 2>conftest.er1
25022 ac_status=$?
25023 grep -v '^ *+' conftest.er1 >conftest.err
25024 rm -f conftest.er1
25025 cat conftest.err >&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } &&
25028 { ac_try='test -z "$ac_c_werror_flag"
25029 || test ! -s conftest.err'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; } &&
25035 { ac_try='test -s conftest$ac_exeext'
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; }; then
25041 eval "$as_ac_var=yes"
25042 else
25043 echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 eval "$as_ac_var=no"
25048 rm -f conftest.err conftest.$ac_objext \
25049 conftest$ac_exeext conftest.$ac_ext
25051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25053 if test `eval echo '${'$as_ac_var'}'` = yes; then
25054 cat >>confdefs.h <<_ACEOF
25055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25056 _ACEOF
25059 done
25064 echo "$as_me:$LINENO: checking for _long double round functions" >&5
25065 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
25066 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068 else
25072 ac_ext=cc
25073 ac_cpp='$CXXCPP $CPPFLAGS'
25074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25078 cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h. */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25084 #include <math.h>
25086 main ()
25088 `for x in _ceill _floorl; do echo "$x (0);"; done`
25090 return 0;
25092 _ACEOF
25093 rm -f conftest.$ac_objext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25095 (eval $ac_compile) 2>conftest.er1
25096 ac_status=$?
25097 grep -v '^ *+' conftest.er1 >conftest.err
25098 rm -f conftest.er1
25099 cat conftest.err >&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } &&
25102 { ac_try='test -z "$ac_cxx_werror_flag"
25103 || test ! -s conftest.err'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest.$ac_objext'
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 glibcxx_cv_func__long_double_round_use=yes
25116 else
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25120 glibcxx_cv_func__long_double_round_use=no
25122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25123 ac_ext=c
25124 ac_cpp='$CPP $CPPFLAGS'
25125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25131 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25132 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25133 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25136 for ac_func in _ceill _floorl
25138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25139 echo "$as_me:$LINENO: checking for $ac_func" >&5
25140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25141 if eval "test \"\${$as_ac_var+set}\" = set"; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144 if test x$gcc_no_link = xyes; then
25145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25147 { (exit 1); exit 1; }; }
25149 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h. */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25157 #define $ac_func innocuous_$ac_func
25159 /* System header to define __stub macros and hopefully few prototypes,
25160 which can conflict with char $ac_func (); below.
25161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162 <limits.h> exists even on freestanding compilers. */
25164 #ifdef __STDC__
25165 # include <limits.h>
25166 #else
25167 # include <assert.h>
25168 #endif
25170 #undef $ac_func
25172 /* Override any gcc2 internal prototype to avoid an error. */
25173 #ifdef __cplusplus
25174 extern "C"
25176 #endif
25177 /* We use char because int might match the return type of a gcc2
25178 builtin and then its argument prototype would still apply. */
25179 char $ac_func ();
25180 /* The GNU C library defines this for functions which it implements
25181 to always fail with ENOSYS. Some functions are actually named
25182 something starting with __ and the normal name is an alias. */
25183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25184 choke me
25185 #else
25186 char (*f) () = $ac_func;
25187 #endif
25188 #ifdef __cplusplus
25190 #endif
25193 main ()
25195 return f != $ac_func;
25197 return 0;
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202 (eval $ac_link) 2>conftest.er1
25203 ac_status=$?
25204 grep -v '^ *+' conftest.er1 >conftest.err
25205 rm -f conftest.er1
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } &&
25209 { ac_try='test -z "$ac_c_werror_flag"
25210 || test ! -s conftest.err'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; } &&
25216 { ac_try='test -s conftest$ac_exeext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 eval "$as_ac_var=yes"
25223 else
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25227 eval "$as_ac_var=no"
25229 rm -f conftest.err conftest.$ac_objext \
25230 conftest$ac_exeext conftest.$ac_ext
25232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25234 if test `eval echo '${'$as_ac_var'}'` = yes; then
25235 cat >>confdefs.h <<_ACEOF
25236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25237 _ACEOF
25240 done
25245 LIBS="$ac_save_LIBS"
25246 CXXFLAGS="$ac_save_CXXFLAGS"
25250 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25251 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25252 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25253 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 else
25259 ac_ext=cc
25260 ac_cpp='$CXXCPP $CPPFLAGS'
25261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25265 cat >conftest.$ac_ext <<_ACEOF
25266 /* confdefs.h. */
25267 _ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h. */
25271 #include <math.h>
25273 main ()
25275 __builtin_abs(0);
25277 return 0;
25279 _ACEOF
25280 rm -f conftest.$ac_objext
25281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25282 (eval $ac_compile) 2>conftest.er1
25283 ac_status=$?
25284 grep -v '^ *+' conftest.er1 >conftest.err
25285 rm -f conftest.er1
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } &&
25289 { ac_try='test -z "$ac_cxx_werror_flag"
25290 || test ! -s conftest.err'
25291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; } &&
25296 { ac_try='test -s conftest.$ac_objext'
25297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25299 ac_status=$?
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; }; then
25302 glibcxx_cv_func___builtin_abs_use=yes
25303 else
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 glibcxx_cv_func___builtin_abs_use=no
25309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25310 ac_ext=c
25311 ac_cpp='$CPP $CPPFLAGS'
25312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25320 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25321 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25322 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25323 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25324 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25325 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25326 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25328 else
25330 if test x$gcc_no_link = xyes; then
25331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25333 { (exit 1); exit 1; }; }
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h. */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 #include <math.h>
25343 main ()
25345 __builtin_abs(0);
25347 return 0;
25349 _ACEOF
25350 rm -f conftest.$ac_objext conftest$ac_exeext
25351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25352 (eval $ac_link) 2>conftest.er1
25353 ac_status=$?
25354 grep -v '^ *+' conftest.er1 >conftest.err
25355 rm -f conftest.er1
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } &&
25359 { ac_try='test -z "$ac_c_werror_flag"
25360 || test ! -s conftest.err'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; } &&
25366 { ac_try='test -s conftest$ac_exeext'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; }; then
25372 glibcxx_cv_func___builtin_abs_link=yes
25373 else
25374 echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25377 glibcxx_cv_func___builtin_abs_link=no
25379 rm -f conftest.err conftest.$ac_objext \
25380 conftest$ac_exeext conftest.$ac_ext
25385 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25386 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25387 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25388 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25389 cat >>confdefs.h <<_ACEOF
25390 #define ${ac_tr_func} 1
25391 _ACEOF
25397 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25398 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25399 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25400 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25406 ac_ext=cc
25407 ac_cpp='$CXXCPP $CPPFLAGS'
25408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25412 cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h. */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 #include <math.h>
25420 main ()
25422 __builtin_fabsf(0);
25424 return 0;
25426 _ACEOF
25427 rm -f conftest.$ac_objext
25428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25429 (eval $ac_compile) 2>conftest.er1
25430 ac_status=$?
25431 grep -v '^ *+' conftest.er1 >conftest.err
25432 rm -f conftest.er1
25433 cat conftest.err >&5
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); } &&
25436 { ac_try='test -z "$ac_cxx_werror_flag"
25437 || test ! -s conftest.err'
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest.$ac_objext'
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 glibcxx_cv_func___builtin_fabsf_use=yes
25450 else
25451 echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25454 glibcxx_cv_func___builtin_fabsf_use=no
25456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25457 ac_ext=c
25458 ac_cpp='$CPP $CPPFLAGS'
25459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25467 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25468 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25469 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25470 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25471 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25472 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25473 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25477 if test x$gcc_no_link = xyes; then
25478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25480 { (exit 1); exit 1; }; }
25482 cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h. */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 #include <math.h>
25490 main ()
25492 __builtin_fabsf(0);
25494 return 0;
25496 _ACEOF
25497 rm -f conftest.$ac_objext conftest$ac_exeext
25498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25499 (eval $ac_link) 2>conftest.er1
25500 ac_status=$?
25501 grep -v '^ *+' conftest.er1 >conftest.err
25502 rm -f conftest.er1
25503 cat conftest.err >&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } &&
25506 { ac_try='test -z "$ac_c_werror_flag"
25507 || test ! -s conftest.err'
25508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25509 (eval $ac_try) 2>&5
25510 ac_status=$?
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); }; } &&
25513 { ac_try='test -s conftest$ac_exeext'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 glibcxx_cv_func___builtin_fabsf_link=yes
25520 else
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 glibcxx_cv_func___builtin_fabsf_link=no
25526 rm -f conftest.err conftest.$ac_objext \
25527 conftest$ac_exeext conftest.$ac_ext
25532 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25533 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25534 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25535 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25536 cat >>confdefs.h <<_ACEOF
25537 #define ${ac_tr_func} 1
25538 _ACEOF
25544 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25545 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25546 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25547 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25553 ac_ext=cc
25554 ac_cpp='$CXXCPP $CPPFLAGS'
25555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h. */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <math.h>
25567 main ()
25569 __builtin_fabs(0);
25571 return 0;
25573 _ACEOF
25574 rm -f conftest.$ac_objext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25576 (eval $ac_compile) 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
25583 { ac_try='test -z "$ac_cxx_werror_flag"
25584 || test ! -s conftest.err'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest.$ac_objext'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596 glibcxx_cv_func___builtin_fabs_use=yes
25597 else
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 glibcxx_cv_func___builtin_fabs_use=no
25603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25604 ac_ext=c
25605 ac_cpp='$CPP $CPPFLAGS'
25606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25614 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25615 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25616 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25617 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25618 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25619 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25620 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25621 echo $ECHO_N "(cached) $ECHO_C" >&6
25622 else
25624 if test x$gcc_no_link = xyes; then
25625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25627 { (exit 1); exit 1; }; }
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h. */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <math.h>
25637 main ()
25639 __builtin_fabs(0);
25641 return 0;
25643 _ACEOF
25644 rm -f conftest.$ac_objext conftest$ac_exeext
25645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25646 (eval $ac_link) 2>conftest.er1
25647 ac_status=$?
25648 grep -v '^ *+' conftest.er1 >conftest.err
25649 rm -f conftest.er1
25650 cat conftest.err >&5
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); } &&
25653 { ac_try='test -z "$ac_c_werror_flag"
25654 || test ! -s conftest.err'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; } &&
25660 { ac_try='test -s conftest$ac_exeext'
25661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662 (eval $ac_try) 2>&5
25663 ac_status=$?
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); }; }; then
25666 glibcxx_cv_func___builtin_fabs_link=yes
25667 else
25668 echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25671 glibcxx_cv_func___builtin_fabs_link=no
25673 rm -f conftest.err conftest.$ac_objext \
25674 conftest$ac_exeext conftest.$ac_ext
25679 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25680 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25681 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25682 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25683 cat >>confdefs.h <<_ACEOF
25684 #define ${ac_tr_func} 1
25685 _ACEOF
25691 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25692 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25693 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25694 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25700 ac_ext=cc
25701 ac_cpp='$CXXCPP $CPPFLAGS'
25702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25706 cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h. */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 #include <math.h>
25714 main ()
25716 __builtin_fabsl(0);
25718 return 0;
25720 _ACEOF
25721 rm -f conftest.$ac_objext
25722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25723 (eval $ac_compile) 2>conftest.er1
25724 ac_status=$?
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } &&
25730 { ac_try='test -z "$ac_cxx_werror_flag"
25731 || test ! -s conftest.err'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; } &&
25737 { ac_try='test -s conftest.$ac_objext'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; }; then
25743 glibcxx_cv_func___builtin_fabsl_use=yes
25744 else
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25748 glibcxx_cv_func___builtin_fabsl_use=no
25750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25751 ac_ext=c
25752 ac_cpp='$CPP $CPPFLAGS'
25753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25761 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25762 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25763 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25764 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25765 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25766 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25767 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25771 if test x$gcc_no_link = xyes; then
25772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25774 { (exit 1); exit 1; }; }
25776 cat >conftest.$ac_ext <<_ACEOF
25777 /* confdefs.h. */
25778 _ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25782 #include <math.h>
25784 main ()
25786 __builtin_fabsl(0);
25788 return 0;
25790 _ACEOF
25791 rm -f conftest.$ac_objext conftest$ac_exeext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25793 (eval $ac_link) 2>conftest.er1
25794 ac_status=$?
25795 grep -v '^ *+' conftest.er1 >conftest.err
25796 rm -f conftest.er1
25797 cat conftest.err >&5
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } &&
25800 { ac_try='test -z "$ac_c_werror_flag"
25801 || test ! -s conftest.err'
25802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; } &&
25807 { ac_try='test -s conftest$ac_exeext'
25808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
25813 glibcxx_cv_func___builtin_fabsl_link=yes
25814 else
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 glibcxx_cv_func___builtin_fabsl_link=no
25820 rm -f conftest.err conftest.$ac_objext \
25821 conftest$ac_exeext conftest.$ac_ext
25826 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25827 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25828 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25829 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25830 cat >>confdefs.h <<_ACEOF
25831 #define ${ac_tr_func} 1
25832 _ACEOF
25838 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25839 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25840 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25841 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25843 else
25847 ac_ext=cc
25848 ac_cpp='$CXXCPP $CPPFLAGS'
25849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h. */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25859 #include <math.h>
25861 main ()
25863 __builtin_labs(0);
25865 return 0;
25867 _ACEOF
25868 rm -f conftest.$ac_objext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>conftest.er1
25871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
25877 { ac_try='test -z "$ac_cxx_werror_flag"
25878 || test ! -s conftest.err'
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; } &&
25884 { ac_try='test -s conftest.$ac_objext'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 glibcxx_cv_func___builtin_labs_use=yes
25891 else
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25895 glibcxx_cv_func___builtin_labs_use=no
25897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25898 ac_ext=c
25899 ac_cpp='$CPP $CPPFLAGS'
25900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25908 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25909 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25910 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25911 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25912 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25913 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25914 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25915 echo $ECHO_N "(cached) $ECHO_C" >&6
25916 else
25918 if test x$gcc_no_link = xyes; then
25919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25921 { (exit 1); exit 1; }; }
25923 cat >conftest.$ac_ext <<_ACEOF
25924 /* confdefs.h. */
25925 _ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 #include <math.h>
25931 main ()
25933 __builtin_labs(0);
25935 return 0;
25937 _ACEOF
25938 rm -f conftest.$ac_objext conftest$ac_exeext
25939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25940 (eval $ac_link) 2>conftest.er1
25941 ac_status=$?
25942 grep -v '^ *+' conftest.er1 >conftest.err
25943 rm -f conftest.er1
25944 cat conftest.err >&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try='test -z "$ac_c_werror_flag"
25948 || test ! -s conftest.err'
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; } &&
25954 { ac_try='test -s conftest$ac_exeext'
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 glibcxx_cv_func___builtin_labs_link=yes
25961 else
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 glibcxx_cv_func___builtin_labs_link=no
25967 rm -f conftest.err conftest.$ac_objext \
25968 conftest$ac_exeext conftest.$ac_ext
25973 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25974 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25975 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25976 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25977 cat >>confdefs.h <<_ACEOF
25978 #define ${ac_tr_func} 1
25979 _ACEOF
25986 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25987 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25988 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25989 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25990 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 else
25995 ac_ext=cc
25996 ac_cpp='$CXXCPP $CPPFLAGS'
25997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26001 cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h. */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 #include <math.h>
26009 main ()
26011 __builtin_sqrtf(0);
26013 return 0;
26015 _ACEOF
26016 rm -f conftest.$ac_objext
26017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26018 (eval $ac_compile) 2>conftest.er1
26019 ac_status=$?
26020 grep -v '^ *+' conftest.er1 >conftest.err
26021 rm -f conftest.er1
26022 cat conftest.err >&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } &&
26025 { ac_try='test -z "$ac_cxx_werror_flag"
26026 || test ! -s conftest.err'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; } &&
26032 { ac_try='test -s conftest.$ac_objext'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; }; then
26038 glibcxx_cv_func___builtin_sqrtf_use=yes
26039 else
26040 echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26043 glibcxx_cv_func___builtin_sqrtf_use=no
26045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26046 ac_ext=c
26047 ac_cpp='$CPP $CPPFLAGS'
26048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26056 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
26057 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
26058 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
26059 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
26060 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
26061 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
26062 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
26063 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26066 if test x$gcc_no_link = xyes; then
26067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26069 { (exit 1); exit 1; }; }
26071 cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h. */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <math.h>
26079 main ()
26081 __builtin_sqrtf(0);
26083 return 0;
26085 _ACEOF
26086 rm -f conftest.$ac_objext conftest$ac_exeext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088 (eval $ac_link) 2>conftest.er1
26089 ac_status=$?
26090 grep -v '^ *+' conftest.er1 >conftest.err
26091 rm -f conftest.er1
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
26095 { ac_try='test -z "$ac_c_werror_flag"
26096 || test ! -s conftest.err'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26099 ac_status=$?
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest$ac_exeext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26105 ac_status=$?
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 glibcxx_cv_func___builtin_sqrtf_link=yes
26109 else
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26113 glibcxx_cv_func___builtin_sqrtf_link=no
26115 rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26122 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26123 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26124 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26125 cat >>confdefs.h <<_ACEOF
26126 #define ${ac_tr_func} 1
26127 _ACEOF
26133 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26134 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26135 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26136 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26142 ac_ext=cc
26143 ac_cpp='$CXXCPP $CPPFLAGS'
26144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26148 cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h. */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 #include <math.h>
26156 main ()
26158 __builtin_sqrt(0);
26160 return 0;
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165 (eval $ac_compile) 2>conftest.er1
26166 ac_status=$?
26167 grep -v '^ *+' conftest.er1 >conftest.err
26168 rm -f conftest.er1
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_cxx_werror_flag"
26173 || test ! -s conftest.err'
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; } &&
26179 { ac_try='test -s conftest.$ac_objext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 glibcxx_cv_func___builtin_sqrt_use=yes
26186 else
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 glibcxx_cv_func___builtin_sqrt_use=no
26192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 ac_ext=c
26194 ac_cpp='$CPP $CPPFLAGS'
26195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26203 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26204 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26205 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26206 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26207 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26208 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26209 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26213 if test x$gcc_no_link = xyes; then
26214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26216 { (exit 1); exit 1; }; }
26218 cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h. */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26224 #include <math.h>
26226 main ()
26228 __builtin_sqrt(0);
26230 return 0;
26232 _ACEOF
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235 (eval $ac_link) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest$ac_exeext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 glibcxx_cv_func___builtin_sqrt_link=yes
26256 else
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26260 glibcxx_cv_func___builtin_sqrt_link=no
26262 rm -f conftest.err conftest.$ac_objext \
26263 conftest$ac_exeext conftest.$ac_ext
26268 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26269 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26270 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26271 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26272 cat >>confdefs.h <<_ACEOF
26273 #define ${ac_tr_func} 1
26274 _ACEOF
26280 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26281 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26282 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26283 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 else
26289 ac_ext=cc
26290 ac_cpp='$CXXCPP $CPPFLAGS'
26291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26295 cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h. */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 #include <math.h>
26303 main ()
26305 __builtin_sqrtl(0);
26307 return 0;
26309 _ACEOF
26310 rm -f conftest.$ac_objext
26311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26312 (eval $ac_compile) 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } &&
26319 { ac_try='test -z "$ac_cxx_werror_flag"
26320 || test ! -s conftest.err'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; } &&
26326 { ac_try='test -s conftest.$ac_objext'
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; }; then
26332 glibcxx_cv_func___builtin_sqrtl_use=yes
26333 else
26334 echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26337 glibcxx_cv_func___builtin_sqrtl_use=no
26339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26340 ac_ext=c
26341 ac_cpp='$CPP $CPPFLAGS'
26342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26350 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26351 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26352 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26353 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26354 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26355 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26356 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26358 else
26360 if test x$gcc_no_link = xyes; then
26361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26363 { (exit 1); exit 1; }; }
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <math.h>
26373 main ()
26375 __builtin_sqrtl(0);
26377 return 0;
26379 _ACEOF
26380 rm -f conftest.$ac_objext conftest$ac_exeext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26382 (eval $ac_link) 2>conftest.er1
26383 ac_status=$?
26384 grep -v '^ *+' conftest.er1 >conftest.err
26385 rm -f conftest.er1
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } &&
26389 { ac_try='test -z "$ac_c_werror_flag"
26390 || test ! -s conftest.err'
26391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392 (eval $ac_try) 2>&5
26393 ac_status=$?
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; } &&
26396 { ac_try='test -s conftest$ac_exeext'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; }; then
26402 glibcxx_cv_func___builtin_sqrtl_link=yes
26403 else
26404 echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26407 glibcxx_cv_func___builtin_sqrtl_link=no
26409 rm -f conftest.err conftest.$ac_objext \
26410 conftest$ac_exeext conftest.$ac_ext
26415 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26416 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26417 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26418 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26419 cat >>confdefs.h <<_ACEOF
26420 #define ${ac_tr_func} 1
26421 _ACEOF
26428 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26429 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26430 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26431 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 else
26437 ac_ext=cc
26438 ac_cpp='$CXXCPP $CPPFLAGS'
26439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26443 cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h. */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26449 #include <math.h>
26451 main ()
26453 __builtin_sinf(0);
26455 return 0;
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460 (eval $ac_compile) 2>conftest.er1
26461 ac_status=$?
26462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
26467 { ac_try='test -z "$ac_cxx_werror_flag"
26468 || test ! -s conftest.err'
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
26474 { ac_try='test -s conftest.$ac_objext'
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26480 glibcxx_cv_func___builtin_sinf_use=yes
26481 else
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 glibcxx_cv_func___builtin_sinf_use=no
26487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26488 ac_ext=c
26489 ac_cpp='$CPP $CPPFLAGS'
26490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26498 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26499 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26500 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26501 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26502 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26503 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26504 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26508 if test x$gcc_no_link = xyes; then
26509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26511 { (exit 1); exit 1; }; }
26513 cat >conftest.$ac_ext <<_ACEOF
26514 /* confdefs.h. */
26515 _ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h. */
26519 #include <math.h>
26521 main ()
26523 __builtin_sinf(0);
26525 return 0;
26527 _ACEOF
26528 rm -f conftest.$ac_objext conftest$ac_exeext
26529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26530 (eval $ac_link) 2>conftest.er1
26531 ac_status=$?
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } &&
26537 { ac_try='test -z "$ac_c_werror_flag"
26538 || test ! -s conftest.err'
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try='test -s conftest$ac_exeext'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
26550 glibcxx_cv_func___builtin_sinf_link=yes
26551 else
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 glibcxx_cv_func___builtin_sinf_link=no
26557 rm -f conftest.err conftest.$ac_objext \
26558 conftest$ac_exeext conftest.$ac_ext
26563 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26564 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26565 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26566 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26567 cat >>confdefs.h <<_ACEOF
26568 #define ${ac_tr_func} 1
26569 _ACEOF
26575 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26576 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26577 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26578 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 else
26584 ac_ext=cc
26585 ac_cpp='$CXXCPP $CPPFLAGS'
26586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h. */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 #include <math.h>
26598 main ()
26600 __builtin_sin(0);
26602 return 0;
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607 (eval $ac_compile) 2>conftest.er1
26608 ac_status=$?
26609 grep -v '^ *+' conftest.er1 >conftest.err
26610 rm -f conftest.er1
26611 cat conftest.err >&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); } &&
26614 { ac_try='test -z "$ac_cxx_werror_flag"
26615 || test ! -s conftest.err'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } &&
26621 { ac_try='test -s conftest.$ac_objext'
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; }; then
26627 glibcxx_cv_func___builtin_sin_use=yes
26628 else
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 glibcxx_cv_func___builtin_sin_use=no
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 ac_ext=c
26636 ac_cpp='$CPP $CPPFLAGS'
26637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26645 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26646 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26647 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26648 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26649 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26650 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26651 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26655 if test x$gcc_no_link = xyes; then
26656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26658 { (exit 1); exit 1; }; }
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h. */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 #include <math.h>
26668 main ()
26670 __builtin_sin(0);
26672 return 0;
26674 _ACEOF
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26677 (eval $ac_link) 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
26684 { ac_try='test -z "$ac_c_werror_flag"
26685 || test ! -s conftest.err'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest$ac_exeext'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 glibcxx_cv_func___builtin_sin_link=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 glibcxx_cv_func___builtin_sin_link=no
26704 rm -f conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26711 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26712 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26713 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26714 cat >>confdefs.h <<_ACEOF
26715 #define ${ac_tr_func} 1
26716 _ACEOF
26722 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26723 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26724 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26725 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26726 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 else
26731 ac_ext=cc
26732 ac_cpp='$CXXCPP $CPPFLAGS'
26733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26737 cat >conftest.$ac_ext <<_ACEOF
26738 /* confdefs.h. */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h. */
26743 #include <math.h>
26745 main ()
26747 __builtin_sinl(0);
26749 return 0;
26751 _ACEOF
26752 rm -f conftest.$ac_objext
26753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26754 (eval $ac_compile) 2>conftest.er1
26755 ac_status=$?
26756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
26761 { ac_try='test -z "$ac_cxx_werror_flag"
26762 || test ! -s conftest.err'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; } &&
26768 { ac_try='test -s conftest.$ac_objext'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; }; then
26774 glibcxx_cv_func___builtin_sinl_use=yes
26775 else
26776 echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26779 glibcxx_cv_func___builtin_sinl_use=no
26781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26782 ac_ext=c
26783 ac_cpp='$CPP $CPPFLAGS'
26784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26792 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26793 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26794 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26795 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26796 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26797 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26798 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26800 else
26802 if test x$gcc_no_link = xyes; then
26803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26805 { (exit 1); exit 1; }; }
26807 cat >conftest.$ac_ext <<_ACEOF
26808 /* confdefs.h. */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h. */
26813 #include <math.h>
26815 main ()
26817 __builtin_sinl(0);
26819 return 0;
26821 _ACEOF
26822 rm -f conftest.$ac_objext conftest$ac_exeext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26824 (eval $ac_link) 2>conftest.er1
26825 ac_status=$?
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -z "$ac_c_werror_flag"
26832 || test ! -s conftest.err'
26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834 (eval $ac_try) 2>&5
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; } &&
26838 { ac_try='test -s conftest$ac_exeext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 glibcxx_cv_func___builtin_sinl_link=yes
26845 else
26846 echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26849 glibcxx_cv_func___builtin_sinl_link=no
26851 rm -f conftest.err conftest.$ac_objext \
26852 conftest$ac_exeext conftest.$ac_ext
26857 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26858 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26859 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26860 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26861 cat >>confdefs.h <<_ACEOF
26862 #define ${ac_tr_func} 1
26863 _ACEOF
26870 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26871 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26872 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26873 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26879 ac_ext=cc
26880 ac_cpp='$CXXCPP $CPPFLAGS'
26881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26885 cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h. */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 #include <math.h>
26893 main ()
26895 __builtin_cosf(0);
26897 return 0;
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26902 (eval $ac_compile) 2>conftest.er1
26903 ac_status=$?
26904 grep -v '^ *+' conftest.er1 >conftest.err
26905 rm -f conftest.er1
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_cxx_werror_flag"
26910 || test ! -s conftest.err'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26913 ac_status=$?
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest.$ac_objext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 glibcxx_cv_func___builtin_cosf_use=yes
26923 else
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 glibcxx_cv_func___builtin_cosf_use=no
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 ac_ext=c
26931 ac_cpp='$CPP $CPPFLAGS'
26932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26940 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26941 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26942 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26943 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26944 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26945 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26946 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26947 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 else
26950 if test x$gcc_no_link = xyes; then
26951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26953 { (exit 1); exit 1; }; }
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h. */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 #include <math.h>
26963 main ()
26965 __builtin_cosf(0);
26967 return 0;
26969 _ACEOF
26970 rm -f conftest.$ac_objext conftest$ac_exeext
26971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26972 (eval $ac_link) 2>conftest.er1
26973 ac_status=$?
26974 grep -v '^ *+' conftest.er1 >conftest.err
26975 rm -f conftest.er1
26976 cat conftest.err >&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } &&
26979 { ac_try='test -z "$ac_c_werror_flag"
26980 || test ! -s conftest.err'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest$ac_exeext'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }; then
26992 glibcxx_cv_func___builtin_cosf_link=yes
26993 else
26994 echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26997 glibcxx_cv_func___builtin_cosf_link=no
26999 rm -f conftest.err conftest.$ac_objext \
27000 conftest$ac_exeext conftest.$ac_ext
27005 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
27006 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
27007 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
27008 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27009 cat >>confdefs.h <<_ACEOF
27010 #define ${ac_tr_func} 1
27011 _ACEOF
27017 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
27018 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
27019 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
27020 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27026 ac_ext=cc
27027 ac_cpp='$CXXCPP $CPPFLAGS'
27028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038 #include <math.h>
27040 main ()
27042 __builtin_cos(0);
27044 return 0;
27046 _ACEOF
27047 rm -f conftest.$ac_objext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27049 (eval $ac_compile) 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_cxx_werror_flag"
27057 || test ! -s conftest.err'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; } &&
27063 { ac_try='test -s conftest.$ac_objext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069 glibcxx_cv_func___builtin_cos_use=yes
27070 else
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27074 glibcxx_cv_func___builtin_cos_use=no
27076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27077 ac_ext=c
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27087 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27088 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27089 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27090 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27091 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27092 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27093 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 else
27097 if test x$gcc_no_link = xyes; then
27098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27100 { (exit 1); exit 1; }; }
27102 cat >conftest.$ac_ext <<_ACEOF
27103 /* confdefs.h. */
27104 _ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27108 #include <math.h>
27110 main ()
27112 __builtin_cos(0);
27114 return 0;
27116 _ACEOF
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27119 (eval $ac_link) 2>conftest.er1
27120 ac_status=$?
27121 grep -v '^ *+' conftest.er1 >conftest.err
27122 rm -f conftest.er1
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } &&
27126 { ac_try='test -z "$ac_c_werror_flag"
27127 || test ! -s conftest.err'
27128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129 (eval $ac_try) 2>&5
27130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest$ac_exeext'
27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 glibcxx_cv_func___builtin_cos_link=yes
27140 else
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 glibcxx_cv_func___builtin_cos_link=no
27146 rm -f conftest.err conftest.$ac_objext \
27147 conftest$ac_exeext conftest.$ac_ext
27152 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27153 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27154 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27155 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27156 cat >>confdefs.h <<_ACEOF
27157 #define ${ac_tr_func} 1
27158 _ACEOF
27164 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27165 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27166 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27167 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27168 echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27173 ac_ext=cc
27174 ac_cpp='$CXXCPP $CPPFLAGS'
27175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27179 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h. */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27185 #include <math.h>
27187 main ()
27189 __builtin_cosl(0);
27191 return 0;
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>conftest.er1
27197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -z "$ac_cxx_werror_flag"
27204 || test ! -s conftest.err'
27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206 (eval $ac_try) 2>&5
27207 ac_status=$?
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; } &&
27210 { ac_try='test -s conftest.$ac_objext'
27211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212 (eval $ac_try) 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 glibcxx_cv_func___builtin_cosl_use=yes
27217 else
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 glibcxx_cv_func___builtin_cosl_use=no
27223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27224 ac_ext=c
27225 ac_cpp='$CPP $CPPFLAGS'
27226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27234 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27235 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27236 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27237 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27238 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27239 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27240 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27242 else
27244 if test x$gcc_no_link = xyes; then
27245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27247 { (exit 1); exit 1; }; }
27249 cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h. */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 #include <math.h>
27257 main ()
27259 __builtin_cosl(0);
27261 return 0;
27263 _ACEOF
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27266 (eval $ac_link) 2>conftest.er1
27267 ac_status=$?
27268 grep -v '^ *+' conftest.er1 >conftest.err
27269 rm -f conftest.er1
27270 cat conftest.err >&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } &&
27273 { ac_try='test -z "$ac_c_werror_flag"
27274 || 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 glibcxx_cv_func___builtin_cosl_link=yes
27287 else
27288 echo "$as_me: failed program was:" >&5
27289 sed 's/^/| /' conftest.$ac_ext >&5
27291 glibcxx_cv_func___builtin_cosl_link=no
27293 rm -f conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
27299 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27300 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27301 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27302 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27303 cat >>confdefs.h <<_ACEOF
27304 #define ${ac_tr_func} 1
27305 _ACEOF
27311 dummyvar=no
27312 if test x$dummyvar = x"yes"; then
27313 cat >>confdefs.h <<\_ACEOF
27314 #define HAVE___BUILTIN_ABS 1
27315 _ACEOF
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE___BUILTIN_LABS 1
27319 _ACEOF
27321 cat >>confdefs.h <<\_ACEOF
27322 #define HAVE___BUILTIN_COS 1
27323 _ACEOF
27325 cat >>confdefs.h <<\_ACEOF
27326 #define HAVE___BUILTIN_COSF 1
27327 _ACEOF
27329 cat >>confdefs.h <<\_ACEOF
27330 #define HAVE___BUILTIN_COSL 1
27331 _ACEOF
27333 cat >>confdefs.h <<\_ACEOF
27334 #define HAVE___BUILTIN_FABS 1
27335 _ACEOF
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE___BUILTIN_FABSF 1
27339 _ACEOF
27341 cat >>confdefs.h <<\_ACEOF
27342 #define HAVE___BUILTIN_FABSL 1
27343 _ACEOF
27345 cat >>confdefs.h <<\_ACEOF
27346 #define HAVE___BUILTIN_SIN 1
27347 _ACEOF
27349 cat >>confdefs.h <<\_ACEOF
27350 #define HAVE___BUILTIN_SINF 1
27351 _ACEOF
27353 cat >>confdefs.h <<\_ACEOF
27354 #define HAVE___BUILTIN_SINL 1
27355 _ACEOF
27357 cat >>confdefs.h <<\_ACEOF
27358 #define HAVE___BUILTIN_SQRT 1
27359 _ACEOF
27361 cat >>confdefs.h <<\_ACEOF
27362 #define HAVE___BUILTIN_SQRTF 1
27363 _ACEOF
27365 cat >>confdefs.h <<\_ACEOF
27366 #define HAVE___BUILTIN_SQRTL 1
27367 _ACEOF
27373 echo "$as_me:$LINENO: checking for main in -lm" >&5
27374 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27375 if test "${ac_cv_lib_m_main+set}" = set; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
27377 else
27378 ac_check_lib_save_LIBS=$LIBS
27379 LIBS="-lm $LIBS"
27380 if test x$gcc_no_link = xyes; then
27381 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27383 { (exit 1); exit 1; }; }
27385 cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h. */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27394 main ()
27396 main ();
27398 return 0;
27400 _ACEOF
27401 rm -f conftest.$ac_objext conftest$ac_exeext
27402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27403 (eval $ac_link) 2>conftest.er1
27404 ac_status=$?
27405 grep -v '^ *+' conftest.er1 >conftest.err
27406 rm -f conftest.er1
27407 cat conftest.err >&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } &&
27410 { ac_try='test -z "$ac_c_werror_flag"
27411 || test ! -s conftest.err'
27412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413 (eval $ac_try) 2>&5
27414 ac_status=$?
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; } &&
27417 { ac_try='test -s conftest$ac_exeext'
27418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419 (eval $ac_try) 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_m_main=yes
27424 else
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27428 ac_cv_lib_m_main=no
27430 rm -f conftest.err conftest.$ac_objext \
27431 conftest$ac_exeext conftest.$ac_ext
27432 LIBS=$ac_check_lib_save_LIBS
27434 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27435 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27436 if test $ac_cv_lib_m_main = yes; then
27437 cat >>confdefs.h <<_ACEOF
27438 #define HAVE_LIBM 1
27439 _ACEOF
27441 LIBS="-lm $LIBS"
27446 for ac_func in copysignf
27448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27449 echo "$as_me:$LINENO: checking for $ac_func" >&5
27450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27451 if eval "test \"\${$as_ac_var+set}\" = set"; then
27452 echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454 if test x$gcc_no_link = xyes; then
27455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27457 { (exit 1); exit 1; }; }
27459 cat >conftest.$ac_ext <<_ACEOF
27460 /* confdefs.h. */
27461 _ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h. */
27465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27467 #define $ac_func innocuous_$ac_func
27469 /* System header to define __stub macros and hopefully few prototypes,
27470 which can conflict with char $ac_func (); below.
27471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27472 <limits.h> exists even on freestanding compilers. */
27474 #ifdef __STDC__
27475 # include <limits.h>
27476 #else
27477 # include <assert.h>
27478 #endif
27480 #undef $ac_func
27482 /* Override any gcc2 internal prototype to avoid an error. */
27483 #ifdef __cplusplus
27484 extern "C"
27486 #endif
27487 /* We use char because int might match the return type of a gcc2
27488 builtin and then its argument prototype would still apply. */
27489 char $ac_func ();
27490 /* The GNU C library defines this for functions which it implements
27491 to always fail with ENOSYS. Some functions are actually named
27492 something starting with __ and the normal name is an alias. */
27493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27494 choke me
27495 #else
27496 char (*f) () = $ac_func;
27497 #endif
27498 #ifdef __cplusplus
27500 #endif
27503 main ()
27505 return f != $ac_func;
27507 return 0;
27509 _ACEOF
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27512 (eval $ac_link) 2>conftest.er1
27513 ac_status=$?
27514 grep -v '^ *+' conftest.er1 >conftest.err
27515 rm -f conftest.er1
27516 cat conftest.err >&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
27519 { ac_try='test -z "$ac_c_werror_flag"
27520 || test ! -s conftest.err'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; } &&
27526 { ac_try='test -s conftest$ac_exeext'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; }; then
27532 eval "$as_ac_var=yes"
27533 else
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27537 eval "$as_ac_var=no"
27539 rm -f conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
27542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27544 if test `eval echo '${'$as_ac_var'}'` = yes; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27547 _ACEOF
27549 else
27550 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27552 done
27556 for ac_func in __signbit
27558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27559 echo "$as_me:$LINENO: checking for $ac_func" >&5
27560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27561 if eval "test \"\${$as_ac_var+set}\" = set"; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564 if test x$gcc_no_link = xyes; then
27565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27567 { (exit 1); exit 1; }; }
27569 cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h. */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27577 #define $ac_func innocuous_$ac_func
27579 /* System header to define __stub macros and hopefully few prototypes,
27580 which can conflict with char $ac_func (); below.
27581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27582 <limits.h> exists even on freestanding compilers. */
27584 #ifdef __STDC__
27585 # include <limits.h>
27586 #else
27587 # include <assert.h>
27588 #endif
27590 #undef $ac_func
27592 /* Override any gcc2 internal prototype to avoid an error. */
27593 #ifdef __cplusplus
27594 extern "C"
27596 #endif
27597 /* We use char because int might match the return type of a gcc2
27598 builtin and then its argument prototype would still apply. */
27599 char $ac_func ();
27600 /* The GNU C library defines this for functions which it implements
27601 to always fail with ENOSYS. Some functions are actually named
27602 something starting with __ and the normal name is an alias. */
27603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27604 choke me
27605 #else
27606 char (*f) () = $ac_func;
27607 #endif
27608 #ifdef __cplusplus
27610 #endif
27613 main ()
27615 return f != $ac_func;
27617 return 0;
27619 _ACEOF
27620 rm -f conftest.$ac_objext conftest$ac_exeext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27622 (eval $ac_link) 2>conftest.er1
27623 ac_status=$?
27624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
27629 { ac_try='test -z "$ac_c_werror_flag"
27630 || test ! -s conftest.err'
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest$ac_exeext'
27637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 eval "$as_ac_var=yes"
27643 else
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27647 eval "$as_ac_var=no"
27649 rm -f conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
27652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27654 if test `eval echo '${'$as_ac_var'}'` = yes; then
27655 cat >>confdefs.h <<_ACEOF
27656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27657 _ACEOF
27659 else
27660 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27662 done
27665 for ac_func in __signbitf
27667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668 echo "$as_me:$LINENO: checking for $ac_func" >&5
27669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670 if eval "test \"\${$as_ac_var+set}\" = set"; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 else
27673 if test x$gcc_no_link = xyes; then
27674 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27676 { (exit 1); exit 1; }; }
27678 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h. */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27686 #define $ac_func innocuous_$ac_func
27688 /* System header to define __stub macros and hopefully few prototypes,
27689 which can conflict with char $ac_func (); below.
27690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27691 <limits.h> exists even on freestanding compilers. */
27693 #ifdef __STDC__
27694 # include <limits.h>
27695 #else
27696 # include <assert.h>
27697 #endif
27699 #undef $ac_func
27701 /* Override any gcc2 internal prototype to avoid an error. */
27702 #ifdef __cplusplus
27703 extern "C"
27705 #endif
27706 /* We use char because int might match the return type of a gcc2
27707 builtin and then its argument prototype would still apply. */
27708 char $ac_func ();
27709 /* The GNU C library defines this for functions which it implements
27710 to always fail with ENOSYS. Some functions are actually named
27711 something starting with __ and the normal name is an alias. */
27712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27713 choke me
27714 #else
27715 char (*f) () = $ac_func;
27716 #endif
27717 #ifdef __cplusplus
27719 #endif
27722 main ()
27724 return f != $ac_func;
27726 return 0;
27728 _ACEOF
27729 rm -f conftest.$ac_objext conftest$ac_exeext
27730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27731 (eval $ac_link) 2>conftest.er1
27732 ac_status=$?
27733 grep -v '^ *+' conftest.er1 >conftest.err
27734 rm -f conftest.er1
27735 cat conftest.err >&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } &&
27738 { ac_try='test -z "$ac_c_werror_flag"
27739 || test ! -s conftest.err'
27740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27741 (eval $ac_try) 2>&5
27742 ac_status=$?
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; } &&
27745 { ac_try='test -s conftest$ac_exeext'
27746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27747 (eval $ac_try) 2>&5
27748 ac_status=$?
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); }; }; then
27751 eval "$as_ac_var=yes"
27752 else
27753 echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 eval "$as_ac_var=no"
27758 rm -f conftest.err conftest.$ac_objext \
27759 conftest$ac_exeext conftest.$ac_ext
27761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27763 if test `eval echo '${'$as_ac_var'}'` = yes; then
27764 cat >>confdefs.h <<_ACEOF
27765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27766 _ACEOF
27768 else
27769 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27771 done
27774 if test x$ac_cv_func_copysignl = x"yes"; then
27776 for ac_func in __signbitl
27778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27779 echo "$as_me:$LINENO: checking for $ac_func" >&5
27780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27781 if eval "test \"\${$as_ac_var+set}\" = set"; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784 if test x$gcc_no_link = xyes; then
27785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27787 { (exit 1); exit 1; }; }
27789 cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h. */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27797 #define $ac_func innocuous_$ac_func
27799 /* System header to define __stub macros and hopefully few prototypes,
27800 which can conflict with char $ac_func (); below.
27801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27802 <limits.h> exists even on freestanding compilers. */
27804 #ifdef __STDC__
27805 # include <limits.h>
27806 #else
27807 # include <assert.h>
27808 #endif
27810 #undef $ac_func
27812 /* Override any gcc2 internal prototype to avoid an error. */
27813 #ifdef __cplusplus
27814 extern "C"
27816 #endif
27817 /* We use char because int might match the return type of a gcc2
27818 builtin and then its argument prototype would still apply. */
27819 char $ac_func ();
27820 /* The GNU C library defines this for functions which it implements
27821 to always fail with ENOSYS. Some functions are actually named
27822 something starting with __ and the normal name is an alias. */
27823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27824 choke me
27825 #else
27826 char (*f) () = $ac_func;
27827 #endif
27828 #ifdef __cplusplus
27830 #endif
27833 main ()
27835 return f != $ac_func;
27837 return 0;
27839 _ACEOF
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27842 (eval $ac_link) 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
27849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 eval "$as_ac_var=yes"
27863 else
27864 echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27867 eval "$as_ac_var=no"
27869 rm -f conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
27872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27874 if test `eval echo '${'$as_ac_var'}'` = yes; then
27875 cat >>confdefs.h <<_ACEOF
27876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27877 _ACEOF
27879 else
27880 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27882 done
27886 # XXX Review this. Nothing uses it.
27887 if test -n "$LIBMATHOBJS"; then
27888 need_libmath=yes
27893 # Test wchar.h for mbstate_t, which is needed for char_traits and
27894 # others even if wchar_t support is not on.
27895 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27896 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27897 cat >conftest.$ac_ext <<_ACEOF
27898 /* confdefs.h. */
27899 _ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h. */
27903 #include <wchar.h>
27905 main ()
27907 mbstate_t teststate;
27909 return 0;
27911 _ACEOF
27912 rm -f conftest.$ac_objext
27913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27914 (eval $ac_compile) 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } &&
27921 { ac_try='test -z "$ac_c_werror_flag"
27922 || test ! -s conftest.err'
27923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27924 (eval $ac_try) 2>&5
27925 ac_status=$?
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); }; } &&
27928 { ac_try='test -s conftest.$ac_objext'
27929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; }; then
27934 have_mbstate_t=yes
27935 else
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27939 have_mbstate_t=no
27941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27942 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27943 echo "${ECHO_T}$have_mbstate_t" >&6
27944 if test x"$have_mbstate_t" = xyes; then
27945 cat >>confdefs.h <<\_ACEOF
27946 #define HAVE_MBSTATE_T 1
27947 _ACEOF
27951 # Sanity check for existence of ISO C99 headers for extended encoding.
27953 for ac_header in wchar.h
27955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27957 echo "$as_me:$LINENO: checking for $ac_header" >&5
27958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27964 else
27965 # Is the header compilable?
27966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27968 cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h. */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27974 $ac_includes_default
27975 #include <$ac_header>
27976 _ACEOF
27977 rm -f conftest.$ac_objext
27978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27979 (eval $ac_compile) 2>conftest.er1
27980 ac_status=$?
27981 grep -v '^ *+' conftest.er1 >conftest.err
27982 rm -f conftest.er1
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } &&
27986 { ac_try='test -z "$ac_c_werror_flag"
27987 || test ! -s conftest.err'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest.$ac_objext'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 ac_header_compiler=yes
28000 else
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28004 ac_header_compiler=no
28006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28008 echo "${ECHO_T}$ac_header_compiler" >&6
28010 # Is the header present?
28011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28013 cat >conftest.$ac_ext <<_ACEOF
28014 /* confdefs.h. */
28015 _ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h. */
28019 #include <$ac_header>
28020 _ACEOF
28021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28023 ac_status=$?
28024 grep -v '^ *+' conftest.er1 >conftest.err
28025 rm -f conftest.er1
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } >/dev/null; then
28029 if test -s conftest.err; then
28030 ac_cpp_err=$ac_c_preproc_warn_flag
28031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28032 else
28033 ac_cpp_err=
28035 else
28036 ac_cpp_err=yes
28038 if test -z "$ac_cpp_err"; then
28039 ac_header_preproc=yes
28040 else
28041 echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28044 ac_header_preproc=no
28046 rm -f conftest.err conftest.$ac_ext
28047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28048 echo "${ECHO_T}$ac_header_preproc" >&6
28050 # So? What about this header?
28051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28052 yes:no: )
28053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28057 ac_header_preproc=yes
28059 no:yes:* )
28060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28073 cat <<\_ASBOX
28074 ## ----------------------------------------- ##
28075 ## Report this to the package-unused lists. ##
28076 ## ----------------------------------------- ##
28077 _ASBOX
28079 sed "s/^/$as_me: WARNING: /" >&2
28081 esac
28082 echo "$as_me:$LINENO: checking for $ac_header" >&5
28083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28085 echo $ECHO_N "(cached) $ECHO_C" >&6
28086 else
28087 eval "$as_ac_Header=\$ac_header_preproc"
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28094 cat >>confdefs.h <<_ACEOF
28095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28096 _ACEOF
28097 ac_has_wchar_h=yes
28098 else
28099 ac_has_wchar_h=no
28102 done
28105 for ac_header in wctype.h
28107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28109 echo "$as_me:$LINENO: checking for $ac_header" >&5
28110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28116 else
28117 # Is the header compilable?
28118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28120 cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h. */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28126 $ac_includes_default
28127 #include <$ac_header>
28128 _ACEOF
28129 rm -f conftest.$ac_objext
28130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28131 (eval $ac_compile) 2>conftest.er1
28132 ac_status=$?
28133 grep -v '^ *+' conftest.er1 >conftest.err
28134 rm -f conftest.er1
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
28138 { ac_try='test -z "$ac_c_werror_flag"
28139 || test ! -s conftest.err'
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; } &&
28145 { ac_try='test -s conftest.$ac_objext'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; }; then
28151 ac_header_compiler=yes
28152 else
28153 echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28156 ac_header_compiler=no
28158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28160 echo "${ECHO_T}$ac_header_compiler" >&6
28162 # Is the header present?
28163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28165 cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h. */
28167 _ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28171 #include <$ac_header>
28172 _ACEOF
28173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28175 ac_status=$?
28176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } >/dev/null; then
28181 if test -s conftest.err; then
28182 ac_cpp_err=$ac_c_preproc_warn_flag
28183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28184 else
28185 ac_cpp_err=
28187 else
28188 ac_cpp_err=yes
28190 if test -z "$ac_cpp_err"; then
28191 ac_header_preproc=yes
28192 else
28193 echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28196 ac_header_preproc=no
28198 rm -f conftest.err conftest.$ac_ext
28199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28200 echo "${ECHO_T}$ac_header_preproc" >&6
28202 # So? What about this header?
28203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28204 yes:no: )
28205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28209 ac_header_preproc=yes
28211 no:yes:* )
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28225 cat <<\_ASBOX
28226 ## ----------------------------------------- ##
28227 ## Report this to the package-unused lists. ##
28228 ## ----------------------------------------- ##
28229 _ASBOX
28231 sed "s/^/$as_me: WARNING: /" >&2
28233 esac
28234 echo "$as_me:$LINENO: checking for $ac_header" >&5
28235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239 eval "$as_ac_Header=\$ac_header_preproc"
28241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28246 cat >>confdefs.h <<_ACEOF
28247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28248 _ACEOF
28249 ac_has_wctype_h=yes
28250 else
28251 ac_has_wctype_h=no
28254 done
28257 # Only continue checking if the ISO C99 headers exist and support is on.
28258 if test x"$ac_has_wchar_h" = xyes &&
28259 test x"$ac_has_wctype_h" = xyes &&
28260 test x"$enable_c_mbchar" != xno; then
28262 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28263 # numeric_limits can instantiate type_traits<wchar_t>
28264 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28265 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28266 cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h. */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28272 #include <wchar.h>
28274 main ()
28276 int i = WCHAR_MIN; int j = WCHAR_MAX;
28278 return 0;
28280 _ACEOF
28281 rm -f conftest.$ac_objext
28282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28283 (eval $ac_compile) 2>conftest.er1
28284 ac_status=$?
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
28290 { ac_try='test -z "$ac_c_werror_flag"
28291 || test ! -s conftest.err'
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; } &&
28297 { ac_try='test -s conftest.$ac_objext'
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 has_wchar_minmax=yes
28304 else
28305 echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28308 has_wchar_minmax=no
28310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28311 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28312 echo "${ECHO_T}$has_wchar_minmax" >&6
28314 # Test wchar.h for WEOF, which is what we use to determine whether
28315 # to specialize for char_traits<wchar_t> or not.
28316 echo "$as_me:$LINENO: checking for WEOF" >&5
28317 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28318 cat >conftest.$ac_ext <<_ACEOF
28319 /* confdefs.h. */
28320 _ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h. */
28325 #include <wchar.h>
28326 #include <stddef.h>
28328 main ()
28330 wint_t i = WEOF;
28332 return 0;
28334 _ACEOF
28335 rm -f conftest.$ac_objext
28336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28337 (eval $ac_compile) 2>conftest.er1
28338 ac_status=$?
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
28344 { ac_try='test -z "$ac_c_werror_flag"
28345 || test ! -s conftest.err'
28346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; } &&
28351 { ac_try='test -s conftest.$ac_objext'
28352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28353 (eval $ac_try) 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; }; then
28357 has_weof=yes
28358 else
28359 echo "$as_me: failed program was:" >&5
28360 sed 's/^/| /' conftest.$ac_ext >&5
28362 has_weof=no
28364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28365 echo "$as_me:$LINENO: result: $has_weof" >&5
28366 echo "${ECHO_T}$has_weof" >&6
28368 # Tests for wide character functions used in char_traits<wchar_t>.
28369 ac_wfuncs=yes
28376 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28379 echo "$as_me:$LINENO: checking for $ac_func" >&5
28380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28381 if eval "test \"\${$as_ac_var+set}\" = set"; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28383 else
28384 if test x$gcc_no_link = xyes; then
28385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28387 { (exit 1); exit 1; }; }
28389 cat >conftest.$ac_ext <<_ACEOF
28390 /* confdefs.h. */
28391 _ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28397 #define $ac_func innocuous_$ac_func
28399 /* System header to define __stub macros and hopefully few prototypes,
28400 which can conflict with char $ac_func (); below.
28401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28402 <limits.h> exists even on freestanding compilers. */
28404 #ifdef __STDC__
28405 # include <limits.h>
28406 #else
28407 # include <assert.h>
28408 #endif
28410 #undef $ac_func
28412 /* Override any gcc2 internal prototype to avoid an error. */
28413 #ifdef __cplusplus
28414 extern "C"
28416 #endif
28417 /* We use char because int might match the return type of a gcc2
28418 builtin and then its argument prototype would still apply. */
28419 char $ac_func ();
28420 /* The GNU C library defines this for functions which it implements
28421 to always fail with ENOSYS. Some functions are actually named
28422 something starting with __ and the normal name is an alias. */
28423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28424 choke me
28425 #else
28426 char (*f) () = $ac_func;
28427 #endif
28428 #ifdef __cplusplus
28430 #endif
28433 main ()
28435 return f != $ac_func;
28437 return 0;
28439 _ACEOF
28440 rm -f conftest.$ac_objext conftest$ac_exeext
28441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28442 (eval $ac_link) 2>conftest.er1
28443 ac_status=$?
28444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
28449 { ac_try='test -z "$ac_c_werror_flag"
28450 || test ! -s conftest.err'
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28453 ac_status=$?
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; } &&
28456 { ac_try='test -s conftest$ac_exeext'
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; }; then
28462 eval "$as_ac_var=yes"
28463 else
28464 echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28467 eval "$as_ac_var=no"
28469 rm -f conftest.err conftest.$ac_objext \
28470 conftest$ac_exeext conftest.$ac_ext
28472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28474 if test `eval echo '${'$as_ac_var'}'` = yes; then
28475 cat >>confdefs.h <<_ACEOF
28476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28477 _ACEOF
28479 else
28480 ac_wfuncs=no
28482 done
28485 # Checks for names injected into std:: by the c_std headers.
28532 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28533 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28534 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28535 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28536 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28537 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28540 echo "$as_me:$LINENO: checking for $ac_func" >&5
28541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28542 if eval "test \"\${$as_ac_var+set}\" = set"; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545 if test x$gcc_no_link = xyes; then
28546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28548 { (exit 1); exit 1; }; }
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h. */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28558 #define $ac_func innocuous_$ac_func
28560 /* System header to define __stub macros and hopefully few prototypes,
28561 which can conflict with char $ac_func (); below.
28562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28563 <limits.h> exists even on freestanding compilers. */
28565 #ifdef __STDC__
28566 # include <limits.h>
28567 #else
28568 # include <assert.h>
28569 #endif
28571 #undef $ac_func
28573 /* Override any gcc2 internal prototype to avoid an error. */
28574 #ifdef __cplusplus
28575 extern "C"
28577 #endif
28578 /* We use char because int might match the return type of a gcc2
28579 builtin and then its argument prototype would still apply. */
28580 char $ac_func ();
28581 /* The GNU C library defines this for functions which it implements
28582 to always fail with ENOSYS. Some functions are actually named
28583 something starting with __ and the normal name is an alias. */
28584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28585 choke me
28586 #else
28587 char (*f) () = $ac_func;
28588 #endif
28589 #ifdef __cplusplus
28591 #endif
28594 main ()
28596 return f != $ac_func;
28598 return 0;
28600 _ACEOF
28601 rm -f conftest.$ac_objext conftest$ac_exeext
28602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28603 (eval $ac_link) 2>conftest.er1
28604 ac_status=$?
28605 grep -v '^ *+' conftest.er1 >conftest.err
28606 rm -f conftest.er1
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } &&
28610 { ac_try='test -z "$ac_c_werror_flag"
28611 || test ! -s conftest.err'
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; } &&
28617 { ac_try='test -s conftest$ac_exeext'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28620 ac_status=$?
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28623 eval "$as_ac_var=yes"
28624 else
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 eval "$as_ac_var=no"
28630 rm -f conftest.err conftest.$ac_objext \
28631 conftest$ac_exeext conftest.$ac_ext
28633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28635 if test `eval echo '${'$as_ac_var'}'` = yes; then
28636 cat >>confdefs.h <<_ACEOF
28637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28638 _ACEOF
28640 else
28641 ac_wfuncs=no
28643 done
28646 # Checks for wide character functions that are not required
28647 # for basic wchar_t support. Don't disable support if they are missing.
28648 # Injection of these is wrapped with guard macros.
28654 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 echo "$as_me:$LINENO: checking for $ac_func" >&5
28658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28659 if eval "test \"\${$as_ac_var+set}\" = set"; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662 if test x$gcc_no_link = xyes; then
28663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28665 { (exit 1); exit 1; }; }
28667 cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h. */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28675 #define $ac_func innocuous_$ac_func
28677 /* System header to define __stub macros and hopefully few prototypes,
28678 which can conflict with char $ac_func (); below.
28679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28680 <limits.h> exists even on freestanding compilers. */
28682 #ifdef __STDC__
28683 # include <limits.h>
28684 #else
28685 # include <assert.h>
28686 #endif
28688 #undef $ac_func
28690 /* Override any gcc2 internal prototype to avoid an error. */
28691 #ifdef __cplusplus
28692 extern "C"
28694 #endif
28695 /* We use char because int might match the return type of a gcc2
28696 builtin and then its argument prototype would still apply. */
28697 char $ac_func ();
28698 /* The GNU C library defines this for functions which it implements
28699 to always fail with ENOSYS. Some functions are actually named
28700 something starting with __ and the normal name is an alias. */
28701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28702 choke me
28703 #else
28704 char (*f) () = $ac_func;
28705 #endif
28706 #ifdef __cplusplus
28708 #endif
28711 main ()
28713 return f != $ac_func;
28715 return 0;
28717 _ACEOF
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720 (eval $ac_link) 2>conftest.er1
28721 ac_status=$?
28722 grep -v '^ *+' conftest.er1 >conftest.err
28723 rm -f conftest.er1
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag"
28728 || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28731 ac_status=$?
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest$ac_exeext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 eval "$as_ac_var=yes"
28741 else
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 eval "$as_ac_var=no"
28747 rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28752 if test `eval echo '${'$as_ac_var'}'` = yes; then
28753 cat >>confdefs.h <<_ACEOF
28754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28755 _ACEOF
28758 done
28761 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28762 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28763 if test x"$has_weof" = xyes &&
28764 test x"$has_wchar_minmax" = xyes &&
28765 test x"$ac_wfuncs" = xyes;
28766 then
28767 ac_isoC99_wchar_t=yes
28768 else
28769 ac_isoC99_wchar_t=no
28771 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28772 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28774 # Use iconv for wchar_t to char conversions. As such, check for
28775 # X/Open Portability Guide, version 2 features (XPG2).
28776 if test "${ac_cv_header_iconv_h+set}" = set; then
28777 echo "$as_me:$LINENO: checking for iconv.h" >&5
28778 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28779 if test "${ac_cv_header_iconv_h+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28783 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28784 else
28785 # Is the header compilable?
28786 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28787 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28788 cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h. */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 $ac_includes_default
28795 #include <iconv.h>
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28799 (eval $ac_compile) 2>conftest.er1
28800 ac_status=$?
28801 grep -v '^ *+' conftest.er1 >conftest.err
28802 rm -f conftest.er1
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } &&
28806 { ac_try='test -z "$ac_c_werror_flag"
28807 || test ! -s conftest.err'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; } &&
28813 { ac_try='test -s conftest.$ac_objext'
28814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 (eval $ac_try) 2>&5
28816 ac_status=$?
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); }; }; then
28819 ac_header_compiler=yes
28820 else
28821 echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28824 ac_header_compiler=no
28826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28828 echo "${ECHO_T}$ac_header_compiler" >&6
28830 # Is the header present?
28831 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28832 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28833 cat >conftest.$ac_ext <<_ACEOF
28834 /* confdefs.h. */
28835 _ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28839 #include <iconv.h>
28840 _ACEOF
28841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28843 ac_status=$?
28844 grep -v '^ *+' conftest.er1 >conftest.err
28845 rm -f conftest.er1
28846 cat conftest.err >&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } >/dev/null; then
28849 if test -s conftest.err; then
28850 ac_cpp_err=$ac_c_preproc_warn_flag
28851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28852 else
28853 ac_cpp_err=
28855 else
28856 ac_cpp_err=yes
28858 if test -z "$ac_cpp_err"; then
28859 ac_header_preproc=yes
28860 else
28861 echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28864 ac_header_preproc=no
28866 rm -f conftest.err conftest.$ac_ext
28867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28868 echo "${ECHO_T}$ac_header_preproc" >&6
28870 # So? What about this header?
28871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28872 yes:no: )
28873 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28874 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28875 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28876 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28877 ac_header_preproc=yes
28879 no:yes:* )
28880 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28881 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28883 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28885 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28886 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28887 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28888 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28889 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28890 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28891 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28893 cat <<\_ASBOX
28894 ## ----------------------------------------- ##
28895 ## Report this to the package-unused lists. ##
28896 ## ----------------------------------------- ##
28897 _ASBOX
28899 sed "s/^/$as_me: WARNING: /" >&2
28901 esac
28902 echo "$as_me:$LINENO: checking for iconv.h" >&5
28903 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28904 if test "${ac_cv_header_iconv_h+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 else
28907 ac_cv_header_iconv_h=$ac_header_preproc
28909 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28910 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28913 if test $ac_cv_header_iconv_h = yes; then
28914 ac_has_iconv_h=yes
28915 else
28916 ac_has_iconv_h=no
28920 if test "${ac_cv_header_langinfo_h+set}" = set; then
28921 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28922 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28923 if test "${ac_cv_header_langinfo_h+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28926 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28927 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28928 else
28929 # Is the header compilable?
28930 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28931 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28932 cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h. */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 $ac_includes_default
28939 #include <langinfo.h>
28940 _ACEOF
28941 rm -f conftest.$ac_objext
28942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28943 (eval $ac_compile) 2>conftest.er1
28944 ac_status=$?
28945 grep -v '^ *+' conftest.er1 >conftest.err
28946 rm -f conftest.er1
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
28950 { ac_try='test -z "$ac_c_werror_flag"
28951 || test ! -s conftest.err'
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest.$ac_objext'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 ac_header_compiler=yes
28964 else
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 ac_header_compiler=no
28970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28972 echo "${ECHO_T}$ac_header_compiler" >&6
28974 # Is the header present?
28975 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28976 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28977 cat >conftest.$ac_ext <<_ACEOF
28978 /* confdefs.h. */
28979 _ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h. */
28983 #include <langinfo.h>
28984 _ACEOF
28985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28987 ac_status=$?
28988 grep -v '^ *+' conftest.er1 >conftest.err
28989 rm -f conftest.er1
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } >/dev/null; then
28993 if test -s conftest.err; then
28994 ac_cpp_err=$ac_c_preproc_warn_flag
28995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28996 else
28997 ac_cpp_err=
28999 else
29000 ac_cpp_err=yes
29002 if test -z "$ac_cpp_err"; then
29003 ac_header_preproc=yes
29004 else
29005 echo "$as_me: failed program was:" >&5
29006 sed 's/^/| /' conftest.$ac_ext >&5
29008 ac_header_preproc=no
29010 rm -f conftest.err conftest.$ac_ext
29011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6
29014 # So? What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016 yes:no: )
29017 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29023 no:yes:* )
29024 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
29037 cat <<\_ASBOX
29038 ## ----------------------------------------- ##
29039 ## Report this to the package-unused lists. ##
29040 ## ----------------------------------------- ##
29041 _ASBOX
29043 sed "s/^/$as_me: WARNING: /" >&2
29045 esac
29046 echo "$as_me:$LINENO: checking for langinfo.h" >&5
29047 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
29048 if test "${ac_cv_header_langinfo_h+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051 ac_cv_header_langinfo_h=$ac_header_preproc
29053 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29054 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29057 if test $ac_cv_header_langinfo_h = yes; then
29058 ac_has_langinfo_h=yes
29059 else
29060 ac_has_langinfo_h=no
29065 # Check for existence of libiconv.a providing XPG2 wchar_t support.
29066 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
29067 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
29068 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070 else
29071 ac_check_lib_save_LIBS=$LIBS
29072 LIBS="-liconv $LIBS"
29073 if test x$gcc_no_link = xyes; then
29074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29076 { (exit 1); exit 1; }; }
29078 cat >conftest.$ac_ext <<_ACEOF
29079 /* confdefs.h. */
29080 _ACEOF
29081 cat confdefs.h >>conftest.$ac_ext
29082 cat >>conftest.$ac_ext <<_ACEOF
29083 /* end confdefs.h. */
29085 /* Override any gcc2 internal prototype to avoid an error. */
29086 #ifdef __cplusplus
29087 extern "C"
29088 #endif
29089 /* We use char because int might match the return type of a gcc2
29090 builtin and then its argument prototype would still apply. */
29091 char iconv ();
29093 main ()
29095 iconv ();
29097 return 0;
29099 _ACEOF
29100 rm -f conftest.$ac_objext conftest$ac_exeext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29102 (eval $ac_link) 2>conftest.er1
29103 ac_status=$?
29104 grep -v '^ *+' conftest.er1 >conftest.err
29105 rm -f conftest.er1
29106 cat conftest.err >&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
29109 { ac_try='test -z "$ac_c_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest$ac_exeext'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29119 ac_status=$?
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29122 ac_cv_lib_iconv_iconv=yes
29123 else
29124 echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29127 ac_cv_lib_iconv_iconv=no
29129 rm -f conftest.err conftest.$ac_objext \
29130 conftest$ac_exeext conftest.$ac_ext
29131 LIBS=$ac_check_lib_save_LIBS
29133 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29134 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29135 if test $ac_cv_lib_iconv_iconv = yes; then
29136 LIBICONV="-liconv"
29139 ac_save_LIBS="$LIBS"
29140 LIBS="$LIBS $LIBICONV"
29147 for ac_func in iconv_open iconv_close iconv nl_langinfo
29149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29150 echo "$as_me:$LINENO: checking for $ac_func" >&5
29151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29152 if eval "test \"\${$as_ac_var+set}\" = set"; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29154 else
29155 if test x$gcc_no_link = xyes; then
29156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29158 { (exit 1); exit 1; }; }
29160 cat >conftest.$ac_ext <<_ACEOF
29161 /* confdefs.h. */
29162 _ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h. */
29166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29168 #define $ac_func innocuous_$ac_func
29170 /* System header to define __stub macros and hopefully few prototypes,
29171 which can conflict with char $ac_func (); below.
29172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29173 <limits.h> exists even on freestanding compilers. */
29175 #ifdef __STDC__
29176 # include <limits.h>
29177 #else
29178 # include <assert.h>
29179 #endif
29181 #undef $ac_func
29183 /* Override any gcc2 internal prototype to avoid an error. */
29184 #ifdef __cplusplus
29185 extern "C"
29187 #endif
29188 /* We use char because int might match the return type of a gcc2
29189 builtin and then its argument prototype would still apply. */
29190 char $ac_func ();
29191 /* The GNU C library defines this for functions which it implements
29192 to always fail with ENOSYS. Some functions are actually named
29193 something starting with __ and the normal name is an alias. */
29194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29195 choke me
29196 #else
29197 char (*f) () = $ac_func;
29198 #endif
29199 #ifdef __cplusplus
29201 #endif
29204 main ()
29206 return f != $ac_func;
29208 return 0;
29210 _ACEOF
29211 rm -f conftest.$ac_objext conftest$ac_exeext
29212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29213 (eval $ac_link) 2>conftest.er1
29214 ac_status=$?
29215 grep -v '^ *+' conftest.er1 >conftest.err
29216 rm -f conftest.er1
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } &&
29220 { ac_try='test -z "$ac_c_werror_flag"
29221 || test ! -s conftest.err'
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29224 ac_status=$?
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; } &&
29227 { ac_try='test -s conftest$ac_exeext'
29228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229 (eval $ac_try) 2>&5
29230 ac_status=$?
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); }; }; then
29233 eval "$as_ac_var=yes"
29234 else
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29238 eval "$as_ac_var=no"
29240 rm -f conftest.err conftest.$ac_objext \
29241 conftest$ac_exeext conftest.$ac_ext
29243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29245 if test `eval echo '${'$as_ac_var'}'` = yes; then
29246 cat >>confdefs.h <<_ACEOF
29247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29248 _ACEOF
29249 ac_XPG2funcs=yes
29250 else
29251 ac_XPG2funcs=no
29253 done
29256 LIBS="$ac_save_LIBS"
29258 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29259 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29260 if test x"$ac_has_iconv_h" = xyes &&
29261 test x"$ac_has_langinfo_h" = xyes &&
29262 test x"$ac_XPG2funcs" = xyes;
29263 then
29264 ac_XPG2_wchar_t=yes
29265 else
29266 ac_XPG2_wchar_t=no
29268 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29269 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29271 # At the moment, only enable wchar_t specializations if all the
29272 # above support is present.
29273 if test x"$ac_isoC99_wchar_t" = xyes &&
29274 test x"$ac_XPG2_wchar_t" = xyes;
29275 then
29276 cat >>confdefs.h <<\_ACEOF
29277 #define _GLIBCXX_USE_WCHAR_T 1
29278 _ACEOF
29280 enable_wchar_t=yes
29283 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29284 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29285 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29286 echo "${ECHO_T}$enable_wchar_t" >&6
29289 ac_test_CXXFLAGS="${CXXFLAGS+set}"
29290 ac_save_CXXFLAGS="$CXXFLAGS"
29291 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29294 echo "$as_me:$LINENO: checking for strtold declaration" >&5
29295 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29296 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29297 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29298 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 else
29303 ac_ext=cc
29304 ac_cpp='$CXXCPP $CPPFLAGS'
29305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29309 cat >conftest.$ac_ext <<_ACEOF
29310 /* confdefs.h. */
29311 _ACEOF
29312 cat confdefs.h >>conftest.$ac_ext
29313 cat >>conftest.$ac_ext <<_ACEOF
29314 /* end confdefs.h. */
29315 #include <stdlib.h>
29317 main ()
29319 strtold(0, 0);
29321 return 0;
29323 _ACEOF
29324 rm -f conftest.$ac_objext
29325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29326 (eval $ac_compile) 2>conftest.er1
29327 ac_status=$?
29328 grep -v '^ *+' conftest.er1 >conftest.err
29329 rm -f conftest.er1
29330 cat conftest.err >&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } &&
29333 { ac_try='test -z "$ac_cxx_werror_flag"
29334 || test ! -s conftest.err'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try='test -s conftest.$ac_objext'
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; }; then
29346 glibcxx_cv_func_strtold_use=yes
29347 else
29348 echo "$as_me: failed program was:" >&5
29349 sed 's/^/| /' conftest.$ac_ext >&5
29351 glibcxx_cv_func_strtold_use=no
29353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29354 ac_ext=c
29355 ac_cpp='$CPP $CPPFLAGS'
29356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29364 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29365 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29366 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29368 for ac_func in strtold
29370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29371 echo "$as_me:$LINENO: checking for $ac_func" >&5
29372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29373 if eval "test \"\${$as_ac_var+set}\" = set"; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375 else
29376 if test x$gcc_no_link = xyes; then
29377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29379 { (exit 1); exit 1; }; }
29381 cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h. */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29389 #define $ac_func innocuous_$ac_func
29391 /* System header to define __stub macros and hopefully few prototypes,
29392 which can conflict with char $ac_func (); below.
29393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29394 <limits.h> exists even on freestanding compilers. */
29396 #ifdef __STDC__
29397 # include <limits.h>
29398 #else
29399 # include <assert.h>
29400 #endif
29402 #undef $ac_func
29404 /* Override any gcc2 internal prototype to avoid an error. */
29405 #ifdef __cplusplus
29406 extern "C"
29408 #endif
29409 /* We use char because int might match the return type of a gcc2
29410 builtin and then its argument prototype would still apply. */
29411 char $ac_func ();
29412 /* The GNU C library defines this for functions which it implements
29413 to always fail with ENOSYS. Some functions are actually named
29414 something starting with __ and the normal name is an alias. */
29415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29416 choke me
29417 #else
29418 char (*f) () = $ac_func;
29419 #endif
29420 #ifdef __cplusplus
29422 #endif
29425 main ()
29427 return f != $ac_func;
29429 return 0;
29431 _ACEOF
29432 rm -f conftest.$ac_objext conftest$ac_exeext
29433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29434 (eval $ac_link) 2>conftest.er1
29435 ac_status=$?
29436 grep -v '^ *+' conftest.er1 >conftest.err
29437 rm -f conftest.er1
29438 cat conftest.err >&5
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); } &&
29441 { ac_try='test -z "$ac_c_werror_flag"
29442 || test ! -s conftest.err'
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; } &&
29448 { ac_try='test -s conftest$ac_exeext'
29449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450 (eval $ac_try) 2>&5
29451 ac_status=$?
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; }; then
29454 eval "$as_ac_var=yes"
29455 else
29456 echo "$as_me: failed program was:" >&5
29457 sed 's/^/| /' conftest.$ac_ext >&5
29459 eval "$as_ac_var=no"
29461 rm -f conftest.err conftest.$ac_objext \
29462 conftest$ac_exeext conftest.$ac_ext
29464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29466 if test `eval echo '${'$as_ac_var'}'` = yes; then
29467 cat >>confdefs.h <<_ACEOF
29468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29469 _ACEOF
29472 done
29477 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29478 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29479 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29480 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29482 else
29486 ac_ext=cc
29487 ac_cpp='$CXXCPP $CPPFLAGS'
29488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29492 cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h. */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29498 #include <stdlib.h>
29500 main ()
29502 strtof(0, 0);
29504 return 0;
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29509 (eval $ac_compile) 2>conftest.er1
29510 ac_status=$?
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -z "$ac_cxx_werror_flag"
29517 || test ! -s conftest.err'
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest.$ac_objext'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 glibcxx_cv_func_strtof_use=yes
29530 else
29531 echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29534 glibcxx_cv_func_strtof_use=no
29536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29537 ac_ext=c
29538 ac_cpp='$CPP $CPPFLAGS'
29539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29547 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29548 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29549 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29551 for ac_func in strtof
29553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29554 echo "$as_me:$LINENO: checking for $ac_func" >&5
29555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29556 if eval "test \"\${$as_ac_var+set}\" = set"; then
29557 echo $ECHO_N "(cached) $ECHO_C" >&6
29558 else
29559 if test x$gcc_no_link = xyes; then
29560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29562 { (exit 1); exit 1; }; }
29564 cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h. */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29572 #define $ac_func innocuous_$ac_func
29574 /* System header to define __stub macros and hopefully few prototypes,
29575 which can conflict with char $ac_func (); below.
29576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29577 <limits.h> exists even on freestanding compilers. */
29579 #ifdef __STDC__
29580 # include <limits.h>
29581 #else
29582 # include <assert.h>
29583 #endif
29585 #undef $ac_func
29587 /* Override any gcc2 internal prototype to avoid an error. */
29588 #ifdef __cplusplus
29589 extern "C"
29591 #endif
29592 /* We use char because int might match the return type of a gcc2
29593 builtin and then its argument prototype would still apply. */
29594 char $ac_func ();
29595 /* The GNU C library defines this for functions which it implements
29596 to always fail with ENOSYS. Some functions are actually named
29597 something starting with __ and the normal name is an alias. */
29598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29599 choke me
29600 #else
29601 char (*f) () = $ac_func;
29602 #endif
29603 #ifdef __cplusplus
29605 #endif
29608 main ()
29610 return f != $ac_func;
29612 return 0;
29614 _ACEOF
29615 rm -f conftest.$ac_objext conftest$ac_exeext
29616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29617 (eval $ac_link) 2>conftest.er1
29618 ac_status=$?
29619 grep -v '^ *+' conftest.er1 >conftest.err
29620 rm -f conftest.er1
29621 cat conftest.err >&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); } &&
29624 { ac_try='test -z "$ac_c_werror_flag"
29625 || test ! -s conftest.err'
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; } &&
29631 { ac_try='test -s conftest$ac_exeext'
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29634 ac_status=$?
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 eval "$as_ac_var=yes"
29638 else
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29642 eval "$as_ac_var=no"
29644 rm -f conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
29647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29649 if test `eval echo '${'$as_ac_var'}'` = yes; then
29650 cat >>confdefs.h <<_ACEOF
29651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29652 _ACEOF
29655 done
29660 CXXFLAGS="$ac_save_CXXFLAGS"
29663 # For showmanyc_helper().
29666 for ac_header in sys/ioctl.h sys/filio.h
29668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29670 echo "$as_me:$LINENO: checking for $ac_header" >&5
29671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29677 else
29678 # Is the header compilable?
29679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29681 cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h. */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29687 $ac_includes_default
29688 #include <$ac_header>
29689 _ACEOF
29690 rm -f conftest.$ac_objext
29691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29692 (eval $ac_compile) 2>conftest.er1
29693 ac_status=$?
29694 grep -v '^ *+' conftest.er1 >conftest.err
29695 rm -f conftest.er1
29696 cat conftest.err >&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); } &&
29699 { ac_try='test -z "$ac_c_werror_flag"
29700 || test ! -s conftest.err'
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest.$ac_objext'
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 ac_header_compiler=yes
29713 else
29714 echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29717 ac_header_compiler=no
29719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29721 echo "${ECHO_T}$ac_header_compiler" >&6
29723 # Is the header present?
29724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29726 cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h. */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 #include <$ac_header>
29733 _ACEOF
29734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29736 ac_status=$?
29737 grep -v '^ *+' conftest.er1 >conftest.err
29738 rm -f conftest.er1
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } >/dev/null; then
29742 if test -s conftest.err; then
29743 ac_cpp_err=$ac_c_preproc_warn_flag
29744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29745 else
29746 ac_cpp_err=
29748 else
29749 ac_cpp_err=yes
29751 if test -z "$ac_cpp_err"; then
29752 ac_header_preproc=yes
29753 else
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ac_header_preproc=no
29759 rm -f conftest.err conftest.$ac_ext
29760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29761 echo "${ECHO_T}$ac_header_preproc" >&6
29763 # So? What about this header?
29764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29765 yes:no: )
29766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29770 ac_header_preproc=yes
29772 no:yes:* )
29773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29786 cat <<\_ASBOX
29787 ## ----------------------------------------- ##
29788 ## Report this to the package-unused lists. ##
29789 ## ----------------------------------------- ##
29790 _ASBOX
29792 sed "s/^/$as_me: WARNING: /" >&2
29794 esac
29795 echo "$as_me:$LINENO: checking for $ac_header" >&5
29796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799 else
29800 eval "$as_ac_Header=\$ac_header_preproc"
29802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29807 cat >>confdefs.h <<_ACEOF
29808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29809 _ACEOF
29813 done
29816 if test "${glibcxx_cv_POLL+set}" = set; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29820 if test x$gcc_no_link = xyes; then
29821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29823 { (exit 1); exit 1; }; }
29825 cat >conftest.$ac_ext <<_ACEOF
29826 /* confdefs.h. */
29827 _ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29831 #include <poll.h>
29833 main ()
29835 struct pollfd pfd[1];
29836 pfd[0].events = POLLIN;
29837 poll(pfd, 1, 0);
29839 return 0;
29841 _ACEOF
29842 rm -f conftest.$ac_objext conftest$ac_exeext
29843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29844 (eval $ac_link) 2>conftest.er1
29845 ac_status=$?
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
29851 { ac_try='test -z "$ac_c_werror_flag"
29852 || test ! -s conftest.err'
29853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854 (eval $ac_try) 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest$ac_exeext'
29859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29860 (eval $ac_try) 2>&5
29861 ac_status=$?
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); }; }; then
29864 glibcxx_cv_POLL=yes
29865 else
29866 echo "$as_me: failed program was:" >&5
29867 sed 's/^/| /' conftest.$ac_ext >&5
29869 glibcxx_cv_POLL=no
29871 rm -f conftest.err conftest.$ac_objext \
29872 conftest$ac_exeext conftest.$ac_ext
29876 if test $glibcxx_cv_POLL = yes; then
29877 cat >>confdefs.h <<\_ACEOF
29878 #define HAVE_POLL 1
29879 _ACEOF
29884 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29885 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 else
29888 if test x$gcc_no_link = xyes; then
29889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29891 { (exit 1); exit 1; }; }
29893 cat >conftest.$ac_ext <<_ACEOF
29894 /* confdefs.h. */
29895 _ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h. */
29899 #include <sys/stat.h>
29901 main ()
29903 struct stat buffer;
29904 fstat(0, &buffer);
29905 S_ISREG(buffer.st_mode);
29907 return 0;
29909 _ACEOF
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29912 (eval $ac_link) 2>conftest.er1
29913 ac_status=$?
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } &&
29919 { ac_try='test -z "$ac_c_werror_flag"
29920 || test ! -s conftest.err'
29921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29922 (eval $ac_try) 2>&5
29923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
29926 { ac_try='test -s conftest$ac_exeext'
29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928 (eval $ac_try) 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 glibcxx_cv_S_ISREG=yes
29933 else
29934 echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29937 glibcxx_cv_S_ISREG=no
29939 rm -f conftest.err conftest.$ac_objext \
29940 conftest$ac_exeext conftest.$ac_ext
29944 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29948 if test x$gcc_no_link = xyes; then
29949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29951 { (exit 1); exit 1; }; }
29953 cat >conftest.$ac_ext <<_ACEOF
29954 /* confdefs.h. */
29955 _ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h. */
29959 #include <sys/stat.h>
29961 main ()
29963 struct stat buffer;
29964 fstat(0, &buffer);
29965 S_IFREG & buffer.st_mode;
29967 return 0;
29969 _ACEOF
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972 (eval $ac_link) 2>conftest.er1
29973 ac_status=$?
29974 grep -v '^ *+' conftest.er1 >conftest.err
29975 rm -f conftest.er1
29976 cat conftest.err >&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } &&
29979 { ac_try='test -z "$ac_c_werror_flag"
29980 || test ! -s conftest.err'
29981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29982 (eval $ac_try) 2>&5
29983 ac_status=$?
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; } &&
29986 { ac_try='test -s conftest$ac_exeext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 glibcxx_cv_S_IFREG=yes
29993 else
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 glibcxx_cv_S_IFREG=no
29999 rm -f conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
30004 if test $glibcxx_cv_S_ISREG = yes; then
30005 cat >>confdefs.h <<\_ACEOF
30006 #define HAVE_S_ISREG 1
30007 _ACEOF
30009 elif test $glibcxx_cv_S_IFREG = yes; then
30010 cat >>confdefs.h <<\_ACEOF
30011 #define HAVE_S_IFREG 1
30012 _ACEOF
30017 # For xsputn_2().
30019 for ac_header in sys/uio.h
30021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30023 echo "$as_me:$LINENO: checking for $ac_header" >&5
30024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30030 else
30031 # Is the header compilable?
30032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30034 cat >conftest.$ac_ext <<_ACEOF
30035 /* confdefs.h. */
30036 _ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h. */
30040 $ac_includes_default
30041 #include <$ac_header>
30042 _ACEOF
30043 rm -f conftest.$ac_objext
30044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30045 (eval $ac_compile) 2>conftest.er1
30046 ac_status=$?
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
30052 { ac_try='test -z "$ac_c_werror_flag"
30053 || test ! -s conftest.err'
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30056 ac_status=$?
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; } &&
30059 { ac_try='test -s conftest.$ac_objext'
30060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30061 (eval $ac_try) 2>&5
30062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
30065 ac_header_compiler=yes
30066 else
30067 echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30070 ac_header_compiler=no
30072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30074 echo "${ECHO_T}$ac_header_compiler" >&6
30076 # Is the header present?
30077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30079 cat >conftest.$ac_ext <<_ACEOF
30080 /* confdefs.h. */
30081 _ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30085 #include <$ac_header>
30086 _ACEOF
30087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30089 ac_status=$?
30090 grep -v '^ *+' conftest.er1 >conftest.err
30091 rm -f conftest.er1
30092 cat conftest.err >&5
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); } >/dev/null; then
30095 if test -s conftest.err; then
30096 ac_cpp_err=$ac_c_preproc_warn_flag
30097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30098 else
30099 ac_cpp_err=
30101 else
30102 ac_cpp_err=yes
30104 if test -z "$ac_cpp_err"; then
30105 ac_header_preproc=yes
30106 else
30107 echo "$as_me: failed program was:" >&5
30108 sed 's/^/| /' conftest.$ac_ext >&5
30110 ac_header_preproc=no
30112 rm -f conftest.err conftest.$ac_ext
30113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30114 echo "${ECHO_T}$ac_header_preproc" >&6
30116 # So? What about this header?
30117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30118 yes:no: )
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30123 ac_header_preproc=yes
30125 no:yes:* )
30126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30139 cat <<\_ASBOX
30140 ## ----------------------------------------- ##
30141 ## Report this to the package-unused lists. ##
30142 ## ----------------------------------------- ##
30143 _ASBOX
30145 sed "s/^/$as_me: WARNING: /" >&2
30147 esac
30148 echo "$as_me:$LINENO: checking for $ac_header" >&5
30149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153 eval "$as_ac_Header=\$ac_header_preproc"
30155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30160 cat >>confdefs.h <<_ACEOF
30161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30162 _ACEOF
30166 done
30169 if test "${glibcxx_cv_WRITEV+set}" = set; then
30170 echo $ECHO_N "(cached) $ECHO_C" >&6
30171 else
30173 if test x$gcc_no_link = xyes; then
30174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30176 { (exit 1); exit 1; }; }
30178 cat >conftest.$ac_ext <<_ACEOF
30179 /* confdefs.h. */
30180 _ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h. */
30184 #include <sys/uio.h>
30186 main ()
30188 struct iovec iov[2];
30189 writev(0, iov, 0);
30191 return 0;
30193 _ACEOF
30194 rm -f conftest.$ac_objext conftest$ac_exeext
30195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30196 (eval $ac_link) 2>conftest.er1
30197 ac_status=$?
30198 grep -v '^ *+' conftest.er1 >conftest.err
30199 rm -f conftest.er1
30200 cat conftest.err >&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } &&
30203 { ac_try='test -z "$ac_c_werror_flag"
30204 || test ! -s conftest.err'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; } &&
30210 { ac_try='test -s conftest$ac_exeext'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 glibcxx_cv_WRITEV=yes
30217 else
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30221 glibcxx_cv_WRITEV=no
30223 rm -f conftest.err conftest.$ac_objext \
30224 conftest$ac_exeext conftest.$ac_ext
30228 if test $glibcxx_cv_WRITEV = yes; then
30229 cat >>confdefs.h <<\_ACEOF
30230 #define HAVE_WRITEV 1
30231 _ACEOF
30236 # For the __streamoff_base_type typedef.
30238 if test "${glibcxx_cv_INT64_T+set}" = set; then
30239 echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30242 cat >conftest.$ac_ext <<_ACEOF
30243 /* confdefs.h. */
30244 _ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 #include <stdint.h>
30250 main ()
30252 int64_t var;
30254 return 0;
30256 _ACEOF
30257 rm -f conftest.$ac_objext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30259 (eval $ac_compile) 2>conftest.er1
30260 ac_status=$?
30261 grep -v '^ *+' conftest.er1 >conftest.err
30262 rm -f conftest.er1
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
30266 { ac_try='test -z "$ac_c_werror_flag"
30267 || test ! -s conftest.err'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30270 ac_status=$?
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest.$ac_objext'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30279 glibcxx_cv_INT64_T=yes
30280 else
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30284 glibcxx_cv_INT64_T=no
30286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30290 if test $glibcxx_cv_INT64_T = yes; then
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_INT64_T 1
30293 _ACEOF
30298 # For LFS support.
30302 ac_ext=cc
30303 ac_cpp='$CXXCPP $CPPFLAGS'
30304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30308 ac_save_CXXFLAGS="$CXXFLAGS"
30309 CXXFLAGS="$CXXFLAGS -fno-exceptions"
30310 if test "${glibcxx_cv_LFS+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30314 if test x$gcc_no_link = xyes; then
30315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30317 { (exit 1); exit 1; }; }
30319 cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h. */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 #include <unistd.h>
30326 #include <stdio.h>
30329 main ()
30331 FILE* fp;
30332 fopen64("t", "w");
30333 fseeko64(fp, 0, SEEK_CUR);
30334 ftello64(fp);
30335 lseek64(1, 0, SEEK_CUR);
30337 return 0;
30339 _ACEOF
30340 rm -f conftest.$ac_objext conftest$ac_exeext
30341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30342 (eval $ac_link) 2>conftest.er1
30343 ac_status=$?
30344 grep -v '^ *+' conftest.er1 >conftest.err
30345 rm -f conftest.er1
30346 cat conftest.err >&5
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); } &&
30349 { ac_try='test -z "$ac_cxx_werror_flag"
30350 || test ! -s conftest.err'
30351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30352 (eval $ac_try) 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; } &&
30356 { ac_try='test -s conftest$ac_exeext'
30357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30358 (eval $ac_try) 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; }; then
30362 glibcxx_cv_LFS=yes
30363 else
30364 echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.$ac_ext >&5
30367 glibcxx_cv_LFS=no
30369 rm -f conftest.err conftest.$ac_objext \
30370 conftest$ac_exeext conftest.$ac_ext
30374 if test $glibcxx_cv_LFS = yes; then
30375 cat >>confdefs.h <<\_ACEOF
30376 #define _GLIBCXX_USE_LFS 1
30377 _ACEOF
30380 CXXFLAGS="$ac_save_CXXFLAGS"
30381 ac_ext=c
30382 ac_cpp='$CPP $CPPFLAGS'
30383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30390 if test "${ac_cv_header_locale_h+set}" = set; then
30391 echo "$as_me:$LINENO: checking for locale.h" >&5
30392 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30393 if test "${ac_cv_header_locale_h+set}" = set; then
30394 echo $ECHO_N "(cached) $ECHO_C" >&6
30396 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30397 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30398 else
30399 # Is the header compilable?
30400 echo "$as_me:$LINENO: checking locale.h usability" >&5
30401 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30402 cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h. */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30408 $ac_includes_default
30409 #include <locale.h>
30410 _ACEOF
30411 rm -f conftest.$ac_objext
30412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30413 (eval $ac_compile) 2>conftest.er1
30414 ac_status=$?
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag"
30421 || test ! -s conftest.err'
30422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30423 (eval $ac_try) 2>&5
30424 ac_status=$?
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); }; } &&
30427 { ac_try='test -s conftest.$ac_objext'
30428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; }; then
30433 ac_header_compiler=yes
30434 else
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30438 ac_header_compiler=no
30440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30442 echo "${ECHO_T}$ac_header_compiler" >&6
30444 # Is the header present?
30445 echo "$as_me:$LINENO: checking locale.h presence" >&5
30446 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30447 cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h. */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30453 #include <locale.h>
30454 _ACEOF
30455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30457 ac_status=$?
30458 grep -v '^ *+' conftest.er1 >conftest.err
30459 rm -f conftest.er1
30460 cat conftest.err >&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); } >/dev/null; then
30463 if test -s conftest.err; then
30464 ac_cpp_err=$ac_c_preproc_warn_flag
30465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30466 else
30467 ac_cpp_err=
30469 else
30470 ac_cpp_err=yes
30472 if test -z "$ac_cpp_err"; then
30473 ac_header_preproc=yes
30474 else
30475 echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30478 ac_header_preproc=no
30480 rm -f conftest.err conftest.$ac_ext
30481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30482 echo "${ECHO_T}$ac_header_preproc" >&6
30484 # So? What about this header?
30485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30486 yes:no: )
30487 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30488 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30489 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30490 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30491 ac_header_preproc=yes
30493 no:yes:* )
30494 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30495 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30496 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30497 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30498 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30499 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30500 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30501 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30502 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30503 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30504 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30505 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30507 cat <<\_ASBOX
30508 ## ----------------------------------------- ##
30509 ## Report this to the package-unused lists. ##
30510 ## ----------------------------------------- ##
30511 _ASBOX
30513 sed "s/^/$as_me: WARNING: /" >&2
30515 esac
30516 echo "$as_me:$LINENO: checking for locale.h" >&5
30517 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30518 if test "${ac_cv_header_locale_h+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521 ac_cv_header_locale_h=$ac_header_preproc
30523 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30524 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30527 if test $ac_cv_header_locale_h = yes; then
30529 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30530 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30531 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30533 else
30534 if test x$gcc_no_link = xyes; then
30535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30537 { (exit 1); exit 1; }; }
30539 cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h. */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 #include <locale.h>
30547 main ()
30549 return LC_MESSAGES
30551 return 0;
30553 _ACEOF
30554 rm -f conftest.$ac_objext conftest$ac_exeext
30555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30556 (eval $ac_link) 2>conftest.er1
30557 ac_status=$?
30558 grep -v '^ *+' conftest.er1 >conftest.err
30559 rm -f conftest.er1
30560 cat conftest.err >&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
30563 { ac_try='test -z "$ac_c_werror_flag"
30564 || test ! -s conftest.err'
30565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30566 (eval $ac_try) 2>&5
30567 ac_status=$?
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; } &&
30570 { ac_try='test -s conftest$ac_exeext'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; }; then
30576 ac_cv_val_LC_MESSAGES=yes
30577 else
30578 echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30581 ac_cv_val_LC_MESSAGES=no
30583 rm -f conftest.err conftest.$ac_objext \
30584 conftest$ac_exeext conftest.$ac_ext
30586 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30587 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30588 if test $ac_cv_val_LC_MESSAGES = yes; then
30589 cat >>confdefs.h <<\_ACEOF
30590 #define HAVE_LC_MESSAGES 1
30591 _ACEOF
30600 cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h. */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30606 #include <setjmp.h>
30608 main ()
30610 sigjmp_buf env;
30611 while (! sigsetjmp (env, 1))
30612 siglongjmp (env, 1);
30615 return 0;
30617 _ACEOF
30618 rm -f conftest.$ac_objext
30619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30620 (eval $ac_compile) 2>conftest.er1
30621 ac_status=$?
30622 grep -v '^ *+' conftest.er1 >conftest.err
30623 rm -f conftest.er1
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
30627 { ac_try='test -z "$ac_c_werror_flag"
30628 || test ! -s conftest.err'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; } &&
30634 { ac_try='test -s conftest.$ac_objext'
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30637 ac_status=$?
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
30641 cat >>confdefs.h <<\_ACEOF
30642 #define HAVE_SIGSETJMP 1
30643 _ACEOF
30645 else
30646 echo "$as_me: failed program was:" >&5
30647 sed 's/^/| /' conftest.$ac_ext >&5
30650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30652 if test x$gcc_no_link = xyes; then
30653 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30654 ac_cv_func_mmap_fixed_mapped=no
30657 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30660 for ac_header in stdlib.h unistd.h
30662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30664 echo "$as_me:$LINENO: checking for $ac_header" >&5
30665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30671 else
30672 # Is the header compilable?
30673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30675 cat >conftest.$ac_ext <<_ACEOF
30676 /* confdefs.h. */
30677 _ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h. */
30681 $ac_includes_default
30682 #include <$ac_header>
30683 _ACEOF
30684 rm -f conftest.$ac_objext
30685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30686 (eval $ac_compile) 2>conftest.er1
30687 ac_status=$?
30688 grep -v '^ *+' conftest.er1 >conftest.err
30689 rm -f conftest.er1
30690 cat conftest.err >&5
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); } &&
30693 { ac_try='test -z "$ac_c_werror_flag"
30694 || test ! -s conftest.err'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
30700 { ac_try='test -s conftest.$ac_objext'
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 ac_header_compiler=yes
30707 else
30708 echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30711 ac_header_compiler=no
30713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30715 echo "${ECHO_T}$ac_header_compiler" >&6
30717 # Is the header present?
30718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30720 cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h. */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h. */
30726 #include <$ac_header>
30727 _ACEOF
30728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30730 ac_status=$?
30731 grep -v '^ *+' conftest.er1 >conftest.err
30732 rm -f conftest.er1
30733 cat conftest.err >&5
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); } >/dev/null; then
30736 if test -s conftest.err; then
30737 ac_cpp_err=$ac_c_preproc_warn_flag
30738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30739 else
30740 ac_cpp_err=
30742 else
30743 ac_cpp_err=yes
30745 if test -z "$ac_cpp_err"; then
30746 ac_header_preproc=yes
30747 else
30748 echo "$as_me: failed program was:" >&5
30749 sed 's/^/| /' conftest.$ac_ext >&5
30751 ac_header_preproc=no
30753 rm -f conftest.err conftest.$ac_ext
30754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30755 echo "${ECHO_T}$ac_header_preproc" >&6
30757 # So? What about this header?
30758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30759 yes:no: )
30760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30764 ac_header_preproc=yes
30766 no:yes:* )
30767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30780 cat <<\_ASBOX
30781 ## ----------------------------------------- ##
30782 ## Report this to the package-unused lists. ##
30783 ## ----------------------------------------- ##
30784 _ASBOX
30786 sed "s/^/$as_me: WARNING: /" >&2
30788 esac
30789 echo "$as_me:$LINENO: checking for $ac_header" >&5
30790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30792 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794 eval "$as_ac_Header=\$ac_header_preproc"
30796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30801 cat >>confdefs.h <<_ACEOF
30802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30803 _ACEOF
30807 done
30810 for ac_func in getpagesize
30812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30813 echo "$as_me:$LINENO: checking for $ac_func" >&5
30814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30815 if eval "test \"\${$as_ac_var+set}\" = set"; then
30816 echo $ECHO_N "(cached) $ECHO_C" >&6
30817 else
30818 if test x$gcc_no_link = xyes; then
30819 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30821 { (exit 1); exit 1; }; }
30823 cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h. */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30831 #define $ac_func innocuous_$ac_func
30833 /* System header to define __stub macros and hopefully few prototypes,
30834 which can conflict with char $ac_func (); below.
30835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30836 <limits.h> exists even on freestanding compilers. */
30838 #ifdef __STDC__
30839 # include <limits.h>
30840 #else
30841 # include <assert.h>
30842 #endif
30844 #undef $ac_func
30846 /* Override any gcc2 internal prototype to avoid an error. */
30847 #ifdef __cplusplus
30848 extern "C"
30850 #endif
30851 /* We use char because int might match the return type of a gcc2
30852 builtin and then its argument prototype would still apply. */
30853 char $ac_func ();
30854 /* The GNU C library defines this for functions which it implements
30855 to always fail with ENOSYS. Some functions are actually named
30856 something starting with __ and the normal name is an alias. */
30857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30858 choke me
30859 #else
30860 char (*f) () = $ac_func;
30861 #endif
30862 #ifdef __cplusplus
30864 #endif
30867 main ()
30869 return f != $ac_func;
30871 return 0;
30873 _ACEOF
30874 rm -f conftest.$ac_objext conftest$ac_exeext
30875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30876 (eval $ac_link) 2>conftest.er1
30877 ac_status=$?
30878 grep -v '^ *+' conftest.er1 >conftest.err
30879 rm -f conftest.er1
30880 cat conftest.err >&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } &&
30883 { ac_try='test -z "$ac_c_werror_flag"
30884 || test ! -s conftest.err'
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30887 ac_status=$?
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; } &&
30890 { ac_try='test -s conftest$ac_exeext'
30891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892 (eval $ac_try) 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 eval "$as_ac_var=yes"
30897 else
30898 echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30901 eval "$as_ac_var=no"
30903 rm -f conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30908 if test `eval echo '${'$as_ac_var'}'` = yes; then
30909 cat >>confdefs.h <<_ACEOF
30910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30911 _ACEOF
30914 done
30916 echo "$as_me:$LINENO: checking for working mmap" >&5
30917 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30918 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 else
30921 if test "$cross_compiling" = yes; then
30922 ac_cv_func_mmap_fixed_mapped=no
30923 else
30924 cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h. */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h. */
30930 $ac_includes_default
30931 /* malloc might have been renamed as rpl_malloc. */
30932 #undef malloc
30934 /* Thanks to Mike Haertel and Jim Avera for this test.
30935 Here is a matrix of mmap possibilities:
30936 mmap private not fixed
30937 mmap private fixed at somewhere currently unmapped
30938 mmap private fixed at somewhere already mapped
30939 mmap shared not fixed
30940 mmap shared fixed at somewhere currently unmapped
30941 mmap shared fixed at somewhere already mapped
30942 For private mappings, we should verify that changes cannot be read()
30943 back from the file, nor mmap's back from the file at a different
30944 address. (There have been systems where private was not correctly
30945 implemented like the infamous i386 svr4.0, and systems where the
30946 VM page cache was not coherent with the file system buffer cache
30947 like early versions of FreeBSD and possibly contemporary NetBSD.)
30948 For shared mappings, we should conversely verify that changes get
30949 propagated back to all the places they're supposed to be.
30951 Grep wants private fixed already mapped.
30952 The main things grep needs to know about mmap are:
30953 * does it exist and is it safe to write into the mmap'd area
30954 * how to use it (BSD variants) */
30956 #include <fcntl.h>
30957 #include <sys/mman.h>
30959 #if !STDC_HEADERS && !HAVE_STDLIB_H
30960 char *malloc ();
30961 #endif
30963 /* This mess was copied from the GNU getpagesize.h. */
30964 #if !HAVE_GETPAGESIZE
30965 /* Assume that all systems that can run configure have sys/param.h. */
30966 # if !HAVE_SYS_PARAM_H
30967 # define HAVE_SYS_PARAM_H 1
30968 # endif
30970 # ifdef _SC_PAGESIZE
30971 # define getpagesize() sysconf(_SC_PAGESIZE)
30972 # else /* no _SC_PAGESIZE */
30973 # if HAVE_SYS_PARAM_H
30974 # include <sys/param.h>
30975 # ifdef EXEC_PAGESIZE
30976 # define getpagesize() EXEC_PAGESIZE
30977 # else /* no EXEC_PAGESIZE */
30978 # ifdef NBPG
30979 # define getpagesize() NBPG * CLSIZE
30980 # ifndef CLSIZE
30981 # define CLSIZE 1
30982 # endif /* no CLSIZE */
30983 # else /* no NBPG */
30984 # ifdef NBPC
30985 # define getpagesize() NBPC
30986 # else /* no NBPC */
30987 # ifdef PAGESIZE
30988 # define getpagesize() PAGESIZE
30989 # endif /* PAGESIZE */
30990 # endif /* no NBPC */
30991 # endif /* no NBPG */
30992 # endif /* no EXEC_PAGESIZE */
30993 # else /* no HAVE_SYS_PARAM_H */
30994 # define getpagesize() 8192 /* punt totally */
30995 # endif /* no HAVE_SYS_PARAM_H */
30996 # endif /* no _SC_PAGESIZE */
30998 #endif /* no HAVE_GETPAGESIZE */
31001 main ()
31003 char *data, *data2, *data3;
31004 int i, pagesize;
31005 int fd;
31007 pagesize = getpagesize ();
31009 /* First, make a file with some known garbage in it. */
31010 data = (char *) malloc (pagesize);
31011 if (!data)
31012 exit (1);
31013 for (i = 0; i < pagesize; ++i)
31014 *(data + i) = rand ();
31015 umask (0);
31016 fd = creat ("conftest.mmap", 0600);
31017 if (fd < 0)
31018 exit (1);
31019 if (write (fd, data, pagesize) != pagesize)
31020 exit (1);
31021 close (fd);
31023 /* Next, try to mmap the file at a fixed address which already has
31024 something else allocated at it. If we can, also make sure that
31025 we see the same garbage. */
31026 fd = open ("conftest.mmap", O_RDWR);
31027 if (fd < 0)
31028 exit (1);
31029 data2 = (char *) malloc (2 * pagesize);
31030 if (!data2)
31031 exit (1);
31032 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31033 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31034 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31035 exit (1);
31036 for (i = 0; i < pagesize; ++i)
31037 if (*(data + i) != *(data2 + i))
31038 exit (1);
31040 /* Finally, make sure that changes to the mapped area do not
31041 percolate back to the file as seen by read(). (This is a bug on
31042 some variants of i386 svr4.0.) */
31043 for (i = 0; i < pagesize; ++i)
31044 *(data2 + i) = *(data2 + i) + 1;
31045 data3 = (char *) malloc (pagesize);
31046 if (!data3)
31047 exit (1);
31048 if (read (fd, data3, pagesize) != pagesize)
31049 exit (1);
31050 for (i = 0; i < pagesize; ++i)
31051 if (*(data + i) != *(data3 + i))
31052 exit (1);
31053 close (fd);
31054 exit (0);
31056 _ACEOF
31057 rm -f conftest$ac_exeext
31058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31059 (eval $ac_link) 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064 (eval $ac_try) 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
31068 ac_cv_func_mmap_fixed_mapped=yes
31069 else
31070 echo "$as_me: program exited with status $ac_status" >&5
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31074 ( exit $ac_status )
31075 ac_cv_func_mmap_fixed_mapped=no
31077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31080 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31081 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31082 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31084 cat >>confdefs.h <<\_ACEOF
31085 #define HAVE_MMAP 1
31086 _ACEOF
31089 rm -f conftest.mmap
31093 else
31095 # This lets us hard-code the functionality we know we'll have in the cross
31096 # target environment. "Let" is a sugar-coated word placed on an especially
31097 # dull and tedious hack, actually.
31099 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31100 # that involve linking, can't be used:
31101 # "cannot open sim-crt0.o"
31102 # "cannot open crt0.o"
31103 # etc. All this is because there currently exists no unified, consistent
31104 # way for top level CC information to be passed down to target directories:
31105 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31106 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31107 # crosses can be removed.
31109 # If Canadian cross, then don't pick up tools from the build directory.
31110 # Used only in GLIBCXX_EXPORT_INCLUDES.
31111 if test -n "$with_cross_host" &&
31112 test x"$build_alias" != x"$with_cross_host" &&
31113 test x"$build" != x"$target";
31114 then
31115 CANADIAN=yes
31116 else
31117 CANADIAN=no
31120 # Construct crosses by hand, eliminating bits that need ld...
31121 # GLIBCXX_CHECK_COMPILER_FEATURES
31122 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31123 # GLIBCXX_CHECK_MATH_SUPPORT
31125 # First, test for "known" system libraries. We may be using newlib even
31126 # on a hosted environment.
31127 if test "x${with_newlib}" = "xyes"; then
31128 os_include_dir="os/newlib"
31129 cat >>confdefs.h <<\_ACEOF
31130 #define HAVE_HYPOT 1
31131 _ACEOF
31134 # GLIBCXX_CHECK_STDLIB_SUPPORT
31135 cat >>confdefs.h <<\_ACEOF
31136 #define HAVE_STRTOF 1
31137 _ACEOF
31139 cat >>confdefs.h <<\_ACEOF
31140 #define HAVE_STRTOLD 1
31141 _ACEOF
31143 # AC_FUNC_MMAP
31144 cat >>confdefs.h <<\_ACEOF
31145 #define HAVE_MMAP 1
31146 _ACEOF
31149 cat >>confdefs.h <<\_ACEOF
31150 #define HAVE_ACOSF 1
31151 _ACEOF
31153 cat >>confdefs.h <<\_ACEOF
31154 #define HAVE_ASINF 1
31155 _ACEOF
31157 cat >>confdefs.h <<\_ACEOF
31158 #define HAVE_ATAN2F 1
31159 _ACEOF
31161 cat >>confdefs.h <<\_ACEOF
31162 #define HAVE_ATANF 1
31163 _ACEOF
31165 cat >>confdefs.h <<\_ACEOF
31166 #define HAVE_CEILF 1
31167 _ACEOF
31169 cat >>confdefs.h <<\_ACEOF
31170 #define HAVE_COPYSIGN 1
31171 _ACEOF
31173 cat >>confdefs.h <<\_ACEOF
31174 #define HAVE_COPYSIGNF 1
31175 _ACEOF
31177 cat >>confdefs.h <<\_ACEOF
31178 #define HAVE_COSF 1
31179 _ACEOF
31181 cat >>confdefs.h <<\_ACEOF
31182 #define HAVE_COSHF 1
31183 _ACEOF
31185 cat >>confdefs.h <<\_ACEOF
31186 #define HAVE_EXPF 1
31187 _ACEOF
31189 cat >>confdefs.h <<\_ACEOF
31190 #define HAVE_FABSF 1
31191 _ACEOF
31193 cat >>confdefs.h <<\_ACEOF
31194 #define HAVE_FLOORF 1
31195 _ACEOF
31197 cat >>confdefs.h <<\_ACEOF
31198 #define HAVE_FMODF 1
31199 _ACEOF
31201 cat >>confdefs.h <<\_ACEOF
31202 #define HAVE_FREXPF 1
31203 _ACEOF
31205 cat >>confdefs.h <<\_ACEOF
31206 #define HAVE_LDEXPF 1
31207 _ACEOF
31209 cat >>confdefs.h <<\_ACEOF
31210 #define HAVE_LOG10F 1
31211 _ACEOF
31213 cat >>confdefs.h <<\_ACEOF
31214 #define HAVE_LOGF 1
31215 _ACEOF
31217 cat >>confdefs.h <<\_ACEOF
31218 #define HAVE_MODFF 1
31219 _ACEOF
31221 cat >>confdefs.h <<\_ACEOF
31222 #define HAVE_POWF 1
31223 _ACEOF
31225 cat >>confdefs.h <<\_ACEOF
31226 #define HAVE_SINF 1
31227 _ACEOF
31229 cat >>confdefs.h <<\_ACEOF
31230 #define HAVE_SINHF 1
31231 _ACEOF
31233 cat >>confdefs.h <<\_ACEOF
31234 #define HAVE_SQRTF 1
31235 _ACEOF
31237 cat >>confdefs.h <<\_ACEOF
31238 #define HAVE_TANF 1
31239 _ACEOF
31241 cat >>confdefs.h <<\_ACEOF
31242 #define HAVE_TANHF 1
31243 _ACEOF
31246 cat >>confdefs.h <<\_ACEOF
31247 #define HAVE_S_ISREG 1
31248 _ACEOF
31250 cat >>confdefs.h <<\_ACEOF
31251 #define HAVE_S_IFREG 1
31252 _ACEOF
31254 else
31256 # Base decisions on target environment.
31257 case "${host}" in
31258 *-darwin*)
31259 # Darwin versions vary, but the linker should work in a cross environment,
31260 # so we just check for all the features here.
31261 # Check for available headers.
31275 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31276 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31277 sys/types.h
31279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31281 echo "$as_me:$LINENO: checking for $ac_header" >&5
31282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31288 else
31289 # Is the header compilable?
31290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31292 cat >conftest.$ac_ext <<_ACEOF
31293 /* confdefs.h. */
31294 _ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h. */
31298 $ac_includes_default
31299 #include <$ac_header>
31300 _ACEOF
31301 rm -f conftest.$ac_objext
31302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31303 (eval $ac_compile) 2>conftest.er1
31304 ac_status=$?
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
31310 { ac_try='test -z "$ac_c_werror_flag"
31311 || test ! -s conftest.err'
31312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31313 (eval $ac_try) 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; } &&
31317 { ac_try='test -s conftest.$ac_objext'
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; }; then
31323 ac_header_compiler=yes
31324 else
31325 echo "$as_me: failed program was:" >&5
31326 sed 's/^/| /' conftest.$ac_ext >&5
31328 ac_header_compiler=no
31330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31332 echo "${ECHO_T}$ac_header_compiler" >&6
31334 # Is the header present?
31335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31337 cat >conftest.$ac_ext <<_ACEOF
31338 /* confdefs.h. */
31339 _ACEOF
31340 cat confdefs.h >>conftest.$ac_ext
31341 cat >>conftest.$ac_ext <<_ACEOF
31342 /* end confdefs.h. */
31343 #include <$ac_header>
31344 _ACEOF
31345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31347 ac_status=$?
31348 grep -v '^ *+' conftest.er1 >conftest.err
31349 rm -f conftest.er1
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } >/dev/null; then
31353 if test -s conftest.err; then
31354 ac_cpp_err=$ac_c_preproc_warn_flag
31355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31356 else
31357 ac_cpp_err=
31359 else
31360 ac_cpp_err=yes
31362 if test -z "$ac_cpp_err"; then
31363 ac_header_preproc=yes
31364 else
31365 echo "$as_me: failed program was:" >&5
31366 sed 's/^/| /' conftest.$ac_ext >&5
31368 ac_header_preproc=no
31370 rm -f conftest.err conftest.$ac_ext
31371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31372 echo "${ECHO_T}$ac_header_preproc" >&6
31374 # So? What about this header?
31375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31376 yes:no: )
31377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31381 ac_header_preproc=yes
31383 no:yes:* )
31384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31397 cat <<\_ASBOX
31398 ## ----------------------------------------- ##
31399 ## Report this to the package-unused lists. ##
31400 ## ----------------------------------------- ##
31401 _ASBOX
31403 sed "s/^/$as_me: WARNING: /" >&2
31405 esac
31406 echo "$as_me:$LINENO: checking for $ac_header" >&5
31407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410 else
31411 eval "$as_ac_Header=\$ac_header_preproc"
31413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31418 cat >>confdefs.h <<_ACEOF
31419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31420 _ACEOF
31424 done
31428 # All these tests are for C++; save the language and the compiler flags.
31429 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31430 # found in GLIBCXX_CONFIGURE.
31433 ac_ext=cc
31434 ac_cpp='$CXXCPP $CPPFLAGS'
31435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31439 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31440 ac_save_CXXFLAGS="$CXXFLAGS"
31442 # Check for maintainer-mode bits.
31443 if test x"$USE_MAINTAINER_MODE" = xno; then
31444 WERROR=''
31445 else
31446 WERROR='-Werror'
31449 # Check for -ffunction-sections -fdata-sections
31450 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31451 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31452 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31453 cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h. */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31461 main ()
31463 int foo;
31465 return 0;
31467 _ACEOF
31468 rm -f conftest.$ac_objext
31469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31470 (eval $ac_compile) 2>conftest.er1
31471 ac_status=$?
31472 grep -v '^ *+' conftest.er1 >conftest.err
31473 rm -f conftest.er1
31474 cat conftest.err >&5
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); } &&
31477 { ac_try='test -z "$ac_cxx_werror_flag"
31478 || test ! -s conftest.err'
31479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31480 (eval $ac_try) 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; } &&
31484 { ac_try='test -s conftest.$ac_objext'
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 ac_fdsections=yes
31491 else
31492 echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31495 ac_fdsections=no
31497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31498 if test "$ac_test_CXXFLAGS" = set; then
31499 CXXFLAGS="$ac_save_CXXFLAGS"
31500 else
31501 # this is the suspicious part
31502 CXXFLAGS=''
31504 if test x"$ac_fdsections" = x"yes"; then
31505 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31507 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31508 echo "${ECHO_T}$ac_fdsections" >&6
31510 ac_ext=c
31511 ac_cpp='$CPP $CPPFLAGS'
31512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31519 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31521 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31522 ac_save_CXXFLAGS="$CXXFLAGS"
31523 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31525 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31526 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31527 if test "${ac_cv_lib_m_sin+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530 ac_check_lib_save_LIBS=$LIBS
31531 LIBS="-lm $LIBS"
31532 if test x$gcc_no_link = xyes; then
31533 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31534 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31535 { (exit 1); exit 1; }; }
31537 cat >conftest.$ac_ext <<_ACEOF
31538 /* confdefs.h. */
31539 _ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31544 /* Override any gcc2 internal prototype to avoid an error. */
31545 #ifdef __cplusplus
31546 extern "C"
31547 #endif
31548 /* We use char because int might match the return type of a gcc2
31549 builtin and then its argument prototype would still apply. */
31550 char sin ();
31552 main ()
31554 sin ();
31556 return 0;
31558 _ACEOF
31559 rm -f conftest.$ac_objext conftest$ac_exeext
31560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31561 (eval $ac_link) 2>conftest.er1
31562 ac_status=$?
31563 grep -v '^ *+' conftest.er1 >conftest.err
31564 rm -f conftest.er1
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } &&
31568 { ac_try='test -z "$ac_c_werror_flag"
31569 || test ! -s conftest.err'
31570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31571 (eval $ac_try) 2>&5
31572 ac_status=$?
31573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574 (exit $ac_status); }; } &&
31575 { ac_try='test -s conftest$ac_exeext'
31576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577 (eval $ac_try) 2>&5
31578 ac_status=$?
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); }; }; then
31581 ac_cv_lib_m_sin=yes
31582 else
31583 echo "$as_me: failed program was:" >&5
31584 sed 's/^/| /' conftest.$ac_ext >&5
31586 ac_cv_lib_m_sin=no
31588 rm -f conftest.err conftest.$ac_objext \
31589 conftest$ac_exeext conftest.$ac_ext
31590 LIBS=$ac_check_lib_save_LIBS
31592 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31593 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31594 if test $ac_cv_lib_m_sin = yes; then
31595 libm="-lm"
31598 ac_save_LIBS="$LIBS"
31599 LIBS="$LIBS $libm"
31603 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31604 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31605 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31606 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 else
31612 ac_ext=cc
31613 ac_cpp='$CXXCPP $CPPFLAGS'
31614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31618 cat >conftest.$ac_ext <<_ACEOF
31619 /* confdefs.h. */
31620 _ACEOF
31621 cat confdefs.h >>conftest.$ac_ext
31622 cat >>conftest.$ac_ext <<_ACEOF
31623 /* end confdefs.h. */
31624 #include <math.h>
31625 #ifdef HAVE_IEEEFP_H
31626 #include <ieeefp.h>
31627 #endif
31630 main ()
31632 isinf(0);
31634 return 0;
31636 _ACEOF
31637 rm -f conftest.$ac_objext
31638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31639 (eval $ac_compile) 2>conftest.er1
31640 ac_status=$?
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
31646 { ac_try='test -z "$ac_cxx_werror_flag"
31647 || test ! -s conftest.err'
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 glibcxx_cv_func_isinf_use=yes
31660 else
31661 echo "$as_me: failed program was:" >&5
31662 sed 's/^/| /' conftest.$ac_ext >&5
31664 glibcxx_cv_func_isinf_use=no
31666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31667 ac_ext=c
31668 ac_cpp='$CPP $CPPFLAGS'
31669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31677 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31678 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31680 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31682 for ac_func in isinf
31684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31685 echo "$as_me:$LINENO: checking for $ac_func" >&5
31686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31687 if eval "test \"\${$as_ac_var+set}\" = set"; then
31688 echo $ECHO_N "(cached) $ECHO_C" >&6
31689 else
31690 if test x$gcc_no_link = xyes; then
31691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31693 { (exit 1); exit 1; }; }
31695 cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h. */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31703 #define $ac_func innocuous_$ac_func
31705 /* System header to define __stub macros and hopefully few prototypes,
31706 which can conflict with char $ac_func (); below.
31707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31708 <limits.h> exists even on freestanding compilers. */
31710 #ifdef __STDC__
31711 # include <limits.h>
31712 #else
31713 # include <assert.h>
31714 #endif
31716 #undef $ac_func
31718 /* Override any gcc2 internal prototype to avoid an error. */
31719 #ifdef __cplusplus
31720 extern "C"
31722 #endif
31723 /* We use char because int might match the return type of a gcc2
31724 builtin and then its argument prototype would still apply. */
31725 char $ac_func ();
31726 /* The GNU C library defines this for functions which it implements
31727 to always fail with ENOSYS. Some functions are actually named
31728 something starting with __ and the normal name is an alias. */
31729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31730 choke me
31731 #else
31732 char (*f) () = $ac_func;
31733 #endif
31734 #ifdef __cplusplus
31736 #endif
31739 main ()
31741 return f != $ac_func;
31743 return 0;
31745 _ACEOF
31746 rm -f conftest.$ac_objext conftest$ac_exeext
31747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31748 (eval $ac_link) 2>conftest.er1
31749 ac_status=$?
31750 grep -v '^ *+' conftest.er1 >conftest.err
31751 rm -f conftest.er1
31752 cat conftest.err >&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); } &&
31755 { ac_try='test -z "$ac_c_werror_flag"
31756 || test ! -s conftest.err'
31757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31758 (eval $ac_try) 2>&5
31759 ac_status=$?
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; } &&
31762 { ac_try='test -s conftest$ac_exeext'
31763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764 (eval $ac_try) 2>&5
31765 ac_status=$?
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); }; }; then
31768 eval "$as_ac_var=yes"
31769 else
31770 echo "$as_me: failed program was:" >&5
31771 sed 's/^/| /' conftest.$ac_ext >&5
31773 eval "$as_ac_var=no"
31775 rm -f conftest.err conftest.$ac_objext \
31776 conftest$ac_exeext conftest.$ac_ext
31778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31780 if test `eval echo '${'$as_ac_var'}'` = yes; then
31781 cat >>confdefs.h <<_ACEOF
31782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31783 _ACEOF
31786 done
31788 else
31790 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31791 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31792 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31793 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 else
31799 ac_ext=cc
31800 ac_cpp='$CXXCPP $CPPFLAGS'
31801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31805 cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h. */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 #include <math.h>
31812 #ifdef HAVE_IEEEFP_H
31813 #include <ieeefp.h>
31814 #endif
31817 main ()
31819 _isinf(0);
31821 return 0;
31823 _ACEOF
31824 rm -f conftest.$ac_objext
31825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31826 (eval $ac_compile) 2>conftest.er1
31827 ac_status=$?
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_cxx_werror_flag"
31834 || test ! -s conftest.err'
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest.$ac_objext'
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31843 ac_status=$?
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; }; then
31846 glibcxx_cv_func__isinf_use=yes
31847 else
31848 echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31851 glibcxx_cv_func__isinf_use=no
31853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31854 ac_ext=c
31855 ac_cpp='$CPP $CPPFLAGS'
31856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31864 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31865 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31867 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31869 for ac_func in _isinf
31871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31872 echo "$as_me:$LINENO: checking for $ac_func" >&5
31873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31874 if eval "test \"\${$as_ac_var+set}\" = set"; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31876 else
31877 if test x$gcc_no_link = xyes; then
31878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31880 { (exit 1); exit 1; }; }
31882 cat >conftest.$ac_ext <<_ACEOF
31883 /* confdefs.h. */
31884 _ACEOF
31885 cat confdefs.h >>conftest.$ac_ext
31886 cat >>conftest.$ac_ext <<_ACEOF
31887 /* end confdefs.h. */
31888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31890 #define $ac_func innocuous_$ac_func
31892 /* System header to define __stub macros and hopefully few prototypes,
31893 which can conflict with char $ac_func (); below.
31894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31895 <limits.h> exists even on freestanding compilers. */
31897 #ifdef __STDC__
31898 # include <limits.h>
31899 #else
31900 # include <assert.h>
31901 #endif
31903 #undef $ac_func
31905 /* Override any gcc2 internal prototype to avoid an error. */
31906 #ifdef __cplusplus
31907 extern "C"
31909 #endif
31910 /* We use char because int might match the return type of a gcc2
31911 builtin and then its argument prototype would still apply. */
31912 char $ac_func ();
31913 /* The GNU C library defines this for functions which it implements
31914 to always fail with ENOSYS. Some functions are actually named
31915 something starting with __ and the normal name is an alias. */
31916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31917 choke me
31918 #else
31919 char (*f) () = $ac_func;
31920 #endif
31921 #ifdef __cplusplus
31923 #endif
31926 main ()
31928 return f != $ac_func;
31930 return 0;
31932 _ACEOF
31933 rm -f conftest.$ac_objext conftest$ac_exeext
31934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31935 (eval $ac_link) 2>conftest.er1
31936 ac_status=$?
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
31942 { ac_try='test -z "$ac_c_werror_flag"
31943 || test ! -s conftest.err'
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; } &&
31949 { ac_try='test -s conftest$ac_exeext'
31950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951 (eval $ac_try) 2>&5
31952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 eval "$as_ac_var=yes"
31956 else
31957 echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31960 eval "$as_ac_var=no"
31962 rm -f conftest.err conftest.$ac_objext \
31963 conftest$ac_exeext conftest.$ac_ext
31965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31967 if test `eval echo '${'$as_ac_var'}'` = yes; then
31968 cat >>confdefs.h <<_ACEOF
31969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31970 _ACEOF
31973 done
31980 echo "$as_me:$LINENO: checking for isnan declaration" >&5
31981 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31982 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31983 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31985 else
31989 ac_ext=cc
31990 ac_cpp='$CXXCPP $CPPFLAGS'
31991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995 cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h. */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 #include <math.h>
32002 #ifdef HAVE_IEEEFP_H
32003 #include <ieeefp.h>
32004 #endif
32007 main ()
32009 isnan(0);
32011 return 0;
32013 _ACEOF
32014 rm -f conftest.$ac_objext
32015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32016 (eval $ac_compile) 2>conftest.er1
32017 ac_status=$?
32018 grep -v '^ *+' conftest.er1 >conftest.err
32019 rm -f conftest.er1
32020 cat conftest.err >&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
32023 { ac_try='test -z "$ac_cxx_werror_flag"
32024 || test ! -s conftest.err'
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; } &&
32030 { ac_try='test -s conftest.$ac_objext'
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 glibcxx_cv_func_isnan_use=yes
32037 else
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 glibcxx_cv_func_isnan_use=no
32043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32044 ac_ext=c
32045 ac_cpp='$CPP $CPPFLAGS'
32046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32054 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
32055 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
32057 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32059 for ac_func in isnan
32061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32062 echo "$as_me:$LINENO: checking for $ac_func" >&5
32063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32064 if eval "test \"\${$as_ac_var+set}\" = set"; then
32065 echo $ECHO_N "(cached) $ECHO_C" >&6
32066 else
32067 if test x$gcc_no_link = xyes; then
32068 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32070 { (exit 1); exit 1; }; }
32072 cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h. */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32080 #define $ac_func innocuous_$ac_func
32082 /* System header to define __stub macros and hopefully few prototypes,
32083 which can conflict with char $ac_func (); below.
32084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085 <limits.h> exists even on freestanding compilers. */
32087 #ifdef __STDC__
32088 # include <limits.h>
32089 #else
32090 # include <assert.h>
32091 #endif
32093 #undef $ac_func
32095 /* Override any gcc2 internal prototype to avoid an error. */
32096 #ifdef __cplusplus
32097 extern "C"
32099 #endif
32100 /* We use char because int might match the return type of a gcc2
32101 builtin and then its argument prototype would still apply. */
32102 char $ac_func ();
32103 /* The GNU C library defines this for functions which it implements
32104 to always fail with ENOSYS. Some functions are actually named
32105 something starting with __ and the normal name is an alias. */
32106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32107 choke me
32108 #else
32109 char (*f) () = $ac_func;
32110 #endif
32111 #ifdef __cplusplus
32113 #endif
32116 main ()
32118 return f != $ac_func;
32120 return 0;
32122 _ACEOF
32123 rm -f conftest.$ac_objext conftest$ac_exeext
32124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32125 (eval $ac_link) 2>conftest.er1
32126 ac_status=$?
32127 grep -v '^ *+' conftest.er1 >conftest.err
32128 rm -f conftest.er1
32129 cat conftest.err >&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } &&
32132 { ac_try='test -z "$ac_c_werror_flag"
32133 || test ! -s conftest.err'
32134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135 (eval $ac_try) 2>&5
32136 ac_status=$?
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; } &&
32139 { ac_try='test -s conftest$ac_exeext'
32140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32141 (eval $ac_try) 2>&5
32142 ac_status=$?
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; }; then
32145 eval "$as_ac_var=yes"
32146 else
32147 echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32150 eval "$as_ac_var=no"
32152 rm -f conftest.err conftest.$ac_objext \
32153 conftest$ac_exeext conftest.$ac_ext
32155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32157 if test `eval echo '${'$as_ac_var'}'` = yes; then
32158 cat >>confdefs.h <<_ACEOF
32159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32160 _ACEOF
32163 done
32165 else
32167 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32168 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32169 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32170 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 else
32176 ac_ext=cc
32177 ac_cpp='$CXXCPP $CPPFLAGS'
32178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32182 cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h. */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32188 #include <math.h>
32189 #ifdef HAVE_IEEEFP_H
32190 #include <ieeefp.h>
32191 #endif
32194 main ()
32196 _isnan(0);
32198 return 0;
32200 _ACEOF
32201 rm -f conftest.$ac_objext
32202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32203 (eval $ac_compile) 2>conftest.er1
32204 ac_status=$?
32205 grep -v '^ *+' conftest.er1 >conftest.err
32206 rm -f conftest.er1
32207 cat conftest.err >&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } &&
32210 { ac_try='test -z "$ac_cxx_werror_flag"
32211 || test ! -s conftest.err'
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest.$ac_objext'
32218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32219 (eval $ac_try) 2>&5
32220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; }; then
32223 glibcxx_cv_func__isnan_use=yes
32224 else
32225 echo "$as_me: failed program was:" >&5
32226 sed 's/^/| /' conftest.$ac_ext >&5
32228 glibcxx_cv_func__isnan_use=no
32230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32231 ac_ext=c
32232 ac_cpp='$CPP $CPPFLAGS'
32233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32242 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32244 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32246 for ac_func in _isnan
32248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32249 echo "$as_me:$LINENO: checking for $ac_func" >&5
32250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32251 if eval "test \"\${$as_ac_var+set}\" = set"; then
32252 echo $ECHO_N "(cached) $ECHO_C" >&6
32253 else
32254 if test x$gcc_no_link = xyes; then
32255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32257 { (exit 1); exit 1; }; }
32259 cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h. */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267 #define $ac_func innocuous_$ac_func
32269 /* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char $ac_func (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
32274 #ifdef __STDC__
32275 # include <limits.h>
32276 #else
32277 # include <assert.h>
32278 #endif
32280 #undef $ac_func
32282 /* Override any gcc2 internal prototype to avoid an error. */
32283 #ifdef __cplusplus
32284 extern "C"
32286 #endif
32287 /* We use char because int might match the return type of a gcc2
32288 builtin and then its argument prototype would still apply. */
32289 char $ac_func ();
32290 /* The GNU C library defines this for functions which it implements
32291 to always fail with ENOSYS. Some functions are actually named
32292 something starting with __ and the normal name is an alias. */
32293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32294 choke me
32295 #else
32296 char (*f) () = $ac_func;
32297 #endif
32298 #ifdef __cplusplus
32300 #endif
32303 main ()
32305 return f != $ac_func;
32307 return 0;
32309 _ACEOF
32310 rm -f conftest.$ac_objext conftest$ac_exeext
32311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32312 (eval $ac_link) 2>conftest.er1
32313 ac_status=$?
32314 grep -v '^ *+' conftest.er1 >conftest.err
32315 rm -f conftest.er1
32316 cat conftest.err >&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } &&
32319 { ac_try='test -z "$ac_c_werror_flag"
32320 || test ! -s conftest.err'
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; } &&
32326 { ac_try='test -s conftest$ac_exeext'
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 eval "$as_ac_var=yes"
32333 else
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 eval "$as_ac_var=no"
32339 rm -f conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
32342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32344 if test `eval echo '${'$as_ac_var'}'` = yes; then
32345 cat >>confdefs.h <<_ACEOF
32346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32347 _ACEOF
32350 done
32357 echo "$as_me:$LINENO: checking for finite declaration" >&5
32358 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32359 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32360 if test "${glibcxx_cv_func_finite_use+set}" = set; then
32361 echo $ECHO_N "(cached) $ECHO_C" >&6
32362 else
32366 ac_ext=cc
32367 ac_cpp='$CXXCPP $CPPFLAGS'
32368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32372 cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h. */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h. */
32378 #include <math.h>
32379 #ifdef HAVE_IEEEFP_H
32380 #include <ieeefp.h>
32381 #endif
32384 main ()
32386 finite(0);
32388 return 0;
32390 _ACEOF
32391 rm -f conftest.$ac_objext
32392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32393 (eval $ac_compile) 2>conftest.er1
32394 ac_status=$?
32395 grep -v '^ *+' conftest.er1 >conftest.err
32396 rm -f conftest.er1
32397 cat conftest.err >&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); } &&
32400 { ac_try='test -z "$ac_cxx_werror_flag"
32401 || test ! -s conftest.err'
32402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32403 (eval $ac_try) 2>&5
32404 ac_status=$?
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); }; } &&
32407 { ac_try='test -s conftest.$ac_objext'
32408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32409 (eval $ac_try) 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; }; then
32413 glibcxx_cv_func_finite_use=yes
32414 else
32415 echo "$as_me: failed program was:" >&5
32416 sed 's/^/| /' conftest.$ac_ext >&5
32418 glibcxx_cv_func_finite_use=no
32420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32421 ac_ext=c
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32431 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32432 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32434 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32436 for ac_func in finite
32438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32439 echo "$as_me:$LINENO: checking for $ac_func" >&5
32440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32441 if eval "test \"\${$as_ac_var+set}\" = set"; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32443 else
32444 if test x$gcc_no_link = xyes; then
32445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32446 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32447 { (exit 1); exit 1; }; }
32449 cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h. */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32457 #define $ac_func innocuous_$ac_func
32459 /* System header to define __stub macros and hopefully few prototypes,
32460 which can conflict with char $ac_func (); below.
32461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32462 <limits.h> exists even on freestanding compilers. */
32464 #ifdef __STDC__
32465 # include <limits.h>
32466 #else
32467 # include <assert.h>
32468 #endif
32470 #undef $ac_func
32472 /* Override any gcc2 internal prototype to avoid an error. */
32473 #ifdef __cplusplus
32474 extern "C"
32476 #endif
32477 /* We use char because int might match the return type of a gcc2
32478 builtin and then its argument prototype would still apply. */
32479 char $ac_func ();
32480 /* The GNU C library defines this for functions which it implements
32481 to always fail with ENOSYS. Some functions are actually named
32482 something starting with __ and the normal name is an alias. */
32483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32484 choke me
32485 #else
32486 char (*f) () = $ac_func;
32487 #endif
32488 #ifdef __cplusplus
32490 #endif
32493 main ()
32495 return f != $ac_func;
32497 return 0;
32499 _ACEOF
32500 rm -f conftest.$ac_objext conftest$ac_exeext
32501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32502 (eval $ac_link) 2>conftest.er1
32503 ac_status=$?
32504 grep -v '^ *+' conftest.er1 >conftest.err
32505 rm -f conftest.er1
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try='test -z "$ac_c_werror_flag"
32510 || test ! -s conftest.err'
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest$ac_exeext'
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 eval "$as_ac_var=yes"
32523 else
32524 echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32527 eval "$as_ac_var=no"
32529 rm -f conftest.err conftest.$ac_objext \
32530 conftest$ac_exeext conftest.$ac_ext
32532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32534 if test `eval echo '${'$as_ac_var'}'` = yes; then
32535 cat >>confdefs.h <<_ACEOF
32536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32537 _ACEOF
32540 done
32542 else
32544 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32545 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32546 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32547 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549 else
32553 ac_ext=cc
32554 ac_cpp='$CXXCPP $CPPFLAGS'
32555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559 cat >conftest.$ac_ext <<_ACEOF
32560 /* confdefs.h. */
32561 _ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h. */
32565 #include <math.h>
32566 #ifdef HAVE_IEEEFP_H
32567 #include <ieeefp.h>
32568 #endif
32571 main ()
32573 _finite(0);
32575 return 0;
32577 _ACEOF
32578 rm -f conftest.$ac_objext
32579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32580 (eval $ac_compile) 2>conftest.er1
32581 ac_status=$?
32582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_cxx_werror_flag"
32588 || test ! -s conftest.err'
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest.$ac_objext'
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }; then
32600 glibcxx_cv_func__finite_use=yes
32601 else
32602 echo "$as_me: failed program was:" >&5
32603 sed 's/^/| /' conftest.$ac_ext >&5
32605 glibcxx_cv_func__finite_use=no
32607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32608 ac_ext=c
32609 ac_cpp='$CPP $CPPFLAGS'
32610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32618 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32619 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32621 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32623 for ac_func in _finite
32625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32626 echo "$as_me:$LINENO: checking for $ac_func" >&5
32627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32628 if eval "test \"\${$as_ac_var+set}\" = set"; then
32629 echo $ECHO_N "(cached) $ECHO_C" >&6
32630 else
32631 if test x$gcc_no_link = xyes; then
32632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32634 { (exit 1); exit 1; }; }
32636 cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h. */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32644 #define $ac_func innocuous_$ac_func
32646 /* System header to define __stub macros and hopefully few prototypes,
32647 which can conflict with char $ac_func (); below.
32648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32649 <limits.h> exists even on freestanding compilers. */
32651 #ifdef __STDC__
32652 # include <limits.h>
32653 #else
32654 # include <assert.h>
32655 #endif
32657 #undef $ac_func
32659 /* Override any gcc2 internal prototype to avoid an error. */
32660 #ifdef __cplusplus
32661 extern "C"
32663 #endif
32664 /* We use char because int might match the return type of a gcc2
32665 builtin and then its argument prototype would still apply. */
32666 char $ac_func ();
32667 /* The GNU C library defines this for functions which it implements
32668 to always fail with ENOSYS. Some functions are actually named
32669 something starting with __ and the normal name is an alias. */
32670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32671 choke me
32672 #else
32673 char (*f) () = $ac_func;
32674 #endif
32675 #ifdef __cplusplus
32677 #endif
32680 main ()
32682 return f != $ac_func;
32684 return 0;
32686 _ACEOF
32687 rm -f conftest.$ac_objext conftest$ac_exeext
32688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32689 (eval $ac_link) 2>conftest.er1
32690 ac_status=$?
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
32696 { ac_try='test -z "$ac_c_werror_flag"
32697 || test ! -s conftest.err'
32698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32699 (eval $ac_try) 2>&5
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); }; } &&
32703 { ac_try='test -s conftest$ac_exeext'
32704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705 (eval $ac_try) 2>&5
32706 ac_status=$?
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; }; then
32709 eval "$as_ac_var=yes"
32710 else
32711 echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32714 eval "$as_ac_var=no"
32716 rm -f conftest.err conftest.$ac_objext \
32717 conftest$ac_exeext conftest.$ac_ext
32719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32721 if test `eval echo '${'$as_ac_var'}'` = yes; then
32722 cat >>confdefs.h <<_ACEOF
32723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32724 _ACEOF
32727 done
32734 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32735 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32736 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32737 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32738 echo $ECHO_N "(cached) $ECHO_C" >&6
32739 else
32743 ac_ext=cc
32744 ac_cpp='$CXXCPP $CPPFLAGS'
32745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32749 cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h. */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32755 #include <math.h>
32757 main ()
32759 copysign(0, 0);
32761 return 0;
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766 (eval $ac_compile) 2>conftest.er1
32767 ac_status=$?
32768 grep -v '^ *+' conftest.er1 >conftest.err
32769 rm -f conftest.er1
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } &&
32773 { ac_try='test -z "$ac_cxx_werror_flag"
32774 || test ! -s conftest.err'
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; } &&
32780 { ac_try='test -s conftest.$ac_objext'
32781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32782 (eval $ac_try) 2>&5
32783 ac_status=$?
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32786 glibcxx_cv_func_copysign_use=yes
32787 else
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 glibcxx_cv_func_copysign_use=no
32793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32794 ac_ext=c
32795 ac_cpp='$CPP $CPPFLAGS'
32796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32804 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32805 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32807 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32809 for ac_func in copysign
32811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32812 echo "$as_me:$LINENO: checking for $ac_func" >&5
32813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32814 if eval "test \"\${$as_ac_var+set}\" = set"; then
32815 echo $ECHO_N "(cached) $ECHO_C" >&6
32816 else
32817 if test x$gcc_no_link = xyes; then
32818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32820 { (exit 1); exit 1; }; }
32822 cat >conftest.$ac_ext <<_ACEOF
32823 /* confdefs.h. */
32824 _ACEOF
32825 cat confdefs.h >>conftest.$ac_ext
32826 cat >>conftest.$ac_ext <<_ACEOF
32827 /* end confdefs.h. */
32828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32830 #define $ac_func innocuous_$ac_func
32832 /* System header to define __stub macros and hopefully few prototypes,
32833 which can conflict with char $ac_func (); below.
32834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32835 <limits.h> exists even on freestanding compilers. */
32837 #ifdef __STDC__
32838 # include <limits.h>
32839 #else
32840 # include <assert.h>
32841 #endif
32843 #undef $ac_func
32845 /* Override any gcc2 internal prototype to avoid an error. */
32846 #ifdef __cplusplus
32847 extern "C"
32849 #endif
32850 /* We use char because int might match the return type of a gcc2
32851 builtin and then its argument prototype would still apply. */
32852 char $ac_func ();
32853 /* The GNU C library defines this for functions which it implements
32854 to always fail with ENOSYS. Some functions are actually named
32855 something starting with __ and the normal name is an alias. */
32856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32857 choke me
32858 #else
32859 char (*f) () = $ac_func;
32860 #endif
32861 #ifdef __cplusplus
32863 #endif
32866 main ()
32868 return f != $ac_func;
32870 return 0;
32872 _ACEOF
32873 rm -f conftest.$ac_objext conftest$ac_exeext
32874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32875 (eval $ac_link) 2>conftest.er1
32876 ac_status=$?
32877 grep -v '^ *+' conftest.er1 >conftest.err
32878 rm -f conftest.er1
32879 cat conftest.err >&5
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); } &&
32882 { ac_try='test -z "$ac_c_werror_flag"
32883 || test ! -s conftest.err'
32884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32885 (eval $ac_try) 2>&5
32886 ac_status=$?
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; } &&
32889 { ac_try='test -s conftest$ac_exeext'
32890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891 (eval $ac_try) 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; }; then
32895 eval "$as_ac_var=yes"
32896 else
32897 echo "$as_me: failed program was:" >&5
32898 sed 's/^/| /' conftest.$ac_ext >&5
32900 eval "$as_ac_var=no"
32902 rm -f conftest.err conftest.$ac_objext \
32903 conftest$ac_exeext conftest.$ac_ext
32905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32907 if test `eval echo '${'$as_ac_var'}'` = yes; then
32908 cat >>confdefs.h <<_ACEOF
32909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32910 _ACEOF
32913 done
32915 else
32917 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32918 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32919 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32920 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32921 echo $ECHO_N "(cached) $ECHO_C" >&6
32922 else
32926 ac_ext=cc
32927 ac_cpp='$CXXCPP $CPPFLAGS'
32928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32932 cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h. */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32938 #include <math.h>
32940 main ()
32942 _copysign(0, 0);
32944 return 0;
32946 _ACEOF
32947 rm -f conftest.$ac_objext
32948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32949 (eval $ac_compile) 2>conftest.er1
32950 ac_status=$?
32951 grep -v '^ *+' conftest.er1 >conftest.err
32952 rm -f conftest.er1
32953 cat conftest.err >&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); } &&
32956 { ac_try='test -z "$ac_cxx_werror_flag"
32957 || test ! -s conftest.err'
32958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32959 (eval $ac_try) 2>&5
32960 ac_status=$?
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); }; } &&
32963 { ac_try='test -s conftest.$ac_objext'
32964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965 (eval $ac_try) 2>&5
32966 ac_status=$?
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; }; then
32969 glibcxx_cv_func__copysign_use=yes
32970 else
32971 echo "$as_me: failed program was:" >&5
32972 sed 's/^/| /' conftest.$ac_ext >&5
32974 glibcxx_cv_func__copysign_use=no
32976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32977 ac_ext=c
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32987 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32988 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32990 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32992 for ac_func in _copysign
32994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32995 echo "$as_me:$LINENO: checking for $ac_func" >&5
32996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32997 if eval "test \"\${$as_ac_var+set}\" = set"; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999 else
33000 if test x$gcc_no_link = xyes; then
33001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33003 { (exit 1); exit 1; }; }
33005 cat >conftest.$ac_ext <<_ACEOF
33006 /* confdefs.h. */
33007 _ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33013 #define $ac_func innocuous_$ac_func
33015 /* System header to define __stub macros and hopefully few prototypes,
33016 which can conflict with char $ac_func (); below.
33017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33018 <limits.h> exists even on freestanding compilers. */
33020 #ifdef __STDC__
33021 # include <limits.h>
33022 #else
33023 # include <assert.h>
33024 #endif
33026 #undef $ac_func
33028 /* Override any gcc2 internal prototype to avoid an error. */
33029 #ifdef __cplusplus
33030 extern "C"
33032 #endif
33033 /* We use char because int might match the return type of a gcc2
33034 builtin and then its argument prototype would still apply. */
33035 char $ac_func ();
33036 /* The GNU C library defines this for functions which it implements
33037 to always fail with ENOSYS. Some functions are actually named
33038 something starting with __ and the normal name is an alias. */
33039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33040 choke me
33041 #else
33042 char (*f) () = $ac_func;
33043 #endif
33044 #ifdef __cplusplus
33046 #endif
33049 main ()
33051 return f != $ac_func;
33053 return 0;
33055 _ACEOF
33056 rm -f conftest.$ac_objext conftest$ac_exeext
33057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33058 (eval $ac_link) 2>conftest.er1
33059 ac_status=$?
33060 grep -v '^ *+' conftest.er1 >conftest.err
33061 rm -f conftest.er1
33062 cat conftest.err >&5
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); } &&
33065 { ac_try='test -z "$ac_c_werror_flag"
33066 || test ! -s conftest.err'
33067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33068 (eval $ac_try) 2>&5
33069 ac_status=$?
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); }; } &&
33072 { ac_try='test -s conftest$ac_exeext'
33073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33074 (eval $ac_try) 2>&5
33075 ac_status=$?
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); }; }; then
33078 eval "$as_ac_var=yes"
33079 else
33080 echo "$as_me: failed program was:" >&5
33081 sed 's/^/| /' conftest.$ac_ext >&5
33083 eval "$as_ac_var=no"
33085 rm -f conftest.err conftest.$ac_objext \
33086 conftest$ac_exeext conftest.$ac_ext
33088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33090 if test `eval echo '${'$as_ac_var'}'` = yes; then
33091 cat >>confdefs.h <<_ACEOF
33092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33093 _ACEOF
33096 done
33103 echo "$as_me:$LINENO: checking for sincos declaration" >&5
33104 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33105 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33106 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33107 echo $ECHO_N "(cached) $ECHO_C" >&6
33108 else
33112 ac_ext=cc
33113 ac_cpp='$CXXCPP $CPPFLAGS'
33114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33118 cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h. */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 #include <math.h>
33126 main ()
33128 sincos(0, 0, 0);
33130 return 0;
33132 _ACEOF
33133 rm -f conftest.$ac_objext
33134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33135 (eval $ac_compile) 2>conftest.er1
33136 ac_status=$?
33137 grep -v '^ *+' conftest.er1 >conftest.err
33138 rm -f conftest.er1
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
33142 { ac_try='test -z "$ac_cxx_werror_flag"
33143 || test ! -s conftest.err'
33144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145 (eval $ac_try) 2>&5
33146 ac_status=$?
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest.$ac_objext'
33150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151 (eval $ac_try) 2>&5
33152 ac_status=$?
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); }; }; then
33155 glibcxx_cv_func_sincos_use=yes
33156 else
33157 echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33160 glibcxx_cv_func_sincos_use=no
33162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33163 ac_ext=c
33164 ac_cpp='$CPP $CPPFLAGS'
33165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33173 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33174 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33176 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33178 for ac_func in sincos
33180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33181 echo "$as_me:$LINENO: checking for $ac_func" >&5
33182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33183 if eval "test \"\${$as_ac_var+set}\" = set"; then
33184 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 else
33186 if test x$gcc_no_link = xyes; then
33187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33189 { (exit 1); exit 1; }; }
33191 cat >conftest.$ac_ext <<_ACEOF
33192 /* confdefs.h. */
33193 _ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h. */
33197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33199 #define $ac_func innocuous_$ac_func
33201 /* System header to define __stub macros and hopefully few prototypes,
33202 which can conflict with char $ac_func (); below.
33203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33204 <limits.h> exists even on freestanding compilers. */
33206 #ifdef __STDC__
33207 # include <limits.h>
33208 #else
33209 # include <assert.h>
33210 #endif
33212 #undef $ac_func
33214 /* Override any gcc2 internal prototype to avoid an error. */
33215 #ifdef __cplusplus
33216 extern "C"
33218 #endif
33219 /* We use char because int might match the return type of a gcc2
33220 builtin and then its argument prototype would still apply. */
33221 char $ac_func ();
33222 /* The GNU C library defines this for functions which it implements
33223 to always fail with ENOSYS. Some functions are actually named
33224 something starting with __ and the normal name is an alias. */
33225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33226 choke me
33227 #else
33228 char (*f) () = $ac_func;
33229 #endif
33230 #ifdef __cplusplus
33232 #endif
33235 main ()
33237 return f != $ac_func;
33239 return 0;
33241 _ACEOF
33242 rm -f conftest.$ac_objext conftest$ac_exeext
33243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33244 (eval $ac_link) 2>conftest.er1
33245 ac_status=$?
33246 grep -v '^ *+' conftest.er1 >conftest.err
33247 rm -f conftest.er1
33248 cat conftest.err >&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); } &&
33251 { ac_try='test -z "$ac_c_werror_flag"
33252 || test ! -s conftest.err'
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest$ac_exeext'
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 eval "$as_ac_var=yes"
33265 else
33266 echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33269 eval "$as_ac_var=no"
33271 rm -f conftest.err conftest.$ac_objext \
33272 conftest$ac_exeext conftest.$ac_ext
33274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33276 if test `eval echo '${'$as_ac_var'}'` = yes; then
33277 cat >>confdefs.h <<_ACEOF
33278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33279 _ACEOF
33282 done
33284 else
33286 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33287 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33288 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33289 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33291 else
33295 ac_ext=cc
33296 ac_cpp='$CXXCPP $CPPFLAGS'
33297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33301 cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h. */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 #include <math.h>
33309 main ()
33311 _sincos(0, 0, 0);
33313 return 0;
33315 _ACEOF
33316 rm -f conftest.$ac_objext
33317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33318 (eval $ac_compile) 2>conftest.er1
33319 ac_status=$?
33320 grep -v '^ *+' conftest.er1 >conftest.err
33321 rm -f conftest.er1
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_cxx_werror_flag"
33326 || test ! -s conftest.err'
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; } &&
33332 { ac_try='test -s conftest.$ac_objext'
33333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33334 (eval $ac_try) 2>&5
33335 ac_status=$?
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); }; }; then
33338 glibcxx_cv_func__sincos_use=yes
33339 else
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33343 glibcxx_cv_func__sincos_use=no
33345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33346 ac_ext=c
33347 ac_cpp='$CPP $CPPFLAGS'
33348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33356 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33357 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33359 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33361 for ac_func in _sincos
33363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33364 echo "$as_me:$LINENO: checking for $ac_func" >&5
33365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33366 if eval "test \"\${$as_ac_var+set}\" = set"; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 else
33369 if test x$gcc_no_link = xyes; then
33370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33372 { (exit 1); exit 1; }; }
33374 cat >conftest.$ac_ext <<_ACEOF
33375 /* confdefs.h. */
33376 _ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h. */
33380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33382 #define $ac_func innocuous_$ac_func
33384 /* System header to define __stub macros and hopefully few prototypes,
33385 which can conflict with char $ac_func (); below.
33386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33387 <limits.h> exists even on freestanding compilers. */
33389 #ifdef __STDC__
33390 # include <limits.h>
33391 #else
33392 # include <assert.h>
33393 #endif
33395 #undef $ac_func
33397 /* Override any gcc2 internal prototype to avoid an error. */
33398 #ifdef __cplusplus
33399 extern "C"
33401 #endif
33402 /* We use char because int might match the return type of a gcc2
33403 builtin and then its argument prototype would still apply. */
33404 char $ac_func ();
33405 /* The GNU C library defines this for functions which it implements
33406 to always fail with ENOSYS. Some functions are actually named
33407 something starting with __ and the normal name is an alias. */
33408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33409 choke me
33410 #else
33411 char (*f) () = $ac_func;
33412 #endif
33413 #ifdef __cplusplus
33415 #endif
33418 main ()
33420 return f != $ac_func;
33422 return 0;
33424 _ACEOF
33425 rm -f conftest.$ac_objext conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427 (eval $ac_link) 2>conftest.er1
33428 ac_status=$?
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
33434 { ac_try='test -z "$ac_c_werror_flag"
33435 || test ! -s conftest.err'
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest$ac_exeext'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 eval "$as_ac_var=yes"
33448 else
33449 echo "$as_me: failed program was:" >&5
33450 sed 's/^/| /' conftest.$ac_ext >&5
33452 eval "$as_ac_var=no"
33454 rm -f conftest.err conftest.$ac_objext \
33455 conftest$ac_exeext conftest.$ac_ext
33457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33459 if test `eval echo '${'$as_ac_var'}'` = yes; then
33460 cat >>confdefs.h <<_ACEOF
33461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33462 _ACEOF
33465 done
33472 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33473 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33474 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33475 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33476 echo $ECHO_N "(cached) $ECHO_C" >&6
33477 else
33481 ac_ext=cc
33482 ac_cpp='$CXXCPP $CPPFLAGS'
33483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33487 cat >conftest.$ac_ext <<_ACEOF
33488 /* confdefs.h. */
33489 _ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h. */
33493 #include <math.h>
33494 #ifdef HAVE_IEEEFP_H
33495 #include <ieeefp.h>
33496 #endif
33499 main ()
33501 fpclass(0);
33503 return 0;
33505 _ACEOF
33506 rm -f conftest.$ac_objext
33507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33508 (eval $ac_compile) 2>conftest.er1
33509 ac_status=$?
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
33515 { ac_try='test -z "$ac_cxx_werror_flag"
33516 || test ! -s conftest.err'
33517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 (eval $ac_try) 2>&5
33519 ac_status=$?
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); }; } &&
33522 { ac_try='test -s conftest.$ac_objext'
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; }; then
33528 glibcxx_cv_func_fpclass_use=yes
33529 else
33530 echo "$as_me: failed program was:" >&5
33531 sed 's/^/| /' conftest.$ac_ext >&5
33533 glibcxx_cv_func_fpclass_use=no
33535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33536 ac_ext=c
33537 ac_cpp='$CPP $CPPFLAGS'
33538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33546 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33547 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33549 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33551 for ac_func in fpclass
33553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33554 echo "$as_me:$LINENO: checking for $ac_func" >&5
33555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33556 if eval "test \"\${$as_ac_var+set}\" = set"; then
33557 echo $ECHO_N "(cached) $ECHO_C" >&6
33558 else
33559 if test x$gcc_no_link = xyes; then
33560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33562 { (exit 1); exit 1; }; }
33564 cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h. */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33572 #define $ac_func innocuous_$ac_func
33574 /* System header to define __stub macros and hopefully few prototypes,
33575 which can conflict with char $ac_func (); below.
33576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33577 <limits.h> exists even on freestanding compilers. */
33579 #ifdef __STDC__
33580 # include <limits.h>
33581 #else
33582 # include <assert.h>
33583 #endif
33585 #undef $ac_func
33587 /* Override any gcc2 internal prototype to avoid an error. */
33588 #ifdef __cplusplus
33589 extern "C"
33591 #endif
33592 /* We use char because int might match the return type of a gcc2
33593 builtin and then its argument prototype would still apply. */
33594 char $ac_func ();
33595 /* The GNU C library defines this for functions which it implements
33596 to always fail with ENOSYS. Some functions are actually named
33597 something starting with __ and the normal name is an alias. */
33598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33599 choke me
33600 #else
33601 char (*f) () = $ac_func;
33602 #endif
33603 #ifdef __cplusplus
33605 #endif
33608 main ()
33610 return f != $ac_func;
33612 return 0;
33614 _ACEOF
33615 rm -f conftest.$ac_objext conftest$ac_exeext
33616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33617 (eval $ac_link) 2>conftest.er1
33618 ac_status=$?
33619 grep -v '^ *+' conftest.er1 >conftest.err
33620 rm -f conftest.er1
33621 cat conftest.err >&5
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } &&
33624 { ac_try='test -z "$ac_c_werror_flag"
33625 || test ! -s conftest.err'
33626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33627 (eval $ac_try) 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; } &&
33631 { ac_try='test -s conftest$ac_exeext'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33637 eval "$as_ac_var=yes"
33638 else
33639 echo "$as_me: failed program was:" >&5
33640 sed 's/^/| /' conftest.$ac_ext >&5
33642 eval "$as_ac_var=no"
33644 rm -f conftest.err conftest.$ac_objext \
33645 conftest$ac_exeext conftest.$ac_ext
33647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33649 if test `eval echo '${'$as_ac_var'}'` = yes; then
33650 cat >>confdefs.h <<_ACEOF
33651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33652 _ACEOF
33655 done
33657 else
33659 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33660 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33661 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33662 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33663 echo $ECHO_N "(cached) $ECHO_C" >&6
33664 else
33668 ac_ext=cc
33669 ac_cpp='$CXXCPP $CPPFLAGS'
33670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33674 cat >conftest.$ac_ext <<_ACEOF
33675 /* confdefs.h. */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h. */
33680 #include <math.h>
33681 #ifdef HAVE_IEEEFP_H
33682 #include <ieeefp.h>
33683 #endif
33686 main ()
33688 _fpclass(0);
33690 return 0;
33692 _ACEOF
33693 rm -f conftest.$ac_objext
33694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33695 (eval $ac_compile) 2>conftest.er1
33696 ac_status=$?
33697 grep -v '^ *+' conftest.er1 >conftest.err
33698 rm -f conftest.er1
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } &&
33702 { ac_try='test -z "$ac_cxx_werror_flag"
33703 || test ! -s conftest.err'
33704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33705 (eval $ac_try) 2>&5
33706 ac_status=$?
33707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708 (exit $ac_status); }; } &&
33709 { ac_try='test -s conftest.$ac_objext'
33710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33711 (eval $ac_try) 2>&5
33712 ac_status=$?
33713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714 (exit $ac_status); }; }; then
33715 glibcxx_cv_func__fpclass_use=yes
33716 else
33717 echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33720 glibcxx_cv_func__fpclass_use=no
33722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33723 ac_ext=c
33724 ac_cpp='$CPP $CPPFLAGS'
33725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33733 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33734 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33736 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33738 for ac_func in _fpclass
33740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33741 echo "$as_me:$LINENO: checking for $ac_func" >&5
33742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33743 if eval "test \"\${$as_ac_var+set}\" = set"; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745 else
33746 if test x$gcc_no_link = xyes; then
33747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33749 { (exit 1); exit 1; }; }
33751 cat >conftest.$ac_ext <<_ACEOF
33752 /* confdefs.h. */
33753 _ACEOF
33754 cat confdefs.h >>conftest.$ac_ext
33755 cat >>conftest.$ac_ext <<_ACEOF
33756 /* end confdefs.h. */
33757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33759 #define $ac_func innocuous_$ac_func
33761 /* System header to define __stub macros and hopefully few prototypes,
33762 which can conflict with char $ac_func (); below.
33763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33764 <limits.h> exists even on freestanding compilers. */
33766 #ifdef __STDC__
33767 # include <limits.h>
33768 #else
33769 # include <assert.h>
33770 #endif
33772 #undef $ac_func
33774 /* Override any gcc2 internal prototype to avoid an error. */
33775 #ifdef __cplusplus
33776 extern "C"
33778 #endif
33779 /* We use char because int might match the return type of a gcc2
33780 builtin and then its argument prototype would still apply. */
33781 char $ac_func ();
33782 /* The GNU C library defines this for functions which it implements
33783 to always fail with ENOSYS. Some functions are actually named
33784 something starting with __ and the normal name is an alias. */
33785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33786 choke me
33787 #else
33788 char (*f) () = $ac_func;
33789 #endif
33790 #ifdef __cplusplus
33792 #endif
33795 main ()
33797 return f != $ac_func;
33799 return 0;
33801 _ACEOF
33802 rm -f conftest.$ac_objext conftest$ac_exeext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33804 (eval $ac_link) 2>conftest.er1
33805 ac_status=$?
33806 grep -v '^ *+' conftest.er1 >conftest.err
33807 rm -f conftest.er1
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
33811 { ac_try='test -z "$ac_c_werror_flag"
33812 || test ! -s conftest.err'
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest$ac_exeext'
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 eval "$as_ac_var=yes"
33825 else
33826 echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33829 eval "$as_ac_var=no"
33831 rm -f conftest.err conftest.$ac_objext \
33832 conftest$ac_exeext conftest.$ac_ext
33834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33836 if test `eval echo '${'$as_ac_var'}'` = yes; then
33837 cat >>confdefs.h <<_ACEOF
33838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33839 _ACEOF
33842 done
33849 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33850 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33851 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33852 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33858 ac_ext=cc
33859 ac_cpp='$CXXCPP $CPPFLAGS'
33860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33864 cat >conftest.$ac_ext <<_ACEOF
33865 /* confdefs.h. */
33866 _ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 #include <math.h>
33871 #ifdef HAVE_IEEEFP_H
33872 #include <ieeefp.h>
33873 #endif
33876 main ()
33878 qfpclass(0);
33880 return 0;
33882 _ACEOF
33883 rm -f conftest.$ac_objext
33884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33885 (eval $ac_compile) 2>conftest.er1
33886 ac_status=$?
33887 grep -v '^ *+' conftest.er1 >conftest.err
33888 rm -f conftest.er1
33889 cat conftest.err >&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); } &&
33892 { ac_try='test -z "$ac_cxx_werror_flag"
33893 || test ! -s conftest.err'
33894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895 (eval $ac_try) 2>&5
33896 ac_status=$?
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); }; } &&
33899 { ac_try='test -s conftest.$ac_objext'
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33902 ac_status=$?
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; }; then
33905 glibcxx_cv_func_qfpclass_use=yes
33906 else
33907 echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.$ac_ext >&5
33910 glibcxx_cv_func_qfpclass_use=no
33912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33913 ac_ext=c
33914 ac_cpp='$CPP $CPPFLAGS'
33915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33923 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33924 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33926 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33928 for ac_func in qfpclass
33930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33931 echo "$as_me:$LINENO: checking for $ac_func" >&5
33932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33933 if eval "test \"\${$as_ac_var+set}\" = set"; then
33934 echo $ECHO_N "(cached) $ECHO_C" >&6
33935 else
33936 if test x$gcc_no_link = xyes; then
33937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33939 { (exit 1); exit 1; }; }
33941 cat >conftest.$ac_ext <<_ACEOF
33942 /* confdefs.h. */
33943 _ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h. */
33947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33949 #define $ac_func innocuous_$ac_func
33951 /* System header to define __stub macros and hopefully few prototypes,
33952 which can conflict with char $ac_func (); below.
33953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33954 <limits.h> exists even on freestanding compilers. */
33956 #ifdef __STDC__
33957 # include <limits.h>
33958 #else
33959 # include <assert.h>
33960 #endif
33962 #undef $ac_func
33964 /* Override any gcc2 internal prototype to avoid an error. */
33965 #ifdef __cplusplus
33966 extern "C"
33968 #endif
33969 /* We use char because int might match the return type of a gcc2
33970 builtin and then its argument prototype would still apply. */
33971 char $ac_func ();
33972 /* The GNU C library defines this for functions which it implements
33973 to always fail with ENOSYS. Some functions are actually named
33974 something starting with __ and the normal name is an alias. */
33975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33976 choke me
33977 #else
33978 char (*f) () = $ac_func;
33979 #endif
33980 #ifdef __cplusplus
33982 #endif
33985 main ()
33987 return f != $ac_func;
33989 return 0;
33991 _ACEOF
33992 rm -f conftest.$ac_objext conftest$ac_exeext
33993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33994 (eval $ac_link) 2>conftest.er1
33995 ac_status=$?
33996 grep -v '^ *+' conftest.er1 >conftest.err
33997 rm -f conftest.er1
33998 cat conftest.err >&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); } &&
34001 { ac_try='test -z "$ac_c_werror_flag"
34002 || test ! -s conftest.err'
34003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004 (eval $ac_try) 2>&5
34005 ac_status=$?
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); }; } &&
34008 { ac_try='test -s conftest$ac_exeext'
34009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010 (eval $ac_try) 2>&5
34011 ac_status=$?
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; }; then
34014 eval "$as_ac_var=yes"
34015 else
34016 echo "$as_me: failed program was:" >&5
34017 sed 's/^/| /' conftest.$ac_ext >&5
34019 eval "$as_ac_var=no"
34021 rm -f conftest.err conftest.$ac_objext \
34022 conftest$ac_exeext conftest.$ac_ext
34024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34026 if test `eval echo '${'$as_ac_var'}'` = yes; then
34027 cat >>confdefs.h <<_ACEOF
34028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34029 _ACEOF
34032 done
34034 else
34036 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
34037 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
34038 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
34039 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
34040 echo $ECHO_N "(cached) $ECHO_C" >&6
34041 else
34045 ac_ext=cc
34046 ac_cpp='$CXXCPP $CPPFLAGS'
34047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34051 cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h. */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h. */
34057 #include <math.h>
34058 #ifdef HAVE_IEEEFP_H
34059 #include <ieeefp.h>
34060 #endif
34063 main ()
34065 _qfpclass(0);
34067 return 0;
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34072 (eval $ac_compile) 2>conftest.er1
34073 ac_status=$?
34074 grep -v '^ *+' conftest.er1 >conftest.err
34075 rm -f conftest.er1
34076 cat conftest.err >&5
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); } &&
34079 { ac_try='test -z "$ac_cxx_werror_flag"
34080 || test ! -s conftest.err'
34081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34082 (eval $ac_try) 2>&5
34083 ac_status=$?
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); }; } &&
34086 { ac_try='test -s conftest.$ac_objext'
34087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34088 (eval $ac_try) 2>&5
34089 ac_status=$?
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); }; }; then
34092 glibcxx_cv_func__qfpclass_use=yes
34093 else
34094 echo "$as_me: failed program was:" >&5
34095 sed 's/^/| /' conftest.$ac_ext >&5
34097 glibcxx_cv_func__qfpclass_use=no
34099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34100 ac_ext=c
34101 ac_cpp='$CPP $CPPFLAGS'
34102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34110 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34111 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34113 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34115 for ac_func in _qfpclass
34117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34118 echo "$as_me:$LINENO: checking for $ac_func" >&5
34119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34120 if eval "test \"\${$as_ac_var+set}\" = set"; then
34121 echo $ECHO_N "(cached) $ECHO_C" >&6
34122 else
34123 if test x$gcc_no_link = xyes; then
34124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34126 { (exit 1); exit 1; }; }
34128 cat >conftest.$ac_ext <<_ACEOF
34129 /* confdefs.h. */
34130 _ACEOF
34131 cat confdefs.h >>conftest.$ac_ext
34132 cat >>conftest.$ac_ext <<_ACEOF
34133 /* end confdefs.h. */
34134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34136 #define $ac_func innocuous_$ac_func
34138 /* System header to define __stub macros and hopefully few prototypes,
34139 which can conflict with char $ac_func (); below.
34140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34141 <limits.h> exists even on freestanding compilers. */
34143 #ifdef __STDC__
34144 # include <limits.h>
34145 #else
34146 # include <assert.h>
34147 #endif
34149 #undef $ac_func
34151 /* Override any gcc2 internal prototype to avoid an error. */
34152 #ifdef __cplusplus
34153 extern "C"
34155 #endif
34156 /* We use char because int might match the return type of a gcc2
34157 builtin and then its argument prototype would still apply. */
34158 char $ac_func ();
34159 /* The GNU C library defines this for functions which it implements
34160 to always fail with ENOSYS. Some functions are actually named
34161 something starting with __ and the normal name is an alias. */
34162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34163 choke me
34164 #else
34165 char (*f) () = $ac_func;
34166 #endif
34167 #ifdef __cplusplus
34169 #endif
34172 main ()
34174 return f != $ac_func;
34176 return 0;
34178 _ACEOF
34179 rm -f conftest.$ac_objext conftest$ac_exeext
34180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34181 (eval $ac_link) 2>conftest.er1
34182 ac_status=$?
34183 grep -v '^ *+' conftest.er1 >conftest.err
34184 rm -f conftest.er1
34185 cat conftest.err >&5
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); } &&
34188 { ac_try='test -z "$ac_c_werror_flag"
34189 || test ! -s conftest.err'
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; } &&
34195 { ac_try='test -s conftest$ac_exeext'
34196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34197 (eval $ac_try) 2>&5
34198 ac_status=$?
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); }; }; then
34201 eval "$as_ac_var=yes"
34202 else
34203 echo "$as_me: failed program was:" >&5
34204 sed 's/^/| /' conftest.$ac_ext >&5
34206 eval "$as_ac_var=no"
34208 rm -f conftest.err conftest.$ac_objext \
34209 conftest$ac_exeext conftest.$ac_ext
34211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34213 if test `eval echo '${'$as_ac_var'}'` = yes; then
34214 cat >>confdefs.h <<_ACEOF
34215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34216 _ACEOF
34219 done
34226 echo "$as_me:$LINENO: checking for hypot declaration" >&5
34227 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34228 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34229 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34230 echo $ECHO_N "(cached) $ECHO_C" >&6
34231 else
34235 ac_ext=cc
34236 ac_cpp='$CXXCPP $CPPFLAGS'
34237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34241 cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h. */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h. */
34247 #include <math.h>
34249 main ()
34251 hypot(0, 0);
34253 return 0;
34255 _ACEOF
34256 rm -f conftest.$ac_objext
34257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34258 (eval $ac_compile) 2>conftest.er1
34259 ac_status=$?
34260 grep -v '^ *+' conftest.er1 >conftest.err
34261 rm -f conftest.er1
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } &&
34265 { ac_try='test -z "$ac_cxx_werror_flag"
34266 || test ! -s conftest.err'
34267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268 (eval $ac_try) 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; } &&
34272 { ac_try='test -s conftest.$ac_objext'
34273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274 (eval $ac_try) 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; }; then
34278 glibcxx_cv_func_hypot_use=yes
34279 else
34280 echo "$as_me: failed program was:" >&5
34281 sed 's/^/| /' conftest.$ac_ext >&5
34283 glibcxx_cv_func_hypot_use=no
34285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34286 ac_ext=c
34287 ac_cpp='$CPP $CPPFLAGS'
34288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34296 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34297 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34299 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34301 for ac_func in hypot
34303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34304 echo "$as_me:$LINENO: checking for $ac_func" >&5
34305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34306 if eval "test \"\${$as_ac_var+set}\" = set"; then
34307 echo $ECHO_N "(cached) $ECHO_C" >&6
34308 else
34309 if test x$gcc_no_link = xyes; then
34310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34312 { (exit 1); exit 1; }; }
34314 cat >conftest.$ac_ext <<_ACEOF
34315 /* confdefs.h. */
34316 _ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h. */
34320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34322 #define $ac_func innocuous_$ac_func
34324 /* System header to define __stub macros and hopefully few prototypes,
34325 which can conflict with char $ac_func (); below.
34326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34327 <limits.h> exists even on freestanding compilers. */
34329 #ifdef __STDC__
34330 # include <limits.h>
34331 #else
34332 # include <assert.h>
34333 #endif
34335 #undef $ac_func
34337 /* Override any gcc2 internal prototype to avoid an error. */
34338 #ifdef __cplusplus
34339 extern "C"
34341 #endif
34342 /* We use char because int might match the return type of a gcc2
34343 builtin and then its argument prototype would still apply. */
34344 char $ac_func ();
34345 /* The GNU C library defines this for functions which it implements
34346 to always fail with ENOSYS. Some functions are actually named
34347 something starting with __ and the normal name is an alias. */
34348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34349 choke me
34350 #else
34351 char (*f) () = $ac_func;
34352 #endif
34353 #ifdef __cplusplus
34355 #endif
34358 main ()
34360 return f != $ac_func;
34362 return 0;
34364 _ACEOF
34365 rm -f conftest.$ac_objext conftest$ac_exeext
34366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34367 (eval $ac_link) 2>conftest.er1
34368 ac_status=$?
34369 grep -v '^ *+' conftest.er1 >conftest.err
34370 rm -f conftest.er1
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_c_werror_flag"
34375 || test ! -s conftest.err'
34376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34377 (eval $ac_try) 2>&5
34378 ac_status=$?
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); }; } &&
34381 { ac_try='test -s conftest$ac_exeext'
34382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34383 (eval $ac_try) 2>&5
34384 ac_status=$?
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); }; }; then
34387 eval "$as_ac_var=yes"
34388 else
34389 echo "$as_me: failed program was:" >&5
34390 sed 's/^/| /' conftest.$ac_ext >&5
34392 eval "$as_ac_var=no"
34394 rm -f conftest.err conftest.$ac_objext \
34395 conftest$ac_exeext conftest.$ac_ext
34397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34399 if test `eval echo '${'$as_ac_var'}'` = yes; then
34400 cat >>confdefs.h <<_ACEOF
34401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34402 _ACEOF
34405 done
34407 else
34409 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34410 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34411 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34412 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34413 echo $ECHO_N "(cached) $ECHO_C" >&6
34414 else
34418 ac_ext=cc
34419 ac_cpp='$CXXCPP $CPPFLAGS'
34420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34424 cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h. */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430 #include <math.h>
34432 main ()
34434 _hypot(0, 0);
34436 return 0;
34438 _ACEOF
34439 rm -f conftest.$ac_objext
34440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34441 (eval $ac_compile) 2>conftest.er1
34442 ac_status=$?
34443 grep -v '^ *+' conftest.er1 >conftest.err
34444 rm -f conftest.er1
34445 cat conftest.err >&5
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); } &&
34448 { ac_try='test -z "$ac_cxx_werror_flag"
34449 || test ! -s conftest.err'
34450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34451 (eval $ac_try) 2>&5
34452 ac_status=$?
34453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 (exit $ac_status); }; } &&
34455 { ac_try='test -s conftest.$ac_objext'
34456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34457 (eval $ac_try) 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; }; then
34461 glibcxx_cv_func__hypot_use=yes
34462 else
34463 echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34466 glibcxx_cv_func__hypot_use=no
34468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34469 ac_ext=c
34470 ac_cpp='$CPP $CPPFLAGS'
34471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34479 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34480 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34482 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34484 for ac_func in _hypot
34486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34487 echo "$as_me:$LINENO: checking for $ac_func" >&5
34488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34489 if eval "test \"\${$as_ac_var+set}\" = set"; then
34490 echo $ECHO_N "(cached) $ECHO_C" >&6
34491 else
34492 if test x$gcc_no_link = xyes; then
34493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34495 { (exit 1); exit 1; }; }
34497 cat >conftest.$ac_ext <<_ACEOF
34498 /* confdefs.h. */
34499 _ACEOF
34500 cat confdefs.h >>conftest.$ac_ext
34501 cat >>conftest.$ac_ext <<_ACEOF
34502 /* end confdefs.h. */
34503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34505 #define $ac_func innocuous_$ac_func
34507 /* System header to define __stub macros and hopefully few prototypes,
34508 which can conflict with char $ac_func (); below.
34509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34510 <limits.h> exists even on freestanding compilers. */
34512 #ifdef __STDC__
34513 # include <limits.h>
34514 #else
34515 # include <assert.h>
34516 #endif
34518 #undef $ac_func
34520 /* Override any gcc2 internal prototype to avoid an error. */
34521 #ifdef __cplusplus
34522 extern "C"
34524 #endif
34525 /* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34527 char $ac_func ();
34528 /* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34532 choke me
34533 #else
34534 char (*f) () = $ac_func;
34535 #endif
34536 #ifdef __cplusplus
34538 #endif
34541 main ()
34543 return f != $ac_func;
34545 return 0;
34547 _ACEOF
34548 rm -f conftest.$ac_objext conftest$ac_exeext
34549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34550 (eval $ac_link) 2>conftest.er1
34551 ac_status=$?
34552 grep -v '^ *+' conftest.er1 >conftest.err
34553 rm -f conftest.er1
34554 cat conftest.err >&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); } &&
34557 { ac_try='test -z "$ac_c_werror_flag"
34558 || test ! -s conftest.err'
34559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34560 (eval $ac_try) 2>&5
34561 ac_status=$?
34562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563 (exit $ac_status); }; } &&
34564 { ac_try='test -s conftest$ac_exeext'
34565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566 (eval $ac_try) 2>&5
34567 ac_status=$?
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); }; }; then
34570 eval "$as_ac_var=yes"
34571 else
34572 echo "$as_me: failed program was:" >&5
34573 sed 's/^/| /' conftest.$ac_ext >&5
34575 eval "$as_ac_var=no"
34577 rm -f conftest.err conftest.$ac_objext \
34578 conftest$ac_exeext conftest.$ac_ext
34580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34582 if test `eval echo '${'$as_ac_var'}'` = yes; then
34583 cat >>confdefs.h <<_ACEOF
34584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34585 _ACEOF
34588 done
34595 echo "$as_me:$LINENO: checking for float trig functions" >&5
34596 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34597 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34598 echo $ECHO_N "(cached) $ECHO_C" >&6
34599 else
34603 ac_ext=cc
34604 ac_cpp='$CXXCPP $CPPFLAGS'
34605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34609 cat >conftest.$ac_ext <<_ACEOF
34610 /* confdefs.h. */
34611 _ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h. */
34615 #include <math.h>
34617 main ()
34619 `for x in acosf asinf atanf \
34620 cosf sinf tanf \
34621 coshf sinhf tanhf; do echo "$x (0);"; done`
34623 return 0;
34625 _ACEOF
34626 rm -f conftest.$ac_objext
34627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34628 (eval $ac_compile) 2>conftest.er1
34629 ac_status=$?
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
34635 { ac_try='test -z "$ac_cxx_werror_flag"
34636 || test ! -s conftest.err'
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; } &&
34642 { ac_try='test -s conftest.$ac_objext'
34643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644 (eval $ac_try) 2>&5
34645 ac_status=$?
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); }; }; then
34648 glibcxx_cv_func_float_trig_use=yes
34649 else
34650 echo "$as_me: failed program was:" >&5
34651 sed 's/^/| /' conftest.$ac_ext >&5
34653 glibcxx_cv_func_float_trig_use=no
34655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34656 ac_ext=c
34657 ac_cpp='$CPP $CPPFLAGS'
34658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34664 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34665 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34666 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34676 for ac_func in acosf asinf atanf \
34677 cosf sinf tanf \
34678 coshf sinhf tanhf
34680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34681 echo "$as_me:$LINENO: checking for $ac_func" >&5
34682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34683 if eval "test \"\${$as_ac_var+set}\" = set"; then
34684 echo $ECHO_N "(cached) $ECHO_C" >&6
34685 else
34686 if test x$gcc_no_link = xyes; then
34687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34689 { (exit 1); exit 1; }; }
34691 cat >conftest.$ac_ext <<_ACEOF
34692 /* confdefs.h. */
34693 _ACEOF
34694 cat confdefs.h >>conftest.$ac_ext
34695 cat >>conftest.$ac_ext <<_ACEOF
34696 /* end confdefs.h. */
34697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34699 #define $ac_func innocuous_$ac_func
34701 /* System header to define __stub macros and hopefully few prototypes,
34702 which can conflict with char $ac_func (); below.
34703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34704 <limits.h> exists even on freestanding compilers. */
34706 #ifdef __STDC__
34707 # include <limits.h>
34708 #else
34709 # include <assert.h>
34710 #endif
34712 #undef $ac_func
34714 /* Override any gcc2 internal prototype to avoid an error. */
34715 #ifdef __cplusplus
34716 extern "C"
34718 #endif
34719 /* We use char because int might match the return type of a gcc2
34720 builtin and then its argument prototype would still apply. */
34721 char $ac_func ();
34722 /* The GNU C library defines this for functions which it implements
34723 to always fail with ENOSYS. Some functions are actually named
34724 something starting with __ and the normal name is an alias. */
34725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34726 choke me
34727 #else
34728 char (*f) () = $ac_func;
34729 #endif
34730 #ifdef __cplusplus
34732 #endif
34735 main ()
34737 return f != $ac_func;
34739 return 0;
34741 _ACEOF
34742 rm -f conftest.$ac_objext conftest$ac_exeext
34743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34744 (eval $ac_link) 2>conftest.er1
34745 ac_status=$?
34746 grep -v '^ *+' conftest.er1 >conftest.err
34747 rm -f conftest.er1
34748 cat conftest.err >&5
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } &&
34751 { ac_try='test -z "$ac_c_werror_flag"
34752 || test ! -s conftest.err'
34753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754 (eval $ac_try) 2>&5
34755 ac_status=$?
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); }; } &&
34758 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34764 eval "$as_ac_var=yes"
34765 else
34766 echo "$as_me: failed program was:" >&5
34767 sed 's/^/| /' conftest.$ac_ext >&5
34769 eval "$as_ac_var=no"
34771 rm -f conftest.err conftest.$ac_objext \
34772 conftest$ac_exeext conftest.$ac_ext
34774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34776 if test `eval echo '${'$as_ac_var'}'` = yes; then
34777 cat >>confdefs.h <<_ACEOF
34778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34779 _ACEOF
34782 done
34787 echo "$as_me:$LINENO: checking for float round functions" >&5
34788 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34789 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34790 echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34795 ac_ext=cc
34796 ac_cpp='$CXXCPP $CPPFLAGS'
34797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34801 cat >conftest.$ac_ext <<_ACEOF
34802 /* confdefs.h. */
34803 _ACEOF
34804 cat confdefs.h >>conftest.$ac_ext
34805 cat >>conftest.$ac_ext <<_ACEOF
34806 /* end confdefs.h. */
34807 #include <math.h>
34809 main ()
34811 `for x in ceilf floorf; do echo "$x (0);"; done`
34813 return 0;
34815 _ACEOF
34816 rm -f conftest.$ac_objext
34817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34818 (eval $ac_compile) 2>conftest.er1
34819 ac_status=$?
34820 grep -v '^ *+' conftest.er1 >conftest.err
34821 rm -f conftest.er1
34822 cat conftest.err >&5
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); } &&
34825 { ac_try='test -z "$ac_cxx_werror_flag"
34826 || test ! -s conftest.err'
34827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828 (eval $ac_try) 2>&5
34829 ac_status=$?
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest.$ac_objext'
34833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834 (eval $ac_try) 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; }; then
34838 glibcxx_cv_func_float_round_use=yes
34839 else
34840 echo "$as_me: failed program was:" >&5
34841 sed 's/^/| /' conftest.$ac_ext >&5
34843 glibcxx_cv_func_float_round_use=no
34845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34846 ac_ext=c
34847 ac_cpp='$CPP $CPPFLAGS'
34848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34854 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34855 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34856 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34859 for ac_func in ceilf floorf
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867 if test x$gcc_no_link = xyes; then
34868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34870 { (exit 1); exit 1; }; }
34872 cat >conftest.$ac_ext <<_ACEOF
34873 /* confdefs.h. */
34874 _ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h. */
34878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34880 #define $ac_func innocuous_$ac_func
34882 /* System header to define __stub macros and hopefully few prototypes,
34883 which can conflict with char $ac_func (); below.
34884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34885 <limits.h> exists even on freestanding compilers. */
34887 #ifdef __STDC__
34888 # include <limits.h>
34889 #else
34890 # include <assert.h>
34891 #endif
34893 #undef $ac_func
34895 /* Override any gcc2 internal prototype to avoid an error. */
34896 #ifdef __cplusplus
34897 extern "C"
34899 #endif
34900 /* We use char because int might match the return type of a gcc2
34901 builtin and then its argument prototype would still apply. */
34902 char $ac_func ();
34903 /* The GNU C library defines this for functions which it implements
34904 to always fail with ENOSYS. Some functions are actually named
34905 something starting with __ and the normal name is an alias. */
34906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34907 choke me
34908 #else
34909 char (*f) () = $ac_func;
34910 #endif
34911 #ifdef __cplusplus
34913 #endif
34916 main ()
34918 return f != $ac_func;
34920 return 0;
34922 _ACEOF
34923 rm -f conftest.$ac_objext conftest$ac_exeext
34924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34925 (eval $ac_link) 2>conftest.er1
34926 ac_status=$?
34927 grep -v '^ *+' conftest.er1 >conftest.err
34928 rm -f conftest.er1
34929 cat conftest.err >&5
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); } &&
34932 { ac_try='test -z "$ac_c_werror_flag"
34933 || test ! -s conftest.err'
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; } &&
34939 { ac_try='test -s conftest$ac_exeext'
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34942 ac_status=$?
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; }; then
34945 eval "$as_ac_var=yes"
34946 else
34947 echo "$as_me: failed program was:" >&5
34948 sed 's/^/| /' conftest.$ac_ext >&5
34950 eval "$as_ac_var=no"
34952 rm -f conftest.err conftest.$ac_objext \
34953 conftest$ac_exeext conftest.$ac_ext
34955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34957 if test `eval echo '${'$as_ac_var'}'` = yes; then
34958 cat >>confdefs.h <<_ACEOF
34959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34960 _ACEOF
34963 done
34969 echo "$as_me:$LINENO: checking for expf declaration" >&5
34970 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34971 if test x${glibcxx_cv_func_expf_use+set} != xset; then
34972 if test "${glibcxx_cv_func_expf_use+set}" = set; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34974 else
34978 ac_ext=cc
34979 ac_cpp='$CXXCPP $CPPFLAGS'
34980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34984 cat >conftest.$ac_ext <<_ACEOF
34985 /* confdefs.h. */
34986 _ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h. */
34990 #include <math.h>
34991 #ifdef HAVE_IEEEFP_H
34992 #include <ieeefp.h>
34993 #endif
34996 main ()
34998 expf(0);
35000 return 0;
35002 _ACEOF
35003 rm -f conftest.$ac_objext
35004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35005 (eval $ac_compile) 2>conftest.er1
35006 ac_status=$?
35007 grep -v '^ *+' conftest.er1 >conftest.err
35008 rm -f conftest.er1
35009 cat conftest.err >&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } &&
35012 { ac_try='test -z "$ac_cxx_werror_flag"
35013 || test ! -s conftest.err'
35014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); }; } &&
35019 { ac_try='test -s conftest.$ac_objext'
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35022 ac_status=$?
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; }; then
35025 glibcxx_cv_func_expf_use=yes
35026 else
35027 echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35030 glibcxx_cv_func_expf_use=no
35032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35033 ac_ext=c
35034 ac_cpp='$CPP $CPPFLAGS'
35035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35043 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
35044 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
35046 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35048 for ac_func in expf
35050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35051 echo "$as_me:$LINENO: checking for $ac_func" >&5
35052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35053 if eval "test \"\${$as_ac_var+set}\" = set"; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056 if test x$gcc_no_link = xyes; then
35057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35059 { (exit 1); exit 1; }; }
35061 cat >conftest.$ac_ext <<_ACEOF
35062 /* confdefs.h. */
35063 _ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35069 #define $ac_func innocuous_$ac_func
35071 /* System header to define __stub macros and hopefully few prototypes,
35072 which can conflict with char $ac_func (); below.
35073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35074 <limits.h> exists even on freestanding compilers. */
35076 #ifdef __STDC__
35077 # include <limits.h>
35078 #else
35079 # include <assert.h>
35080 #endif
35082 #undef $ac_func
35084 /* Override any gcc2 internal prototype to avoid an error. */
35085 #ifdef __cplusplus
35086 extern "C"
35088 #endif
35089 /* We use char because int might match the return type of a gcc2
35090 builtin and then its argument prototype would still apply. */
35091 char $ac_func ();
35092 /* The GNU C library defines this for functions which it implements
35093 to always fail with ENOSYS. Some functions are actually named
35094 something starting with __ and the normal name is an alias. */
35095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35096 choke me
35097 #else
35098 char (*f) () = $ac_func;
35099 #endif
35100 #ifdef __cplusplus
35102 #endif
35105 main ()
35107 return f != $ac_func;
35109 return 0;
35111 _ACEOF
35112 rm -f conftest.$ac_objext conftest$ac_exeext
35113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35114 (eval $ac_link) 2>conftest.er1
35115 ac_status=$?
35116 grep -v '^ *+' conftest.er1 >conftest.err
35117 rm -f conftest.er1
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } &&
35121 { ac_try='test -z "$ac_c_werror_flag"
35122 || test ! -s conftest.err'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35125 ac_status=$?
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; } &&
35128 { ac_try='test -s conftest$ac_exeext'
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35131 ac_status=$?
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; }; then
35134 eval "$as_ac_var=yes"
35135 else
35136 echo "$as_me: failed program was:" >&5
35137 sed 's/^/| /' conftest.$ac_ext >&5
35139 eval "$as_ac_var=no"
35141 rm -f conftest.err conftest.$ac_objext \
35142 conftest$ac_exeext conftest.$ac_ext
35144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35146 if test `eval echo '${'$as_ac_var'}'` = yes; then
35147 cat >>confdefs.h <<_ACEOF
35148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35149 _ACEOF
35152 done
35154 else
35156 echo "$as_me:$LINENO: checking for _expf declaration" >&5
35157 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35158 if test x${glibcxx_cv_func__expf_use+set} != xset; then
35159 if test "${glibcxx_cv_func__expf_use+set}" = set; then
35160 echo $ECHO_N "(cached) $ECHO_C" >&6
35161 else
35165 ac_ext=cc
35166 ac_cpp='$CXXCPP $CPPFLAGS'
35167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35171 cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h. */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h. */
35177 #include <math.h>
35178 #ifdef HAVE_IEEEFP_H
35179 #include <ieeefp.h>
35180 #endif
35183 main ()
35185 _expf(0);
35187 return 0;
35189 _ACEOF
35190 rm -f conftest.$ac_objext
35191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35192 (eval $ac_compile) 2>conftest.er1
35193 ac_status=$?
35194 grep -v '^ *+' conftest.er1 >conftest.err
35195 rm -f conftest.er1
35196 cat conftest.err >&5
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); } &&
35199 { ac_try='test -z "$ac_cxx_werror_flag"
35200 || test ! -s conftest.err'
35201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35202 (eval $ac_try) 2>&5
35203 ac_status=$?
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; } &&
35206 { ac_try='test -s conftest.$ac_objext'
35207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35208 (eval $ac_try) 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; }; then
35212 glibcxx_cv_func__expf_use=yes
35213 else
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35217 glibcxx_cv_func__expf_use=no
35219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35220 ac_ext=c
35221 ac_cpp='$CPP $CPPFLAGS'
35222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35230 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35231 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35233 if test x$glibcxx_cv_func__expf_use = x"yes"; then
35235 for ac_func in _expf
35237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35238 echo "$as_me:$LINENO: checking for $ac_func" >&5
35239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35240 if eval "test \"\${$as_ac_var+set}\" = set"; then
35241 echo $ECHO_N "(cached) $ECHO_C" >&6
35242 else
35243 if test x$gcc_no_link = xyes; then
35244 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35245 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35246 { (exit 1); exit 1; }; }
35248 cat >conftest.$ac_ext <<_ACEOF
35249 /* confdefs.h. */
35250 _ACEOF
35251 cat confdefs.h >>conftest.$ac_ext
35252 cat >>conftest.$ac_ext <<_ACEOF
35253 /* end confdefs.h. */
35254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35256 #define $ac_func innocuous_$ac_func
35258 /* System header to define __stub macros and hopefully few prototypes,
35259 which can conflict with char $ac_func (); below.
35260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35261 <limits.h> exists even on freestanding compilers. */
35263 #ifdef __STDC__
35264 # include <limits.h>
35265 #else
35266 # include <assert.h>
35267 #endif
35269 #undef $ac_func
35271 /* Override any gcc2 internal prototype to avoid an error. */
35272 #ifdef __cplusplus
35273 extern "C"
35275 #endif
35276 /* We use char because int might match the return type of a gcc2
35277 builtin and then its argument prototype would still apply. */
35278 char $ac_func ();
35279 /* The GNU C library defines this for functions which it implements
35280 to always fail with ENOSYS. Some functions are actually named
35281 something starting with __ and the normal name is an alias. */
35282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35283 choke me
35284 #else
35285 char (*f) () = $ac_func;
35286 #endif
35287 #ifdef __cplusplus
35289 #endif
35292 main ()
35294 return f != $ac_func;
35296 return 0;
35298 _ACEOF
35299 rm -f conftest.$ac_objext conftest$ac_exeext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35301 (eval $ac_link) 2>conftest.er1
35302 ac_status=$?
35303 grep -v '^ *+' conftest.er1 >conftest.err
35304 rm -f conftest.er1
35305 cat conftest.err >&5
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); } &&
35308 { ac_try='test -z "$ac_c_werror_flag"
35309 || test ! -s conftest.err'
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; } &&
35315 { ac_try='test -s conftest$ac_exeext'
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; }; then
35321 eval "$as_ac_var=yes"
35322 else
35323 echo "$as_me: failed program was:" >&5
35324 sed 's/^/| /' conftest.$ac_ext >&5
35326 eval "$as_ac_var=no"
35328 rm -f conftest.err conftest.$ac_objext \
35329 conftest$ac_exeext conftest.$ac_ext
35331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35333 if test `eval echo '${'$as_ac_var'}'` = yes; then
35334 cat >>confdefs.h <<_ACEOF
35335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35336 _ACEOF
35339 done
35346 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35347 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35348 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35349 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35350 echo $ECHO_N "(cached) $ECHO_C" >&6
35351 else
35355 ac_ext=cc
35356 ac_cpp='$CXXCPP $CPPFLAGS'
35357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35361 cat >conftest.$ac_ext <<_ACEOF
35362 /* confdefs.h. */
35363 _ACEOF
35364 cat confdefs.h >>conftest.$ac_ext
35365 cat >>conftest.$ac_ext <<_ACEOF
35366 /* end confdefs.h. */
35367 #include <math.h>
35368 #ifdef HAVE_IEEEFP_H
35369 #include <ieeefp.h>
35370 #endif
35373 main ()
35375 isnanf(0);
35377 return 0;
35379 _ACEOF
35380 rm -f conftest.$ac_objext
35381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35382 (eval $ac_compile) 2>conftest.er1
35383 ac_status=$?
35384 grep -v '^ *+' conftest.er1 >conftest.err
35385 rm -f conftest.er1
35386 cat conftest.err >&5
35387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); } &&
35389 { ac_try='test -z "$ac_cxx_werror_flag"
35390 || test ! -s conftest.err'
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35393 ac_status=$?
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; } &&
35396 { ac_try='test -s conftest.$ac_objext'
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35399 ac_status=$?
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; }; then
35402 glibcxx_cv_func_isnanf_use=yes
35403 else
35404 echo "$as_me: failed program was:" >&5
35405 sed 's/^/| /' conftest.$ac_ext >&5
35407 glibcxx_cv_func_isnanf_use=no
35409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35410 ac_ext=c
35411 ac_cpp='$CPP $CPPFLAGS'
35412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35420 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35421 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35423 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35425 for ac_func in isnanf
35427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35428 echo "$as_me:$LINENO: checking for $ac_func" >&5
35429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35430 if eval "test \"\${$as_ac_var+set}\" = set"; then
35431 echo $ECHO_N "(cached) $ECHO_C" >&6
35432 else
35433 if test x$gcc_no_link = xyes; then
35434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35436 { (exit 1); exit 1; }; }
35438 cat >conftest.$ac_ext <<_ACEOF
35439 /* confdefs.h. */
35440 _ACEOF
35441 cat confdefs.h >>conftest.$ac_ext
35442 cat >>conftest.$ac_ext <<_ACEOF
35443 /* end confdefs.h. */
35444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35446 #define $ac_func innocuous_$ac_func
35448 /* System header to define __stub macros and hopefully few prototypes,
35449 which can conflict with char $ac_func (); below.
35450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35451 <limits.h> exists even on freestanding compilers. */
35453 #ifdef __STDC__
35454 # include <limits.h>
35455 #else
35456 # include <assert.h>
35457 #endif
35459 #undef $ac_func
35461 /* Override any gcc2 internal prototype to avoid an error. */
35462 #ifdef __cplusplus
35463 extern "C"
35465 #endif
35466 /* We use char because int might match the return type of a gcc2
35467 builtin and then its argument prototype would still apply. */
35468 char $ac_func ();
35469 /* The GNU C library defines this for functions which it implements
35470 to always fail with ENOSYS. Some functions are actually named
35471 something starting with __ and the normal name is an alias. */
35472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35473 choke me
35474 #else
35475 char (*f) () = $ac_func;
35476 #endif
35477 #ifdef __cplusplus
35479 #endif
35482 main ()
35484 return f != $ac_func;
35486 return 0;
35488 _ACEOF
35489 rm -f conftest.$ac_objext conftest$ac_exeext
35490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35491 (eval $ac_link) 2>conftest.er1
35492 ac_status=$?
35493 grep -v '^ *+' conftest.er1 >conftest.err
35494 rm -f conftest.er1
35495 cat conftest.err >&5
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); } &&
35498 { ac_try='test -z "$ac_c_werror_flag"
35499 || test ! -s conftest.err'
35500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35501 (eval $ac_try) 2>&5
35502 ac_status=$?
35503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504 (exit $ac_status); }; } &&
35505 { ac_try='test -s conftest$ac_exeext'
35506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35507 (eval $ac_try) 2>&5
35508 ac_status=$?
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); }; }; then
35511 eval "$as_ac_var=yes"
35512 else
35513 echo "$as_me: failed program was:" >&5
35514 sed 's/^/| /' conftest.$ac_ext >&5
35516 eval "$as_ac_var=no"
35518 rm -f conftest.err conftest.$ac_objext \
35519 conftest$ac_exeext conftest.$ac_ext
35521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35523 if test `eval echo '${'$as_ac_var'}'` = yes; then
35524 cat >>confdefs.h <<_ACEOF
35525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35526 _ACEOF
35529 done
35531 else
35533 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35534 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35535 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35536 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35537 echo $ECHO_N "(cached) $ECHO_C" >&6
35538 else
35542 ac_ext=cc
35543 ac_cpp='$CXXCPP $CPPFLAGS'
35544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35548 cat >conftest.$ac_ext <<_ACEOF
35549 /* confdefs.h. */
35550 _ACEOF
35551 cat confdefs.h >>conftest.$ac_ext
35552 cat >>conftest.$ac_ext <<_ACEOF
35553 /* end confdefs.h. */
35554 #include <math.h>
35555 #ifdef HAVE_IEEEFP_H
35556 #include <ieeefp.h>
35557 #endif
35560 main ()
35562 _isnanf(0);
35564 return 0;
35566 _ACEOF
35567 rm -f conftest.$ac_objext
35568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35569 (eval $ac_compile) 2>conftest.er1
35570 ac_status=$?
35571 grep -v '^ *+' conftest.er1 >conftest.err
35572 rm -f conftest.er1
35573 cat conftest.err >&5
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); } &&
35576 { ac_try='test -z "$ac_cxx_werror_flag"
35577 || test ! -s conftest.err'
35578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579 (eval $ac_try) 2>&5
35580 ac_status=$?
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); }; } &&
35583 { ac_try='test -s conftest.$ac_objext'
35584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585 (eval $ac_try) 2>&5
35586 ac_status=$?
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); }; }; then
35589 glibcxx_cv_func__isnanf_use=yes
35590 else
35591 echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35594 glibcxx_cv_func__isnanf_use=no
35596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35597 ac_ext=c
35598 ac_cpp='$CPP $CPPFLAGS'
35599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35607 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35608 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35610 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35612 for ac_func in _isnanf
35614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35615 echo "$as_me:$LINENO: checking for $ac_func" >&5
35616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35617 if eval "test \"\${$as_ac_var+set}\" = set"; then
35618 echo $ECHO_N "(cached) $ECHO_C" >&6
35619 else
35620 if test x$gcc_no_link = xyes; then
35621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35623 { (exit 1); exit 1; }; }
35625 cat >conftest.$ac_ext <<_ACEOF
35626 /* confdefs.h. */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h. */
35631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35633 #define $ac_func innocuous_$ac_func
35635 /* System header to define __stub macros and hopefully few prototypes,
35636 which can conflict with char $ac_func (); below.
35637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35638 <limits.h> exists even on freestanding compilers. */
35640 #ifdef __STDC__
35641 # include <limits.h>
35642 #else
35643 # include <assert.h>
35644 #endif
35646 #undef $ac_func
35648 /* Override any gcc2 internal prototype to avoid an error. */
35649 #ifdef __cplusplus
35650 extern "C"
35652 #endif
35653 /* We use char because int might match the return type of a gcc2
35654 builtin and then its argument prototype would still apply. */
35655 char $ac_func ();
35656 /* The GNU C library defines this for functions which it implements
35657 to always fail with ENOSYS. Some functions are actually named
35658 something starting with __ and the normal name is an alias. */
35659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35660 choke me
35661 #else
35662 char (*f) () = $ac_func;
35663 #endif
35664 #ifdef __cplusplus
35666 #endif
35669 main ()
35671 return f != $ac_func;
35673 return 0;
35675 _ACEOF
35676 rm -f conftest.$ac_objext conftest$ac_exeext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35678 (eval $ac_link) 2>conftest.er1
35679 ac_status=$?
35680 grep -v '^ *+' conftest.er1 >conftest.err
35681 rm -f conftest.er1
35682 cat conftest.err >&5
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); } &&
35685 { ac_try='test -z "$ac_c_werror_flag"
35686 || test ! -s conftest.err'
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest$ac_exeext'
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; }; then
35698 eval "$as_ac_var=yes"
35699 else
35700 echo "$as_me: failed program was:" >&5
35701 sed 's/^/| /' conftest.$ac_ext >&5
35703 eval "$as_ac_var=no"
35705 rm -f conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
35708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35710 if test `eval echo '${'$as_ac_var'}'` = yes; then
35711 cat >>confdefs.h <<_ACEOF
35712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35713 _ACEOF
35716 done
35723 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35724 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35725 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35726 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35727 echo $ECHO_N "(cached) $ECHO_C" >&6
35728 else
35732 ac_ext=cc
35733 ac_cpp='$CXXCPP $CPPFLAGS'
35734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35738 cat >conftest.$ac_ext <<_ACEOF
35739 /* confdefs.h. */
35740 _ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h. */
35744 #include <math.h>
35745 #ifdef HAVE_IEEEFP_H
35746 #include <ieeefp.h>
35747 #endif
35750 main ()
35752 isinff(0);
35754 return 0;
35756 _ACEOF
35757 rm -f conftest.$ac_objext
35758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35759 (eval $ac_compile) 2>conftest.er1
35760 ac_status=$?
35761 grep -v '^ *+' conftest.er1 >conftest.err
35762 rm -f conftest.er1
35763 cat conftest.err >&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); } &&
35766 { ac_try='test -z "$ac_cxx_werror_flag"
35767 || test ! -s conftest.err'
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35770 ac_status=$?
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; } &&
35773 { ac_try='test -s conftest.$ac_objext'
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35776 ac_status=$?
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; }; then
35779 glibcxx_cv_func_isinff_use=yes
35780 else
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35784 glibcxx_cv_func_isinff_use=no
35786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35787 ac_ext=c
35788 ac_cpp='$CPP $CPPFLAGS'
35789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35797 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35798 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35800 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35802 for ac_func in isinff
35804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35805 echo "$as_me:$LINENO: checking for $ac_func" >&5
35806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35807 if eval "test \"\${$as_ac_var+set}\" = set"; then
35808 echo $ECHO_N "(cached) $ECHO_C" >&6
35809 else
35810 if test x$gcc_no_link = xyes; then
35811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35813 { (exit 1); exit 1; }; }
35815 cat >conftest.$ac_ext <<_ACEOF
35816 /* confdefs.h. */
35817 _ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h. */
35821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35823 #define $ac_func innocuous_$ac_func
35825 /* System header to define __stub macros and hopefully few prototypes,
35826 which can conflict with char $ac_func (); below.
35827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35828 <limits.h> exists even on freestanding compilers. */
35830 #ifdef __STDC__
35831 # include <limits.h>
35832 #else
35833 # include <assert.h>
35834 #endif
35836 #undef $ac_func
35838 /* Override any gcc2 internal prototype to avoid an error. */
35839 #ifdef __cplusplus
35840 extern "C"
35842 #endif
35843 /* We use char because int might match the return type of a gcc2
35844 builtin and then its argument prototype would still apply. */
35845 char $ac_func ();
35846 /* The GNU C library defines this for functions which it implements
35847 to always fail with ENOSYS. Some functions are actually named
35848 something starting with __ and the normal name is an alias. */
35849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35850 choke me
35851 #else
35852 char (*f) () = $ac_func;
35853 #endif
35854 #ifdef __cplusplus
35856 #endif
35859 main ()
35861 return f != $ac_func;
35863 return 0;
35865 _ACEOF
35866 rm -f conftest.$ac_objext conftest$ac_exeext
35867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35868 (eval $ac_link) 2>conftest.er1
35869 ac_status=$?
35870 grep -v '^ *+' conftest.er1 >conftest.err
35871 rm -f conftest.er1
35872 cat conftest.err >&5
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); } &&
35875 { ac_try='test -z "$ac_c_werror_flag"
35876 || test ! -s conftest.err'
35877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35878 (eval $ac_try) 2>&5
35879 ac_status=$?
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); }; } &&
35882 { ac_try='test -s conftest$ac_exeext'
35883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35884 (eval $ac_try) 2>&5
35885 ac_status=$?
35886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887 (exit $ac_status); }; }; then
35888 eval "$as_ac_var=yes"
35889 else
35890 echo "$as_me: failed program was:" >&5
35891 sed 's/^/| /' conftest.$ac_ext >&5
35893 eval "$as_ac_var=no"
35895 rm -f conftest.err conftest.$ac_objext \
35896 conftest$ac_exeext conftest.$ac_ext
35898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35900 if test `eval echo '${'$as_ac_var'}'` = yes; then
35901 cat >>confdefs.h <<_ACEOF
35902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35903 _ACEOF
35906 done
35908 else
35910 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35911 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35912 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35913 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35914 echo $ECHO_N "(cached) $ECHO_C" >&6
35915 else
35919 ac_ext=cc
35920 ac_cpp='$CXXCPP $CPPFLAGS'
35921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35925 cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h. */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h. */
35931 #include <math.h>
35932 #ifdef HAVE_IEEEFP_H
35933 #include <ieeefp.h>
35934 #endif
35937 main ()
35939 _isinff(0);
35941 return 0;
35943 _ACEOF
35944 rm -f conftest.$ac_objext
35945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35946 (eval $ac_compile) 2>conftest.er1
35947 ac_status=$?
35948 grep -v '^ *+' conftest.er1 >conftest.err
35949 rm -f conftest.er1
35950 cat conftest.err >&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); } &&
35953 { ac_try='test -z "$ac_cxx_werror_flag"
35954 || test ! -s conftest.err'
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35957 ac_status=$?
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; } &&
35960 { ac_try='test -s conftest.$ac_objext'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35963 ac_status=$?
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; }; then
35966 glibcxx_cv_func__isinff_use=yes
35967 else
35968 echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35971 glibcxx_cv_func__isinff_use=no
35973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35974 ac_ext=c
35975 ac_cpp='$CPP $CPPFLAGS'
35976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35984 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35985 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35987 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35989 for ac_func in _isinff
35991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35992 echo "$as_me:$LINENO: checking for $ac_func" >&5
35993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35994 if eval "test \"\${$as_ac_var+set}\" = set"; then
35995 echo $ECHO_N "(cached) $ECHO_C" >&6
35996 else
35997 if test x$gcc_no_link = xyes; then
35998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36000 { (exit 1); exit 1; }; }
36002 cat >conftest.$ac_ext <<_ACEOF
36003 /* confdefs.h. */
36004 _ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h. */
36008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36010 #define $ac_func innocuous_$ac_func
36012 /* System header to define __stub macros and hopefully few prototypes,
36013 which can conflict with char $ac_func (); below.
36014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36015 <limits.h> exists even on freestanding compilers. */
36017 #ifdef __STDC__
36018 # include <limits.h>
36019 #else
36020 # include <assert.h>
36021 #endif
36023 #undef $ac_func
36025 /* Override any gcc2 internal prototype to avoid an error. */
36026 #ifdef __cplusplus
36027 extern "C"
36029 #endif
36030 /* We use char because int might match the return type of a gcc2
36031 builtin and then its argument prototype would still apply. */
36032 char $ac_func ();
36033 /* The GNU C library defines this for functions which it implements
36034 to always fail with ENOSYS. Some functions are actually named
36035 something starting with __ and the normal name is an alias. */
36036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36037 choke me
36038 #else
36039 char (*f) () = $ac_func;
36040 #endif
36041 #ifdef __cplusplus
36043 #endif
36046 main ()
36048 return f != $ac_func;
36050 return 0;
36052 _ACEOF
36053 rm -f conftest.$ac_objext conftest$ac_exeext
36054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36055 (eval $ac_link) 2>conftest.er1
36056 ac_status=$?
36057 grep -v '^ *+' conftest.er1 >conftest.err
36058 rm -f conftest.er1
36059 cat conftest.err >&5
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); } &&
36062 { ac_try='test -z "$ac_c_werror_flag"
36063 || test ! -s conftest.err'
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); }; } &&
36069 { ac_try='test -s conftest$ac_exeext'
36070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36071 (eval $ac_try) 2>&5
36072 ac_status=$?
36073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074 (exit $ac_status); }; }; then
36075 eval "$as_ac_var=yes"
36076 else
36077 echo "$as_me: failed program was:" >&5
36078 sed 's/^/| /' conftest.$ac_ext >&5
36080 eval "$as_ac_var=no"
36082 rm -f conftest.err conftest.$ac_objext \
36083 conftest$ac_exeext conftest.$ac_ext
36085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36087 if test `eval echo '${'$as_ac_var'}'` = yes; then
36088 cat >>confdefs.h <<_ACEOF
36089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36090 _ACEOF
36093 done
36100 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36101 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36102 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36103 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36105 else
36109 ac_ext=cc
36110 ac_cpp='$CXXCPP $CPPFLAGS'
36111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36115 cat >conftest.$ac_ext <<_ACEOF
36116 /* confdefs.h. */
36117 _ACEOF
36118 cat confdefs.h >>conftest.$ac_ext
36119 cat >>conftest.$ac_ext <<_ACEOF
36120 /* end confdefs.h. */
36121 #include <math.h>
36123 main ()
36125 atan2f(0, 0);
36127 return 0;
36129 _ACEOF
36130 rm -f conftest.$ac_objext
36131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36132 (eval $ac_compile) 2>conftest.er1
36133 ac_status=$?
36134 grep -v '^ *+' conftest.er1 >conftest.err
36135 rm -f conftest.er1
36136 cat conftest.err >&5
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); } &&
36139 { ac_try='test -z "$ac_cxx_werror_flag"
36140 || test ! -s conftest.err'
36141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142 (eval $ac_try) 2>&5
36143 ac_status=$?
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); }; } &&
36146 { ac_try='test -s conftest.$ac_objext'
36147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36148 (eval $ac_try) 2>&5
36149 ac_status=$?
36150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151 (exit $ac_status); }; }; then
36152 glibcxx_cv_func_atan2f_use=yes
36153 else
36154 echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36157 glibcxx_cv_func_atan2f_use=no
36159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36160 ac_ext=c
36161 ac_cpp='$CPP $CPPFLAGS'
36162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36170 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36171 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36173 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36175 for ac_func in atan2f
36177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36178 echo "$as_me:$LINENO: checking for $ac_func" >&5
36179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36180 if eval "test \"\${$as_ac_var+set}\" = set"; then
36181 echo $ECHO_N "(cached) $ECHO_C" >&6
36182 else
36183 if test x$gcc_no_link = xyes; then
36184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36186 { (exit 1); exit 1; }; }
36188 cat >conftest.$ac_ext <<_ACEOF
36189 /* confdefs.h. */
36190 _ACEOF
36191 cat confdefs.h >>conftest.$ac_ext
36192 cat >>conftest.$ac_ext <<_ACEOF
36193 /* end confdefs.h. */
36194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36196 #define $ac_func innocuous_$ac_func
36198 /* System header to define __stub macros and hopefully few prototypes,
36199 which can conflict with char $ac_func (); below.
36200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36201 <limits.h> exists even on freestanding compilers. */
36203 #ifdef __STDC__
36204 # include <limits.h>
36205 #else
36206 # include <assert.h>
36207 #endif
36209 #undef $ac_func
36211 /* Override any gcc2 internal prototype to avoid an error. */
36212 #ifdef __cplusplus
36213 extern "C"
36215 #endif
36216 /* We use char because int might match the return type of a gcc2
36217 builtin and then its argument prototype would still apply. */
36218 char $ac_func ();
36219 /* The GNU C library defines this for functions which it implements
36220 to always fail with ENOSYS. Some functions are actually named
36221 something starting with __ and the normal name is an alias. */
36222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36223 choke me
36224 #else
36225 char (*f) () = $ac_func;
36226 #endif
36227 #ifdef __cplusplus
36229 #endif
36232 main ()
36234 return f != $ac_func;
36236 return 0;
36238 _ACEOF
36239 rm -f conftest.$ac_objext conftest$ac_exeext
36240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36241 (eval $ac_link) 2>conftest.er1
36242 ac_status=$?
36243 grep -v '^ *+' conftest.er1 >conftest.err
36244 rm -f conftest.er1
36245 cat conftest.err >&5
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); } &&
36248 { ac_try='test -z "$ac_c_werror_flag"
36249 || test ! -s conftest.err'
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36252 ac_status=$?
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; } &&
36255 { ac_try='test -s conftest$ac_exeext'
36256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257 (eval $ac_try) 2>&5
36258 ac_status=$?
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); }; }; then
36261 eval "$as_ac_var=yes"
36262 else
36263 echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36266 eval "$as_ac_var=no"
36268 rm -f conftest.err conftest.$ac_objext \
36269 conftest$ac_exeext conftest.$ac_ext
36271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36273 if test `eval echo '${'$as_ac_var'}'` = yes; then
36274 cat >>confdefs.h <<_ACEOF
36275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36276 _ACEOF
36279 done
36281 else
36283 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36284 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36285 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36286 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36287 echo $ECHO_N "(cached) $ECHO_C" >&6
36288 else
36292 ac_ext=cc
36293 ac_cpp='$CXXCPP $CPPFLAGS'
36294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36298 cat >conftest.$ac_ext <<_ACEOF
36299 /* confdefs.h. */
36300 _ACEOF
36301 cat confdefs.h >>conftest.$ac_ext
36302 cat >>conftest.$ac_ext <<_ACEOF
36303 /* end confdefs.h. */
36304 #include <math.h>
36306 main ()
36308 _atan2f(0, 0);
36310 return 0;
36312 _ACEOF
36313 rm -f conftest.$ac_objext
36314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36315 (eval $ac_compile) 2>conftest.er1
36316 ac_status=$?
36317 grep -v '^ *+' conftest.er1 >conftest.err
36318 rm -f conftest.er1
36319 cat conftest.err >&5
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); } &&
36322 { ac_try='test -z "$ac_cxx_werror_flag"
36323 || test ! -s conftest.err'
36324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36325 (eval $ac_try) 2>&5
36326 ac_status=$?
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); }; } &&
36329 { ac_try='test -s conftest.$ac_objext'
36330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36331 (eval $ac_try) 2>&5
36332 ac_status=$?
36333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334 (exit $ac_status); }; }; then
36335 glibcxx_cv_func__atan2f_use=yes
36336 else
36337 echo "$as_me: failed program was:" >&5
36338 sed 's/^/| /' conftest.$ac_ext >&5
36340 glibcxx_cv_func__atan2f_use=no
36342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36343 ac_ext=c
36344 ac_cpp='$CPP $CPPFLAGS'
36345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36353 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36354 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36356 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36358 for ac_func in _atan2f
36360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36361 echo "$as_me:$LINENO: checking for $ac_func" >&5
36362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36363 if eval "test \"\${$as_ac_var+set}\" = set"; then
36364 echo $ECHO_N "(cached) $ECHO_C" >&6
36365 else
36366 if test x$gcc_no_link = xyes; then
36367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36369 { (exit 1); exit 1; }; }
36371 cat >conftest.$ac_ext <<_ACEOF
36372 /* confdefs.h. */
36373 _ACEOF
36374 cat confdefs.h >>conftest.$ac_ext
36375 cat >>conftest.$ac_ext <<_ACEOF
36376 /* end confdefs.h. */
36377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36379 #define $ac_func innocuous_$ac_func
36381 /* System header to define __stub macros and hopefully few prototypes,
36382 which can conflict with char $ac_func (); below.
36383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36384 <limits.h> exists even on freestanding compilers. */
36386 #ifdef __STDC__
36387 # include <limits.h>
36388 #else
36389 # include <assert.h>
36390 #endif
36392 #undef $ac_func
36394 /* Override any gcc2 internal prototype to avoid an error. */
36395 #ifdef __cplusplus
36396 extern "C"
36398 #endif
36399 /* We use char because int might match the return type of a gcc2
36400 builtin and then its argument prototype would still apply. */
36401 char $ac_func ();
36402 /* The GNU C library defines this for functions which it implements
36403 to always fail with ENOSYS. Some functions are actually named
36404 something starting with __ and the normal name is an alias. */
36405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36406 choke me
36407 #else
36408 char (*f) () = $ac_func;
36409 #endif
36410 #ifdef __cplusplus
36412 #endif
36415 main ()
36417 return f != $ac_func;
36419 return 0;
36421 _ACEOF
36422 rm -f conftest.$ac_objext conftest$ac_exeext
36423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36424 (eval $ac_link) 2>conftest.er1
36425 ac_status=$?
36426 grep -v '^ *+' conftest.er1 >conftest.err
36427 rm -f conftest.er1
36428 cat conftest.err >&5
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); } &&
36431 { ac_try='test -z "$ac_c_werror_flag"
36432 || test ! -s conftest.err'
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); }; } &&
36438 { ac_try='test -s conftest$ac_exeext'
36439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36440 (eval $ac_try) 2>&5
36441 ac_status=$?
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); }; }; then
36444 eval "$as_ac_var=yes"
36445 else
36446 echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36449 eval "$as_ac_var=no"
36451 rm -f conftest.err conftest.$ac_objext \
36452 conftest$ac_exeext conftest.$ac_ext
36454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36456 if test `eval echo '${'$as_ac_var'}'` = yes; then
36457 cat >>confdefs.h <<_ACEOF
36458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36459 _ACEOF
36462 done
36469 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36470 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36471 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36472 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36473 echo $ECHO_N "(cached) $ECHO_C" >&6
36474 else
36478 ac_ext=cc
36479 ac_cpp='$CXXCPP $CPPFLAGS'
36480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36484 cat >conftest.$ac_ext <<_ACEOF
36485 /* confdefs.h. */
36486 _ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h. */
36490 #include <math.h>
36491 #ifdef HAVE_IEEEFP_H
36492 #include <ieeefp.h>
36493 #endif
36496 main ()
36498 fabsf(0);
36500 return 0;
36502 _ACEOF
36503 rm -f conftest.$ac_objext
36504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36505 (eval $ac_compile) 2>conftest.er1
36506 ac_status=$?
36507 grep -v '^ *+' conftest.er1 >conftest.err
36508 rm -f conftest.er1
36509 cat conftest.err >&5
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); } &&
36512 { ac_try='test -z "$ac_cxx_werror_flag"
36513 || test ! -s conftest.err'
36514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36515 (eval $ac_try) 2>&5
36516 ac_status=$?
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); }; } &&
36519 { ac_try='test -s conftest.$ac_objext'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36522 ac_status=$?
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; }; then
36525 glibcxx_cv_func_fabsf_use=yes
36526 else
36527 echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36530 glibcxx_cv_func_fabsf_use=no
36532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36533 ac_ext=c
36534 ac_cpp='$CPP $CPPFLAGS'
36535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36543 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36544 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36546 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36548 for ac_func in fabsf
36550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36551 echo "$as_me:$LINENO: checking for $ac_func" >&5
36552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36553 if eval "test \"\${$as_ac_var+set}\" = set"; then
36554 echo $ECHO_N "(cached) $ECHO_C" >&6
36555 else
36556 if test x$gcc_no_link = xyes; then
36557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36559 { (exit 1); exit 1; }; }
36561 cat >conftest.$ac_ext <<_ACEOF
36562 /* confdefs.h. */
36563 _ACEOF
36564 cat confdefs.h >>conftest.$ac_ext
36565 cat >>conftest.$ac_ext <<_ACEOF
36566 /* end confdefs.h. */
36567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36569 #define $ac_func innocuous_$ac_func
36571 /* System header to define __stub macros and hopefully few prototypes,
36572 which can conflict with char $ac_func (); below.
36573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36574 <limits.h> exists even on freestanding compilers. */
36576 #ifdef __STDC__
36577 # include <limits.h>
36578 #else
36579 # include <assert.h>
36580 #endif
36582 #undef $ac_func
36584 /* Override any gcc2 internal prototype to avoid an error. */
36585 #ifdef __cplusplus
36586 extern "C"
36588 #endif
36589 /* We use char because int might match the return type of a gcc2
36590 builtin and then its argument prototype would still apply. */
36591 char $ac_func ();
36592 /* The GNU C library defines this for functions which it implements
36593 to always fail with ENOSYS. Some functions are actually named
36594 something starting with __ and the normal name is an alias. */
36595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36596 choke me
36597 #else
36598 char (*f) () = $ac_func;
36599 #endif
36600 #ifdef __cplusplus
36602 #endif
36605 main ()
36607 return f != $ac_func;
36609 return 0;
36611 _ACEOF
36612 rm -f conftest.$ac_objext conftest$ac_exeext
36613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36614 (eval $ac_link) 2>conftest.er1
36615 ac_status=$?
36616 grep -v '^ *+' conftest.er1 >conftest.err
36617 rm -f conftest.er1
36618 cat conftest.err >&5
36619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); } &&
36621 { ac_try='test -z "$ac_c_werror_flag"
36622 || test ! -s conftest.err'
36623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36624 (eval $ac_try) 2>&5
36625 ac_status=$?
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 (exit $ac_status); }; } &&
36628 { ac_try='test -s conftest$ac_exeext'
36629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36630 (eval $ac_try) 2>&5
36631 ac_status=$?
36632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633 (exit $ac_status); }; }; then
36634 eval "$as_ac_var=yes"
36635 else
36636 echo "$as_me: failed program was:" >&5
36637 sed 's/^/| /' conftest.$ac_ext >&5
36639 eval "$as_ac_var=no"
36641 rm -f conftest.err conftest.$ac_objext \
36642 conftest$ac_exeext conftest.$ac_ext
36644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36646 if test `eval echo '${'$as_ac_var'}'` = yes; then
36647 cat >>confdefs.h <<_ACEOF
36648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36649 _ACEOF
36652 done
36654 else
36656 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36657 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36658 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36659 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36660 echo $ECHO_N "(cached) $ECHO_C" >&6
36661 else
36665 ac_ext=cc
36666 ac_cpp='$CXXCPP $CPPFLAGS'
36667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36671 cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h. */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h. */
36677 #include <math.h>
36678 #ifdef HAVE_IEEEFP_H
36679 #include <ieeefp.h>
36680 #endif
36683 main ()
36685 _fabsf(0);
36687 return 0;
36689 _ACEOF
36690 rm -f conftest.$ac_objext
36691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36692 (eval $ac_compile) 2>conftest.er1
36693 ac_status=$?
36694 grep -v '^ *+' conftest.er1 >conftest.err
36695 rm -f conftest.er1
36696 cat conftest.err >&5
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); } &&
36699 { ac_try='test -z "$ac_cxx_werror_flag"
36700 || test ! -s conftest.err'
36701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36702 (eval $ac_try) 2>&5
36703 ac_status=$?
36704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705 (exit $ac_status); }; } &&
36706 { ac_try='test -s conftest.$ac_objext'
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36709 ac_status=$?
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; }; then
36712 glibcxx_cv_func__fabsf_use=yes
36713 else
36714 echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36717 glibcxx_cv_func__fabsf_use=no
36719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36720 ac_ext=c
36721 ac_cpp='$CPP $CPPFLAGS'
36722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36730 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36731 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36733 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36735 for ac_func in _fabsf
36737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36738 echo "$as_me:$LINENO: checking for $ac_func" >&5
36739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36740 if eval "test \"\${$as_ac_var+set}\" = set"; then
36741 echo $ECHO_N "(cached) $ECHO_C" >&6
36742 else
36743 if test x$gcc_no_link = xyes; then
36744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36746 { (exit 1); exit 1; }; }
36748 cat >conftest.$ac_ext <<_ACEOF
36749 /* confdefs.h. */
36750 _ACEOF
36751 cat confdefs.h >>conftest.$ac_ext
36752 cat >>conftest.$ac_ext <<_ACEOF
36753 /* end confdefs.h. */
36754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36756 #define $ac_func innocuous_$ac_func
36758 /* System header to define __stub macros and hopefully few prototypes,
36759 which can conflict with char $ac_func (); below.
36760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36761 <limits.h> exists even on freestanding compilers. */
36763 #ifdef __STDC__
36764 # include <limits.h>
36765 #else
36766 # include <assert.h>
36767 #endif
36769 #undef $ac_func
36771 /* Override any gcc2 internal prototype to avoid an error. */
36772 #ifdef __cplusplus
36773 extern "C"
36775 #endif
36776 /* We use char because int might match the return type of a gcc2
36777 builtin and then its argument prototype would still apply. */
36778 char $ac_func ();
36779 /* The GNU C library defines this for functions which it implements
36780 to always fail with ENOSYS. Some functions are actually named
36781 something starting with __ and the normal name is an alias. */
36782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36783 choke me
36784 #else
36785 char (*f) () = $ac_func;
36786 #endif
36787 #ifdef __cplusplus
36789 #endif
36792 main ()
36794 return f != $ac_func;
36796 return 0;
36798 _ACEOF
36799 rm -f conftest.$ac_objext conftest$ac_exeext
36800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36801 (eval $ac_link) 2>conftest.er1
36802 ac_status=$?
36803 grep -v '^ *+' conftest.er1 >conftest.err
36804 rm -f conftest.er1
36805 cat conftest.err >&5
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); } &&
36808 { ac_try='test -z "$ac_c_werror_flag"
36809 || test ! -s conftest.err'
36810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36811 (eval $ac_try) 2>&5
36812 ac_status=$?
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); }; } &&
36815 { ac_try='test -s conftest$ac_exeext'
36816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36817 (eval $ac_try) 2>&5
36818 ac_status=$?
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); }; }; then
36821 eval "$as_ac_var=yes"
36822 else
36823 echo "$as_me: failed program was:" >&5
36824 sed 's/^/| /' conftest.$ac_ext >&5
36826 eval "$as_ac_var=no"
36828 rm -f conftest.err conftest.$ac_objext \
36829 conftest$ac_exeext conftest.$ac_ext
36831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36833 if test `eval echo '${'$as_ac_var'}'` = yes; then
36834 cat >>confdefs.h <<_ACEOF
36835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36836 _ACEOF
36839 done
36846 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36847 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36848 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36849 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36850 echo $ECHO_N "(cached) $ECHO_C" >&6
36851 else
36855 ac_ext=cc
36856 ac_cpp='$CXXCPP $CPPFLAGS'
36857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36861 cat >conftest.$ac_ext <<_ACEOF
36862 /* confdefs.h. */
36863 _ACEOF
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h. */
36867 #include <math.h>
36869 main ()
36871 fmodf(0, 0);
36873 return 0;
36875 _ACEOF
36876 rm -f conftest.$ac_objext
36877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36878 (eval $ac_compile) 2>conftest.er1
36879 ac_status=$?
36880 grep -v '^ *+' conftest.er1 >conftest.err
36881 rm -f conftest.er1
36882 cat conftest.err >&5
36883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884 (exit $ac_status); } &&
36885 { ac_try='test -z "$ac_cxx_werror_flag"
36886 || test ! -s conftest.err'
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; } &&
36892 { ac_try='test -s conftest.$ac_objext'
36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894 (eval $ac_try) 2>&5
36895 ac_status=$?
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; }; then
36898 glibcxx_cv_func_fmodf_use=yes
36899 else
36900 echo "$as_me: failed program was:" >&5
36901 sed 's/^/| /' conftest.$ac_ext >&5
36903 glibcxx_cv_func_fmodf_use=no
36905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36906 ac_ext=c
36907 ac_cpp='$CPP $CPPFLAGS'
36908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36916 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36917 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36919 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36921 for ac_func in fmodf
36923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36924 echo "$as_me:$LINENO: checking for $ac_func" >&5
36925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36926 if eval "test \"\${$as_ac_var+set}\" = set"; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36928 else
36929 if test x$gcc_no_link = xyes; then
36930 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36931 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36932 { (exit 1); exit 1; }; }
36934 cat >conftest.$ac_ext <<_ACEOF
36935 /* confdefs.h. */
36936 _ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h. */
36940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36942 #define $ac_func innocuous_$ac_func
36944 /* System header to define __stub macros and hopefully few prototypes,
36945 which can conflict with char $ac_func (); below.
36946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36947 <limits.h> exists even on freestanding compilers. */
36949 #ifdef __STDC__
36950 # include <limits.h>
36951 #else
36952 # include <assert.h>
36953 #endif
36955 #undef $ac_func
36957 /* Override any gcc2 internal prototype to avoid an error. */
36958 #ifdef __cplusplus
36959 extern "C"
36961 #endif
36962 /* We use char because int might match the return type of a gcc2
36963 builtin and then its argument prototype would still apply. */
36964 char $ac_func ();
36965 /* The GNU C library defines this for functions which it implements
36966 to always fail with ENOSYS. Some functions are actually named
36967 something starting with __ and the normal name is an alias. */
36968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36969 choke me
36970 #else
36971 char (*f) () = $ac_func;
36972 #endif
36973 #ifdef __cplusplus
36975 #endif
36978 main ()
36980 return f != $ac_func;
36982 return 0;
36984 _ACEOF
36985 rm -f conftest.$ac_objext conftest$ac_exeext
36986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36987 (eval $ac_link) 2>conftest.er1
36988 ac_status=$?
36989 grep -v '^ *+' conftest.er1 >conftest.err
36990 rm -f conftest.er1
36991 cat conftest.err >&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); } &&
36994 { ac_try='test -z "$ac_c_werror_flag"
36995 || test ! -s conftest.err'
36996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997 (eval $ac_try) 2>&5
36998 ac_status=$?
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); }; } &&
37001 { ac_try='test -s conftest$ac_exeext'
37002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003 (eval $ac_try) 2>&5
37004 ac_status=$?
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); }; }; then
37007 eval "$as_ac_var=yes"
37008 else
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37012 eval "$as_ac_var=no"
37014 rm -f conftest.err conftest.$ac_objext \
37015 conftest$ac_exeext conftest.$ac_ext
37017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37019 if test `eval echo '${'$as_ac_var'}'` = yes; then
37020 cat >>confdefs.h <<_ACEOF
37021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37022 _ACEOF
37025 done
37027 else
37029 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
37030 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
37031 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
37032 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
37033 echo $ECHO_N "(cached) $ECHO_C" >&6
37034 else
37038 ac_ext=cc
37039 ac_cpp='$CXXCPP $CPPFLAGS'
37040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37044 cat >conftest.$ac_ext <<_ACEOF
37045 /* confdefs.h. */
37046 _ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h. */
37050 #include <math.h>
37052 main ()
37054 _fmodf(0, 0);
37056 return 0;
37058 _ACEOF
37059 rm -f conftest.$ac_objext
37060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37061 (eval $ac_compile) 2>conftest.er1
37062 ac_status=$?
37063 grep -v '^ *+' conftest.er1 >conftest.err
37064 rm -f conftest.er1
37065 cat conftest.err >&5
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); } &&
37068 { ac_try='test -z "$ac_cxx_werror_flag"
37069 || test ! -s conftest.err'
37070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); }; } &&
37075 { ac_try='test -s conftest.$ac_objext'
37076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37077 (eval $ac_try) 2>&5
37078 ac_status=$?
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); }; }; then
37081 glibcxx_cv_func__fmodf_use=yes
37082 else
37083 echo "$as_me: failed program was:" >&5
37084 sed 's/^/| /' conftest.$ac_ext >&5
37086 glibcxx_cv_func__fmodf_use=no
37088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37089 ac_ext=c
37090 ac_cpp='$CPP $CPPFLAGS'
37091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37099 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37100 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37102 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37104 for ac_func in _fmodf
37106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37107 echo "$as_me:$LINENO: checking for $ac_func" >&5
37108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37109 if eval "test \"\${$as_ac_var+set}\" = set"; then
37110 echo $ECHO_N "(cached) $ECHO_C" >&6
37111 else
37112 if test x$gcc_no_link = xyes; then
37113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37115 { (exit 1); exit 1; }; }
37117 cat >conftest.$ac_ext <<_ACEOF
37118 /* confdefs.h. */
37119 _ACEOF
37120 cat confdefs.h >>conftest.$ac_ext
37121 cat >>conftest.$ac_ext <<_ACEOF
37122 /* end confdefs.h. */
37123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37125 #define $ac_func innocuous_$ac_func
37127 /* System header to define __stub macros and hopefully few prototypes,
37128 which can conflict with char $ac_func (); below.
37129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37130 <limits.h> exists even on freestanding compilers. */
37132 #ifdef __STDC__
37133 # include <limits.h>
37134 #else
37135 # include <assert.h>
37136 #endif
37138 #undef $ac_func
37140 /* Override any gcc2 internal prototype to avoid an error. */
37141 #ifdef __cplusplus
37142 extern "C"
37144 #endif
37145 /* We use char because int might match the return type of a gcc2
37146 builtin and then its argument prototype would still apply. */
37147 char $ac_func ();
37148 /* The GNU C library defines this for functions which it implements
37149 to always fail with ENOSYS. Some functions are actually named
37150 something starting with __ and the normal name is an alias. */
37151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37152 choke me
37153 #else
37154 char (*f) () = $ac_func;
37155 #endif
37156 #ifdef __cplusplus
37158 #endif
37161 main ()
37163 return f != $ac_func;
37165 return 0;
37167 _ACEOF
37168 rm -f conftest.$ac_objext conftest$ac_exeext
37169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37170 (eval $ac_link) 2>conftest.er1
37171 ac_status=$?
37172 grep -v '^ *+' conftest.er1 >conftest.err
37173 rm -f conftest.er1
37174 cat conftest.err >&5
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); } &&
37177 { ac_try='test -z "$ac_c_werror_flag"
37178 || test ! -s conftest.err'
37179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180 (eval $ac_try) 2>&5
37181 ac_status=$?
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; } &&
37184 { ac_try='test -s conftest$ac_exeext'
37185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186 (eval $ac_try) 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; }; then
37190 eval "$as_ac_var=yes"
37191 else
37192 echo "$as_me: failed program was:" >&5
37193 sed 's/^/| /' conftest.$ac_ext >&5
37195 eval "$as_ac_var=no"
37197 rm -f conftest.err conftest.$ac_objext \
37198 conftest$ac_exeext conftest.$ac_ext
37200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37202 if test `eval echo '${'$as_ac_var'}'` = yes; then
37203 cat >>confdefs.h <<_ACEOF
37204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37205 _ACEOF
37208 done
37215 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37216 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37217 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37218 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37219 echo $ECHO_N "(cached) $ECHO_C" >&6
37220 else
37224 ac_ext=cc
37225 ac_cpp='$CXXCPP $CPPFLAGS'
37226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37230 cat >conftest.$ac_ext <<_ACEOF
37231 /* confdefs.h. */
37232 _ACEOF
37233 cat confdefs.h >>conftest.$ac_ext
37234 cat >>conftest.$ac_ext <<_ACEOF
37235 /* end confdefs.h. */
37236 #include <math.h>
37238 main ()
37240 frexpf(0, 0);
37242 return 0;
37244 _ACEOF
37245 rm -f conftest.$ac_objext
37246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37247 (eval $ac_compile) 2>conftest.er1
37248 ac_status=$?
37249 grep -v '^ *+' conftest.er1 >conftest.err
37250 rm -f conftest.er1
37251 cat conftest.err >&5
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); } &&
37254 { ac_try='test -z "$ac_cxx_werror_flag"
37255 || test ! -s conftest.err'
37256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37257 (eval $ac_try) 2>&5
37258 ac_status=$?
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); }; } &&
37261 { ac_try='test -s conftest.$ac_objext'
37262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263 (eval $ac_try) 2>&5
37264 ac_status=$?
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); }; }; then
37267 glibcxx_cv_func_frexpf_use=yes
37268 else
37269 echo "$as_me: failed program was:" >&5
37270 sed 's/^/| /' conftest.$ac_ext >&5
37272 glibcxx_cv_func_frexpf_use=no
37274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37275 ac_ext=c
37276 ac_cpp='$CPP $CPPFLAGS'
37277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37285 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37286 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37288 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37290 for ac_func in frexpf
37292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37293 echo "$as_me:$LINENO: checking for $ac_func" >&5
37294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37295 if eval "test \"\${$as_ac_var+set}\" = set"; then
37296 echo $ECHO_N "(cached) $ECHO_C" >&6
37297 else
37298 if test x$gcc_no_link = xyes; then
37299 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37301 { (exit 1); exit 1; }; }
37303 cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h. */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37311 #define $ac_func innocuous_$ac_func
37313 /* System header to define __stub macros and hopefully few prototypes,
37314 which can conflict with char $ac_func (); below.
37315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37316 <limits.h> exists even on freestanding compilers. */
37318 #ifdef __STDC__
37319 # include <limits.h>
37320 #else
37321 # include <assert.h>
37322 #endif
37324 #undef $ac_func
37326 /* Override any gcc2 internal prototype to avoid an error. */
37327 #ifdef __cplusplus
37328 extern "C"
37330 #endif
37331 /* We use char because int might match the return type of a gcc2
37332 builtin and then its argument prototype would still apply. */
37333 char $ac_func ();
37334 /* The GNU C library defines this for functions which it implements
37335 to always fail with ENOSYS. Some functions are actually named
37336 something starting with __ and the normal name is an alias. */
37337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37338 choke me
37339 #else
37340 char (*f) () = $ac_func;
37341 #endif
37342 #ifdef __cplusplus
37344 #endif
37347 main ()
37349 return f != $ac_func;
37351 return 0;
37353 _ACEOF
37354 rm -f conftest.$ac_objext conftest$ac_exeext
37355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37356 (eval $ac_link) 2>conftest.er1
37357 ac_status=$?
37358 grep -v '^ *+' conftest.er1 >conftest.err
37359 rm -f conftest.er1
37360 cat conftest.err >&5
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } &&
37363 { ac_try='test -z "$ac_c_werror_flag"
37364 || test ! -s conftest.err'
37365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37366 (eval $ac_try) 2>&5
37367 ac_status=$?
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); }; } &&
37370 { ac_try='test -s conftest$ac_exeext'
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; }; then
37376 eval "$as_ac_var=yes"
37377 else
37378 echo "$as_me: failed program was:" >&5
37379 sed 's/^/| /' conftest.$ac_ext >&5
37381 eval "$as_ac_var=no"
37383 rm -f conftest.err conftest.$ac_objext \
37384 conftest$ac_exeext conftest.$ac_ext
37386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37388 if test `eval echo '${'$as_ac_var'}'` = yes; then
37389 cat >>confdefs.h <<_ACEOF
37390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37391 _ACEOF
37394 done
37396 else
37398 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37399 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37400 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37401 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37407 ac_ext=cc
37408 ac_cpp='$CXXCPP $CPPFLAGS'
37409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37413 cat >conftest.$ac_ext <<_ACEOF
37414 /* confdefs.h. */
37415 _ACEOF
37416 cat confdefs.h >>conftest.$ac_ext
37417 cat >>conftest.$ac_ext <<_ACEOF
37418 /* end confdefs.h. */
37419 #include <math.h>
37421 main ()
37423 _frexpf(0, 0);
37425 return 0;
37427 _ACEOF
37428 rm -f conftest.$ac_objext
37429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37430 (eval $ac_compile) 2>conftest.er1
37431 ac_status=$?
37432 grep -v '^ *+' conftest.er1 >conftest.err
37433 rm -f conftest.er1
37434 cat conftest.err >&5
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); } &&
37437 { ac_try='test -z "$ac_cxx_werror_flag"
37438 || test ! -s conftest.err'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37441 ac_status=$?
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; } &&
37444 { ac_try='test -s conftest.$ac_objext'
37445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37446 (eval $ac_try) 2>&5
37447 ac_status=$?
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); }; }; then
37450 glibcxx_cv_func__frexpf_use=yes
37451 else
37452 echo "$as_me: failed program was:" >&5
37453 sed 's/^/| /' conftest.$ac_ext >&5
37455 glibcxx_cv_func__frexpf_use=no
37457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37458 ac_ext=c
37459 ac_cpp='$CPP $CPPFLAGS'
37460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37468 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37469 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37471 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37473 for ac_func in _frexpf
37475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37476 echo "$as_me:$LINENO: checking for $ac_func" >&5
37477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37478 if eval "test \"\${$as_ac_var+set}\" = set"; then
37479 echo $ECHO_N "(cached) $ECHO_C" >&6
37480 else
37481 if test x$gcc_no_link = xyes; then
37482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37484 { (exit 1); exit 1; }; }
37486 cat >conftest.$ac_ext <<_ACEOF
37487 /* confdefs.h. */
37488 _ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h. */
37492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37494 #define $ac_func innocuous_$ac_func
37496 /* System header to define __stub macros and hopefully few prototypes,
37497 which can conflict with char $ac_func (); below.
37498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37499 <limits.h> exists even on freestanding compilers. */
37501 #ifdef __STDC__
37502 # include <limits.h>
37503 #else
37504 # include <assert.h>
37505 #endif
37507 #undef $ac_func
37509 /* Override any gcc2 internal prototype to avoid an error. */
37510 #ifdef __cplusplus
37511 extern "C"
37513 #endif
37514 /* We use char because int might match the return type of a gcc2
37515 builtin and then its argument prototype would still apply. */
37516 char $ac_func ();
37517 /* The GNU C library defines this for functions which it implements
37518 to always fail with ENOSYS. Some functions are actually named
37519 something starting with __ and the normal name is an alias. */
37520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37521 choke me
37522 #else
37523 char (*f) () = $ac_func;
37524 #endif
37525 #ifdef __cplusplus
37527 #endif
37530 main ()
37532 return f != $ac_func;
37534 return 0;
37536 _ACEOF
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37539 (eval $ac_link) 2>conftest.er1
37540 ac_status=$?
37541 grep -v '^ *+' conftest.er1 >conftest.err
37542 rm -f conftest.er1
37543 cat conftest.err >&5
37544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545 (exit $ac_status); } &&
37546 { ac_try='test -z "$ac_c_werror_flag"
37547 || test ! -s conftest.err'
37548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549 (eval $ac_try) 2>&5
37550 ac_status=$?
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); }; } &&
37553 { ac_try='test -s conftest$ac_exeext'
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37556 ac_status=$?
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; }; then
37559 eval "$as_ac_var=yes"
37560 else
37561 echo "$as_me: failed program was:" >&5
37562 sed 's/^/| /' conftest.$ac_ext >&5
37564 eval "$as_ac_var=no"
37566 rm -f conftest.err conftest.$ac_objext \
37567 conftest$ac_exeext conftest.$ac_ext
37569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37571 if test `eval echo '${'$as_ac_var'}'` = yes; then
37572 cat >>confdefs.h <<_ACEOF
37573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37574 _ACEOF
37577 done
37584 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37585 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37586 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37587 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37588 echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37593 ac_ext=cc
37594 ac_cpp='$CXXCPP $CPPFLAGS'
37595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37599 cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h. */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37605 #include <math.h>
37607 main ()
37609 hypotf(0, 0);
37611 return 0;
37613 _ACEOF
37614 rm -f conftest.$ac_objext
37615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37616 (eval $ac_compile) 2>conftest.er1
37617 ac_status=$?
37618 grep -v '^ *+' conftest.er1 >conftest.err
37619 rm -f conftest.er1
37620 cat conftest.err >&5
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
37623 { ac_try='test -z "$ac_cxx_werror_flag"
37624 || test ! -s conftest.err'
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37627 ac_status=$?
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; } &&
37630 { ac_try='test -s conftest.$ac_objext'
37631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37632 (eval $ac_try) 2>&5
37633 ac_status=$?
37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635 (exit $ac_status); }; }; then
37636 glibcxx_cv_func_hypotf_use=yes
37637 else
37638 echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37641 glibcxx_cv_func_hypotf_use=no
37643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37644 ac_ext=c
37645 ac_cpp='$CPP $CPPFLAGS'
37646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37654 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37655 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37657 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37659 for ac_func in hypotf
37661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37662 echo "$as_me:$LINENO: checking for $ac_func" >&5
37663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37664 if eval "test \"\${$as_ac_var+set}\" = set"; then
37665 echo $ECHO_N "(cached) $ECHO_C" >&6
37666 else
37667 if test x$gcc_no_link = xyes; then
37668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37670 { (exit 1); exit 1; }; }
37672 cat >conftest.$ac_ext <<_ACEOF
37673 /* confdefs.h. */
37674 _ACEOF
37675 cat confdefs.h >>conftest.$ac_ext
37676 cat >>conftest.$ac_ext <<_ACEOF
37677 /* end confdefs.h. */
37678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37680 #define $ac_func innocuous_$ac_func
37682 /* System header to define __stub macros and hopefully few prototypes,
37683 which can conflict with char $ac_func (); below.
37684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37685 <limits.h> exists even on freestanding compilers. */
37687 #ifdef __STDC__
37688 # include <limits.h>
37689 #else
37690 # include <assert.h>
37691 #endif
37693 #undef $ac_func
37695 /* Override any gcc2 internal prototype to avoid an error. */
37696 #ifdef __cplusplus
37697 extern "C"
37699 #endif
37700 /* We use char because int might match the return type of a gcc2
37701 builtin and then its argument prototype would still apply. */
37702 char $ac_func ();
37703 /* The GNU C library defines this for functions which it implements
37704 to always fail with ENOSYS. Some functions are actually named
37705 something starting with __ and the normal name is an alias. */
37706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37707 choke me
37708 #else
37709 char (*f) () = $ac_func;
37710 #endif
37711 #ifdef __cplusplus
37713 #endif
37716 main ()
37718 return f != $ac_func;
37720 return 0;
37722 _ACEOF
37723 rm -f conftest.$ac_objext conftest$ac_exeext
37724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37725 (eval $ac_link) 2>conftest.er1
37726 ac_status=$?
37727 grep -v '^ *+' conftest.er1 >conftest.err
37728 rm -f conftest.er1
37729 cat conftest.err >&5
37730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731 (exit $ac_status); } &&
37732 { ac_try='test -z "$ac_c_werror_flag"
37733 || test ! -s conftest.err'
37734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37735 (eval $ac_try) 2>&5
37736 ac_status=$?
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); }; } &&
37739 { ac_try='test -s conftest$ac_exeext'
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; }; then
37745 eval "$as_ac_var=yes"
37746 else
37747 echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37750 eval "$as_ac_var=no"
37752 rm -f conftest.err conftest.$ac_objext \
37753 conftest$ac_exeext conftest.$ac_ext
37755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37757 if test `eval echo '${'$as_ac_var'}'` = yes; then
37758 cat >>confdefs.h <<_ACEOF
37759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37760 _ACEOF
37763 done
37765 else
37767 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37768 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37769 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37770 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37771 echo $ECHO_N "(cached) $ECHO_C" >&6
37772 else
37776 ac_ext=cc
37777 ac_cpp='$CXXCPP $CPPFLAGS'
37778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37782 cat >conftest.$ac_ext <<_ACEOF
37783 /* confdefs.h. */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h. */
37788 #include <math.h>
37790 main ()
37792 _hypotf(0, 0);
37794 return 0;
37796 _ACEOF
37797 rm -f conftest.$ac_objext
37798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37799 (eval $ac_compile) 2>conftest.er1
37800 ac_status=$?
37801 grep -v '^ *+' conftest.er1 >conftest.err
37802 rm -f conftest.er1
37803 cat conftest.err >&5
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); } &&
37806 { ac_try='test -z "$ac_cxx_werror_flag"
37807 || test ! -s conftest.err'
37808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37809 (eval $ac_try) 2>&5
37810 ac_status=$?
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); }; } &&
37813 { ac_try='test -s conftest.$ac_objext'
37814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815 (eval $ac_try) 2>&5
37816 ac_status=$?
37817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818 (exit $ac_status); }; }; then
37819 glibcxx_cv_func__hypotf_use=yes
37820 else
37821 echo "$as_me: failed program was:" >&5
37822 sed 's/^/| /' conftest.$ac_ext >&5
37824 glibcxx_cv_func__hypotf_use=no
37826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37827 ac_ext=c
37828 ac_cpp='$CPP $CPPFLAGS'
37829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37837 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37838 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37840 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37842 for ac_func in _hypotf
37844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37845 echo "$as_me:$LINENO: checking for $ac_func" >&5
37846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37847 if eval "test \"\${$as_ac_var+set}\" = set"; then
37848 echo $ECHO_N "(cached) $ECHO_C" >&6
37849 else
37850 if test x$gcc_no_link = xyes; then
37851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37853 { (exit 1); exit 1; }; }
37855 cat >conftest.$ac_ext <<_ACEOF
37856 /* confdefs.h. */
37857 _ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37863 #define $ac_func innocuous_$ac_func
37865 /* System header to define __stub macros and hopefully few prototypes,
37866 which can conflict with char $ac_func (); below.
37867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37868 <limits.h> exists even on freestanding compilers. */
37870 #ifdef __STDC__
37871 # include <limits.h>
37872 #else
37873 # include <assert.h>
37874 #endif
37876 #undef $ac_func
37878 /* Override any gcc2 internal prototype to avoid an error. */
37879 #ifdef __cplusplus
37880 extern "C"
37882 #endif
37883 /* We use char because int might match the return type of a gcc2
37884 builtin and then its argument prototype would still apply. */
37885 char $ac_func ();
37886 /* The GNU C library defines this for functions which it implements
37887 to always fail with ENOSYS. Some functions are actually named
37888 something starting with __ and the normal name is an alias. */
37889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37890 choke me
37891 #else
37892 char (*f) () = $ac_func;
37893 #endif
37894 #ifdef __cplusplus
37896 #endif
37899 main ()
37901 return f != $ac_func;
37903 return 0;
37905 _ACEOF
37906 rm -f conftest.$ac_objext conftest$ac_exeext
37907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37908 (eval $ac_link) 2>conftest.er1
37909 ac_status=$?
37910 grep -v '^ *+' conftest.er1 >conftest.err
37911 rm -f conftest.er1
37912 cat conftest.err >&5
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); } &&
37915 { ac_try='test -z "$ac_c_werror_flag"
37916 || test ! -s conftest.err'
37917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37918 (eval $ac_try) 2>&5
37919 ac_status=$?
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); }; } &&
37922 { ac_try='test -s conftest$ac_exeext'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37925 ac_status=$?
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; }; then
37928 eval "$as_ac_var=yes"
37929 else
37930 echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37933 eval "$as_ac_var=no"
37935 rm -f conftest.err conftest.$ac_objext \
37936 conftest$ac_exeext conftest.$ac_ext
37938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37940 if test `eval echo '${'$as_ac_var'}'` = yes; then
37941 cat >>confdefs.h <<_ACEOF
37942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37943 _ACEOF
37946 done
37953 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37954 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37955 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37956 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37957 echo $ECHO_N "(cached) $ECHO_C" >&6
37958 else
37962 ac_ext=cc
37963 ac_cpp='$CXXCPP $CPPFLAGS'
37964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37968 cat >conftest.$ac_ext <<_ACEOF
37969 /* confdefs.h. */
37970 _ACEOF
37971 cat confdefs.h >>conftest.$ac_ext
37972 cat >>conftest.$ac_ext <<_ACEOF
37973 /* end confdefs.h. */
37974 #include <math.h>
37976 main ()
37978 ldexpf(0, 0);
37980 return 0;
37982 _ACEOF
37983 rm -f conftest.$ac_objext
37984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37985 (eval $ac_compile) 2>conftest.er1
37986 ac_status=$?
37987 grep -v '^ *+' conftest.er1 >conftest.err
37988 rm -f conftest.er1
37989 cat conftest.err >&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); } &&
37992 { ac_try='test -z "$ac_cxx_werror_flag"
37993 || test ! -s conftest.err'
37994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995 (eval $ac_try) 2>&5
37996 ac_status=$?
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); }; } &&
37999 { ac_try='test -s conftest.$ac_objext'
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38002 ac_status=$?
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; }; then
38005 glibcxx_cv_func_ldexpf_use=yes
38006 else
38007 echo "$as_me: failed program was:" >&5
38008 sed 's/^/| /' conftest.$ac_ext >&5
38010 glibcxx_cv_func_ldexpf_use=no
38012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38013 ac_ext=c
38014 ac_cpp='$CPP $CPPFLAGS'
38015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38023 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
38024 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
38026 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
38028 for ac_func in ldexpf
38030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38031 echo "$as_me:$LINENO: checking for $ac_func" >&5
38032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38033 if eval "test \"\${$as_ac_var+set}\" = set"; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 else
38036 if test x$gcc_no_link = xyes; then
38037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38039 { (exit 1); exit 1; }; }
38041 cat >conftest.$ac_ext <<_ACEOF
38042 /* confdefs.h. */
38043 _ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h. */
38047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38049 #define $ac_func innocuous_$ac_func
38051 /* System header to define __stub macros and hopefully few prototypes,
38052 which can conflict with char $ac_func (); below.
38053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38054 <limits.h> exists even on freestanding compilers. */
38056 #ifdef __STDC__
38057 # include <limits.h>
38058 #else
38059 # include <assert.h>
38060 #endif
38062 #undef $ac_func
38064 /* Override any gcc2 internal prototype to avoid an error. */
38065 #ifdef __cplusplus
38066 extern "C"
38068 #endif
38069 /* We use char because int might match the return type of a gcc2
38070 builtin and then its argument prototype would still apply. */
38071 char $ac_func ();
38072 /* The GNU C library defines this for functions which it implements
38073 to always fail with ENOSYS. Some functions are actually named
38074 something starting with __ and the normal name is an alias. */
38075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38076 choke me
38077 #else
38078 char (*f) () = $ac_func;
38079 #endif
38080 #ifdef __cplusplus
38082 #endif
38085 main ()
38087 return f != $ac_func;
38089 return 0;
38091 _ACEOF
38092 rm -f conftest.$ac_objext conftest$ac_exeext
38093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38094 (eval $ac_link) 2>conftest.er1
38095 ac_status=$?
38096 grep -v '^ *+' conftest.er1 >conftest.err
38097 rm -f conftest.er1
38098 cat conftest.err >&5
38099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); } &&
38101 { ac_try='test -z "$ac_c_werror_flag"
38102 || test ! -s conftest.err'
38103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104 (eval $ac_try) 2>&5
38105 ac_status=$?
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); }; } &&
38108 { ac_try='test -s conftest$ac_exeext'
38109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38110 (eval $ac_try) 2>&5
38111 ac_status=$?
38112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113 (exit $ac_status); }; }; then
38114 eval "$as_ac_var=yes"
38115 else
38116 echo "$as_me: failed program was:" >&5
38117 sed 's/^/| /' conftest.$ac_ext >&5
38119 eval "$as_ac_var=no"
38121 rm -f conftest.err conftest.$ac_objext \
38122 conftest$ac_exeext conftest.$ac_ext
38124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38126 if test `eval echo '${'$as_ac_var'}'` = yes; then
38127 cat >>confdefs.h <<_ACEOF
38128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38129 _ACEOF
38132 done
38134 else
38136 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38137 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38138 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38139 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38140 echo $ECHO_N "(cached) $ECHO_C" >&6
38141 else
38145 ac_ext=cc
38146 ac_cpp='$CXXCPP $CPPFLAGS'
38147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38151 cat >conftest.$ac_ext <<_ACEOF
38152 /* confdefs.h. */
38153 _ACEOF
38154 cat confdefs.h >>conftest.$ac_ext
38155 cat >>conftest.$ac_ext <<_ACEOF
38156 /* end confdefs.h. */
38157 #include <math.h>
38159 main ()
38161 _ldexpf(0, 0);
38163 return 0;
38165 _ACEOF
38166 rm -f conftest.$ac_objext
38167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38168 (eval $ac_compile) 2>conftest.er1
38169 ac_status=$?
38170 grep -v '^ *+' conftest.er1 >conftest.err
38171 rm -f conftest.er1
38172 cat conftest.err >&5
38173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174 (exit $ac_status); } &&
38175 { ac_try='test -z "$ac_cxx_werror_flag"
38176 || test ! -s conftest.err'
38177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178 (eval $ac_try) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); }; } &&
38182 { ac_try='test -s conftest.$ac_objext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 glibcxx_cv_func__ldexpf_use=yes
38189 else
38190 echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.$ac_ext >&5
38193 glibcxx_cv_func__ldexpf_use=no
38195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38196 ac_ext=c
38197 ac_cpp='$CPP $CPPFLAGS'
38198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38206 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38207 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38209 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38211 for ac_func in _ldexpf
38213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38214 echo "$as_me:$LINENO: checking for $ac_func" >&5
38215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38216 if eval "test \"\${$as_ac_var+set}\" = set"; then
38217 echo $ECHO_N "(cached) $ECHO_C" >&6
38218 else
38219 if test x$gcc_no_link = xyes; then
38220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38222 { (exit 1); exit 1; }; }
38224 cat >conftest.$ac_ext <<_ACEOF
38225 /* confdefs.h. */
38226 _ACEOF
38227 cat confdefs.h >>conftest.$ac_ext
38228 cat >>conftest.$ac_ext <<_ACEOF
38229 /* end confdefs.h. */
38230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38232 #define $ac_func innocuous_$ac_func
38234 /* System header to define __stub macros and hopefully few prototypes,
38235 which can conflict with char $ac_func (); below.
38236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38237 <limits.h> exists even on freestanding compilers. */
38239 #ifdef __STDC__
38240 # include <limits.h>
38241 #else
38242 # include <assert.h>
38243 #endif
38245 #undef $ac_func
38247 /* Override any gcc2 internal prototype to avoid an error. */
38248 #ifdef __cplusplus
38249 extern "C"
38251 #endif
38252 /* We use char because int might match the return type of a gcc2
38253 builtin and then its argument prototype would still apply. */
38254 char $ac_func ();
38255 /* The GNU C library defines this for functions which it implements
38256 to always fail with ENOSYS. Some functions are actually named
38257 something starting with __ and the normal name is an alias. */
38258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38259 choke me
38260 #else
38261 char (*f) () = $ac_func;
38262 #endif
38263 #ifdef __cplusplus
38265 #endif
38268 main ()
38270 return f != $ac_func;
38272 return 0;
38274 _ACEOF
38275 rm -f conftest.$ac_objext conftest$ac_exeext
38276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38277 (eval $ac_link) 2>conftest.er1
38278 ac_status=$?
38279 grep -v '^ *+' conftest.er1 >conftest.err
38280 rm -f conftest.er1
38281 cat conftest.err >&5
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); } &&
38284 { ac_try='test -z "$ac_c_werror_flag"
38285 || test ! -s conftest.err'
38286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38287 (eval $ac_try) 2>&5
38288 ac_status=$?
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); }; } &&
38291 { ac_try='test -s conftest$ac_exeext'
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38294 ac_status=$?
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; }; then
38297 eval "$as_ac_var=yes"
38298 else
38299 echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38302 eval "$as_ac_var=no"
38304 rm -f conftest.err conftest.$ac_objext \
38305 conftest$ac_exeext conftest.$ac_ext
38307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38309 if test `eval echo '${'$as_ac_var'}'` = yes; then
38310 cat >>confdefs.h <<_ACEOF
38311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38312 _ACEOF
38315 done
38322 echo "$as_me:$LINENO: checking for logf declaration" >&5
38323 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38324 if test x${glibcxx_cv_func_logf_use+set} != xset; then
38325 if test "${glibcxx_cv_func_logf_use+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38327 else
38331 ac_ext=cc
38332 ac_cpp='$CXXCPP $CPPFLAGS'
38333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38337 cat >conftest.$ac_ext <<_ACEOF
38338 /* confdefs.h. */
38339 _ACEOF
38340 cat confdefs.h >>conftest.$ac_ext
38341 cat >>conftest.$ac_ext <<_ACEOF
38342 /* end confdefs.h. */
38343 #include <math.h>
38344 #ifdef HAVE_IEEEFP_H
38345 #include <ieeefp.h>
38346 #endif
38349 main ()
38351 logf(0);
38353 return 0;
38355 _ACEOF
38356 rm -f conftest.$ac_objext
38357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38358 (eval $ac_compile) 2>conftest.er1
38359 ac_status=$?
38360 grep -v '^ *+' conftest.er1 >conftest.err
38361 rm -f conftest.er1
38362 cat conftest.err >&5
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); } &&
38365 { ac_try='test -z "$ac_cxx_werror_flag"
38366 || test ! -s conftest.err'
38367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38368 (eval $ac_try) 2>&5
38369 ac_status=$?
38370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371 (exit $ac_status); }; } &&
38372 { ac_try='test -s conftest.$ac_objext'
38373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38374 (eval $ac_try) 2>&5
38375 ac_status=$?
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); }; }; then
38378 glibcxx_cv_func_logf_use=yes
38379 else
38380 echo "$as_me: failed program was:" >&5
38381 sed 's/^/| /' conftest.$ac_ext >&5
38383 glibcxx_cv_func_logf_use=no
38385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38386 ac_ext=c
38387 ac_cpp='$CPP $CPPFLAGS'
38388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38396 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38397 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38399 if test x$glibcxx_cv_func_logf_use = x"yes"; then
38401 for ac_func in logf
38403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38404 echo "$as_me:$LINENO: checking for $ac_func" >&5
38405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38406 if eval "test \"\${$as_ac_var+set}\" = set"; then
38407 echo $ECHO_N "(cached) $ECHO_C" >&6
38408 else
38409 if test x$gcc_no_link = xyes; then
38410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38412 { (exit 1); exit 1; }; }
38414 cat >conftest.$ac_ext <<_ACEOF
38415 /* confdefs.h. */
38416 _ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h. */
38420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38422 #define $ac_func innocuous_$ac_func
38424 /* System header to define __stub macros and hopefully few prototypes,
38425 which can conflict with char $ac_func (); below.
38426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38427 <limits.h> exists even on freestanding compilers. */
38429 #ifdef __STDC__
38430 # include <limits.h>
38431 #else
38432 # include <assert.h>
38433 #endif
38435 #undef $ac_func
38437 /* Override any gcc2 internal prototype to avoid an error. */
38438 #ifdef __cplusplus
38439 extern "C"
38441 #endif
38442 /* We use char because int might match the return type of a gcc2
38443 builtin and then its argument prototype would still apply. */
38444 char $ac_func ();
38445 /* The GNU C library defines this for functions which it implements
38446 to always fail with ENOSYS. Some functions are actually named
38447 something starting with __ and the normal name is an alias. */
38448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38449 choke me
38450 #else
38451 char (*f) () = $ac_func;
38452 #endif
38453 #ifdef __cplusplus
38455 #endif
38458 main ()
38460 return f != $ac_func;
38462 return 0;
38464 _ACEOF
38465 rm -f conftest.$ac_objext conftest$ac_exeext
38466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38467 (eval $ac_link) 2>conftest.er1
38468 ac_status=$?
38469 grep -v '^ *+' conftest.er1 >conftest.err
38470 rm -f conftest.er1
38471 cat conftest.err >&5
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); } &&
38474 { ac_try='test -z "$ac_c_werror_flag"
38475 || test ! -s conftest.err'
38476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38477 (eval $ac_try) 2>&5
38478 ac_status=$?
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); }; } &&
38481 { ac_try='test -s conftest$ac_exeext'
38482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483 (eval $ac_try) 2>&5
38484 ac_status=$?
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); }; }; then
38487 eval "$as_ac_var=yes"
38488 else
38489 echo "$as_me: failed program was:" >&5
38490 sed 's/^/| /' conftest.$ac_ext >&5
38492 eval "$as_ac_var=no"
38494 rm -f conftest.err conftest.$ac_objext \
38495 conftest$ac_exeext conftest.$ac_ext
38497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38499 if test `eval echo '${'$as_ac_var'}'` = yes; then
38500 cat >>confdefs.h <<_ACEOF
38501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38502 _ACEOF
38505 done
38507 else
38509 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38510 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38511 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38512 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38514 else
38518 ac_ext=cc
38519 ac_cpp='$CXXCPP $CPPFLAGS'
38520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38524 cat >conftest.$ac_ext <<_ACEOF
38525 /* confdefs.h. */
38526 _ACEOF
38527 cat confdefs.h >>conftest.$ac_ext
38528 cat >>conftest.$ac_ext <<_ACEOF
38529 /* end confdefs.h. */
38530 #include <math.h>
38531 #ifdef HAVE_IEEEFP_H
38532 #include <ieeefp.h>
38533 #endif
38536 main ()
38538 _logf(0);
38540 return 0;
38542 _ACEOF
38543 rm -f conftest.$ac_objext
38544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38545 (eval $ac_compile) 2>conftest.er1
38546 ac_status=$?
38547 grep -v '^ *+' conftest.er1 >conftest.err
38548 rm -f conftest.er1
38549 cat conftest.err >&5
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); } &&
38552 { ac_try='test -z "$ac_cxx_werror_flag"
38553 || test ! -s conftest.err'
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38556 ac_status=$?
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; } &&
38559 { ac_try='test -s conftest.$ac_objext'
38560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561 (eval $ac_try) 2>&5
38562 ac_status=$?
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); }; }; then
38565 glibcxx_cv_func__logf_use=yes
38566 else
38567 echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38570 glibcxx_cv_func__logf_use=no
38572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38573 ac_ext=c
38574 ac_cpp='$CPP $CPPFLAGS'
38575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38583 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38584 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38586 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38588 for ac_func in _logf
38590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38591 echo "$as_me:$LINENO: checking for $ac_func" >&5
38592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38593 if eval "test \"\${$as_ac_var+set}\" = set"; then
38594 echo $ECHO_N "(cached) $ECHO_C" >&6
38595 else
38596 if test x$gcc_no_link = xyes; then
38597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38599 { (exit 1); exit 1; }; }
38601 cat >conftest.$ac_ext <<_ACEOF
38602 /* confdefs.h. */
38603 _ACEOF
38604 cat confdefs.h >>conftest.$ac_ext
38605 cat >>conftest.$ac_ext <<_ACEOF
38606 /* end confdefs.h. */
38607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38609 #define $ac_func innocuous_$ac_func
38611 /* System header to define __stub macros and hopefully few prototypes,
38612 which can conflict with char $ac_func (); below.
38613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38614 <limits.h> exists even on freestanding compilers. */
38616 #ifdef __STDC__
38617 # include <limits.h>
38618 #else
38619 # include <assert.h>
38620 #endif
38622 #undef $ac_func
38624 /* Override any gcc2 internal prototype to avoid an error. */
38625 #ifdef __cplusplus
38626 extern "C"
38628 #endif
38629 /* We use char because int might match the return type of a gcc2
38630 builtin and then its argument prototype would still apply. */
38631 char $ac_func ();
38632 /* The GNU C library defines this for functions which it implements
38633 to always fail with ENOSYS. Some functions are actually named
38634 something starting with __ and the normal name is an alias. */
38635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38636 choke me
38637 #else
38638 char (*f) () = $ac_func;
38639 #endif
38640 #ifdef __cplusplus
38642 #endif
38645 main ()
38647 return f != $ac_func;
38649 return 0;
38651 _ACEOF
38652 rm -f conftest.$ac_objext conftest$ac_exeext
38653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38654 (eval $ac_link) 2>conftest.er1
38655 ac_status=$?
38656 grep -v '^ *+' conftest.er1 >conftest.err
38657 rm -f conftest.er1
38658 cat conftest.err >&5
38659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660 (exit $ac_status); } &&
38661 { ac_try='test -z "$ac_c_werror_flag"
38662 || test ! -s conftest.err'
38663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38664 (eval $ac_try) 2>&5
38665 ac_status=$?
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); }; } &&
38668 { ac_try='test -s conftest$ac_exeext'
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; }; then
38674 eval "$as_ac_var=yes"
38675 else
38676 echo "$as_me: failed program was:" >&5
38677 sed 's/^/| /' conftest.$ac_ext >&5
38679 eval "$as_ac_var=no"
38681 rm -f conftest.err conftest.$ac_objext \
38682 conftest$ac_exeext conftest.$ac_ext
38684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38686 if test `eval echo '${'$as_ac_var'}'` = yes; then
38687 cat >>confdefs.h <<_ACEOF
38688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38689 _ACEOF
38692 done
38699 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38700 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38701 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38702 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38703 echo $ECHO_N "(cached) $ECHO_C" >&6
38704 else
38708 ac_ext=cc
38709 ac_cpp='$CXXCPP $CPPFLAGS'
38710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38714 cat >conftest.$ac_ext <<_ACEOF
38715 /* confdefs.h. */
38716 _ACEOF
38717 cat confdefs.h >>conftest.$ac_ext
38718 cat >>conftest.$ac_ext <<_ACEOF
38719 /* end confdefs.h. */
38720 #include <math.h>
38721 #ifdef HAVE_IEEEFP_H
38722 #include <ieeefp.h>
38723 #endif
38726 main ()
38728 log10f(0);
38730 return 0;
38732 _ACEOF
38733 rm -f conftest.$ac_objext
38734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38735 (eval $ac_compile) 2>conftest.er1
38736 ac_status=$?
38737 grep -v '^ *+' conftest.er1 >conftest.err
38738 rm -f conftest.er1
38739 cat conftest.err >&5
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); } &&
38742 { ac_try='test -z "$ac_cxx_werror_flag"
38743 || test ! -s conftest.err'
38744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38745 (eval $ac_try) 2>&5
38746 ac_status=$?
38747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748 (exit $ac_status); }; } &&
38749 { ac_try='test -s conftest.$ac_objext'
38750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38751 (eval $ac_try) 2>&5
38752 ac_status=$?
38753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754 (exit $ac_status); }; }; then
38755 glibcxx_cv_func_log10f_use=yes
38756 else
38757 echo "$as_me: failed program was:" >&5
38758 sed 's/^/| /' conftest.$ac_ext >&5
38760 glibcxx_cv_func_log10f_use=no
38762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38763 ac_ext=c
38764 ac_cpp='$CPP $CPPFLAGS'
38765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38773 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38774 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38776 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38778 for ac_func in log10f
38780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38781 echo "$as_me:$LINENO: checking for $ac_func" >&5
38782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38783 if eval "test \"\${$as_ac_var+set}\" = set"; then
38784 echo $ECHO_N "(cached) $ECHO_C" >&6
38785 else
38786 if test x$gcc_no_link = xyes; then
38787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38789 { (exit 1); exit 1; }; }
38791 cat >conftest.$ac_ext <<_ACEOF
38792 /* confdefs.h. */
38793 _ACEOF
38794 cat confdefs.h >>conftest.$ac_ext
38795 cat >>conftest.$ac_ext <<_ACEOF
38796 /* end confdefs.h. */
38797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38799 #define $ac_func innocuous_$ac_func
38801 /* System header to define __stub macros and hopefully few prototypes,
38802 which can conflict with char $ac_func (); below.
38803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38804 <limits.h> exists even on freestanding compilers. */
38806 #ifdef __STDC__
38807 # include <limits.h>
38808 #else
38809 # include <assert.h>
38810 #endif
38812 #undef $ac_func
38814 /* Override any gcc2 internal prototype to avoid an error. */
38815 #ifdef __cplusplus
38816 extern "C"
38818 #endif
38819 /* We use char because int might match the return type of a gcc2
38820 builtin and then its argument prototype would still apply. */
38821 char $ac_func ();
38822 /* The GNU C library defines this for functions which it implements
38823 to always fail with ENOSYS. Some functions are actually named
38824 something starting with __ and the normal name is an alias. */
38825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38826 choke me
38827 #else
38828 char (*f) () = $ac_func;
38829 #endif
38830 #ifdef __cplusplus
38832 #endif
38835 main ()
38837 return f != $ac_func;
38839 return 0;
38841 _ACEOF
38842 rm -f conftest.$ac_objext conftest$ac_exeext
38843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38844 (eval $ac_link) 2>conftest.er1
38845 ac_status=$?
38846 grep -v '^ *+' conftest.er1 >conftest.err
38847 rm -f conftest.er1
38848 cat conftest.err >&5
38849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38850 (exit $ac_status); } &&
38851 { ac_try='test -z "$ac_c_werror_flag"
38852 || test ! -s conftest.err'
38853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38854 (eval $ac_try) 2>&5
38855 ac_status=$?
38856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38857 (exit $ac_status); }; } &&
38858 { ac_try='test -s conftest$ac_exeext'
38859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38860 (eval $ac_try) 2>&5
38861 ac_status=$?
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); }; }; then
38864 eval "$as_ac_var=yes"
38865 else
38866 echo "$as_me: failed program was:" >&5
38867 sed 's/^/| /' conftest.$ac_ext >&5
38869 eval "$as_ac_var=no"
38871 rm -f conftest.err conftest.$ac_objext \
38872 conftest$ac_exeext conftest.$ac_ext
38874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38876 if test `eval echo '${'$as_ac_var'}'` = yes; then
38877 cat >>confdefs.h <<_ACEOF
38878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38879 _ACEOF
38882 done
38884 else
38886 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38887 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38888 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38889 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38890 echo $ECHO_N "(cached) $ECHO_C" >&6
38891 else
38895 ac_ext=cc
38896 ac_cpp='$CXXCPP $CPPFLAGS'
38897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38901 cat >conftest.$ac_ext <<_ACEOF
38902 /* confdefs.h. */
38903 _ACEOF
38904 cat confdefs.h >>conftest.$ac_ext
38905 cat >>conftest.$ac_ext <<_ACEOF
38906 /* end confdefs.h. */
38907 #include <math.h>
38908 #ifdef HAVE_IEEEFP_H
38909 #include <ieeefp.h>
38910 #endif
38913 main ()
38915 _log10f(0);
38917 return 0;
38919 _ACEOF
38920 rm -f conftest.$ac_objext
38921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38922 (eval $ac_compile) 2>conftest.er1
38923 ac_status=$?
38924 grep -v '^ *+' conftest.er1 >conftest.err
38925 rm -f conftest.er1
38926 cat conftest.err >&5
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); } &&
38929 { ac_try='test -z "$ac_cxx_werror_flag"
38930 || test ! -s conftest.err'
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; } &&
38936 { ac_try='test -s conftest.$ac_objext'
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38939 ac_status=$?
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; }; then
38942 glibcxx_cv_func__log10f_use=yes
38943 else
38944 echo "$as_me: failed program was:" >&5
38945 sed 's/^/| /' conftest.$ac_ext >&5
38947 glibcxx_cv_func__log10f_use=no
38949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38950 ac_ext=c
38951 ac_cpp='$CPP $CPPFLAGS'
38952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38960 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38961 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38963 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38965 for ac_func in _log10f
38967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38968 echo "$as_me:$LINENO: checking for $ac_func" >&5
38969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38970 if eval "test \"\${$as_ac_var+set}\" = set"; then
38971 echo $ECHO_N "(cached) $ECHO_C" >&6
38972 else
38973 if test x$gcc_no_link = xyes; then
38974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38976 { (exit 1); exit 1; }; }
38978 cat >conftest.$ac_ext <<_ACEOF
38979 /* confdefs.h. */
38980 _ACEOF
38981 cat confdefs.h >>conftest.$ac_ext
38982 cat >>conftest.$ac_ext <<_ACEOF
38983 /* end confdefs.h. */
38984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38986 #define $ac_func innocuous_$ac_func
38988 /* System header to define __stub macros and hopefully few prototypes,
38989 which can conflict with char $ac_func (); below.
38990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38991 <limits.h> exists even on freestanding compilers. */
38993 #ifdef __STDC__
38994 # include <limits.h>
38995 #else
38996 # include <assert.h>
38997 #endif
38999 #undef $ac_func
39001 /* Override any gcc2 internal prototype to avoid an error. */
39002 #ifdef __cplusplus
39003 extern "C"
39005 #endif
39006 /* We use char because int might match the return type of a gcc2
39007 builtin and then its argument prototype would still apply. */
39008 char $ac_func ();
39009 /* The GNU C library defines this for functions which it implements
39010 to always fail with ENOSYS. Some functions are actually named
39011 something starting with __ and the normal name is an alias. */
39012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39013 choke me
39014 #else
39015 char (*f) () = $ac_func;
39016 #endif
39017 #ifdef __cplusplus
39019 #endif
39022 main ()
39024 return f != $ac_func;
39026 return 0;
39028 _ACEOF
39029 rm -f conftest.$ac_objext conftest$ac_exeext
39030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39031 (eval $ac_link) 2>conftest.er1
39032 ac_status=$?
39033 grep -v '^ *+' conftest.er1 >conftest.err
39034 rm -f conftest.er1
39035 cat conftest.err >&5
39036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39037 (exit $ac_status); } &&
39038 { ac_try='test -z "$ac_c_werror_flag"
39039 || test ! -s conftest.err'
39040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39041 (eval $ac_try) 2>&5
39042 ac_status=$?
39043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044 (exit $ac_status); }; } &&
39045 { ac_try='test -s conftest$ac_exeext'
39046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39047 (eval $ac_try) 2>&5
39048 ac_status=$?
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); }; }; then
39051 eval "$as_ac_var=yes"
39052 else
39053 echo "$as_me: failed program was:" >&5
39054 sed 's/^/| /' conftest.$ac_ext >&5
39056 eval "$as_ac_var=no"
39058 rm -f conftest.err conftest.$ac_objext \
39059 conftest$ac_exeext conftest.$ac_ext
39061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39063 if test `eval echo '${'$as_ac_var'}'` = yes; then
39064 cat >>confdefs.h <<_ACEOF
39065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39066 _ACEOF
39069 done
39076 echo "$as_me:$LINENO: checking for modff declaration" >&5
39077 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39078 if test x${glibcxx_cv_func_modff_use+set} != xset; then
39079 if test "${glibcxx_cv_func_modff_use+set}" = set; then
39080 echo $ECHO_N "(cached) $ECHO_C" >&6
39081 else
39085 ac_ext=cc
39086 ac_cpp='$CXXCPP $CPPFLAGS'
39087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39091 cat >conftest.$ac_ext <<_ACEOF
39092 /* confdefs.h. */
39093 _ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h. */
39097 #include <math.h>
39099 main ()
39101 modff(0, 0);
39103 return 0;
39105 _ACEOF
39106 rm -f conftest.$ac_objext
39107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39108 (eval $ac_compile) 2>conftest.er1
39109 ac_status=$?
39110 grep -v '^ *+' conftest.er1 >conftest.err
39111 rm -f conftest.er1
39112 cat conftest.err >&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } &&
39115 { ac_try='test -z "$ac_cxx_werror_flag"
39116 || test ! -s conftest.err'
39117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118 (eval $ac_try) 2>&5
39119 ac_status=$?
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); }; } &&
39122 { ac_try='test -s conftest.$ac_objext'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39125 ac_status=$?
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; }; then
39128 glibcxx_cv_func_modff_use=yes
39129 else
39130 echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39133 glibcxx_cv_func_modff_use=no
39135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39136 ac_ext=c
39137 ac_cpp='$CPP $CPPFLAGS'
39138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39146 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39147 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39149 if test x$glibcxx_cv_func_modff_use = x"yes"; then
39151 for ac_func in modff
39153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39154 echo "$as_me:$LINENO: checking for $ac_func" >&5
39155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39156 if eval "test \"\${$as_ac_var+set}\" = set"; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39158 else
39159 if test x$gcc_no_link = xyes; then
39160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39162 { (exit 1); exit 1; }; }
39164 cat >conftest.$ac_ext <<_ACEOF
39165 /* confdefs.h. */
39166 _ACEOF
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h. */
39170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39172 #define $ac_func innocuous_$ac_func
39174 /* System header to define __stub macros and hopefully few prototypes,
39175 which can conflict with char $ac_func (); below.
39176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39177 <limits.h> exists even on freestanding compilers. */
39179 #ifdef __STDC__
39180 # include <limits.h>
39181 #else
39182 # include <assert.h>
39183 #endif
39185 #undef $ac_func
39187 /* Override any gcc2 internal prototype to avoid an error. */
39188 #ifdef __cplusplus
39189 extern "C"
39191 #endif
39192 /* We use char because int might match the return type of a gcc2
39193 builtin and then its argument prototype would still apply. */
39194 char $ac_func ();
39195 /* The GNU C library defines this for functions which it implements
39196 to always fail with ENOSYS. Some functions are actually named
39197 something starting with __ and the normal name is an alias. */
39198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39199 choke me
39200 #else
39201 char (*f) () = $ac_func;
39202 #endif
39203 #ifdef __cplusplus
39205 #endif
39208 main ()
39210 return f != $ac_func;
39212 return 0;
39214 _ACEOF
39215 rm -f conftest.$ac_objext conftest$ac_exeext
39216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39217 (eval $ac_link) 2>conftest.er1
39218 ac_status=$?
39219 grep -v '^ *+' conftest.er1 >conftest.err
39220 rm -f conftest.er1
39221 cat conftest.err >&5
39222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223 (exit $ac_status); } &&
39224 { ac_try='test -z "$ac_c_werror_flag"
39225 || test ! -s conftest.err'
39226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39227 (eval $ac_try) 2>&5
39228 ac_status=$?
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); }; } &&
39231 { ac_try='test -s conftest$ac_exeext'
39232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39233 (eval $ac_try) 2>&5
39234 ac_status=$?
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); }; }; then
39237 eval "$as_ac_var=yes"
39238 else
39239 echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39242 eval "$as_ac_var=no"
39244 rm -f conftest.err conftest.$ac_objext \
39245 conftest$ac_exeext conftest.$ac_ext
39247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39249 if test `eval echo '${'$as_ac_var'}'` = yes; then
39250 cat >>confdefs.h <<_ACEOF
39251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39252 _ACEOF
39255 done
39257 else
39259 echo "$as_me:$LINENO: checking for _modff declaration" >&5
39260 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39261 if test x${glibcxx_cv_func__modff_use+set} != xset; then
39262 if test "${glibcxx_cv_func__modff_use+set}" = set; then
39263 echo $ECHO_N "(cached) $ECHO_C" >&6
39264 else
39268 ac_ext=cc
39269 ac_cpp='$CXXCPP $CPPFLAGS'
39270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39274 cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h. */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h. */
39280 #include <math.h>
39282 main ()
39284 _modff(0, 0);
39286 return 0;
39288 _ACEOF
39289 rm -f conftest.$ac_objext
39290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39291 (eval $ac_compile) 2>conftest.er1
39292 ac_status=$?
39293 grep -v '^ *+' conftest.er1 >conftest.err
39294 rm -f conftest.er1
39295 cat conftest.err >&5
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); } &&
39298 { ac_try='test -z "$ac_cxx_werror_flag"
39299 || test ! -s conftest.err'
39300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39301 (eval $ac_try) 2>&5
39302 ac_status=$?
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); }; } &&
39305 { ac_try='test -s conftest.$ac_objext'
39306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39307 (eval $ac_try) 2>&5
39308 ac_status=$?
39309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310 (exit $ac_status); }; }; then
39311 glibcxx_cv_func__modff_use=yes
39312 else
39313 echo "$as_me: failed program was:" >&5
39314 sed 's/^/| /' conftest.$ac_ext >&5
39316 glibcxx_cv_func__modff_use=no
39318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39319 ac_ext=c
39320 ac_cpp='$CPP $CPPFLAGS'
39321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39329 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39330 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39332 if test x$glibcxx_cv_func__modff_use = x"yes"; then
39334 for ac_func in _modff
39336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39337 echo "$as_me:$LINENO: checking for $ac_func" >&5
39338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39339 if eval "test \"\${$as_ac_var+set}\" = set"; then
39340 echo $ECHO_N "(cached) $ECHO_C" >&6
39341 else
39342 if test x$gcc_no_link = xyes; then
39343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39345 { (exit 1); exit 1; }; }
39347 cat >conftest.$ac_ext <<_ACEOF
39348 /* confdefs.h. */
39349 _ACEOF
39350 cat confdefs.h >>conftest.$ac_ext
39351 cat >>conftest.$ac_ext <<_ACEOF
39352 /* end confdefs.h. */
39353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39355 #define $ac_func innocuous_$ac_func
39357 /* System header to define __stub macros and hopefully few prototypes,
39358 which can conflict with char $ac_func (); below.
39359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39360 <limits.h> exists even on freestanding compilers. */
39362 #ifdef __STDC__
39363 # include <limits.h>
39364 #else
39365 # include <assert.h>
39366 #endif
39368 #undef $ac_func
39370 /* Override any gcc2 internal prototype to avoid an error. */
39371 #ifdef __cplusplus
39372 extern "C"
39374 #endif
39375 /* We use char because int might match the return type of a gcc2
39376 builtin and then its argument prototype would still apply. */
39377 char $ac_func ();
39378 /* The GNU C library defines this for functions which it implements
39379 to always fail with ENOSYS. Some functions are actually named
39380 something starting with __ and the normal name is an alias. */
39381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39382 choke me
39383 #else
39384 char (*f) () = $ac_func;
39385 #endif
39386 #ifdef __cplusplus
39388 #endif
39391 main ()
39393 return f != $ac_func;
39395 return 0;
39397 _ACEOF
39398 rm -f conftest.$ac_objext conftest$ac_exeext
39399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39400 (eval $ac_link) 2>conftest.er1
39401 ac_status=$?
39402 grep -v '^ *+' conftest.er1 >conftest.err
39403 rm -f conftest.er1
39404 cat conftest.err >&5
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); } &&
39407 { ac_try='test -z "$ac_c_werror_flag"
39408 || test ! -s conftest.err'
39409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410 (eval $ac_try) 2>&5
39411 ac_status=$?
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); }; } &&
39414 { ac_try='test -s conftest$ac_exeext'
39415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39416 (eval $ac_try) 2>&5
39417 ac_status=$?
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); }; }; then
39420 eval "$as_ac_var=yes"
39421 else
39422 echo "$as_me: failed program was:" >&5
39423 sed 's/^/| /' conftest.$ac_ext >&5
39425 eval "$as_ac_var=no"
39427 rm -f conftest.err conftest.$ac_objext \
39428 conftest$ac_exeext conftest.$ac_ext
39430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39432 if test `eval echo '${'$as_ac_var'}'` = yes; then
39433 cat >>confdefs.h <<_ACEOF
39434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39435 _ACEOF
39438 done
39445 echo "$as_me:$LINENO: checking for powf declaration" >&5
39446 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39447 if test x${glibcxx_cv_func_powf_use+set} != xset; then
39448 if test "${glibcxx_cv_func_powf_use+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39454 ac_ext=cc
39455 ac_cpp='$CXXCPP $CPPFLAGS'
39456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39460 cat >conftest.$ac_ext <<_ACEOF
39461 /* confdefs.h. */
39462 _ACEOF
39463 cat confdefs.h >>conftest.$ac_ext
39464 cat >>conftest.$ac_ext <<_ACEOF
39465 /* end confdefs.h. */
39466 #include <math.h>
39468 main ()
39470 powf(0, 0);
39472 return 0;
39474 _ACEOF
39475 rm -f conftest.$ac_objext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39477 (eval $ac_compile) 2>conftest.er1
39478 ac_status=$?
39479 grep -v '^ *+' conftest.er1 >conftest.err
39480 rm -f conftest.er1
39481 cat conftest.err >&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); } &&
39484 { ac_try='test -z "$ac_cxx_werror_flag"
39485 || test ! -s conftest.err'
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39488 ac_status=$?
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest.$ac_objext'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39494 ac_status=$?
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497 glibcxx_cv_func_powf_use=yes
39498 else
39499 echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39502 glibcxx_cv_func_powf_use=no
39504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39505 ac_ext=c
39506 ac_cpp='$CPP $CPPFLAGS'
39507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39515 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39516 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39518 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39520 for ac_func in powf
39522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39523 echo "$as_me:$LINENO: checking for $ac_func" >&5
39524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39525 if eval "test \"\${$as_ac_var+set}\" = set"; then
39526 echo $ECHO_N "(cached) $ECHO_C" >&6
39527 else
39528 if test x$gcc_no_link = xyes; then
39529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39531 { (exit 1); exit 1; }; }
39533 cat >conftest.$ac_ext <<_ACEOF
39534 /* confdefs.h. */
39535 _ACEOF
39536 cat confdefs.h >>conftest.$ac_ext
39537 cat >>conftest.$ac_ext <<_ACEOF
39538 /* end confdefs.h. */
39539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39541 #define $ac_func innocuous_$ac_func
39543 /* System header to define __stub macros and hopefully few prototypes,
39544 which can conflict with char $ac_func (); below.
39545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39546 <limits.h> exists even on freestanding compilers. */
39548 #ifdef __STDC__
39549 # include <limits.h>
39550 #else
39551 # include <assert.h>
39552 #endif
39554 #undef $ac_func
39556 /* Override any gcc2 internal prototype to avoid an error. */
39557 #ifdef __cplusplus
39558 extern "C"
39560 #endif
39561 /* We use char because int might match the return type of a gcc2
39562 builtin and then its argument prototype would still apply. */
39563 char $ac_func ();
39564 /* The GNU C library defines this for functions which it implements
39565 to always fail with ENOSYS. Some functions are actually named
39566 something starting with __ and the normal name is an alias. */
39567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39568 choke me
39569 #else
39570 char (*f) () = $ac_func;
39571 #endif
39572 #ifdef __cplusplus
39574 #endif
39577 main ()
39579 return f != $ac_func;
39581 return 0;
39583 _ACEOF
39584 rm -f conftest.$ac_objext conftest$ac_exeext
39585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39586 (eval $ac_link) 2>conftest.er1
39587 ac_status=$?
39588 grep -v '^ *+' conftest.er1 >conftest.err
39589 rm -f conftest.er1
39590 cat conftest.err >&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); } &&
39593 { ac_try='test -z "$ac_c_werror_flag"
39594 || test ! -s conftest.err'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39597 ac_status=$?
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; } &&
39600 { ac_try='test -s conftest$ac_exeext'
39601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602 (eval $ac_try) 2>&5
39603 ac_status=$?
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); }; }; then
39606 eval "$as_ac_var=yes"
39607 else
39608 echo "$as_me: failed program was:" >&5
39609 sed 's/^/| /' conftest.$ac_ext >&5
39611 eval "$as_ac_var=no"
39613 rm -f conftest.err conftest.$ac_objext \
39614 conftest$ac_exeext conftest.$ac_ext
39616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39618 if test `eval echo '${'$as_ac_var'}'` = yes; then
39619 cat >>confdefs.h <<_ACEOF
39620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39621 _ACEOF
39624 done
39626 else
39628 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39629 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39630 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39631 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39632 echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39637 ac_ext=cc
39638 ac_cpp='$CXXCPP $CPPFLAGS'
39639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39643 cat >conftest.$ac_ext <<_ACEOF
39644 /* confdefs.h. */
39645 _ACEOF
39646 cat confdefs.h >>conftest.$ac_ext
39647 cat >>conftest.$ac_ext <<_ACEOF
39648 /* end confdefs.h. */
39649 #include <math.h>
39651 main ()
39653 _powf(0, 0);
39655 return 0;
39657 _ACEOF
39658 rm -f conftest.$ac_objext
39659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39660 (eval $ac_compile) 2>conftest.er1
39661 ac_status=$?
39662 grep -v '^ *+' conftest.er1 >conftest.err
39663 rm -f conftest.er1
39664 cat conftest.err >&5
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); } &&
39667 { ac_try='test -z "$ac_cxx_werror_flag"
39668 || test ! -s conftest.err'
39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670 (eval $ac_try) 2>&5
39671 ac_status=$?
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; } &&
39674 { ac_try='test -s conftest.$ac_objext'
39675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39676 (eval $ac_try) 2>&5
39677 ac_status=$?
39678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679 (exit $ac_status); }; }; then
39680 glibcxx_cv_func__powf_use=yes
39681 else
39682 echo "$as_me: failed program was:" >&5
39683 sed 's/^/| /' conftest.$ac_ext >&5
39685 glibcxx_cv_func__powf_use=no
39687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39688 ac_ext=c
39689 ac_cpp='$CPP $CPPFLAGS'
39690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39698 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39699 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39701 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39703 for ac_func in _powf
39705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39706 echo "$as_me:$LINENO: checking for $ac_func" >&5
39707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39708 if eval "test \"\${$as_ac_var+set}\" = set"; then
39709 echo $ECHO_N "(cached) $ECHO_C" >&6
39710 else
39711 if test x$gcc_no_link = xyes; then
39712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39714 { (exit 1); exit 1; }; }
39716 cat >conftest.$ac_ext <<_ACEOF
39717 /* confdefs.h. */
39718 _ACEOF
39719 cat confdefs.h >>conftest.$ac_ext
39720 cat >>conftest.$ac_ext <<_ACEOF
39721 /* end confdefs.h. */
39722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39724 #define $ac_func innocuous_$ac_func
39726 /* System header to define __stub macros and hopefully few prototypes,
39727 which can conflict with char $ac_func (); below.
39728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39729 <limits.h> exists even on freestanding compilers. */
39731 #ifdef __STDC__
39732 # include <limits.h>
39733 #else
39734 # include <assert.h>
39735 #endif
39737 #undef $ac_func
39739 /* Override any gcc2 internal prototype to avoid an error. */
39740 #ifdef __cplusplus
39741 extern "C"
39743 #endif
39744 /* We use char because int might match the return type of a gcc2
39745 builtin and then its argument prototype would still apply. */
39746 char $ac_func ();
39747 /* The GNU C library defines this for functions which it implements
39748 to always fail with ENOSYS. Some functions are actually named
39749 something starting with __ and the normal name is an alias. */
39750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39751 choke me
39752 #else
39753 char (*f) () = $ac_func;
39754 #endif
39755 #ifdef __cplusplus
39757 #endif
39760 main ()
39762 return f != $ac_func;
39764 return 0;
39766 _ACEOF
39767 rm -f conftest.$ac_objext conftest$ac_exeext
39768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39769 (eval $ac_link) 2>conftest.er1
39770 ac_status=$?
39771 grep -v '^ *+' conftest.er1 >conftest.err
39772 rm -f conftest.er1
39773 cat conftest.err >&5
39774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775 (exit $ac_status); } &&
39776 { ac_try='test -z "$ac_c_werror_flag"
39777 || test ! -s conftest.err'
39778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39779 (eval $ac_try) 2>&5
39780 ac_status=$?
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); }; } &&
39783 { ac_try='test -s conftest$ac_exeext'
39784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785 (eval $ac_try) 2>&5
39786 ac_status=$?
39787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788 (exit $ac_status); }; }; then
39789 eval "$as_ac_var=yes"
39790 else
39791 echo "$as_me: failed program was:" >&5
39792 sed 's/^/| /' conftest.$ac_ext >&5
39794 eval "$as_ac_var=no"
39796 rm -f conftest.err conftest.$ac_objext \
39797 conftest$ac_exeext conftest.$ac_ext
39799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39801 if test `eval echo '${'$as_ac_var'}'` = yes; then
39802 cat >>confdefs.h <<_ACEOF
39803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39804 _ACEOF
39807 done
39814 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39815 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39816 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39817 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39818 echo $ECHO_N "(cached) $ECHO_C" >&6
39819 else
39823 ac_ext=cc
39824 ac_cpp='$CXXCPP $CPPFLAGS'
39825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39829 cat >conftest.$ac_ext <<_ACEOF
39830 /* confdefs.h. */
39831 _ACEOF
39832 cat confdefs.h >>conftest.$ac_ext
39833 cat >>conftest.$ac_ext <<_ACEOF
39834 /* end confdefs.h. */
39835 #include <math.h>
39836 #ifdef HAVE_IEEEFP_H
39837 #include <ieeefp.h>
39838 #endif
39841 main ()
39843 sqrtf(0);
39845 return 0;
39847 _ACEOF
39848 rm -f conftest.$ac_objext
39849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39850 (eval $ac_compile) 2>conftest.er1
39851 ac_status=$?
39852 grep -v '^ *+' conftest.er1 >conftest.err
39853 rm -f conftest.er1
39854 cat conftest.err >&5
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); } &&
39857 { ac_try='test -z "$ac_cxx_werror_flag"
39858 || test ! -s conftest.err'
39859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39860 (eval $ac_try) 2>&5
39861 ac_status=$?
39862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863 (exit $ac_status); }; } &&
39864 { ac_try='test -s conftest.$ac_objext'
39865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39866 (eval $ac_try) 2>&5
39867 ac_status=$?
39868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869 (exit $ac_status); }; }; then
39870 glibcxx_cv_func_sqrtf_use=yes
39871 else
39872 echo "$as_me: failed program was:" >&5
39873 sed 's/^/| /' conftest.$ac_ext >&5
39875 glibcxx_cv_func_sqrtf_use=no
39877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39878 ac_ext=c
39879 ac_cpp='$CPP $CPPFLAGS'
39880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39888 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39889 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39891 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39893 for ac_func in sqrtf
39895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39896 echo "$as_me:$LINENO: checking for $ac_func" >&5
39897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39898 if eval "test \"\${$as_ac_var+set}\" = set"; then
39899 echo $ECHO_N "(cached) $ECHO_C" >&6
39900 else
39901 if test x$gcc_no_link = xyes; then
39902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39904 { (exit 1); exit 1; }; }
39906 cat >conftest.$ac_ext <<_ACEOF
39907 /* confdefs.h. */
39908 _ACEOF
39909 cat confdefs.h >>conftest.$ac_ext
39910 cat >>conftest.$ac_ext <<_ACEOF
39911 /* end confdefs.h. */
39912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39914 #define $ac_func innocuous_$ac_func
39916 /* System header to define __stub macros and hopefully few prototypes,
39917 which can conflict with char $ac_func (); below.
39918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39919 <limits.h> exists even on freestanding compilers. */
39921 #ifdef __STDC__
39922 # include <limits.h>
39923 #else
39924 # include <assert.h>
39925 #endif
39927 #undef $ac_func
39929 /* Override any gcc2 internal prototype to avoid an error. */
39930 #ifdef __cplusplus
39931 extern "C"
39933 #endif
39934 /* We use char because int might match the return type of a gcc2
39935 builtin and then its argument prototype would still apply. */
39936 char $ac_func ();
39937 /* The GNU C library defines this for functions which it implements
39938 to always fail with ENOSYS. Some functions are actually named
39939 something starting with __ and the normal name is an alias. */
39940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39941 choke me
39942 #else
39943 char (*f) () = $ac_func;
39944 #endif
39945 #ifdef __cplusplus
39947 #endif
39950 main ()
39952 return f != $ac_func;
39954 return 0;
39956 _ACEOF
39957 rm -f conftest.$ac_objext conftest$ac_exeext
39958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39959 (eval $ac_link) 2>conftest.er1
39960 ac_status=$?
39961 grep -v '^ *+' conftest.er1 >conftest.err
39962 rm -f conftest.er1
39963 cat conftest.err >&5
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); } &&
39966 { ac_try='test -z "$ac_c_werror_flag"
39967 || test ! -s conftest.err'
39968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969 (eval $ac_try) 2>&5
39970 ac_status=$?
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); }; } &&
39973 { ac_try='test -s conftest$ac_exeext'
39974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975 (eval $ac_try) 2>&5
39976 ac_status=$?
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); }; }; then
39979 eval "$as_ac_var=yes"
39980 else
39981 echo "$as_me: failed program was:" >&5
39982 sed 's/^/| /' conftest.$ac_ext >&5
39984 eval "$as_ac_var=no"
39986 rm -f conftest.err conftest.$ac_objext \
39987 conftest$ac_exeext conftest.$ac_ext
39989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39991 if test `eval echo '${'$as_ac_var'}'` = yes; then
39992 cat >>confdefs.h <<_ACEOF
39993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39994 _ACEOF
39997 done
39999 else
40001 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
40002 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
40003 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
40004 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
40005 echo $ECHO_N "(cached) $ECHO_C" >&6
40006 else
40010 ac_ext=cc
40011 ac_cpp='$CXXCPP $CPPFLAGS'
40012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40016 cat >conftest.$ac_ext <<_ACEOF
40017 /* confdefs.h. */
40018 _ACEOF
40019 cat confdefs.h >>conftest.$ac_ext
40020 cat >>conftest.$ac_ext <<_ACEOF
40021 /* end confdefs.h. */
40022 #include <math.h>
40023 #ifdef HAVE_IEEEFP_H
40024 #include <ieeefp.h>
40025 #endif
40028 main ()
40030 _sqrtf(0);
40032 return 0;
40034 _ACEOF
40035 rm -f conftest.$ac_objext
40036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40037 (eval $ac_compile) 2>conftest.er1
40038 ac_status=$?
40039 grep -v '^ *+' conftest.er1 >conftest.err
40040 rm -f conftest.er1
40041 cat conftest.err >&5
40042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40043 (exit $ac_status); } &&
40044 { ac_try='test -z "$ac_cxx_werror_flag"
40045 || test ! -s conftest.err'
40046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40047 (eval $ac_try) 2>&5
40048 ac_status=$?
40049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050 (exit $ac_status); }; } &&
40051 { ac_try='test -s conftest.$ac_objext'
40052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40053 (eval $ac_try) 2>&5
40054 ac_status=$?
40055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40056 (exit $ac_status); }; }; then
40057 glibcxx_cv_func__sqrtf_use=yes
40058 else
40059 echo "$as_me: failed program was:" >&5
40060 sed 's/^/| /' conftest.$ac_ext >&5
40062 glibcxx_cv_func__sqrtf_use=no
40064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40065 ac_ext=c
40066 ac_cpp='$CPP $CPPFLAGS'
40067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40075 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40076 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40078 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40080 for ac_func in _sqrtf
40082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40083 echo "$as_me:$LINENO: checking for $ac_func" >&5
40084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40085 if eval "test \"\${$as_ac_var+set}\" = set"; then
40086 echo $ECHO_N "(cached) $ECHO_C" >&6
40087 else
40088 if test x$gcc_no_link = xyes; then
40089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40091 { (exit 1); exit 1; }; }
40093 cat >conftest.$ac_ext <<_ACEOF
40094 /* confdefs.h. */
40095 _ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h. */
40099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40101 #define $ac_func innocuous_$ac_func
40103 /* System header to define __stub macros and hopefully few prototypes,
40104 which can conflict with char $ac_func (); below.
40105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40106 <limits.h> exists even on freestanding compilers. */
40108 #ifdef __STDC__
40109 # include <limits.h>
40110 #else
40111 # include <assert.h>
40112 #endif
40114 #undef $ac_func
40116 /* Override any gcc2 internal prototype to avoid an error. */
40117 #ifdef __cplusplus
40118 extern "C"
40120 #endif
40121 /* We use char because int might match the return type of a gcc2
40122 builtin and then its argument prototype would still apply. */
40123 char $ac_func ();
40124 /* The GNU C library defines this for functions which it implements
40125 to always fail with ENOSYS. Some functions are actually named
40126 something starting with __ and the normal name is an alias. */
40127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40128 choke me
40129 #else
40130 char (*f) () = $ac_func;
40131 #endif
40132 #ifdef __cplusplus
40134 #endif
40137 main ()
40139 return f != $ac_func;
40141 return 0;
40143 _ACEOF
40144 rm -f conftest.$ac_objext conftest$ac_exeext
40145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40146 (eval $ac_link) 2>conftest.er1
40147 ac_status=$?
40148 grep -v '^ *+' conftest.er1 >conftest.err
40149 rm -f conftest.er1
40150 cat conftest.err >&5
40151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40152 (exit $ac_status); } &&
40153 { ac_try='test -z "$ac_c_werror_flag"
40154 || test ! -s conftest.err'
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; } &&
40160 { ac_try='test -s conftest$ac_exeext'
40161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40162 (eval $ac_try) 2>&5
40163 ac_status=$?
40164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165 (exit $ac_status); }; }; then
40166 eval "$as_ac_var=yes"
40167 else
40168 echo "$as_me: failed program was:" >&5
40169 sed 's/^/| /' conftest.$ac_ext >&5
40171 eval "$as_ac_var=no"
40173 rm -f conftest.err conftest.$ac_objext \
40174 conftest$ac_exeext conftest.$ac_ext
40176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40178 if test `eval echo '${'$as_ac_var'}'` = yes; then
40179 cat >>confdefs.h <<_ACEOF
40180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40181 _ACEOF
40184 done
40191 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40192 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40193 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40194 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40195 echo $ECHO_N "(cached) $ECHO_C" >&6
40196 else
40200 ac_ext=cc
40201 ac_cpp='$CXXCPP $CPPFLAGS'
40202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40206 cat >conftest.$ac_ext <<_ACEOF
40207 /* confdefs.h. */
40208 _ACEOF
40209 cat confdefs.h >>conftest.$ac_ext
40210 cat >>conftest.$ac_ext <<_ACEOF
40211 /* end confdefs.h. */
40212 #include <math.h>
40214 main ()
40216 sincosf(0, 0, 0);
40218 return 0;
40220 _ACEOF
40221 rm -f conftest.$ac_objext
40222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40223 (eval $ac_compile) 2>conftest.er1
40224 ac_status=$?
40225 grep -v '^ *+' conftest.er1 >conftest.err
40226 rm -f conftest.er1
40227 cat conftest.err >&5
40228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229 (exit $ac_status); } &&
40230 { ac_try='test -z "$ac_cxx_werror_flag"
40231 || test ! -s conftest.err'
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40234 ac_status=$?
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; } &&
40237 { ac_try='test -s conftest.$ac_objext'
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40240 ac_status=$?
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; }; then
40243 glibcxx_cv_func_sincosf_use=yes
40244 else
40245 echo "$as_me: failed program was:" >&5
40246 sed 's/^/| /' conftest.$ac_ext >&5
40248 glibcxx_cv_func_sincosf_use=no
40250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40251 ac_ext=c
40252 ac_cpp='$CPP $CPPFLAGS'
40253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40261 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40262 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40264 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40266 for ac_func in sincosf
40268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40269 echo "$as_me:$LINENO: checking for $ac_func" >&5
40270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40271 if eval "test \"\${$as_ac_var+set}\" = set"; then
40272 echo $ECHO_N "(cached) $ECHO_C" >&6
40273 else
40274 if test x$gcc_no_link = xyes; then
40275 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40277 { (exit 1); exit 1; }; }
40279 cat >conftest.$ac_ext <<_ACEOF
40280 /* confdefs.h. */
40281 _ACEOF
40282 cat confdefs.h >>conftest.$ac_ext
40283 cat >>conftest.$ac_ext <<_ACEOF
40284 /* end confdefs.h. */
40285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40287 #define $ac_func innocuous_$ac_func
40289 /* System header to define __stub macros and hopefully few prototypes,
40290 which can conflict with char $ac_func (); below.
40291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40292 <limits.h> exists even on freestanding compilers. */
40294 #ifdef __STDC__
40295 # include <limits.h>
40296 #else
40297 # include <assert.h>
40298 #endif
40300 #undef $ac_func
40302 /* Override any gcc2 internal prototype to avoid an error. */
40303 #ifdef __cplusplus
40304 extern "C"
40306 #endif
40307 /* We use char because int might match the return type of a gcc2
40308 builtin and then its argument prototype would still apply. */
40309 char $ac_func ();
40310 /* The GNU C library defines this for functions which it implements
40311 to always fail with ENOSYS. Some functions are actually named
40312 something starting with __ and the normal name is an alias. */
40313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40314 choke me
40315 #else
40316 char (*f) () = $ac_func;
40317 #endif
40318 #ifdef __cplusplus
40320 #endif
40323 main ()
40325 return f != $ac_func;
40327 return 0;
40329 _ACEOF
40330 rm -f conftest.$ac_objext conftest$ac_exeext
40331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40332 (eval $ac_link) 2>conftest.er1
40333 ac_status=$?
40334 grep -v '^ *+' conftest.er1 >conftest.err
40335 rm -f conftest.er1
40336 cat conftest.err >&5
40337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338 (exit $ac_status); } &&
40339 { ac_try='test -z "$ac_c_werror_flag"
40340 || test ! -s conftest.err'
40341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; } &&
40346 { ac_try='test -s conftest$ac_exeext'
40347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40348 (eval $ac_try) 2>&5
40349 ac_status=$?
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); }; }; then
40352 eval "$as_ac_var=yes"
40353 else
40354 echo "$as_me: failed program was:" >&5
40355 sed 's/^/| /' conftest.$ac_ext >&5
40357 eval "$as_ac_var=no"
40359 rm -f conftest.err conftest.$ac_objext \
40360 conftest$ac_exeext conftest.$ac_ext
40362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40364 if test `eval echo '${'$as_ac_var'}'` = yes; then
40365 cat >>confdefs.h <<_ACEOF
40366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40367 _ACEOF
40370 done
40372 else
40374 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40375 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40376 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40377 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40378 echo $ECHO_N "(cached) $ECHO_C" >&6
40379 else
40383 ac_ext=cc
40384 ac_cpp='$CXXCPP $CPPFLAGS'
40385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40389 cat >conftest.$ac_ext <<_ACEOF
40390 /* confdefs.h. */
40391 _ACEOF
40392 cat confdefs.h >>conftest.$ac_ext
40393 cat >>conftest.$ac_ext <<_ACEOF
40394 /* end confdefs.h. */
40395 #include <math.h>
40397 main ()
40399 _sincosf(0, 0, 0);
40401 return 0;
40403 _ACEOF
40404 rm -f conftest.$ac_objext
40405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40406 (eval $ac_compile) 2>conftest.er1
40407 ac_status=$?
40408 grep -v '^ *+' conftest.er1 >conftest.err
40409 rm -f conftest.er1
40410 cat conftest.err >&5
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); } &&
40413 { ac_try='test -z "$ac_cxx_werror_flag"
40414 || test ! -s conftest.err'
40415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40416 (eval $ac_try) 2>&5
40417 ac_status=$?
40418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419 (exit $ac_status); }; } &&
40420 { ac_try='test -s conftest.$ac_objext'
40421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40422 (eval $ac_try) 2>&5
40423 ac_status=$?
40424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425 (exit $ac_status); }; }; then
40426 glibcxx_cv_func__sincosf_use=yes
40427 else
40428 echo "$as_me: failed program was:" >&5
40429 sed 's/^/| /' conftest.$ac_ext >&5
40431 glibcxx_cv_func__sincosf_use=no
40433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40434 ac_ext=c
40435 ac_cpp='$CPP $CPPFLAGS'
40436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40444 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40445 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40447 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40449 for ac_func in _sincosf
40451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40452 echo "$as_me:$LINENO: checking for $ac_func" >&5
40453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40454 if eval "test \"\${$as_ac_var+set}\" = set"; then
40455 echo $ECHO_N "(cached) $ECHO_C" >&6
40456 else
40457 if test x$gcc_no_link = xyes; then
40458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40460 { (exit 1); exit 1; }; }
40462 cat >conftest.$ac_ext <<_ACEOF
40463 /* confdefs.h. */
40464 _ACEOF
40465 cat confdefs.h >>conftest.$ac_ext
40466 cat >>conftest.$ac_ext <<_ACEOF
40467 /* end confdefs.h. */
40468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40470 #define $ac_func innocuous_$ac_func
40472 /* System header to define __stub macros and hopefully few prototypes,
40473 which can conflict with char $ac_func (); below.
40474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40475 <limits.h> exists even on freestanding compilers. */
40477 #ifdef __STDC__
40478 # include <limits.h>
40479 #else
40480 # include <assert.h>
40481 #endif
40483 #undef $ac_func
40485 /* Override any gcc2 internal prototype to avoid an error. */
40486 #ifdef __cplusplus
40487 extern "C"
40489 #endif
40490 /* We use char because int might match the return type of a gcc2
40491 builtin and then its argument prototype would still apply. */
40492 char $ac_func ();
40493 /* The GNU C library defines this for functions which it implements
40494 to always fail with ENOSYS. Some functions are actually named
40495 something starting with __ and the normal name is an alias. */
40496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40497 choke me
40498 #else
40499 char (*f) () = $ac_func;
40500 #endif
40501 #ifdef __cplusplus
40503 #endif
40506 main ()
40508 return f != $ac_func;
40510 return 0;
40512 _ACEOF
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40515 (eval $ac_link) 2>conftest.er1
40516 ac_status=$?
40517 grep -v '^ *+' conftest.er1 >conftest.err
40518 rm -f conftest.er1
40519 cat conftest.err >&5
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); } &&
40522 { ac_try='test -z "$ac_c_werror_flag"
40523 || test ! -s conftest.err'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40526 ac_status=$?
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; } &&
40529 { ac_try='test -s conftest$ac_exeext'
40530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531 (eval $ac_try) 2>&5
40532 ac_status=$?
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); }; }; then
40535 eval "$as_ac_var=yes"
40536 else
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40540 eval "$as_ac_var=no"
40542 rm -f conftest.err conftest.$ac_objext \
40543 conftest$ac_exeext conftest.$ac_ext
40545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40547 if test `eval echo '${'$as_ac_var'}'` = yes; then
40548 cat >>confdefs.h <<_ACEOF
40549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40550 _ACEOF
40553 done
40560 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40561 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40562 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40563 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40564 echo $ECHO_N "(cached) $ECHO_C" >&6
40565 else
40569 ac_ext=cc
40570 ac_cpp='$CXXCPP $CPPFLAGS'
40571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40575 cat >conftest.$ac_ext <<_ACEOF
40576 /* confdefs.h. */
40577 _ACEOF
40578 cat confdefs.h >>conftest.$ac_ext
40579 cat >>conftest.$ac_ext <<_ACEOF
40580 /* end confdefs.h. */
40581 #include <math.h>
40582 #ifdef HAVE_IEEEFP_H
40583 #include <ieeefp.h>
40584 #endif
40587 main ()
40589 finitef(0);
40591 return 0;
40593 _ACEOF
40594 rm -f conftest.$ac_objext
40595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40596 (eval $ac_compile) 2>conftest.er1
40597 ac_status=$?
40598 grep -v '^ *+' conftest.er1 >conftest.err
40599 rm -f conftest.er1
40600 cat conftest.err >&5
40601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602 (exit $ac_status); } &&
40603 { ac_try='test -z "$ac_cxx_werror_flag"
40604 || test ! -s conftest.err'
40605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40606 (eval $ac_try) 2>&5
40607 ac_status=$?
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); }; } &&
40610 { ac_try='test -s conftest.$ac_objext'
40611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40612 (eval $ac_try) 2>&5
40613 ac_status=$?
40614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615 (exit $ac_status); }; }; then
40616 glibcxx_cv_func_finitef_use=yes
40617 else
40618 echo "$as_me: failed program was:" >&5
40619 sed 's/^/| /' conftest.$ac_ext >&5
40621 glibcxx_cv_func_finitef_use=no
40623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40624 ac_ext=c
40625 ac_cpp='$CPP $CPPFLAGS'
40626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40634 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40635 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40637 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40639 for ac_func in finitef
40641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40642 echo "$as_me:$LINENO: checking for $ac_func" >&5
40643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40644 if eval "test \"\${$as_ac_var+set}\" = set"; then
40645 echo $ECHO_N "(cached) $ECHO_C" >&6
40646 else
40647 if test x$gcc_no_link = xyes; then
40648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40650 { (exit 1); exit 1; }; }
40652 cat >conftest.$ac_ext <<_ACEOF
40653 /* confdefs.h. */
40654 _ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h. */
40658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40660 #define $ac_func innocuous_$ac_func
40662 /* System header to define __stub macros and hopefully few prototypes,
40663 which can conflict with char $ac_func (); below.
40664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40665 <limits.h> exists even on freestanding compilers. */
40667 #ifdef __STDC__
40668 # include <limits.h>
40669 #else
40670 # include <assert.h>
40671 #endif
40673 #undef $ac_func
40675 /* Override any gcc2 internal prototype to avoid an error. */
40676 #ifdef __cplusplus
40677 extern "C"
40679 #endif
40680 /* We use char because int might match the return type of a gcc2
40681 builtin and then its argument prototype would still apply. */
40682 char $ac_func ();
40683 /* The GNU C library defines this for functions which it implements
40684 to always fail with ENOSYS. Some functions are actually named
40685 something starting with __ and the normal name is an alias. */
40686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40687 choke me
40688 #else
40689 char (*f) () = $ac_func;
40690 #endif
40691 #ifdef __cplusplus
40693 #endif
40696 main ()
40698 return f != $ac_func;
40700 return 0;
40702 _ACEOF
40703 rm -f conftest.$ac_objext conftest$ac_exeext
40704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40705 (eval $ac_link) 2>conftest.er1
40706 ac_status=$?
40707 grep -v '^ *+' conftest.er1 >conftest.err
40708 rm -f conftest.er1
40709 cat conftest.err >&5
40710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711 (exit $ac_status); } &&
40712 { ac_try='test -z "$ac_c_werror_flag"
40713 || test ! -s conftest.err'
40714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40715 (eval $ac_try) 2>&5
40716 ac_status=$?
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); }; } &&
40719 { ac_try='test -s conftest$ac_exeext'
40720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721 (eval $ac_try) 2>&5
40722 ac_status=$?
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); }; }; then
40725 eval "$as_ac_var=yes"
40726 else
40727 echo "$as_me: failed program was:" >&5
40728 sed 's/^/| /' conftest.$ac_ext >&5
40730 eval "$as_ac_var=no"
40732 rm -f conftest.err conftest.$ac_objext \
40733 conftest$ac_exeext conftest.$ac_ext
40735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40737 if test `eval echo '${'$as_ac_var'}'` = yes; then
40738 cat >>confdefs.h <<_ACEOF
40739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40740 _ACEOF
40743 done
40745 else
40747 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40748 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40749 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40750 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40751 echo $ECHO_N "(cached) $ECHO_C" >&6
40752 else
40756 ac_ext=cc
40757 ac_cpp='$CXXCPP $CPPFLAGS'
40758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40762 cat >conftest.$ac_ext <<_ACEOF
40763 /* confdefs.h. */
40764 _ACEOF
40765 cat confdefs.h >>conftest.$ac_ext
40766 cat >>conftest.$ac_ext <<_ACEOF
40767 /* end confdefs.h. */
40768 #include <math.h>
40769 #ifdef HAVE_IEEEFP_H
40770 #include <ieeefp.h>
40771 #endif
40774 main ()
40776 _finitef(0);
40778 return 0;
40780 _ACEOF
40781 rm -f conftest.$ac_objext
40782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40783 (eval $ac_compile) 2>conftest.er1
40784 ac_status=$?
40785 grep -v '^ *+' conftest.er1 >conftest.err
40786 rm -f conftest.er1
40787 cat conftest.err >&5
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); } &&
40790 { ac_try='test -z "$ac_cxx_werror_flag"
40791 || test ! -s conftest.err'
40792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40793 (eval $ac_try) 2>&5
40794 ac_status=$?
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); }; } &&
40797 { ac_try='test -s conftest.$ac_objext'
40798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40799 (eval $ac_try) 2>&5
40800 ac_status=$?
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); }; }; then
40803 glibcxx_cv_func__finitef_use=yes
40804 else
40805 echo "$as_me: failed program was:" >&5
40806 sed 's/^/| /' conftest.$ac_ext >&5
40808 glibcxx_cv_func__finitef_use=no
40810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40811 ac_ext=c
40812 ac_cpp='$CPP $CPPFLAGS'
40813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40821 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40822 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40824 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40826 for ac_func in _finitef
40828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40829 echo "$as_me:$LINENO: checking for $ac_func" >&5
40830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40831 if eval "test \"\${$as_ac_var+set}\" = set"; then
40832 echo $ECHO_N "(cached) $ECHO_C" >&6
40833 else
40834 if test x$gcc_no_link = xyes; then
40835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40837 { (exit 1); exit 1; }; }
40839 cat >conftest.$ac_ext <<_ACEOF
40840 /* confdefs.h. */
40841 _ACEOF
40842 cat confdefs.h >>conftest.$ac_ext
40843 cat >>conftest.$ac_ext <<_ACEOF
40844 /* end confdefs.h. */
40845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40847 #define $ac_func innocuous_$ac_func
40849 /* System header to define __stub macros and hopefully few prototypes,
40850 which can conflict with char $ac_func (); below.
40851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40852 <limits.h> exists even on freestanding compilers. */
40854 #ifdef __STDC__
40855 # include <limits.h>
40856 #else
40857 # include <assert.h>
40858 #endif
40860 #undef $ac_func
40862 /* Override any gcc2 internal prototype to avoid an error. */
40863 #ifdef __cplusplus
40864 extern "C"
40866 #endif
40867 /* We use char because int might match the return type of a gcc2
40868 builtin and then its argument prototype would still apply. */
40869 char $ac_func ();
40870 /* The GNU C library defines this for functions which it implements
40871 to always fail with ENOSYS. Some functions are actually named
40872 something starting with __ and the normal name is an alias. */
40873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40874 choke me
40875 #else
40876 char (*f) () = $ac_func;
40877 #endif
40878 #ifdef __cplusplus
40880 #endif
40883 main ()
40885 return f != $ac_func;
40887 return 0;
40889 _ACEOF
40890 rm -f conftest.$ac_objext conftest$ac_exeext
40891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40892 (eval $ac_link) 2>conftest.er1
40893 ac_status=$?
40894 grep -v '^ *+' conftest.er1 >conftest.err
40895 rm -f conftest.er1
40896 cat conftest.err >&5
40897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 (exit $ac_status); } &&
40899 { ac_try='test -z "$ac_c_werror_flag"
40900 || test ! -s conftest.err'
40901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40902 (eval $ac_try) 2>&5
40903 ac_status=$?
40904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40905 (exit $ac_status); }; } &&
40906 { ac_try='test -s conftest$ac_exeext'
40907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40908 (eval $ac_try) 2>&5
40909 ac_status=$?
40910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40911 (exit $ac_status); }; }; then
40912 eval "$as_ac_var=yes"
40913 else
40914 echo "$as_me: failed program was:" >&5
40915 sed 's/^/| /' conftest.$ac_ext >&5
40917 eval "$as_ac_var=no"
40919 rm -f conftest.err conftest.$ac_objext \
40920 conftest$ac_exeext conftest.$ac_ext
40922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40924 if test `eval echo '${'$as_ac_var'}'` = yes; then
40925 cat >>confdefs.h <<_ACEOF
40926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40927 _ACEOF
40930 done
40937 echo "$as_me:$LINENO: checking for long double trig functions" >&5
40938 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40939 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40940 echo $ECHO_N "(cached) $ECHO_C" >&6
40941 else
40945 ac_ext=cc
40946 ac_cpp='$CXXCPP $CPPFLAGS'
40947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40951 cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h. */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h. */
40957 #include <math.h>
40959 main ()
40961 `for x in acosl asinl atanl \
40962 cosl sinl tanl \
40963 coshl sinhl tanhl; do echo "$x (0);"; done`
40965 return 0;
40967 _ACEOF
40968 rm -f conftest.$ac_objext
40969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40970 (eval $ac_compile) 2>conftest.er1
40971 ac_status=$?
40972 grep -v '^ *+' conftest.er1 >conftest.err
40973 rm -f conftest.er1
40974 cat conftest.err >&5
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); } &&
40977 { ac_try='test -z "$ac_cxx_werror_flag"
40978 || test ! -s conftest.err'
40979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980 (eval $ac_try) 2>&5
40981 ac_status=$?
40982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983 (exit $ac_status); }; } &&
40984 { ac_try='test -s conftest.$ac_objext'
40985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40986 (eval $ac_try) 2>&5
40987 ac_status=$?
40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989 (exit $ac_status); }; }; then
40990 glibcxx_cv_func_long_double_trig_use=yes
40991 else
40992 echo "$as_me: failed program was:" >&5
40993 sed 's/^/| /' conftest.$ac_ext >&5
40995 glibcxx_cv_func_long_double_trig_use=no
40997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40998 ac_ext=c
40999 ac_cpp='$CPP $CPPFLAGS'
41000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41006 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
41007 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
41008 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
41018 for ac_func in acosl asinl atanl \
41019 cosl sinl tanl \
41020 coshl sinhl tanhl
41022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41023 echo "$as_me:$LINENO: checking for $ac_func" >&5
41024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41025 if eval "test \"\${$as_ac_var+set}\" = set"; then
41026 echo $ECHO_N "(cached) $ECHO_C" >&6
41027 else
41028 if test x$gcc_no_link = xyes; then
41029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41031 { (exit 1); exit 1; }; }
41033 cat >conftest.$ac_ext <<_ACEOF
41034 /* confdefs.h. */
41035 _ACEOF
41036 cat confdefs.h >>conftest.$ac_ext
41037 cat >>conftest.$ac_ext <<_ACEOF
41038 /* end confdefs.h. */
41039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41041 #define $ac_func innocuous_$ac_func
41043 /* System header to define __stub macros and hopefully few prototypes,
41044 which can conflict with char $ac_func (); below.
41045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41046 <limits.h> exists even on freestanding compilers. */
41048 #ifdef __STDC__
41049 # include <limits.h>
41050 #else
41051 # include <assert.h>
41052 #endif
41054 #undef $ac_func
41056 /* Override any gcc2 internal prototype to avoid an error. */
41057 #ifdef __cplusplus
41058 extern "C"
41060 #endif
41061 /* We use char because int might match the return type of a gcc2
41062 builtin and then its argument prototype would still apply. */
41063 char $ac_func ();
41064 /* The GNU C library defines this for functions which it implements
41065 to always fail with ENOSYS. Some functions are actually named
41066 something starting with __ and the normal name is an alias. */
41067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41068 choke me
41069 #else
41070 char (*f) () = $ac_func;
41071 #endif
41072 #ifdef __cplusplus
41074 #endif
41077 main ()
41079 return f != $ac_func;
41081 return 0;
41083 _ACEOF
41084 rm -f conftest.$ac_objext conftest$ac_exeext
41085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41086 (eval $ac_link) 2>conftest.er1
41087 ac_status=$?
41088 grep -v '^ *+' conftest.er1 >conftest.err
41089 rm -f conftest.er1
41090 cat conftest.err >&5
41091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41092 (exit $ac_status); } &&
41093 { ac_try='test -z "$ac_c_werror_flag"
41094 || test ! -s conftest.err'
41095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41096 (eval $ac_try) 2>&5
41097 ac_status=$?
41098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099 (exit $ac_status); }; } &&
41100 { ac_try='test -s conftest$ac_exeext'
41101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41102 (eval $ac_try) 2>&5
41103 ac_status=$?
41104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41105 (exit $ac_status); }; }; then
41106 eval "$as_ac_var=yes"
41107 else
41108 echo "$as_me: failed program was:" >&5
41109 sed 's/^/| /' conftest.$ac_ext >&5
41111 eval "$as_ac_var=no"
41113 rm -f conftest.err conftest.$ac_objext \
41114 conftest$ac_exeext conftest.$ac_ext
41116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41118 if test `eval echo '${'$as_ac_var'}'` = yes; then
41119 cat >>confdefs.h <<_ACEOF
41120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41121 _ACEOF
41124 done
41129 echo "$as_me:$LINENO: checking for long double round functions" >&5
41130 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41131 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41132 echo $ECHO_N "(cached) $ECHO_C" >&6
41133 else
41137 ac_ext=cc
41138 ac_cpp='$CXXCPP $CPPFLAGS'
41139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41143 cat >conftest.$ac_ext <<_ACEOF
41144 /* confdefs.h. */
41145 _ACEOF
41146 cat confdefs.h >>conftest.$ac_ext
41147 cat >>conftest.$ac_ext <<_ACEOF
41148 /* end confdefs.h. */
41149 #include <math.h>
41151 main ()
41153 `for x in ceill floorl; do echo "$x (0);"; done`
41155 return 0;
41157 _ACEOF
41158 rm -f conftest.$ac_objext
41159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41160 (eval $ac_compile) 2>conftest.er1
41161 ac_status=$?
41162 grep -v '^ *+' conftest.er1 >conftest.err
41163 rm -f conftest.er1
41164 cat conftest.err >&5
41165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41166 (exit $ac_status); } &&
41167 { ac_try='test -z "$ac_cxx_werror_flag"
41168 || test ! -s conftest.err'
41169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41170 (eval $ac_try) 2>&5
41171 ac_status=$?
41172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); }; } &&
41174 { ac_try='test -s conftest.$ac_objext'
41175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41176 (eval $ac_try) 2>&5
41177 ac_status=$?
41178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41179 (exit $ac_status); }; }; then
41180 glibcxx_cv_func_long_double_round_use=yes
41181 else
41182 echo "$as_me: failed program was:" >&5
41183 sed 's/^/| /' conftest.$ac_ext >&5
41185 glibcxx_cv_func_long_double_round_use=no
41187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41188 ac_ext=c
41189 ac_cpp='$CPP $CPPFLAGS'
41190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41196 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41197 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41198 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41201 for ac_func in ceill floorl
41203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41204 echo "$as_me:$LINENO: checking for $ac_func" >&5
41205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41206 if eval "test \"\${$as_ac_var+set}\" = set"; then
41207 echo $ECHO_N "(cached) $ECHO_C" >&6
41208 else
41209 if test x$gcc_no_link = xyes; then
41210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41212 { (exit 1); exit 1; }; }
41214 cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h. */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h. */
41220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41222 #define $ac_func innocuous_$ac_func
41224 /* System header to define __stub macros and hopefully few prototypes,
41225 which can conflict with char $ac_func (); below.
41226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41227 <limits.h> exists even on freestanding compilers. */
41229 #ifdef __STDC__
41230 # include <limits.h>
41231 #else
41232 # include <assert.h>
41233 #endif
41235 #undef $ac_func
41237 /* Override any gcc2 internal prototype to avoid an error. */
41238 #ifdef __cplusplus
41239 extern "C"
41241 #endif
41242 /* We use char because int might match the return type of a gcc2
41243 builtin and then its argument prototype would still apply. */
41244 char $ac_func ();
41245 /* The GNU C library defines this for functions which it implements
41246 to always fail with ENOSYS. Some functions are actually named
41247 something starting with __ and the normal name is an alias. */
41248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41249 choke me
41250 #else
41251 char (*f) () = $ac_func;
41252 #endif
41253 #ifdef __cplusplus
41255 #endif
41258 main ()
41260 return f != $ac_func;
41262 return 0;
41264 _ACEOF
41265 rm -f conftest.$ac_objext conftest$ac_exeext
41266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41267 (eval $ac_link) 2>conftest.er1
41268 ac_status=$?
41269 grep -v '^ *+' conftest.er1 >conftest.err
41270 rm -f conftest.er1
41271 cat conftest.err >&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); } &&
41274 { ac_try='test -z "$ac_c_werror_flag"
41275 || test ! -s conftest.err'
41276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41277 (eval $ac_try) 2>&5
41278 ac_status=$?
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); }; } &&
41281 { ac_try='test -s conftest$ac_exeext'
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41284 ac_status=$?
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; }; then
41287 eval "$as_ac_var=yes"
41288 else
41289 echo "$as_me: failed program was:" >&5
41290 sed 's/^/| /' conftest.$ac_ext >&5
41292 eval "$as_ac_var=no"
41294 rm -f conftest.err conftest.$ac_objext \
41295 conftest$ac_exeext conftest.$ac_ext
41297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41299 if test `eval echo '${'$as_ac_var'}'` = yes; then
41300 cat >>confdefs.h <<_ACEOF
41301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41302 _ACEOF
41305 done
41311 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41312 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41313 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41314 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41315 echo $ECHO_N "(cached) $ECHO_C" >&6
41316 else
41320 ac_ext=cc
41321 ac_cpp='$CXXCPP $CPPFLAGS'
41322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41326 cat >conftest.$ac_ext <<_ACEOF
41327 /* confdefs.h. */
41328 _ACEOF
41329 cat confdefs.h >>conftest.$ac_ext
41330 cat >>conftest.$ac_ext <<_ACEOF
41331 /* end confdefs.h. */
41332 #include <math.h>
41333 #ifdef HAVE_IEEEFP_H
41334 #include <ieeefp.h>
41335 #endif
41338 main ()
41340 isnanl(0);
41342 return 0;
41344 _ACEOF
41345 rm -f conftest.$ac_objext
41346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41347 (eval $ac_compile) 2>conftest.er1
41348 ac_status=$?
41349 grep -v '^ *+' conftest.er1 >conftest.err
41350 rm -f conftest.er1
41351 cat conftest.err >&5
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); } &&
41354 { ac_try='test -z "$ac_cxx_werror_flag"
41355 || test ! -s conftest.err'
41356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41357 (eval $ac_try) 2>&5
41358 ac_status=$?
41359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41360 (exit $ac_status); }; } &&
41361 { ac_try='test -s conftest.$ac_objext'
41362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41363 (eval $ac_try) 2>&5
41364 ac_status=$?
41365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366 (exit $ac_status); }; }; then
41367 glibcxx_cv_func_isnanl_use=yes
41368 else
41369 echo "$as_me: failed program was:" >&5
41370 sed 's/^/| /' conftest.$ac_ext >&5
41372 glibcxx_cv_func_isnanl_use=no
41374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41375 ac_ext=c
41376 ac_cpp='$CPP $CPPFLAGS'
41377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41385 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41386 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41388 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41390 for ac_func in isnanl
41392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41393 echo "$as_me:$LINENO: checking for $ac_func" >&5
41394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41395 if eval "test \"\${$as_ac_var+set}\" = set"; then
41396 echo $ECHO_N "(cached) $ECHO_C" >&6
41397 else
41398 if test x$gcc_no_link = xyes; then
41399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41401 { (exit 1); exit 1; }; }
41403 cat >conftest.$ac_ext <<_ACEOF
41404 /* confdefs.h. */
41405 _ACEOF
41406 cat confdefs.h >>conftest.$ac_ext
41407 cat >>conftest.$ac_ext <<_ACEOF
41408 /* end confdefs.h. */
41409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41411 #define $ac_func innocuous_$ac_func
41413 /* System header to define __stub macros and hopefully few prototypes,
41414 which can conflict with char $ac_func (); below.
41415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41416 <limits.h> exists even on freestanding compilers. */
41418 #ifdef __STDC__
41419 # include <limits.h>
41420 #else
41421 # include <assert.h>
41422 #endif
41424 #undef $ac_func
41426 /* Override any gcc2 internal prototype to avoid an error. */
41427 #ifdef __cplusplus
41428 extern "C"
41430 #endif
41431 /* We use char because int might match the return type of a gcc2
41432 builtin and then its argument prototype would still apply. */
41433 char $ac_func ();
41434 /* The GNU C library defines this for functions which it implements
41435 to always fail with ENOSYS. Some functions are actually named
41436 something starting with __ and the normal name is an alias. */
41437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41438 choke me
41439 #else
41440 char (*f) () = $ac_func;
41441 #endif
41442 #ifdef __cplusplus
41444 #endif
41447 main ()
41449 return f != $ac_func;
41451 return 0;
41453 _ACEOF
41454 rm -f conftest.$ac_objext conftest$ac_exeext
41455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41456 (eval $ac_link) 2>conftest.er1
41457 ac_status=$?
41458 grep -v '^ *+' conftest.er1 >conftest.err
41459 rm -f conftest.er1
41460 cat conftest.err >&5
41461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41462 (exit $ac_status); } &&
41463 { ac_try='test -z "$ac_c_werror_flag"
41464 || test ! -s conftest.err'
41465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41466 (eval $ac_try) 2>&5
41467 ac_status=$?
41468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469 (exit $ac_status); }; } &&
41470 { ac_try='test -s conftest$ac_exeext'
41471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41472 (eval $ac_try) 2>&5
41473 ac_status=$?
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); }; }; then
41476 eval "$as_ac_var=yes"
41477 else
41478 echo "$as_me: failed program was:" >&5
41479 sed 's/^/| /' conftest.$ac_ext >&5
41481 eval "$as_ac_var=no"
41483 rm -f conftest.err conftest.$ac_objext \
41484 conftest$ac_exeext conftest.$ac_ext
41486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41488 if test `eval echo '${'$as_ac_var'}'` = yes; then
41489 cat >>confdefs.h <<_ACEOF
41490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41491 _ACEOF
41494 done
41496 else
41498 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41499 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41500 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41501 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41502 echo $ECHO_N "(cached) $ECHO_C" >&6
41503 else
41507 ac_ext=cc
41508 ac_cpp='$CXXCPP $CPPFLAGS'
41509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41513 cat >conftest.$ac_ext <<_ACEOF
41514 /* confdefs.h. */
41515 _ACEOF
41516 cat confdefs.h >>conftest.$ac_ext
41517 cat >>conftest.$ac_ext <<_ACEOF
41518 /* end confdefs.h. */
41519 #include <math.h>
41520 #ifdef HAVE_IEEEFP_H
41521 #include <ieeefp.h>
41522 #endif
41525 main ()
41527 _isnanl(0);
41529 return 0;
41531 _ACEOF
41532 rm -f conftest.$ac_objext
41533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41534 (eval $ac_compile) 2>conftest.er1
41535 ac_status=$?
41536 grep -v '^ *+' conftest.er1 >conftest.err
41537 rm -f conftest.er1
41538 cat conftest.err >&5
41539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540 (exit $ac_status); } &&
41541 { ac_try='test -z "$ac_cxx_werror_flag"
41542 || test ! -s conftest.err'
41543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41544 (eval $ac_try) 2>&5
41545 ac_status=$?
41546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547 (exit $ac_status); }; } &&
41548 { ac_try='test -s conftest.$ac_objext'
41549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41550 (eval $ac_try) 2>&5
41551 ac_status=$?
41552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41553 (exit $ac_status); }; }; then
41554 glibcxx_cv_func__isnanl_use=yes
41555 else
41556 echo "$as_me: failed program was:" >&5
41557 sed 's/^/| /' conftest.$ac_ext >&5
41559 glibcxx_cv_func__isnanl_use=no
41561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41562 ac_ext=c
41563 ac_cpp='$CPP $CPPFLAGS'
41564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41572 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41573 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41575 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41577 for ac_func in _isnanl
41579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41580 echo "$as_me:$LINENO: checking for $ac_func" >&5
41581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41582 if eval "test \"\${$as_ac_var+set}\" = set"; then
41583 echo $ECHO_N "(cached) $ECHO_C" >&6
41584 else
41585 if test x$gcc_no_link = xyes; then
41586 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41588 { (exit 1); exit 1; }; }
41590 cat >conftest.$ac_ext <<_ACEOF
41591 /* confdefs.h. */
41592 _ACEOF
41593 cat confdefs.h >>conftest.$ac_ext
41594 cat >>conftest.$ac_ext <<_ACEOF
41595 /* end confdefs.h. */
41596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41598 #define $ac_func innocuous_$ac_func
41600 /* System header to define __stub macros and hopefully few prototypes,
41601 which can conflict with char $ac_func (); below.
41602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41603 <limits.h> exists even on freestanding compilers. */
41605 #ifdef __STDC__
41606 # include <limits.h>
41607 #else
41608 # include <assert.h>
41609 #endif
41611 #undef $ac_func
41613 /* Override any gcc2 internal prototype to avoid an error. */
41614 #ifdef __cplusplus
41615 extern "C"
41617 #endif
41618 /* We use char because int might match the return type of a gcc2
41619 builtin and then its argument prototype would still apply. */
41620 char $ac_func ();
41621 /* The GNU C library defines this for functions which it implements
41622 to always fail with ENOSYS. Some functions are actually named
41623 something starting with __ and the normal name is an alias. */
41624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41625 choke me
41626 #else
41627 char (*f) () = $ac_func;
41628 #endif
41629 #ifdef __cplusplus
41631 #endif
41634 main ()
41636 return f != $ac_func;
41638 return 0;
41640 _ACEOF
41641 rm -f conftest.$ac_objext conftest$ac_exeext
41642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41643 (eval $ac_link) 2>conftest.er1
41644 ac_status=$?
41645 grep -v '^ *+' conftest.er1 >conftest.err
41646 rm -f conftest.er1
41647 cat conftest.err >&5
41648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41649 (exit $ac_status); } &&
41650 { ac_try='test -z "$ac_c_werror_flag"
41651 || test ! -s conftest.err'
41652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41653 (eval $ac_try) 2>&5
41654 ac_status=$?
41655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41656 (exit $ac_status); }; } &&
41657 { ac_try='test -s conftest$ac_exeext'
41658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41659 (eval $ac_try) 2>&5
41660 ac_status=$?
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); }; }; then
41663 eval "$as_ac_var=yes"
41664 else
41665 echo "$as_me: failed program was:" >&5
41666 sed 's/^/| /' conftest.$ac_ext >&5
41668 eval "$as_ac_var=no"
41670 rm -f conftest.err conftest.$ac_objext \
41671 conftest$ac_exeext conftest.$ac_ext
41673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41675 if test `eval echo '${'$as_ac_var'}'` = yes; then
41676 cat >>confdefs.h <<_ACEOF
41677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41678 _ACEOF
41681 done
41688 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41689 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41690 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41691 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41692 echo $ECHO_N "(cached) $ECHO_C" >&6
41693 else
41697 ac_ext=cc
41698 ac_cpp='$CXXCPP $CPPFLAGS'
41699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41703 cat >conftest.$ac_ext <<_ACEOF
41704 /* confdefs.h. */
41705 _ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h. */
41709 #include <math.h>
41710 #ifdef HAVE_IEEEFP_H
41711 #include <ieeefp.h>
41712 #endif
41715 main ()
41717 isinfl(0);
41719 return 0;
41721 _ACEOF
41722 rm -f conftest.$ac_objext
41723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41724 (eval $ac_compile) 2>conftest.er1
41725 ac_status=$?
41726 grep -v '^ *+' conftest.er1 >conftest.err
41727 rm -f conftest.er1
41728 cat conftest.err >&5
41729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730 (exit $ac_status); } &&
41731 { ac_try='test -z "$ac_cxx_werror_flag"
41732 || test ! -s conftest.err'
41733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41734 (eval $ac_try) 2>&5
41735 ac_status=$?
41736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737 (exit $ac_status); }; } &&
41738 { ac_try='test -s conftest.$ac_objext'
41739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41740 (eval $ac_try) 2>&5
41741 ac_status=$?
41742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743 (exit $ac_status); }; }; then
41744 glibcxx_cv_func_isinfl_use=yes
41745 else
41746 echo "$as_me: failed program was:" >&5
41747 sed 's/^/| /' conftest.$ac_ext >&5
41749 glibcxx_cv_func_isinfl_use=no
41751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41752 ac_ext=c
41753 ac_cpp='$CPP $CPPFLAGS'
41754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41762 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41763 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41765 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41767 for ac_func in isinfl
41769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41770 echo "$as_me:$LINENO: checking for $ac_func" >&5
41771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41772 if eval "test \"\${$as_ac_var+set}\" = set"; then
41773 echo $ECHO_N "(cached) $ECHO_C" >&6
41774 else
41775 if test x$gcc_no_link = xyes; then
41776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41778 { (exit 1); exit 1; }; }
41780 cat >conftest.$ac_ext <<_ACEOF
41781 /* confdefs.h. */
41782 _ACEOF
41783 cat confdefs.h >>conftest.$ac_ext
41784 cat >>conftest.$ac_ext <<_ACEOF
41785 /* end confdefs.h. */
41786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41788 #define $ac_func innocuous_$ac_func
41790 /* System header to define __stub macros and hopefully few prototypes,
41791 which can conflict with char $ac_func (); below.
41792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41793 <limits.h> exists even on freestanding compilers. */
41795 #ifdef __STDC__
41796 # include <limits.h>
41797 #else
41798 # include <assert.h>
41799 #endif
41801 #undef $ac_func
41803 /* Override any gcc2 internal prototype to avoid an error. */
41804 #ifdef __cplusplus
41805 extern "C"
41807 #endif
41808 /* We use char because int might match the return type of a gcc2
41809 builtin and then its argument prototype would still apply. */
41810 char $ac_func ();
41811 /* The GNU C library defines this for functions which it implements
41812 to always fail with ENOSYS. Some functions are actually named
41813 something starting with __ and the normal name is an alias. */
41814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41815 choke me
41816 #else
41817 char (*f) () = $ac_func;
41818 #endif
41819 #ifdef __cplusplus
41821 #endif
41824 main ()
41826 return f != $ac_func;
41828 return 0;
41830 _ACEOF
41831 rm -f conftest.$ac_objext conftest$ac_exeext
41832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41833 (eval $ac_link) 2>conftest.er1
41834 ac_status=$?
41835 grep -v '^ *+' conftest.er1 >conftest.err
41836 rm -f conftest.er1
41837 cat conftest.err >&5
41838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839 (exit $ac_status); } &&
41840 { ac_try='test -z "$ac_c_werror_flag"
41841 || test ! -s conftest.err'
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest$ac_exeext'
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
41853 eval "$as_ac_var=yes"
41854 else
41855 echo "$as_me: failed program was:" >&5
41856 sed 's/^/| /' conftest.$ac_ext >&5
41858 eval "$as_ac_var=no"
41860 rm -f conftest.err conftest.$ac_objext \
41861 conftest$ac_exeext conftest.$ac_ext
41863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41865 if test `eval echo '${'$as_ac_var'}'` = yes; then
41866 cat >>confdefs.h <<_ACEOF
41867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41868 _ACEOF
41871 done
41873 else
41875 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41876 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41877 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41878 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41879 echo $ECHO_N "(cached) $ECHO_C" >&6
41880 else
41884 ac_ext=cc
41885 ac_cpp='$CXXCPP $CPPFLAGS'
41886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41890 cat >conftest.$ac_ext <<_ACEOF
41891 /* confdefs.h. */
41892 _ACEOF
41893 cat confdefs.h >>conftest.$ac_ext
41894 cat >>conftest.$ac_ext <<_ACEOF
41895 /* end confdefs.h. */
41896 #include <math.h>
41897 #ifdef HAVE_IEEEFP_H
41898 #include <ieeefp.h>
41899 #endif
41902 main ()
41904 _isinfl(0);
41906 return 0;
41908 _ACEOF
41909 rm -f conftest.$ac_objext
41910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41911 (eval $ac_compile) 2>conftest.er1
41912 ac_status=$?
41913 grep -v '^ *+' conftest.er1 >conftest.err
41914 rm -f conftest.er1
41915 cat conftest.err >&5
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); } &&
41918 { ac_try='test -z "$ac_cxx_werror_flag"
41919 || test ! -s conftest.err'
41920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41921 (eval $ac_try) 2>&5
41922 ac_status=$?
41923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); }; } &&
41925 { ac_try='test -s conftest.$ac_objext'
41926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927 (eval $ac_try) 2>&5
41928 ac_status=$?
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); }; }; then
41931 glibcxx_cv_func__isinfl_use=yes
41932 else
41933 echo "$as_me: failed program was:" >&5
41934 sed 's/^/| /' conftest.$ac_ext >&5
41936 glibcxx_cv_func__isinfl_use=no
41938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41939 ac_ext=c
41940 ac_cpp='$CPP $CPPFLAGS'
41941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41949 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41950 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41952 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41954 for ac_func in _isinfl
41956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41957 echo "$as_me:$LINENO: checking for $ac_func" >&5
41958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41959 if eval "test \"\${$as_ac_var+set}\" = set"; then
41960 echo $ECHO_N "(cached) $ECHO_C" >&6
41961 else
41962 if test x$gcc_no_link = xyes; then
41963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41965 { (exit 1); exit 1; }; }
41967 cat >conftest.$ac_ext <<_ACEOF
41968 /* confdefs.h. */
41969 _ACEOF
41970 cat confdefs.h >>conftest.$ac_ext
41971 cat >>conftest.$ac_ext <<_ACEOF
41972 /* end confdefs.h. */
41973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41975 #define $ac_func innocuous_$ac_func
41977 /* System header to define __stub macros and hopefully few prototypes,
41978 which can conflict with char $ac_func (); below.
41979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41980 <limits.h> exists even on freestanding compilers. */
41982 #ifdef __STDC__
41983 # include <limits.h>
41984 #else
41985 # include <assert.h>
41986 #endif
41988 #undef $ac_func
41990 /* Override any gcc2 internal prototype to avoid an error. */
41991 #ifdef __cplusplus
41992 extern "C"
41994 #endif
41995 /* We use char because int might match the return type of a gcc2
41996 builtin and then its argument prototype would still apply. */
41997 char $ac_func ();
41998 /* The GNU C library defines this for functions which it implements
41999 to always fail with ENOSYS. Some functions are actually named
42000 something starting with __ and the normal name is an alias. */
42001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42002 choke me
42003 #else
42004 char (*f) () = $ac_func;
42005 #endif
42006 #ifdef __cplusplus
42008 #endif
42011 main ()
42013 return f != $ac_func;
42015 return 0;
42017 _ACEOF
42018 rm -f conftest.$ac_objext conftest$ac_exeext
42019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42020 (eval $ac_link) 2>conftest.er1
42021 ac_status=$?
42022 grep -v '^ *+' conftest.er1 >conftest.err
42023 rm -f conftest.er1
42024 cat conftest.err >&5
42025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026 (exit $ac_status); } &&
42027 { ac_try='test -z "$ac_c_werror_flag"
42028 || test ! -s conftest.err'
42029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030 (eval $ac_try) 2>&5
42031 ac_status=$?
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); }; } &&
42034 { ac_try='test -s conftest$ac_exeext'
42035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42036 (eval $ac_try) 2>&5
42037 ac_status=$?
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); }; }; then
42040 eval "$as_ac_var=yes"
42041 else
42042 echo "$as_me: failed program was:" >&5
42043 sed 's/^/| /' conftest.$ac_ext >&5
42045 eval "$as_ac_var=no"
42047 rm -f conftest.err conftest.$ac_objext \
42048 conftest$ac_exeext conftest.$ac_ext
42050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42052 if test `eval echo '${'$as_ac_var'}'` = yes; then
42053 cat >>confdefs.h <<_ACEOF
42054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42055 _ACEOF
42058 done
42065 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
42066 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
42067 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
42068 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
42069 echo $ECHO_N "(cached) $ECHO_C" >&6
42070 else
42074 ac_ext=cc
42075 ac_cpp='$CXXCPP $CPPFLAGS'
42076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42080 cat >conftest.$ac_ext <<_ACEOF
42081 /* confdefs.h. */
42082 _ACEOF
42083 cat confdefs.h >>conftest.$ac_ext
42084 cat >>conftest.$ac_ext <<_ACEOF
42085 /* end confdefs.h. */
42086 #include <math.h>
42088 main ()
42090 copysignl(0, 0);
42092 return 0;
42094 _ACEOF
42095 rm -f conftest.$ac_objext
42096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42097 (eval $ac_compile) 2>conftest.er1
42098 ac_status=$?
42099 grep -v '^ *+' conftest.er1 >conftest.err
42100 rm -f conftest.er1
42101 cat conftest.err >&5
42102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103 (exit $ac_status); } &&
42104 { ac_try='test -z "$ac_cxx_werror_flag"
42105 || test ! -s conftest.err'
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42108 ac_status=$?
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; } &&
42111 { ac_try='test -s conftest.$ac_objext'
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42114 ac_status=$?
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; }; then
42117 glibcxx_cv_func_copysignl_use=yes
42118 else
42119 echo "$as_me: failed program was:" >&5
42120 sed 's/^/| /' conftest.$ac_ext >&5
42122 glibcxx_cv_func_copysignl_use=no
42124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42125 ac_ext=c
42126 ac_cpp='$CPP $CPPFLAGS'
42127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42135 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42136 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42138 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42140 for ac_func in copysignl
42142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42143 echo "$as_me:$LINENO: checking for $ac_func" >&5
42144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42145 if eval "test \"\${$as_ac_var+set}\" = set"; then
42146 echo $ECHO_N "(cached) $ECHO_C" >&6
42147 else
42148 if test x$gcc_no_link = xyes; then
42149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42151 { (exit 1); exit 1; }; }
42153 cat >conftest.$ac_ext <<_ACEOF
42154 /* confdefs.h. */
42155 _ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42161 #define $ac_func innocuous_$ac_func
42163 /* System header to define __stub macros and hopefully few prototypes,
42164 which can conflict with char $ac_func (); below.
42165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42166 <limits.h> exists even on freestanding compilers. */
42168 #ifdef __STDC__
42169 # include <limits.h>
42170 #else
42171 # include <assert.h>
42172 #endif
42174 #undef $ac_func
42176 /* Override any gcc2 internal prototype to avoid an error. */
42177 #ifdef __cplusplus
42178 extern "C"
42180 #endif
42181 /* We use char because int might match the return type of a gcc2
42182 builtin and then its argument prototype would still apply. */
42183 char $ac_func ();
42184 /* The GNU C library defines this for functions which it implements
42185 to always fail with ENOSYS. Some functions are actually named
42186 something starting with __ and the normal name is an alias. */
42187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42188 choke me
42189 #else
42190 char (*f) () = $ac_func;
42191 #endif
42192 #ifdef __cplusplus
42194 #endif
42197 main ()
42199 return f != $ac_func;
42201 return 0;
42203 _ACEOF
42204 rm -f conftest.$ac_objext conftest$ac_exeext
42205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42206 (eval $ac_link) 2>conftest.er1
42207 ac_status=$?
42208 grep -v '^ *+' conftest.er1 >conftest.err
42209 rm -f conftest.er1
42210 cat conftest.err >&5
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); } &&
42213 { ac_try='test -z "$ac_c_werror_flag"
42214 || test ! -s conftest.err'
42215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42216 (eval $ac_try) 2>&5
42217 ac_status=$?
42218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219 (exit $ac_status); }; } &&
42220 { ac_try='test -s conftest$ac_exeext'
42221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42222 (eval $ac_try) 2>&5
42223 ac_status=$?
42224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42225 (exit $ac_status); }; }; then
42226 eval "$as_ac_var=yes"
42227 else
42228 echo "$as_me: failed program was:" >&5
42229 sed 's/^/| /' conftest.$ac_ext >&5
42231 eval "$as_ac_var=no"
42233 rm -f conftest.err conftest.$ac_objext \
42234 conftest$ac_exeext conftest.$ac_ext
42236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42238 if test `eval echo '${'$as_ac_var'}'` = yes; then
42239 cat >>confdefs.h <<_ACEOF
42240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42241 _ACEOF
42244 done
42246 else
42248 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42249 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42250 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42251 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42252 echo $ECHO_N "(cached) $ECHO_C" >&6
42253 else
42257 ac_ext=cc
42258 ac_cpp='$CXXCPP $CPPFLAGS'
42259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42263 cat >conftest.$ac_ext <<_ACEOF
42264 /* confdefs.h. */
42265 _ACEOF
42266 cat confdefs.h >>conftest.$ac_ext
42267 cat >>conftest.$ac_ext <<_ACEOF
42268 /* end confdefs.h. */
42269 #include <math.h>
42271 main ()
42273 _copysignl(0, 0);
42275 return 0;
42277 _ACEOF
42278 rm -f conftest.$ac_objext
42279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42280 (eval $ac_compile) 2>conftest.er1
42281 ac_status=$?
42282 grep -v '^ *+' conftest.er1 >conftest.err
42283 rm -f conftest.er1
42284 cat conftest.err >&5
42285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42286 (exit $ac_status); } &&
42287 { ac_try='test -z "$ac_cxx_werror_flag"
42288 || test ! -s conftest.err'
42289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42290 (eval $ac_try) 2>&5
42291 ac_status=$?
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); }; } &&
42294 { ac_try='test -s conftest.$ac_objext'
42295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42296 (eval $ac_try) 2>&5
42297 ac_status=$?
42298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42299 (exit $ac_status); }; }; then
42300 glibcxx_cv_func__copysignl_use=yes
42301 else
42302 echo "$as_me: failed program was:" >&5
42303 sed 's/^/| /' conftest.$ac_ext >&5
42305 glibcxx_cv_func__copysignl_use=no
42307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42308 ac_ext=c
42309 ac_cpp='$CPP $CPPFLAGS'
42310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42318 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42319 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42321 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42323 for ac_func in _copysignl
42325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42326 echo "$as_me:$LINENO: checking for $ac_func" >&5
42327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42328 if eval "test \"\${$as_ac_var+set}\" = set"; then
42329 echo $ECHO_N "(cached) $ECHO_C" >&6
42330 else
42331 if test x$gcc_no_link = xyes; then
42332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42334 { (exit 1); exit 1; }; }
42336 cat >conftest.$ac_ext <<_ACEOF
42337 /* confdefs.h. */
42338 _ACEOF
42339 cat confdefs.h >>conftest.$ac_ext
42340 cat >>conftest.$ac_ext <<_ACEOF
42341 /* end confdefs.h. */
42342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42344 #define $ac_func innocuous_$ac_func
42346 /* System header to define __stub macros and hopefully few prototypes,
42347 which can conflict with char $ac_func (); below.
42348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42349 <limits.h> exists even on freestanding compilers. */
42351 #ifdef __STDC__
42352 # include <limits.h>
42353 #else
42354 # include <assert.h>
42355 #endif
42357 #undef $ac_func
42359 /* Override any gcc2 internal prototype to avoid an error. */
42360 #ifdef __cplusplus
42361 extern "C"
42363 #endif
42364 /* We use char because int might match the return type of a gcc2
42365 builtin and then its argument prototype would still apply. */
42366 char $ac_func ();
42367 /* The GNU C library defines this for functions which it implements
42368 to always fail with ENOSYS. Some functions are actually named
42369 something starting with __ and the normal name is an alias. */
42370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42371 choke me
42372 #else
42373 char (*f) () = $ac_func;
42374 #endif
42375 #ifdef __cplusplus
42377 #endif
42380 main ()
42382 return f != $ac_func;
42384 return 0;
42386 _ACEOF
42387 rm -f conftest.$ac_objext conftest$ac_exeext
42388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42389 (eval $ac_link) 2>conftest.er1
42390 ac_status=$?
42391 grep -v '^ *+' conftest.er1 >conftest.err
42392 rm -f conftest.er1
42393 cat conftest.err >&5
42394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395 (exit $ac_status); } &&
42396 { ac_try='test -z "$ac_c_werror_flag"
42397 || test ! -s conftest.err'
42398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42399 (eval $ac_try) 2>&5
42400 ac_status=$?
42401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402 (exit $ac_status); }; } &&
42403 { ac_try='test -s conftest$ac_exeext'
42404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42405 (eval $ac_try) 2>&5
42406 ac_status=$?
42407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42408 (exit $ac_status); }; }; then
42409 eval "$as_ac_var=yes"
42410 else
42411 echo "$as_me: failed program was:" >&5
42412 sed 's/^/| /' conftest.$ac_ext >&5
42414 eval "$as_ac_var=no"
42416 rm -f conftest.err conftest.$ac_objext \
42417 conftest$ac_exeext conftest.$ac_ext
42419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42421 if test `eval echo '${'$as_ac_var'}'` = yes; then
42422 cat >>confdefs.h <<_ACEOF
42423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42424 _ACEOF
42427 done
42434 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42435 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42436 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42437 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42438 echo $ECHO_N "(cached) $ECHO_C" >&6
42439 else
42443 ac_ext=cc
42444 ac_cpp='$CXXCPP $CPPFLAGS'
42445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42449 cat >conftest.$ac_ext <<_ACEOF
42450 /* confdefs.h. */
42451 _ACEOF
42452 cat confdefs.h >>conftest.$ac_ext
42453 cat >>conftest.$ac_ext <<_ACEOF
42454 /* end confdefs.h. */
42455 #include <math.h>
42457 main ()
42459 atan2l(0, 0);
42461 return 0;
42463 _ACEOF
42464 rm -f conftest.$ac_objext
42465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42466 (eval $ac_compile) 2>conftest.er1
42467 ac_status=$?
42468 grep -v '^ *+' conftest.er1 >conftest.err
42469 rm -f conftest.er1
42470 cat conftest.err >&5
42471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472 (exit $ac_status); } &&
42473 { ac_try='test -z "$ac_cxx_werror_flag"
42474 || test ! -s conftest.err'
42475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42476 (eval $ac_try) 2>&5
42477 ac_status=$?
42478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479 (exit $ac_status); }; } &&
42480 { ac_try='test -s conftest.$ac_objext'
42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482 (eval $ac_try) 2>&5
42483 ac_status=$?
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); }; }; then
42486 glibcxx_cv_func_atan2l_use=yes
42487 else
42488 echo "$as_me: failed program was:" >&5
42489 sed 's/^/| /' conftest.$ac_ext >&5
42491 glibcxx_cv_func_atan2l_use=no
42493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42494 ac_ext=c
42495 ac_cpp='$CPP $CPPFLAGS'
42496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42504 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42505 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42507 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42509 for ac_func in atan2l
42511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42512 echo "$as_me:$LINENO: checking for $ac_func" >&5
42513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42514 if eval "test \"\${$as_ac_var+set}\" = set"; then
42515 echo $ECHO_N "(cached) $ECHO_C" >&6
42516 else
42517 if test x$gcc_no_link = xyes; then
42518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42520 { (exit 1); exit 1; }; }
42522 cat >conftest.$ac_ext <<_ACEOF
42523 /* confdefs.h. */
42524 _ACEOF
42525 cat confdefs.h >>conftest.$ac_ext
42526 cat >>conftest.$ac_ext <<_ACEOF
42527 /* end confdefs.h. */
42528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42530 #define $ac_func innocuous_$ac_func
42532 /* System header to define __stub macros and hopefully few prototypes,
42533 which can conflict with char $ac_func (); below.
42534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42535 <limits.h> exists even on freestanding compilers. */
42537 #ifdef __STDC__
42538 # include <limits.h>
42539 #else
42540 # include <assert.h>
42541 #endif
42543 #undef $ac_func
42545 /* Override any gcc2 internal prototype to avoid an error. */
42546 #ifdef __cplusplus
42547 extern "C"
42549 #endif
42550 /* We use char because int might match the return type of a gcc2
42551 builtin and then its argument prototype would still apply. */
42552 char $ac_func ();
42553 /* The GNU C library defines this for functions which it implements
42554 to always fail with ENOSYS. Some functions are actually named
42555 something starting with __ and the normal name is an alias. */
42556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42557 choke me
42558 #else
42559 char (*f) () = $ac_func;
42560 #endif
42561 #ifdef __cplusplus
42563 #endif
42566 main ()
42568 return f != $ac_func;
42570 return 0;
42572 _ACEOF
42573 rm -f conftest.$ac_objext conftest$ac_exeext
42574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42575 (eval $ac_link) 2>conftest.er1
42576 ac_status=$?
42577 grep -v '^ *+' conftest.er1 >conftest.err
42578 rm -f conftest.er1
42579 cat conftest.err >&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); } &&
42582 { ac_try='test -z "$ac_c_werror_flag"
42583 || test ! -s conftest.err'
42584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42585 (eval $ac_try) 2>&5
42586 ac_status=$?
42587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42588 (exit $ac_status); }; } &&
42589 { ac_try='test -s conftest$ac_exeext'
42590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42591 (eval $ac_try) 2>&5
42592 ac_status=$?
42593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594 (exit $ac_status); }; }; then
42595 eval "$as_ac_var=yes"
42596 else
42597 echo "$as_me: failed program was:" >&5
42598 sed 's/^/| /' conftest.$ac_ext >&5
42600 eval "$as_ac_var=no"
42602 rm -f conftest.err conftest.$ac_objext \
42603 conftest$ac_exeext conftest.$ac_ext
42605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42607 if test `eval echo '${'$as_ac_var'}'` = yes; then
42608 cat >>confdefs.h <<_ACEOF
42609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42610 _ACEOF
42613 done
42615 else
42617 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42618 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42619 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42620 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42621 echo $ECHO_N "(cached) $ECHO_C" >&6
42622 else
42626 ac_ext=cc
42627 ac_cpp='$CXXCPP $CPPFLAGS'
42628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42632 cat >conftest.$ac_ext <<_ACEOF
42633 /* confdefs.h. */
42634 _ACEOF
42635 cat confdefs.h >>conftest.$ac_ext
42636 cat >>conftest.$ac_ext <<_ACEOF
42637 /* end confdefs.h. */
42638 #include <math.h>
42640 main ()
42642 _atan2l(0, 0);
42644 return 0;
42646 _ACEOF
42647 rm -f conftest.$ac_objext
42648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42649 (eval $ac_compile) 2>conftest.er1
42650 ac_status=$?
42651 grep -v '^ *+' conftest.er1 >conftest.err
42652 rm -f conftest.er1
42653 cat conftest.err >&5
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); } &&
42656 { ac_try='test -z "$ac_cxx_werror_flag"
42657 || test ! -s conftest.err'
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42659 (eval $ac_try) 2>&5
42660 ac_status=$?
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; } &&
42663 { ac_try='test -s conftest.$ac_objext'
42664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42665 (eval $ac_try) 2>&5
42666 ac_status=$?
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); }; }; then
42669 glibcxx_cv_func__atan2l_use=yes
42670 else
42671 echo "$as_me: failed program was:" >&5
42672 sed 's/^/| /' conftest.$ac_ext >&5
42674 glibcxx_cv_func__atan2l_use=no
42676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42677 ac_ext=c
42678 ac_cpp='$CPP $CPPFLAGS'
42679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42687 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42688 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42690 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42692 for ac_func in _atan2l
42694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42695 echo "$as_me:$LINENO: checking for $ac_func" >&5
42696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42697 if eval "test \"\${$as_ac_var+set}\" = set"; then
42698 echo $ECHO_N "(cached) $ECHO_C" >&6
42699 else
42700 if test x$gcc_no_link = xyes; then
42701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42703 { (exit 1); exit 1; }; }
42705 cat >conftest.$ac_ext <<_ACEOF
42706 /* confdefs.h. */
42707 _ACEOF
42708 cat confdefs.h >>conftest.$ac_ext
42709 cat >>conftest.$ac_ext <<_ACEOF
42710 /* end confdefs.h. */
42711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42713 #define $ac_func innocuous_$ac_func
42715 /* System header to define __stub macros and hopefully few prototypes,
42716 which can conflict with char $ac_func (); below.
42717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42718 <limits.h> exists even on freestanding compilers. */
42720 #ifdef __STDC__
42721 # include <limits.h>
42722 #else
42723 # include <assert.h>
42724 #endif
42726 #undef $ac_func
42728 /* Override any gcc2 internal prototype to avoid an error. */
42729 #ifdef __cplusplus
42730 extern "C"
42732 #endif
42733 /* We use char because int might match the return type of a gcc2
42734 builtin and then its argument prototype would still apply. */
42735 char $ac_func ();
42736 /* The GNU C library defines this for functions which it implements
42737 to always fail with ENOSYS. Some functions are actually named
42738 something starting with __ and the normal name is an alias. */
42739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42740 choke me
42741 #else
42742 char (*f) () = $ac_func;
42743 #endif
42744 #ifdef __cplusplus
42746 #endif
42749 main ()
42751 return f != $ac_func;
42753 return 0;
42755 _ACEOF
42756 rm -f conftest.$ac_objext conftest$ac_exeext
42757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42758 (eval $ac_link) 2>conftest.er1
42759 ac_status=$?
42760 grep -v '^ *+' conftest.er1 >conftest.err
42761 rm -f conftest.er1
42762 cat conftest.err >&5
42763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764 (exit $ac_status); } &&
42765 { ac_try='test -z "$ac_c_werror_flag"
42766 || test ! -s conftest.err'
42767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42768 (eval $ac_try) 2>&5
42769 ac_status=$?
42770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42771 (exit $ac_status); }; } &&
42772 { ac_try='test -s conftest$ac_exeext'
42773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42774 (eval $ac_try) 2>&5
42775 ac_status=$?
42776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777 (exit $ac_status); }; }; then
42778 eval "$as_ac_var=yes"
42779 else
42780 echo "$as_me: failed program was:" >&5
42781 sed 's/^/| /' conftest.$ac_ext >&5
42783 eval "$as_ac_var=no"
42785 rm -f conftest.err conftest.$ac_objext \
42786 conftest$ac_exeext conftest.$ac_ext
42788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42790 if test `eval echo '${'$as_ac_var'}'` = yes; then
42791 cat >>confdefs.h <<_ACEOF
42792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42793 _ACEOF
42796 done
42803 echo "$as_me:$LINENO: checking for expl declaration" >&5
42804 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42805 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42806 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42807 echo $ECHO_N "(cached) $ECHO_C" >&6
42808 else
42812 ac_ext=cc
42813 ac_cpp='$CXXCPP $CPPFLAGS'
42814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42818 cat >conftest.$ac_ext <<_ACEOF
42819 /* confdefs.h. */
42820 _ACEOF
42821 cat confdefs.h >>conftest.$ac_ext
42822 cat >>conftest.$ac_ext <<_ACEOF
42823 /* end confdefs.h. */
42824 #include <math.h>
42825 #ifdef HAVE_IEEEFP_H
42826 #include <ieeefp.h>
42827 #endif
42830 main ()
42832 expl(0);
42834 return 0;
42836 _ACEOF
42837 rm -f conftest.$ac_objext
42838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42839 (eval $ac_compile) 2>conftest.er1
42840 ac_status=$?
42841 grep -v '^ *+' conftest.er1 >conftest.err
42842 rm -f conftest.er1
42843 cat conftest.err >&5
42844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42845 (exit $ac_status); } &&
42846 { ac_try='test -z "$ac_cxx_werror_flag"
42847 || test ! -s conftest.err'
42848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42849 (eval $ac_try) 2>&5
42850 ac_status=$?
42851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42852 (exit $ac_status); }; } &&
42853 { ac_try='test -s conftest.$ac_objext'
42854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42855 (eval $ac_try) 2>&5
42856 ac_status=$?
42857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42858 (exit $ac_status); }; }; then
42859 glibcxx_cv_func_expl_use=yes
42860 else
42861 echo "$as_me: failed program was:" >&5
42862 sed 's/^/| /' conftest.$ac_ext >&5
42864 glibcxx_cv_func_expl_use=no
42866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42867 ac_ext=c
42868 ac_cpp='$CPP $CPPFLAGS'
42869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42877 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42878 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42880 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42882 for ac_func in expl
42884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42885 echo "$as_me:$LINENO: checking for $ac_func" >&5
42886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42887 if eval "test \"\${$as_ac_var+set}\" = set"; then
42888 echo $ECHO_N "(cached) $ECHO_C" >&6
42889 else
42890 if test x$gcc_no_link = xyes; then
42891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42893 { (exit 1); exit 1; }; }
42895 cat >conftest.$ac_ext <<_ACEOF
42896 /* confdefs.h. */
42897 _ACEOF
42898 cat confdefs.h >>conftest.$ac_ext
42899 cat >>conftest.$ac_ext <<_ACEOF
42900 /* end confdefs.h. */
42901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42903 #define $ac_func innocuous_$ac_func
42905 /* System header to define __stub macros and hopefully few prototypes,
42906 which can conflict with char $ac_func (); below.
42907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42908 <limits.h> exists even on freestanding compilers. */
42910 #ifdef __STDC__
42911 # include <limits.h>
42912 #else
42913 # include <assert.h>
42914 #endif
42916 #undef $ac_func
42918 /* Override any gcc2 internal prototype to avoid an error. */
42919 #ifdef __cplusplus
42920 extern "C"
42922 #endif
42923 /* We use char because int might match the return type of a gcc2
42924 builtin and then its argument prototype would still apply. */
42925 char $ac_func ();
42926 /* The GNU C library defines this for functions which it implements
42927 to always fail with ENOSYS. Some functions are actually named
42928 something starting with __ and the normal name is an alias. */
42929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42930 choke me
42931 #else
42932 char (*f) () = $ac_func;
42933 #endif
42934 #ifdef __cplusplus
42936 #endif
42939 main ()
42941 return f != $ac_func;
42943 return 0;
42945 _ACEOF
42946 rm -f conftest.$ac_objext conftest$ac_exeext
42947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42948 (eval $ac_link) 2>conftest.er1
42949 ac_status=$?
42950 grep -v '^ *+' conftest.er1 >conftest.err
42951 rm -f conftest.er1
42952 cat conftest.err >&5
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); } &&
42955 { ac_try='test -z "$ac_c_werror_flag"
42956 || test ! -s conftest.err'
42957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42958 (eval $ac_try) 2>&5
42959 ac_status=$?
42960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961 (exit $ac_status); }; } &&
42962 { ac_try='test -s conftest$ac_exeext'
42963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42964 (eval $ac_try) 2>&5
42965 ac_status=$?
42966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); }; }; then
42968 eval "$as_ac_var=yes"
42969 else
42970 echo "$as_me: failed program was:" >&5
42971 sed 's/^/| /' conftest.$ac_ext >&5
42973 eval "$as_ac_var=no"
42975 rm -f conftest.err conftest.$ac_objext \
42976 conftest$ac_exeext conftest.$ac_ext
42978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42980 if test `eval echo '${'$as_ac_var'}'` = yes; then
42981 cat >>confdefs.h <<_ACEOF
42982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42983 _ACEOF
42986 done
42988 else
42990 echo "$as_me:$LINENO: checking for _expl declaration" >&5
42991 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42992 if test x${glibcxx_cv_func__expl_use+set} != xset; then
42993 if test "${glibcxx_cv_func__expl_use+set}" = set; then
42994 echo $ECHO_N "(cached) $ECHO_C" >&6
42995 else
42999 ac_ext=cc
43000 ac_cpp='$CXXCPP $CPPFLAGS'
43001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43005 cat >conftest.$ac_ext <<_ACEOF
43006 /* confdefs.h. */
43007 _ACEOF
43008 cat confdefs.h >>conftest.$ac_ext
43009 cat >>conftest.$ac_ext <<_ACEOF
43010 /* end confdefs.h. */
43011 #include <math.h>
43012 #ifdef HAVE_IEEEFP_H
43013 #include <ieeefp.h>
43014 #endif
43017 main ()
43019 _expl(0);
43021 return 0;
43023 _ACEOF
43024 rm -f conftest.$ac_objext
43025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43026 (eval $ac_compile) 2>conftest.er1
43027 ac_status=$?
43028 grep -v '^ *+' conftest.er1 >conftest.err
43029 rm -f conftest.er1
43030 cat conftest.err >&5
43031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43032 (exit $ac_status); } &&
43033 { ac_try='test -z "$ac_cxx_werror_flag"
43034 || test ! -s conftest.err'
43035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43036 (eval $ac_try) 2>&5
43037 ac_status=$?
43038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039 (exit $ac_status); }; } &&
43040 { ac_try='test -s conftest.$ac_objext'
43041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43042 (eval $ac_try) 2>&5
43043 ac_status=$?
43044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045 (exit $ac_status); }; }; then
43046 glibcxx_cv_func__expl_use=yes
43047 else
43048 echo "$as_me: failed program was:" >&5
43049 sed 's/^/| /' conftest.$ac_ext >&5
43051 glibcxx_cv_func__expl_use=no
43053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43054 ac_ext=c
43055 ac_cpp='$CPP $CPPFLAGS'
43056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43064 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
43065 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
43067 if test x$glibcxx_cv_func__expl_use = x"yes"; then
43069 for ac_func in _expl
43071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43072 echo "$as_me:$LINENO: checking for $ac_func" >&5
43073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43074 if eval "test \"\${$as_ac_var+set}\" = set"; then
43075 echo $ECHO_N "(cached) $ECHO_C" >&6
43076 else
43077 if test x$gcc_no_link = xyes; then
43078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43080 { (exit 1); exit 1; }; }
43082 cat >conftest.$ac_ext <<_ACEOF
43083 /* confdefs.h. */
43084 _ACEOF
43085 cat confdefs.h >>conftest.$ac_ext
43086 cat >>conftest.$ac_ext <<_ACEOF
43087 /* end confdefs.h. */
43088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43090 #define $ac_func innocuous_$ac_func
43092 /* System header to define __stub macros and hopefully few prototypes,
43093 which can conflict with char $ac_func (); below.
43094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43095 <limits.h> exists even on freestanding compilers. */
43097 #ifdef __STDC__
43098 # include <limits.h>
43099 #else
43100 # include <assert.h>
43101 #endif
43103 #undef $ac_func
43105 /* Override any gcc2 internal prototype to avoid an error. */
43106 #ifdef __cplusplus
43107 extern "C"
43109 #endif
43110 /* We use char because int might match the return type of a gcc2
43111 builtin and then its argument prototype would still apply. */
43112 char $ac_func ();
43113 /* The GNU C library defines this for functions which it implements
43114 to always fail with ENOSYS. Some functions are actually named
43115 something starting with __ and the normal name is an alias. */
43116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43117 choke me
43118 #else
43119 char (*f) () = $ac_func;
43120 #endif
43121 #ifdef __cplusplus
43123 #endif
43126 main ()
43128 return f != $ac_func;
43130 return 0;
43132 _ACEOF
43133 rm -f conftest.$ac_objext conftest$ac_exeext
43134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43135 (eval $ac_link) 2>conftest.er1
43136 ac_status=$?
43137 grep -v '^ *+' conftest.er1 >conftest.err
43138 rm -f conftest.er1
43139 cat conftest.err >&5
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); } &&
43142 { ac_try='test -z "$ac_c_werror_flag"
43143 || test ! -s conftest.err'
43144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43145 (eval $ac_try) 2>&5
43146 ac_status=$?
43147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43148 (exit $ac_status); }; } &&
43149 { ac_try='test -s conftest$ac_exeext'
43150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43151 (eval $ac_try) 2>&5
43152 ac_status=$?
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); }; }; then
43155 eval "$as_ac_var=yes"
43156 else
43157 echo "$as_me: failed program was:" >&5
43158 sed 's/^/| /' conftest.$ac_ext >&5
43160 eval "$as_ac_var=no"
43162 rm -f conftest.err conftest.$ac_objext \
43163 conftest$ac_exeext conftest.$ac_ext
43165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43167 if test `eval echo '${'$as_ac_var'}'` = yes; then
43168 cat >>confdefs.h <<_ACEOF
43169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43170 _ACEOF
43173 done
43180 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43181 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43182 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43183 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43184 echo $ECHO_N "(cached) $ECHO_C" >&6
43185 else
43189 ac_ext=cc
43190 ac_cpp='$CXXCPP $CPPFLAGS'
43191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43195 cat >conftest.$ac_ext <<_ACEOF
43196 /* confdefs.h. */
43197 _ACEOF
43198 cat confdefs.h >>conftest.$ac_ext
43199 cat >>conftest.$ac_ext <<_ACEOF
43200 /* end confdefs.h. */
43201 #include <math.h>
43202 #ifdef HAVE_IEEEFP_H
43203 #include <ieeefp.h>
43204 #endif
43207 main ()
43209 fabsl(0);
43211 return 0;
43213 _ACEOF
43214 rm -f conftest.$ac_objext
43215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43216 (eval $ac_compile) 2>conftest.er1
43217 ac_status=$?
43218 grep -v '^ *+' conftest.er1 >conftest.err
43219 rm -f conftest.er1
43220 cat conftest.err >&5
43221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); } &&
43223 { ac_try='test -z "$ac_cxx_werror_flag"
43224 || test ! -s conftest.err'
43225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43226 (eval $ac_try) 2>&5
43227 ac_status=$?
43228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43229 (exit $ac_status); }; } &&
43230 { ac_try='test -s conftest.$ac_objext'
43231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43232 (eval $ac_try) 2>&5
43233 ac_status=$?
43234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); }; }; then
43236 glibcxx_cv_func_fabsl_use=yes
43237 else
43238 echo "$as_me: failed program was:" >&5
43239 sed 's/^/| /' conftest.$ac_ext >&5
43241 glibcxx_cv_func_fabsl_use=no
43243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43244 ac_ext=c
43245 ac_cpp='$CPP $CPPFLAGS'
43246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43254 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43255 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43257 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43259 for ac_func in fabsl
43261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43262 echo "$as_me:$LINENO: checking for $ac_func" >&5
43263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43264 if eval "test \"\${$as_ac_var+set}\" = set"; then
43265 echo $ECHO_N "(cached) $ECHO_C" >&6
43266 else
43267 if test x$gcc_no_link = xyes; then
43268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43270 { (exit 1); exit 1; }; }
43272 cat >conftest.$ac_ext <<_ACEOF
43273 /* confdefs.h. */
43274 _ACEOF
43275 cat confdefs.h >>conftest.$ac_ext
43276 cat >>conftest.$ac_ext <<_ACEOF
43277 /* end confdefs.h. */
43278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43280 #define $ac_func innocuous_$ac_func
43282 /* System header to define __stub macros and hopefully few prototypes,
43283 which can conflict with char $ac_func (); below.
43284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43285 <limits.h> exists even on freestanding compilers. */
43287 #ifdef __STDC__
43288 # include <limits.h>
43289 #else
43290 # include <assert.h>
43291 #endif
43293 #undef $ac_func
43295 /* Override any gcc2 internal prototype to avoid an error. */
43296 #ifdef __cplusplus
43297 extern "C"
43299 #endif
43300 /* We use char because int might match the return type of a gcc2
43301 builtin and then its argument prototype would still apply. */
43302 char $ac_func ();
43303 /* The GNU C library defines this for functions which it implements
43304 to always fail with ENOSYS. Some functions are actually named
43305 something starting with __ and the normal name is an alias. */
43306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43307 choke me
43308 #else
43309 char (*f) () = $ac_func;
43310 #endif
43311 #ifdef __cplusplus
43313 #endif
43316 main ()
43318 return f != $ac_func;
43320 return 0;
43322 _ACEOF
43323 rm -f conftest.$ac_objext conftest$ac_exeext
43324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43325 (eval $ac_link) 2>conftest.er1
43326 ac_status=$?
43327 grep -v '^ *+' conftest.er1 >conftest.err
43328 rm -f conftest.er1
43329 cat conftest.err >&5
43330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331 (exit $ac_status); } &&
43332 { ac_try='test -z "$ac_c_werror_flag"
43333 || test ! -s conftest.err'
43334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43335 (eval $ac_try) 2>&5
43336 ac_status=$?
43337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338 (exit $ac_status); }; } &&
43339 { ac_try='test -s conftest$ac_exeext'
43340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43341 (eval $ac_try) 2>&5
43342 ac_status=$?
43343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344 (exit $ac_status); }; }; then
43345 eval "$as_ac_var=yes"
43346 else
43347 echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43350 eval "$as_ac_var=no"
43352 rm -f conftest.err conftest.$ac_objext \
43353 conftest$ac_exeext conftest.$ac_ext
43355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43357 if test `eval echo '${'$as_ac_var'}'` = yes; then
43358 cat >>confdefs.h <<_ACEOF
43359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43360 _ACEOF
43363 done
43365 else
43367 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43368 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43369 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43370 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43371 echo $ECHO_N "(cached) $ECHO_C" >&6
43372 else
43376 ac_ext=cc
43377 ac_cpp='$CXXCPP $CPPFLAGS'
43378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43382 cat >conftest.$ac_ext <<_ACEOF
43383 /* confdefs.h. */
43384 _ACEOF
43385 cat confdefs.h >>conftest.$ac_ext
43386 cat >>conftest.$ac_ext <<_ACEOF
43387 /* end confdefs.h. */
43388 #include <math.h>
43389 #ifdef HAVE_IEEEFP_H
43390 #include <ieeefp.h>
43391 #endif
43394 main ()
43396 _fabsl(0);
43398 return 0;
43400 _ACEOF
43401 rm -f conftest.$ac_objext
43402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43403 (eval $ac_compile) 2>conftest.er1
43404 ac_status=$?
43405 grep -v '^ *+' conftest.er1 >conftest.err
43406 rm -f conftest.er1
43407 cat conftest.err >&5
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); } &&
43410 { ac_try='test -z "$ac_cxx_werror_flag"
43411 || test ! -s conftest.err'
43412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413 (eval $ac_try) 2>&5
43414 ac_status=$?
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); }; } &&
43417 { ac_try='test -s conftest.$ac_objext'
43418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419 (eval $ac_try) 2>&5
43420 ac_status=$?
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); }; }; then
43423 glibcxx_cv_func__fabsl_use=yes
43424 else
43425 echo "$as_me: failed program was:" >&5
43426 sed 's/^/| /' conftest.$ac_ext >&5
43428 glibcxx_cv_func__fabsl_use=no
43430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43431 ac_ext=c
43432 ac_cpp='$CPP $CPPFLAGS'
43433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43441 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43442 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43444 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43446 for ac_func in _fabsl
43448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43449 echo "$as_me:$LINENO: checking for $ac_func" >&5
43450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43451 if eval "test \"\${$as_ac_var+set}\" = set"; then
43452 echo $ECHO_N "(cached) $ECHO_C" >&6
43453 else
43454 if test x$gcc_no_link = xyes; then
43455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43457 { (exit 1); exit 1; }; }
43459 cat >conftest.$ac_ext <<_ACEOF
43460 /* confdefs.h. */
43461 _ACEOF
43462 cat confdefs.h >>conftest.$ac_ext
43463 cat >>conftest.$ac_ext <<_ACEOF
43464 /* end confdefs.h. */
43465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43467 #define $ac_func innocuous_$ac_func
43469 /* System header to define __stub macros and hopefully few prototypes,
43470 which can conflict with char $ac_func (); below.
43471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43472 <limits.h> exists even on freestanding compilers. */
43474 #ifdef __STDC__
43475 # include <limits.h>
43476 #else
43477 # include <assert.h>
43478 #endif
43480 #undef $ac_func
43482 /* Override any gcc2 internal prototype to avoid an error. */
43483 #ifdef __cplusplus
43484 extern "C"
43486 #endif
43487 /* We use char because int might match the return type of a gcc2
43488 builtin and then its argument prototype would still apply. */
43489 char $ac_func ();
43490 /* The GNU C library defines this for functions which it implements
43491 to always fail with ENOSYS. Some functions are actually named
43492 something starting with __ and the normal name is an alias. */
43493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43494 choke me
43495 #else
43496 char (*f) () = $ac_func;
43497 #endif
43498 #ifdef __cplusplus
43500 #endif
43503 main ()
43505 return f != $ac_func;
43507 return 0;
43509 _ACEOF
43510 rm -f conftest.$ac_objext conftest$ac_exeext
43511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43512 (eval $ac_link) 2>conftest.er1
43513 ac_status=$?
43514 grep -v '^ *+' conftest.er1 >conftest.err
43515 rm -f conftest.er1
43516 cat conftest.err >&5
43517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43518 (exit $ac_status); } &&
43519 { ac_try='test -z "$ac_c_werror_flag"
43520 || test ! -s conftest.err'
43521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43522 (eval $ac_try) 2>&5
43523 ac_status=$?
43524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525 (exit $ac_status); }; } &&
43526 { ac_try='test -s conftest$ac_exeext'
43527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43528 (eval $ac_try) 2>&5
43529 ac_status=$?
43530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531 (exit $ac_status); }; }; then
43532 eval "$as_ac_var=yes"
43533 else
43534 echo "$as_me: failed program was:" >&5
43535 sed 's/^/| /' conftest.$ac_ext >&5
43537 eval "$as_ac_var=no"
43539 rm -f conftest.err conftest.$ac_objext \
43540 conftest$ac_exeext conftest.$ac_ext
43542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43544 if test `eval echo '${'$as_ac_var'}'` = yes; then
43545 cat >>confdefs.h <<_ACEOF
43546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43547 _ACEOF
43550 done
43557 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43558 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43559 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43560 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43561 echo $ECHO_N "(cached) $ECHO_C" >&6
43562 else
43566 ac_ext=cc
43567 ac_cpp='$CXXCPP $CPPFLAGS'
43568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43572 cat >conftest.$ac_ext <<_ACEOF
43573 /* confdefs.h. */
43574 _ACEOF
43575 cat confdefs.h >>conftest.$ac_ext
43576 cat >>conftest.$ac_ext <<_ACEOF
43577 /* end confdefs.h. */
43578 #include <math.h>
43580 main ()
43582 fmodl(0, 0);
43584 return 0;
43586 _ACEOF
43587 rm -f conftest.$ac_objext
43588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43589 (eval $ac_compile) 2>conftest.er1
43590 ac_status=$?
43591 grep -v '^ *+' conftest.er1 >conftest.err
43592 rm -f conftest.er1
43593 cat conftest.err >&5
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); } &&
43596 { ac_try='test -z "$ac_cxx_werror_flag"
43597 || test ! -s conftest.err'
43598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43599 (eval $ac_try) 2>&5
43600 ac_status=$?
43601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43602 (exit $ac_status); }; } &&
43603 { ac_try='test -s conftest.$ac_objext'
43604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43605 (eval $ac_try) 2>&5
43606 ac_status=$?
43607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608 (exit $ac_status); }; }; then
43609 glibcxx_cv_func_fmodl_use=yes
43610 else
43611 echo "$as_me: failed program was:" >&5
43612 sed 's/^/| /' conftest.$ac_ext >&5
43614 glibcxx_cv_func_fmodl_use=no
43616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43617 ac_ext=c
43618 ac_cpp='$CPP $CPPFLAGS'
43619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43627 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43628 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43630 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43632 for ac_func in fmodl
43634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43635 echo "$as_me:$LINENO: checking for $ac_func" >&5
43636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43637 if eval "test \"\${$as_ac_var+set}\" = set"; then
43638 echo $ECHO_N "(cached) $ECHO_C" >&6
43639 else
43640 if test x$gcc_no_link = xyes; then
43641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43643 { (exit 1); exit 1; }; }
43645 cat >conftest.$ac_ext <<_ACEOF
43646 /* confdefs.h. */
43647 _ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h. */
43651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43653 #define $ac_func innocuous_$ac_func
43655 /* System header to define __stub macros and hopefully few prototypes,
43656 which can conflict with char $ac_func (); below.
43657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43658 <limits.h> exists even on freestanding compilers. */
43660 #ifdef __STDC__
43661 # include <limits.h>
43662 #else
43663 # include <assert.h>
43664 #endif
43666 #undef $ac_func
43668 /* Override any gcc2 internal prototype to avoid an error. */
43669 #ifdef __cplusplus
43670 extern "C"
43672 #endif
43673 /* We use char because int might match the return type of a gcc2
43674 builtin and then its argument prototype would still apply. */
43675 char $ac_func ();
43676 /* The GNU C library defines this for functions which it implements
43677 to always fail with ENOSYS. Some functions are actually named
43678 something starting with __ and the normal name is an alias. */
43679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43680 choke me
43681 #else
43682 char (*f) () = $ac_func;
43683 #endif
43684 #ifdef __cplusplus
43686 #endif
43689 main ()
43691 return f != $ac_func;
43693 return 0;
43695 _ACEOF
43696 rm -f conftest.$ac_objext conftest$ac_exeext
43697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43698 (eval $ac_link) 2>conftest.er1
43699 ac_status=$?
43700 grep -v '^ *+' conftest.er1 >conftest.err
43701 rm -f conftest.er1
43702 cat conftest.err >&5
43703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704 (exit $ac_status); } &&
43705 { ac_try='test -z "$ac_c_werror_flag"
43706 || test ! -s conftest.err'
43707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43708 (eval $ac_try) 2>&5
43709 ac_status=$?
43710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43711 (exit $ac_status); }; } &&
43712 { ac_try='test -s conftest$ac_exeext'
43713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43714 (eval $ac_try) 2>&5
43715 ac_status=$?
43716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717 (exit $ac_status); }; }; then
43718 eval "$as_ac_var=yes"
43719 else
43720 echo "$as_me: failed program was:" >&5
43721 sed 's/^/| /' conftest.$ac_ext >&5
43723 eval "$as_ac_var=no"
43725 rm -f conftest.err conftest.$ac_objext \
43726 conftest$ac_exeext conftest.$ac_ext
43728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43730 if test `eval echo '${'$as_ac_var'}'` = yes; then
43731 cat >>confdefs.h <<_ACEOF
43732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43733 _ACEOF
43736 done
43738 else
43740 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43741 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43742 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43743 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43744 echo $ECHO_N "(cached) $ECHO_C" >&6
43745 else
43749 ac_ext=cc
43750 ac_cpp='$CXXCPP $CPPFLAGS'
43751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43755 cat >conftest.$ac_ext <<_ACEOF
43756 /* confdefs.h. */
43757 _ACEOF
43758 cat confdefs.h >>conftest.$ac_ext
43759 cat >>conftest.$ac_ext <<_ACEOF
43760 /* end confdefs.h. */
43761 #include <math.h>
43763 main ()
43765 _fmodl(0, 0);
43767 return 0;
43769 _ACEOF
43770 rm -f conftest.$ac_objext
43771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43772 (eval $ac_compile) 2>conftest.er1
43773 ac_status=$?
43774 grep -v '^ *+' conftest.er1 >conftest.err
43775 rm -f conftest.er1
43776 cat conftest.err >&5
43777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43778 (exit $ac_status); } &&
43779 { ac_try='test -z "$ac_cxx_werror_flag"
43780 || test ! -s conftest.err'
43781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43782 (eval $ac_try) 2>&5
43783 ac_status=$?
43784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785 (exit $ac_status); }; } &&
43786 { ac_try='test -s conftest.$ac_objext'
43787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43788 (eval $ac_try) 2>&5
43789 ac_status=$?
43790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43791 (exit $ac_status); }; }; then
43792 glibcxx_cv_func__fmodl_use=yes
43793 else
43794 echo "$as_me: failed program was:" >&5
43795 sed 's/^/| /' conftest.$ac_ext >&5
43797 glibcxx_cv_func__fmodl_use=no
43799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43800 ac_ext=c
43801 ac_cpp='$CPP $CPPFLAGS'
43802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43810 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43811 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43813 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43815 for ac_func in _fmodl
43817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43818 echo "$as_me:$LINENO: checking for $ac_func" >&5
43819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43820 if eval "test \"\${$as_ac_var+set}\" = set"; then
43821 echo $ECHO_N "(cached) $ECHO_C" >&6
43822 else
43823 if test x$gcc_no_link = xyes; then
43824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43826 { (exit 1); exit 1; }; }
43828 cat >conftest.$ac_ext <<_ACEOF
43829 /* confdefs.h. */
43830 _ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h. */
43834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43836 #define $ac_func innocuous_$ac_func
43838 /* System header to define __stub macros and hopefully few prototypes,
43839 which can conflict with char $ac_func (); below.
43840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43841 <limits.h> exists even on freestanding compilers. */
43843 #ifdef __STDC__
43844 # include <limits.h>
43845 #else
43846 # include <assert.h>
43847 #endif
43849 #undef $ac_func
43851 /* Override any gcc2 internal prototype to avoid an error. */
43852 #ifdef __cplusplus
43853 extern "C"
43855 #endif
43856 /* We use char because int might match the return type of a gcc2
43857 builtin and then its argument prototype would still apply. */
43858 char $ac_func ();
43859 /* The GNU C library defines this for functions which it implements
43860 to always fail with ENOSYS. Some functions are actually named
43861 something starting with __ and the normal name is an alias. */
43862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43863 choke me
43864 #else
43865 char (*f) () = $ac_func;
43866 #endif
43867 #ifdef __cplusplus
43869 #endif
43872 main ()
43874 return f != $ac_func;
43876 return 0;
43878 _ACEOF
43879 rm -f conftest.$ac_objext conftest$ac_exeext
43880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43881 (eval $ac_link) 2>conftest.er1
43882 ac_status=$?
43883 grep -v '^ *+' conftest.er1 >conftest.err
43884 rm -f conftest.er1
43885 cat conftest.err >&5
43886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43887 (exit $ac_status); } &&
43888 { ac_try='test -z "$ac_c_werror_flag"
43889 || test ! -s conftest.err'
43890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43891 (eval $ac_try) 2>&5
43892 ac_status=$?
43893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894 (exit $ac_status); }; } &&
43895 { ac_try='test -s conftest$ac_exeext'
43896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43897 (eval $ac_try) 2>&5
43898 ac_status=$?
43899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43900 (exit $ac_status); }; }; then
43901 eval "$as_ac_var=yes"
43902 else
43903 echo "$as_me: failed program was:" >&5
43904 sed 's/^/| /' conftest.$ac_ext >&5
43906 eval "$as_ac_var=no"
43908 rm -f conftest.err conftest.$ac_objext \
43909 conftest$ac_exeext conftest.$ac_ext
43911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43913 if test `eval echo '${'$as_ac_var'}'` = yes; then
43914 cat >>confdefs.h <<_ACEOF
43915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43916 _ACEOF
43919 done
43926 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43927 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43928 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43929 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43930 echo $ECHO_N "(cached) $ECHO_C" >&6
43931 else
43935 ac_ext=cc
43936 ac_cpp='$CXXCPP $CPPFLAGS'
43937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43941 cat >conftest.$ac_ext <<_ACEOF
43942 /* confdefs.h. */
43943 _ACEOF
43944 cat confdefs.h >>conftest.$ac_ext
43945 cat >>conftest.$ac_ext <<_ACEOF
43946 /* end confdefs.h. */
43947 #include <math.h>
43949 main ()
43951 frexpl(0, 0);
43953 return 0;
43955 _ACEOF
43956 rm -f conftest.$ac_objext
43957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43958 (eval $ac_compile) 2>conftest.er1
43959 ac_status=$?
43960 grep -v '^ *+' conftest.er1 >conftest.err
43961 rm -f conftest.er1
43962 cat conftest.err >&5
43963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43964 (exit $ac_status); } &&
43965 { ac_try='test -z "$ac_cxx_werror_flag"
43966 || test ! -s conftest.err'
43967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43968 (eval $ac_try) 2>&5
43969 ac_status=$?
43970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43971 (exit $ac_status); }; } &&
43972 { ac_try='test -s conftest.$ac_objext'
43973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43974 (eval $ac_try) 2>&5
43975 ac_status=$?
43976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977 (exit $ac_status); }; }; then
43978 glibcxx_cv_func_frexpl_use=yes
43979 else
43980 echo "$as_me: failed program was:" >&5
43981 sed 's/^/| /' conftest.$ac_ext >&5
43983 glibcxx_cv_func_frexpl_use=no
43985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43986 ac_ext=c
43987 ac_cpp='$CPP $CPPFLAGS'
43988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43996 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43997 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43999 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44001 for ac_func in frexpl
44003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44004 echo "$as_me:$LINENO: checking for $ac_func" >&5
44005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44006 if eval "test \"\${$as_ac_var+set}\" = set"; then
44007 echo $ECHO_N "(cached) $ECHO_C" >&6
44008 else
44009 if test x$gcc_no_link = xyes; then
44010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44012 { (exit 1); exit 1; }; }
44014 cat >conftest.$ac_ext <<_ACEOF
44015 /* confdefs.h. */
44016 _ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h. */
44020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44022 #define $ac_func innocuous_$ac_func
44024 /* System header to define __stub macros and hopefully few prototypes,
44025 which can conflict with char $ac_func (); below.
44026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44027 <limits.h> exists even on freestanding compilers. */
44029 #ifdef __STDC__
44030 # include <limits.h>
44031 #else
44032 # include <assert.h>
44033 #endif
44035 #undef $ac_func
44037 /* Override any gcc2 internal prototype to avoid an error. */
44038 #ifdef __cplusplus
44039 extern "C"
44041 #endif
44042 /* We use char because int might match the return type of a gcc2
44043 builtin and then its argument prototype would still apply. */
44044 char $ac_func ();
44045 /* The GNU C library defines this for functions which it implements
44046 to always fail with ENOSYS. Some functions are actually named
44047 something starting with __ and the normal name is an alias. */
44048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44049 choke me
44050 #else
44051 char (*f) () = $ac_func;
44052 #endif
44053 #ifdef __cplusplus
44055 #endif
44058 main ()
44060 return f != $ac_func;
44062 return 0;
44064 _ACEOF
44065 rm -f conftest.$ac_objext conftest$ac_exeext
44066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44067 (eval $ac_link) 2>conftest.er1
44068 ac_status=$?
44069 grep -v '^ *+' conftest.er1 >conftest.err
44070 rm -f conftest.er1
44071 cat conftest.err >&5
44072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073 (exit $ac_status); } &&
44074 { ac_try='test -z "$ac_c_werror_flag"
44075 || test ! -s conftest.err'
44076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44077 (eval $ac_try) 2>&5
44078 ac_status=$?
44079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080 (exit $ac_status); }; } &&
44081 { ac_try='test -s conftest$ac_exeext'
44082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083 (eval $ac_try) 2>&5
44084 ac_status=$?
44085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); }; }; then
44087 eval "$as_ac_var=yes"
44088 else
44089 echo "$as_me: failed program was:" >&5
44090 sed 's/^/| /' conftest.$ac_ext >&5
44092 eval "$as_ac_var=no"
44094 rm -f conftest.err conftest.$ac_objext \
44095 conftest$ac_exeext conftest.$ac_ext
44097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44099 if test `eval echo '${'$as_ac_var'}'` = yes; then
44100 cat >>confdefs.h <<_ACEOF
44101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44102 _ACEOF
44105 done
44107 else
44109 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44110 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44111 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44112 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44113 echo $ECHO_N "(cached) $ECHO_C" >&6
44114 else
44118 ac_ext=cc
44119 ac_cpp='$CXXCPP $CPPFLAGS'
44120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44124 cat >conftest.$ac_ext <<_ACEOF
44125 /* confdefs.h. */
44126 _ACEOF
44127 cat confdefs.h >>conftest.$ac_ext
44128 cat >>conftest.$ac_ext <<_ACEOF
44129 /* end confdefs.h. */
44130 #include <math.h>
44132 main ()
44134 _frexpl(0, 0);
44136 return 0;
44138 _ACEOF
44139 rm -f conftest.$ac_objext
44140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44141 (eval $ac_compile) 2>conftest.er1
44142 ac_status=$?
44143 grep -v '^ *+' conftest.er1 >conftest.err
44144 rm -f conftest.er1
44145 cat conftest.err >&5
44146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44147 (exit $ac_status); } &&
44148 { ac_try='test -z "$ac_cxx_werror_flag"
44149 || test ! -s conftest.err'
44150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44151 (eval $ac_try) 2>&5
44152 ac_status=$?
44153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44154 (exit $ac_status); }; } &&
44155 { ac_try='test -s conftest.$ac_objext'
44156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44157 (eval $ac_try) 2>&5
44158 ac_status=$?
44159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44160 (exit $ac_status); }; }; then
44161 glibcxx_cv_func__frexpl_use=yes
44162 else
44163 echo "$as_me: failed program was:" >&5
44164 sed 's/^/| /' conftest.$ac_ext >&5
44166 glibcxx_cv_func__frexpl_use=no
44168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44169 ac_ext=c
44170 ac_cpp='$CPP $CPPFLAGS'
44171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44179 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44180 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44182 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44184 for ac_func in _frexpl
44186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44187 echo "$as_me:$LINENO: checking for $ac_func" >&5
44188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44189 if eval "test \"\${$as_ac_var+set}\" = set"; then
44190 echo $ECHO_N "(cached) $ECHO_C" >&6
44191 else
44192 if test x$gcc_no_link = xyes; then
44193 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44194 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44195 { (exit 1); exit 1; }; }
44197 cat >conftest.$ac_ext <<_ACEOF
44198 /* confdefs.h. */
44199 _ACEOF
44200 cat confdefs.h >>conftest.$ac_ext
44201 cat >>conftest.$ac_ext <<_ACEOF
44202 /* end confdefs.h. */
44203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44205 #define $ac_func innocuous_$ac_func
44207 /* System header to define __stub macros and hopefully few prototypes,
44208 which can conflict with char $ac_func (); below.
44209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44210 <limits.h> exists even on freestanding compilers. */
44212 #ifdef __STDC__
44213 # include <limits.h>
44214 #else
44215 # include <assert.h>
44216 #endif
44218 #undef $ac_func
44220 /* Override any gcc2 internal prototype to avoid an error. */
44221 #ifdef __cplusplus
44222 extern "C"
44224 #endif
44225 /* We use char because int might match the return type of a gcc2
44226 builtin and then its argument prototype would still apply. */
44227 char $ac_func ();
44228 /* The GNU C library defines this for functions which it implements
44229 to always fail with ENOSYS. Some functions are actually named
44230 something starting with __ and the normal name is an alias. */
44231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44232 choke me
44233 #else
44234 char (*f) () = $ac_func;
44235 #endif
44236 #ifdef __cplusplus
44238 #endif
44241 main ()
44243 return f != $ac_func;
44245 return 0;
44247 _ACEOF
44248 rm -f conftest.$ac_objext conftest$ac_exeext
44249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44250 (eval $ac_link) 2>conftest.er1
44251 ac_status=$?
44252 grep -v '^ *+' conftest.er1 >conftest.err
44253 rm -f conftest.er1
44254 cat conftest.err >&5
44255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44256 (exit $ac_status); } &&
44257 { ac_try='test -z "$ac_c_werror_flag"
44258 || test ! -s conftest.err'
44259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44260 (eval $ac_try) 2>&5
44261 ac_status=$?
44262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44263 (exit $ac_status); }; } &&
44264 { ac_try='test -s conftest$ac_exeext'
44265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44266 (eval $ac_try) 2>&5
44267 ac_status=$?
44268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44269 (exit $ac_status); }; }; then
44270 eval "$as_ac_var=yes"
44271 else
44272 echo "$as_me: failed program was:" >&5
44273 sed 's/^/| /' conftest.$ac_ext >&5
44275 eval "$as_ac_var=no"
44277 rm -f conftest.err conftest.$ac_objext \
44278 conftest$ac_exeext conftest.$ac_ext
44280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44282 if test `eval echo '${'$as_ac_var'}'` = yes; then
44283 cat >>confdefs.h <<_ACEOF
44284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44285 _ACEOF
44288 done
44295 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44296 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44297 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44298 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44299 echo $ECHO_N "(cached) $ECHO_C" >&6
44300 else
44304 ac_ext=cc
44305 ac_cpp='$CXXCPP $CPPFLAGS'
44306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44310 cat >conftest.$ac_ext <<_ACEOF
44311 /* confdefs.h. */
44312 _ACEOF
44313 cat confdefs.h >>conftest.$ac_ext
44314 cat >>conftest.$ac_ext <<_ACEOF
44315 /* end confdefs.h. */
44316 #include <math.h>
44318 main ()
44320 hypotl(0, 0);
44322 return 0;
44324 _ACEOF
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327 (eval $ac_compile) 2>conftest.er1
44328 ac_status=$?
44329 grep -v '^ *+' conftest.er1 >conftest.err
44330 rm -f conftest.er1
44331 cat conftest.err >&5
44332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 (exit $ac_status); } &&
44334 { ac_try='test -z "$ac_cxx_werror_flag"
44335 || test ! -s conftest.err'
44336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44337 (eval $ac_try) 2>&5
44338 ac_status=$?
44339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340 (exit $ac_status); }; } &&
44341 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
44347 glibcxx_cv_func_hypotl_use=yes
44348 else
44349 echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44352 glibcxx_cv_func_hypotl_use=no
44354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44355 ac_ext=c
44356 ac_cpp='$CPP $CPPFLAGS'
44357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44365 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44366 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44368 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44370 for ac_func in hypotl
44372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44373 echo "$as_me:$LINENO: checking for $ac_func" >&5
44374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44375 if eval "test \"\${$as_ac_var+set}\" = set"; then
44376 echo $ECHO_N "(cached) $ECHO_C" >&6
44377 else
44378 if test x$gcc_no_link = xyes; then
44379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44381 { (exit 1); exit 1; }; }
44383 cat >conftest.$ac_ext <<_ACEOF
44384 /* confdefs.h. */
44385 _ACEOF
44386 cat confdefs.h >>conftest.$ac_ext
44387 cat >>conftest.$ac_ext <<_ACEOF
44388 /* end confdefs.h. */
44389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44391 #define $ac_func innocuous_$ac_func
44393 /* System header to define __stub macros and hopefully few prototypes,
44394 which can conflict with char $ac_func (); below.
44395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44396 <limits.h> exists even on freestanding compilers. */
44398 #ifdef __STDC__
44399 # include <limits.h>
44400 #else
44401 # include <assert.h>
44402 #endif
44404 #undef $ac_func
44406 /* Override any gcc2 internal prototype to avoid an error. */
44407 #ifdef __cplusplus
44408 extern "C"
44410 #endif
44411 /* We use char because int might match the return type of a gcc2
44412 builtin and then its argument prototype would still apply. */
44413 char $ac_func ();
44414 /* The GNU C library defines this for functions which it implements
44415 to always fail with ENOSYS. Some functions are actually named
44416 something starting with __ and the normal name is an alias. */
44417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44418 choke me
44419 #else
44420 char (*f) () = $ac_func;
44421 #endif
44422 #ifdef __cplusplus
44424 #endif
44427 main ()
44429 return f != $ac_func;
44431 return 0;
44433 _ACEOF
44434 rm -f conftest.$ac_objext conftest$ac_exeext
44435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44436 (eval $ac_link) 2>conftest.er1
44437 ac_status=$?
44438 grep -v '^ *+' conftest.er1 >conftest.err
44439 rm -f conftest.er1
44440 cat conftest.err >&5
44441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44442 (exit $ac_status); } &&
44443 { ac_try='test -z "$ac_c_werror_flag"
44444 || test ! -s conftest.err'
44445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44446 (eval $ac_try) 2>&5
44447 ac_status=$?
44448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44449 (exit $ac_status); }; } &&
44450 { ac_try='test -s conftest$ac_exeext'
44451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44452 (eval $ac_try) 2>&5
44453 ac_status=$?
44454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44455 (exit $ac_status); }; }; then
44456 eval "$as_ac_var=yes"
44457 else
44458 echo "$as_me: failed program was:" >&5
44459 sed 's/^/| /' conftest.$ac_ext >&5
44461 eval "$as_ac_var=no"
44463 rm -f conftest.err conftest.$ac_objext \
44464 conftest$ac_exeext conftest.$ac_ext
44466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44468 if test `eval echo '${'$as_ac_var'}'` = yes; then
44469 cat >>confdefs.h <<_ACEOF
44470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44471 _ACEOF
44474 done
44476 else
44478 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44479 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44480 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44481 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44482 echo $ECHO_N "(cached) $ECHO_C" >&6
44483 else
44487 ac_ext=cc
44488 ac_cpp='$CXXCPP $CPPFLAGS'
44489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44493 cat >conftest.$ac_ext <<_ACEOF
44494 /* confdefs.h. */
44495 _ACEOF
44496 cat confdefs.h >>conftest.$ac_ext
44497 cat >>conftest.$ac_ext <<_ACEOF
44498 /* end confdefs.h. */
44499 #include <math.h>
44501 main ()
44503 _hypotl(0, 0);
44505 return 0;
44507 _ACEOF
44508 rm -f conftest.$ac_objext
44509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44510 (eval $ac_compile) 2>conftest.er1
44511 ac_status=$?
44512 grep -v '^ *+' conftest.er1 >conftest.err
44513 rm -f conftest.er1
44514 cat conftest.err >&5
44515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44516 (exit $ac_status); } &&
44517 { ac_try='test -z "$ac_cxx_werror_flag"
44518 || test ! -s conftest.err'
44519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44520 (eval $ac_try) 2>&5
44521 ac_status=$?
44522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523 (exit $ac_status); }; } &&
44524 { ac_try='test -s conftest.$ac_objext'
44525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44526 (eval $ac_try) 2>&5
44527 ac_status=$?
44528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44529 (exit $ac_status); }; }; then
44530 glibcxx_cv_func__hypotl_use=yes
44531 else
44532 echo "$as_me: failed program was:" >&5
44533 sed 's/^/| /' conftest.$ac_ext >&5
44535 glibcxx_cv_func__hypotl_use=no
44537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44538 ac_ext=c
44539 ac_cpp='$CPP $CPPFLAGS'
44540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44548 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44549 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44551 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44553 for ac_func in _hypotl
44555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44556 echo "$as_me:$LINENO: checking for $ac_func" >&5
44557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44558 if eval "test \"\${$as_ac_var+set}\" = set"; then
44559 echo $ECHO_N "(cached) $ECHO_C" >&6
44560 else
44561 if test x$gcc_no_link = xyes; then
44562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44564 { (exit 1); exit 1; }; }
44566 cat >conftest.$ac_ext <<_ACEOF
44567 /* confdefs.h. */
44568 _ACEOF
44569 cat confdefs.h >>conftest.$ac_ext
44570 cat >>conftest.$ac_ext <<_ACEOF
44571 /* end confdefs.h. */
44572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44574 #define $ac_func innocuous_$ac_func
44576 /* System header to define __stub macros and hopefully few prototypes,
44577 which can conflict with char $ac_func (); below.
44578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44579 <limits.h> exists even on freestanding compilers. */
44581 #ifdef __STDC__
44582 # include <limits.h>
44583 #else
44584 # include <assert.h>
44585 #endif
44587 #undef $ac_func
44589 /* Override any gcc2 internal prototype to avoid an error. */
44590 #ifdef __cplusplus
44591 extern "C"
44593 #endif
44594 /* We use char because int might match the return type of a gcc2
44595 builtin and then its argument prototype would still apply. */
44596 char $ac_func ();
44597 /* The GNU C library defines this for functions which it implements
44598 to always fail with ENOSYS. Some functions are actually named
44599 something starting with __ and the normal name is an alias. */
44600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44601 choke me
44602 #else
44603 char (*f) () = $ac_func;
44604 #endif
44605 #ifdef __cplusplus
44607 #endif
44610 main ()
44612 return f != $ac_func;
44614 return 0;
44616 _ACEOF
44617 rm -f conftest.$ac_objext conftest$ac_exeext
44618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44619 (eval $ac_link) 2>conftest.er1
44620 ac_status=$?
44621 grep -v '^ *+' conftest.er1 >conftest.err
44622 rm -f conftest.er1
44623 cat conftest.err >&5
44624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44625 (exit $ac_status); } &&
44626 { ac_try='test -z "$ac_c_werror_flag"
44627 || test ! -s conftest.err'
44628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44629 (eval $ac_try) 2>&5
44630 ac_status=$?
44631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44632 (exit $ac_status); }; } &&
44633 { ac_try='test -s conftest$ac_exeext'
44634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44635 (eval $ac_try) 2>&5
44636 ac_status=$?
44637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44638 (exit $ac_status); }; }; then
44639 eval "$as_ac_var=yes"
44640 else
44641 echo "$as_me: failed program was:" >&5
44642 sed 's/^/| /' conftest.$ac_ext >&5
44644 eval "$as_ac_var=no"
44646 rm -f conftest.err conftest.$ac_objext \
44647 conftest$ac_exeext conftest.$ac_ext
44649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44651 if test `eval echo '${'$as_ac_var'}'` = yes; then
44652 cat >>confdefs.h <<_ACEOF
44653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44654 _ACEOF
44657 done
44664 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44665 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44666 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44667 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44668 echo $ECHO_N "(cached) $ECHO_C" >&6
44669 else
44673 ac_ext=cc
44674 ac_cpp='$CXXCPP $CPPFLAGS'
44675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44679 cat >conftest.$ac_ext <<_ACEOF
44680 /* confdefs.h. */
44681 _ACEOF
44682 cat confdefs.h >>conftest.$ac_ext
44683 cat >>conftest.$ac_ext <<_ACEOF
44684 /* end confdefs.h. */
44685 #include <math.h>
44687 main ()
44689 ldexpl(0, 0);
44691 return 0;
44693 _ACEOF
44694 rm -f conftest.$ac_objext
44695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44696 (eval $ac_compile) 2>conftest.er1
44697 ac_status=$?
44698 grep -v '^ *+' conftest.er1 >conftest.err
44699 rm -f conftest.er1
44700 cat conftest.err >&5
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); } &&
44703 { ac_try='test -z "$ac_cxx_werror_flag"
44704 || test ! -s conftest.err'
44705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44706 (eval $ac_try) 2>&5
44707 ac_status=$?
44708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709 (exit $ac_status); }; } &&
44710 { ac_try='test -s conftest.$ac_objext'
44711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44712 (eval $ac_try) 2>&5
44713 ac_status=$?
44714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715 (exit $ac_status); }; }; then
44716 glibcxx_cv_func_ldexpl_use=yes
44717 else
44718 echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44721 glibcxx_cv_func_ldexpl_use=no
44723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44724 ac_ext=c
44725 ac_cpp='$CPP $CPPFLAGS'
44726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44734 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44735 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44737 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44739 for ac_func in ldexpl
44741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44742 echo "$as_me:$LINENO: checking for $ac_func" >&5
44743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44744 if eval "test \"\${$as_ac_var+set}\" = set"; then
44745 echo $ECHO_N "(cached) $ECHO_C" >&6
44746 else
44747 if test x$gcc_no_link = xyes; then
44748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44750 { (exit 1); exit 1; }; }
44752 cat >conftest.$ac_ext <<_ACEOF
44753 /* confdefs.h. */
44754 _ACEOF
44755 cat confdefs.h >>conftest.$ac_ext
44756 cat >>conftest.$ac_ext <<_ACEOF
44757 /* end confdefs.h. */
44758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44760 #define $ac_func innocuous_$ac_func
44762 /* System header to define __stub macros and hopefully few prototypes,
44763 which can conflict with char $ac_func (); below.
44764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44765 <limits.h> exists even on freestanding compilers. */
44767 #ifdef __STDC__
44768 # include <limits.h>
44769 #else
44770 # include <assert.h>
44771 #endif
44773 #undef $ac_func
44775 /* Override any gcc2 internal prototype to avoid an error. */
44776 #ifdef __cplusplus
44777 extern "C"
44779 #endif
44780 /* We use char because int might match the return type of a gcc2
44781 builtin and then its argument prototype would still apply. */
44782 char $ac_func ();
44783 /* The GNU C library defines this for functions which it implements
44784 to always fail with ENOSYS. Some functions are actually named
44785 something starting with __ and the normal name is an alias. */
44786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44787 choke me
44788 #else
44789 char (*f) () = $ac_func;
44790 #endif
44791 #ifdef __cplusplus
44793 #endif
44796 main ()
44798 return f != $ac_func;
44800 return 0;
44802 _ACEOF
44803 rm -f conftest.$ac_objext conftest$ac_exeext
44804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44805 (eval $ac_link) 2>conftest.er1
44806 ac_status=$?
44807 grep -v '^ *+' conftest.er1 >conftest.err
44808 rm -f conftest.er1
44809 cat conftest.err >&5
44810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44811 (exit $ac_status); } &&
44812 { ac_try='test -z "$ac_c_werror_flag"
44813 || test ! -s conftest.err'
44814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44815 (eval $ac_try) 2>&5
44816 ac_status=$?
44817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44818 (exit $ac_status); }; } &&
44819 { ac_try='test -s conftest$ac_exeext'
44820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44821 (eval $ac_try) 2>&5
44822 ac_status=$?
44823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44824 (exit $ac_status); }; }; then
44825 eval "$as_ac_var=yes"
44826 else
44827 echo "$as_me: failed program was:" >&5
44828 sed 's/^/| /' conftest.$ac_ext >&5
44830 eval "$as_ac_var=no"
44832 rm -f conftest.err conftest.$ac_objext \
44833 conftest$ac_exeext conftest.$ac_ext
44835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44837 if test `eval echo '${'$as_ac_var'}'` = yes; then
44838 cat >>confdefs.h <<_ACEOF
44839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44840 _ACEOF
44843 done
44845 else
44847 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44848 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44849 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44850 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44851 echo $ECHO_N "(cached) $ECHO_C" >&6
44852 else
44856 ac_ext=cc
44857 ac_cpp='$CXXCPP $CPPFLAGS'
44858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44862 cat >conftest.$ac_ext <<_ACEOF
44863 /* confdefs.h. */
44864 _ACEOF
44865 cat confdefs.h >>conftest.$ac_ext
44866 cat >>conftest.$ac_ext <<_ACEOF
44867 /* end confdefs.h. */
44868 #include <math.h>
44870 main ()
44872 _ldexpl(0, 0);
44874 return 0;
44876 _ACEOF
44877 rm -f conftest.$ac_objext
44878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44879 (eval $ac_compile) 2>conftest.er1
44880 ac_status=$?
44881 grep -v '^ *+' conftest.er1 >conftest.err
44882 rm -f conftest.er1
44883 cat conftest.err >&5
44884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885 (exit $ac_status); } &&
44886 { ac_try='test -z "$ac_cxx_werror_flag"
44887 || test ! -s conftest.err'
44888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44889 (eval $ac_try) 2>&5
44890 ac_status=$?
44891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44892 (exit $ac_status); }; } &&
44893 { ac_try='test -s conftest.$ac_objext'
44894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44895 (eval $ac_try) 2>&5
44896 ac_status=$?
44897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44898 (exit $ac_status); }; }; then
44899 glibcxx_cv_func__ldexpl_use=yes
44900 else
44901 echo "$as_me: failed program was:" >&5
44902 sed 's/^/| /' conftest.$ac_ext >&5
44904 glibcxx_cv_func__ldexpl_use=no
44906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44907 ac_ext=c
44908 ac_cpp='$CPP $CPPFLAGS'
44909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44917 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44918 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44920 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44922 for ac_func in _ldexpl
44924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44925 echo "$as_me:$LINENO: checking for $ac_func" >&5
44926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44927 if eval "test \"\${$as_ac_var+set}\" = set"; then
44928 echo $ECHO_N "(cached) $ECHO_C" >&6
44929 else
44930 if test x$gcc_no_link = xyes; then
44931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44933 { (exit 1); exit 1; }; }
44935 cat >conftest.$ac_ext <<_ACEOF
44936 /* confdefs.h. */
44937 _ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h. */
44941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44943 #define $ac_func innocuous_$ac_func
44945 /* System header to define __stub macros and hopefully few prototypes,
44946 which can conflict with char $ac_func (); below.
44947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44948 <limits.h> exists even on freestanding compilers. */
44950 #ifdef __STDC__
44951 # include <limits.h>
44952 #else
44953 # include <assert.h>
44954 #endif
44956 #undef $ac_func
44958 /* Override any gcc2 internal prototype to avoid an error. */
44959 #ifdef __cplusplus
44960 extern "C"
44962 #endif
44963 /* We use char because int might match the return type of a gcc2
44964 builtin and then its argument prototype would still apply. */
44965 char $ac_func ();
44966 /* The GNU C library defines this for functions which it implements
44967 to always fail with ENOSYS. Some functions are actually named
44968 something starting with __ and the normal name is an alias. */
44969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44970 choke me
44971 #else
44972 char (*f) () = $ac_func;
44973 #endif
44974 #ifdef __cplusplus
44976 #endif
44979 main ()
44981 return f != $ac_func;
44983 return 0;
44985 _ACEOF
44986 rm -f conftest.$ac_objext conftest$ac_exeext
44987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44988 (eval $ac_link) 2>conftest.er1
44989 ac_status=$?
44990 grep -v '^ *+' conftest.er1 >conftest.err
44991 rm -f conftest.er1
44992 cat conftest.err >&5
44993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44994 (exit $ac_status); } &&
44995 { ac_try='test -z "$ac_c_werror_flag"
44996 || test ! -s conftest.err'
44997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44998 (eval $ac_try) 2>&5
44999 ac_status=$?
45000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45001 (exit $ac_status); }; } &&
45002 { ac_try='test -s conftest$ac_exeext'
45003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45004 (eval $ac_try) 2>&5
45005 ac_status=$?
45006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45007 (exit $ac_status); }; }; then
45008 eval "$as_ac_var=yes"
45009 else
45010 echo "$as_me: failed program was:" >&5
45011 sed 's/^/| /' conftest.$ac_ext >&5
45013 eval "$as_ac_var=no"
45015 rm -f conftest.err conftest.$ac_objext \
45016 conftest$ac_exeext conftest.$ac_ext
45018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45020 if test `eval echo '${'$as_ac_var'}'` = yes; then
45021 cat >>confdefs.h <<_ACEOF
45022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45023 _ACEOF
45026 done
45033 echo "$as_me:$LINENO: checking for logl declaration" >&5
45034 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
45035 if test x${glibcxx_cv_func_logl_use+set} != xset; then
45036 if test "${glibcxx_cv_func_logl_use+set}" = set; then
45037 echo $ECHO_N "(cached) $ECHO_C" >&6
45038 else
45042 ac_ext=cc
45043 ac_cpp='$CXXCPP $CPPFLAGS'
45044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45048 cat >conftest.$ac_ext <<_ACEOF
45049 /* confdefs.h. */
45050 _ACEOF
45051 cat confdefs.h >>conftest.$ac_ext
45052 cat >>conftest.$ac_ext <<_ACEOF
45053 /* end confdefs.h. */
45054 #include <math.h>
45055 #ifdef HAVE_IEEEFP_H
45056 #include <ieeefp.h>
45057 #endif
45060 main ()
45062 logl(0);
45064 return 0;
45066 _ACEOF
45067 rm -f conftest.$ac_objext
45068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45069 (eval $ac_compile) 2>conftest.er1
45070 ac_status=$?
45071 grep -v '^ *+' conftest.er1 >conftest.err
45072 rm -f conftest.er1
45073 cat conftest.err >&5
45074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075 (exit $ac_status); } &&
45076 { ac_try='test -z "$ac_cxx_werror_flag"
45077 || test ! -s conftest.err'
45078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45079 (eval $ac_try) 2>&5
45080 ac_status=$?
45081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45082 (exit $ac_status); }; } &&
45083 { ac_try='test -s conftest.$ac_objext'
45084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45085 (eval $ac_try) 2>&5
45086 ac_status=$?
45087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45088 (exit $ac_status); }; }; then
45089 glibcxx_cv_func_logl_use=yes
45090 else
45091 echo "$as_me: failed program was:" >&5
45092 sed 's/^/| /' conftest.$ac_ext >&5
45094 glibcxx_cv_func_logl_use=no
45096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45097 ac_ext=c
45098 ac_cpp='$CPP $CPPFLAGS'
45099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45107 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45108 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45110 if test x$glibcxx_cv_func_logl_use = x"yes"; then
45112 for ac_func in logl
45114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45115 echo "$as_me:$LINENO: checking for $ac_func" >&5
45116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45117 if eval "test \"\${$as_ac_var+set}\" = set"; then
45118 echo $ECHO_N "(cached) $ECHO_C" >&6
45119 else
45120 if test x$gcc_no_link = xyes; then
45121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45123 { (exit 1); exit 1; }; }
45125 cat >conftest.$ac_ext <<_ACEOF
45126 /* confdefs.h. */
45127 _ACEOF
45128 cat confdefs.h >>conftest.$ac_ext
45129 cat >>conftest.$ac_ext <<_ACEOF
45130 /* end confdefs.h. */
45131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45133 #define $ac_func innocuous_$ac_func
45135 /* System header to define __stub macros and hopefully few prototypes,
45136 which can conflict with char $ac_func (); below.
45137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45138 <limits.h> exists even on freestanding compilers. */
45140 #ifdef __STDC__
45141 # include <limits.h>
45142 #else
45143 # include <assert.h>
45144 #endif
45146 #undef $ac_func
45148 /* Override any gcc2 internal prototype to avoid an error. */
45149 #ifdef __cplusplus
45150 extern "C"
45152 #endif
45153 /* We use char because int might match the return type of a gcc2
45154 builtin and then its argument prototype would still apply. */
45155 char $ac_func ();
45156 /* The GNU C library defines this for functions which it implements
45157 to always fail with ENOSYS. Some functions are actually named
45158 something starting with __ and the normal name is an alias. */
45159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45160 choke me
45161 #else
45162 char (*f) () = $ac_func;
45163 #endif
45164 #ifdef __cplusplus
45166 #endif
45169 main ()
45171 return f != $ac_func;
45173 return 0;
45175 _ACEOF
45176 rm -f conftest.$ac_objext conftest$ac_exeext
45177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45178 (eval $ac_link) 2>conftest.er1
45179 ac_status=$?
45180 grep -v '^ *+' conftest.er1 >conftest.err
45181 rm -f conftest.er1
45182 cat conftest.err >&5
45183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45184 (exit $ac_status); } &&
45185 { ac_try='test -z "$ac_c_werror_flag"
45186 || test ! -s conftest.err'
45187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45188 (eval $ac_try) 2>&5
45189 ac_status=$?
45190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45191 (exit $ac_status); }; } &&
45192 { ac_try='test -s conftest$ac_exeext'
45193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45194 (eval $ac_try) 2>&5
45195 ac_status=$?
45196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197 (exit $ac_status); }; }; then
45198 eval "$as_ac_var=yes"
45199 else
45200 echo "$as_me: failed program was:" >&5
45201 sed 's/^/| /' conftest.$ac_ext >&5
45203 eval "$as_ac_var=no"
45205 rm -f conftest.err conftest.$ac_objext \
45206 conftest$ac_exeext conftest.$ac_ext
45208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45210 if test `eval echo '${'$as_ac_var'}'` = yes; then
45211 cat >>confdefs.h <<_ACEOF
45212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45213 _ACEOF
45216 done
45218 else
45220 echo "$as_me:$LINENO: checking for _logl declaration" >&5
45221 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45222 if test x${glibcxx_cv_func__logl_use+set} != xset; then
45223 if test "${glibcxx_cv_func__logl_use+set}" = set; then
45224 echo $ECHO_N "(cached) $ECHO_C" >&6
45225 else
45229 ac_ext=cc
45230 ac_cpp='$CXXCPP $CPPFLAGS'
45231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45235 cat >conftest.$ac_ext <<_ACEOF
45236 /* confdefs.h. */
45237 _ACEOF
45238 cat confdefs.h >>conftest.$ac_ext
45239 cat >>conftest.$ac_ext <<_ACEOF
45240 /* end confdefs.h. */
45241 #include <math.h>
45242 #ifdef HAVE_IEEEFP_H
45243 #include <ieeefp.h>
45244 #endif
45247 main ()
45249 _logl(0);
45251 return 0;
45253 _ACEOF
45254 rm -f conftest.$ac_objext
45255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45256 (eval $ac_compile) 2>conftest.er1
45257 ac_status=$?
45258 grep -v '^ *+' conftest.er1 >conftest.err
45259 rm -f conftest.er1
45260 cat conftest.err >&5
45261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45262 (exit $ac_status); } &&
45263 { ac_try='test -z "$ac_cxx_werror_flag"
45264 || test ! -s conftest.err'
45265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45266 (eval $ac_try) 2>&5
45267 ac_status=$?
45268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45269 (exit $ac_status); }; } &&
45270 { ac_try='test -s conftest.$ac_objext'
45271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45272 (eval $ac_try) 2>&5
45273 ac_status=$?
45274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45275 (exit $ac_status); }; }; then
45276 glibcxx_cv_func__logl_use=yes
45277 else
45278 echo "$as_me: failed program was:" >&5
45279 sed 's/^/| /' conftest.$ac_ext >&5
45281 glibcxx_cv_func__logl_use=no
45283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45284 ac_ext=c
45285 ac_cpp='$CPP $CPPFLAGS'
45286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45294 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45295 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45297 if test x$glibcxx_cv_func__logl_use = x"yes"; then
45299 for ac_func in _logl
45301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45302 echo "$as_me:$LINENO: checking for $ac_func" >&5
45303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45304 if eval "test \"\${$as_ac_var+set}\" = set"; then
45305 echo $ECHO_N "(cached) $ECHO_C" >&6
45306 else
45307 if test x$gcc_no_link = xyes; then
45308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45310 { (exit 1); exit 1; }; }
45312 cat >conftest.$ac_ext <<_ACEOF
45313 /* confdefs.h. */
45314 _ACEOF
45315 cat confdefs.h >>conftest.$ac_ext
45316 cat >>conftest.$ac_ext <<_ACEOF
45317 /* end confdefs.h. */
45318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45320 #define $ac_func innocuous_$ac_func
45322 /* System header to define __stub macros and hopefully few prototypes,
45323 which can conflict with char $ac_func (); below.
45324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45325 <limits.h> exists even on freestanding compilers. */
45327 #ifdef __STDC__
45328 # include <limits.h>
45329 #else
45330 # include <assert.h>
45331 #endif
45333 #undef $ac_func
45335 /* Override any gcc2 internal prototype to avoid an error. */
45336 #ifdef __cplusplus
45337 extern "C"
45339 #endif
45340 /* We use char because int might match the return type of a gcc2
45341 builtin and then its argument prototype would still apply. */
45342 char $ac_func ();
45343 /* The GNU C library defines this for functions which it implements
45344 to always fail with ENOSYS. Some functions are actually named
45345 something starting with __ and the normal name is an alias. */
45346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45347 choke me
45348 #else
45349 char (*f) () = $ac_func;
45350 #endif
45351 #ifdef __cplusplus
45353 #endif
45356 main ()
45358 return f != $ac_func;
45360 return 0;
45362 _ACEOF
45363 rm -f conftest.$ac_objext conftest$ac_exeext
45364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45365 (eval $ac_link) 2>conftest.er1
45366 ac_status=$?
45367 grep -v '^ *+' conftest.er1 >conftest.err
45368 rm -f conftest.er1
45369 cat conftest.err >&5
45370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45371 (exit $ac_status); } &&
45372 { ac_try='test -z "$ac_c_werror_flag"
45373 || test ! -s conftest.err'
45374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45375 (eval $ac_try) 2>&5
45376 ac_status=$?
45377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45378 (exit $ac_status); }; } &&
45379 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
45385 eval "$as_ac_var=yes"
45386 else
45387 echo "$as_me: failed program was:" >&5
45388 sed 's/^/| /' conftest.$ac_ext >&5
45390 eval "$as_ac_var=no"
45392 rm -f conftest.err conftest.$ac_objext \
45393 conftest$ac_exeext conftest.$ac_ext
45395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45397 if test `eval echo '${'$as_ac_var'}'` = yes; then
45398 cat >>confdefs.h <<_ACEOF
45399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45400 _ACEOF
45403 done
45410 echo "$as_me:$LINENO: checking for log10l declaration" >&5
45411 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45412 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45413 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45414 echo $ECHO_N "(cached) $ECHO_C" >&6
45415 else
45419 ac_ext=cc
45420 ac_cpp='$CXXCPP $CPPFLAGS'
45421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45425 cat >conftest.$ac_ext <<_ACEOF
45426 /* confdefs.h. */
45427 _ACEOF
45428 cat confdefs.h >>conftest.$ac_ext
45429 cat >>conftest.$ac_ext <<_ACEOF
45430 /* end confdefs.h. */
45431 #include <math.h>
45432 #ifdef HAVE_IEEEFP_H
45433 #include <ieeefp.h>
45434 #endif
45437 main ()
45439 log10l(0);
45441 return 0;
45443 _ACEOF
45444 rm -f conftest.$ac_objext
45445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45446 (eval $ac_compile) 2>conftest.er1
45447 ac_status=$?
45448 grep -v '^ *+' conftest.er1 >conftest.err
45449 rm -f conftest.er1
45450 cat conftest.err >&5
45451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45452 (exit $ac_status); } &&
45453 { ac_try='test -z "$ac_cxx_werror_flag"
45454 || test ! -s conftest.err'
45455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45456 (eval $ac_try) 2>&5
45457 ac_status=$?
45458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45459 (exit $ac_status); }; } &&
45460 { ac_try='test -s conftest.$ac_objext'
45461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45462 (eval $ac_try) 2>&5
45463 ac_status=$?
45464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45465 (exit $ac_status); }; }; then
45466 glibcxx_cv_func_log10l_use=yes
45467 else
45468 echo "$as_me: failed program was:" >&5
45469 sed 's/^/| /' conftest.$ac_ext >&5
45471 glibcxx_cv_func_log10l_use=no
45473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45474 ac_ext=c
45475 ac_cpp='$CPP $CPPFLAGS'
45476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45484 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45485 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45487 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45489 for ac_func in log10l
45491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45492 echo "$as_me:$LINENO: checking for $ac_func" >&5
45493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45494 if eval "test \"\${$as_ac_var+set}\" = set"; then
45495 echo $ECHO_N "(cached) $ECHO_C" >&6
45496 else
45497 if test x$gcc_no_link = xyes; then
45498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45500 { (exit 1); exit 1; }; }
45502 cat >conftest.$ac_ext <<_ACEOF
45503 /* confdefs.h. */
45504 _ACEOF
45505 cat confdefs.h >>conftest.$ac_ext
45506 cat >>conftest.$ac_ext <<_ACEOF
45507 /* end confdefs.h. */
45508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45510 #define $ac_func innocuous_$ac_func
45512 /* System header to define __stub macros and hopefully few prototypes,
45513 which can conflict with char $ac_func (); below.
45514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45515 <limits.h> exists even on freestanding compilers. */
45517 #ifdef __STDC__
45518 # include <limits.h>
45519 #else
45520 # include <assert.h>
45521 #endif
45523 #undef $ac_func
45525 /* Override any gcc2 internal prototype to avoid an error. */
45526 #ifdef __cplusplus
45527 extern "C"
45529 #endif
45530 /* We use char because int might match the return type of a gcc2
45531 builtin and then its argument prototype would still apply. */
45532 char $ac_func ();
45533 /* The GNU C library defines this for functions which it implements
45534 to always fail with ENOSYS. Some functions are actually named
45535 something starting with __ and the normal name is an alias. */
45536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45537 choke me
45538 #else
45539 char (*f) () = $ac_func;
45540 #endif
45541 #ifdef __cplusplus
45543 #endif
45546 main ()
45548 return f != $ac_func;
45550 return 0;
45552 _ACEOF
45553 rm -f conftest.$ac_objext conftest$ac_exeext
45554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45555 (eval $ac_link) 2>conftest.er1
45556 ac_status=$?
45557 grep -v '^ *+' conftest.er1 >conftest.err
45558 rm -f conftest.er1
45559 cat conftest.err >&5
45560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45561 (exit $ac_status); } &&
45562 { ac_try='test -z "$ac_c_werror_flag"
45563 || test ! -s conftest.err'
45564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45565 (eval $ac_try) 2>&5
45566 ac_status=$?
45567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45568 (exit $ac_status); }; } &&
45569 { ac_try='test -s conftest$ac_exeext'
45570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45571 (eval $ac_try) 2>&5
45572 ac_status=$?
45573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45574 (exit $ac_status); }; }; then
45575 eval "$as_ac_var=yes"
45576 else
45577 echo "$as_me: failed program was:" >&5
45578 sed 's/^/| /' conftest.$ac_ext >&5
45580 eval "$as_ac_var=no"
45582 rm -f conftest.err conftest.$ac_objext \
45583 conftest$ac_exeext conftest.$ac_ext
45585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45587 if test `eval echo '${'$as_ac_var'}'` = yes; then
45588 cat >>confdefs.h <<_ACEOF
45589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45590 _ACEOF
45593 done
45595 else
45597 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45598 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45599 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45600 if test "${glibcxx_cv_func__log10l_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>
45619 #ifdef HAVE_IEEEFP_H
45620 #include <ieeefp.h>
45621 #endif
45624 main ()
45626 _log10l(0);
45628 return 0;
45630 _ACEOF
45631 rm -f conftest.$ac_objext
45632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45633 (eval $ac_compile) 2>conftest.er1
45634 ac_status=$?
45635 grep -v '^ *+' conftest.er1 >conftest.err
45636 rm -f conftest.er1
45637 cat conftest.err >&5
45638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45639 (exit $ac_status); } &&
45640 { ac_try='test -z "$ac_cxx_werror_flag"
45641 || test ! -s conftest.err'
45642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45643 (eval $ac_try) 2>&5
45644 ac_status=$?
45645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45646 (exit $ac_status); }; } &&
45647 { ac_try='test -s conftest.$ac_objext'
45648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45649 (eval $ac_try) 2>&5
45650 ac_status=$?
45651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45652 (exit $ac_status); }; }; then
45653 glibcxx_cv_func__log10l_use=yes
45654 else
45655 echo "$as_me: failed program was:" >&5
45656 sed 's/^/| /' conftest.$ac_ext >&5
45658 glibcxx_cv_func__log10l_use=no
45660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45661 ac_ext=c
45662 ac_cpp='$CPP $CPPFLAGS'
45663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45671 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45672 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45674 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45676 for ac_func in _log10l
45678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45679 echo "$as_me:$LINENO: checking for $ac_func" >&5
45680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45681 if eval "test \"\${$as_ac_var+set}\" = set"; then
45682 echo $ECHO_N "(cached) $ECHO_C" >&6
45683 else
45684 if test x$gcc_no_link = xyes; then
45685 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45686 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45687 { (exit 1); exit 1; }; }
45689 cat >conftest.$ac_ext <<_ACEOF
45690 /* confdefs.h. */
45691 _ACEOF
45692 cat confdefs.h >>conftest.$ac_ext
45693 cat >>conftest.$ac_ext <<_ACEOF
45694 /* end confdefs.h. */
45695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45697 #define $ac_func innocuous_$ac_func
45699 /* System header to define __stub macros and hopefully few prototypes,
45700 which can conflict with char $ac_func (); below.
45701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45702 <limits.h> exists even on freestanding compilers. */
45704 #ifdef __STDC__
45705 # include <limits.h>
45706 #else
45707 # include <assert.h>
45708 #endif
45710 #undef $ac_func
45712 /* Override any gcc2 internal prototype to avoid an error. */
45713 #ifdef __cplusplus
45714 extern "C"
45716 #endif
45717 /* We use char because int might match the return type of a gcc2
45718 builtin and then its argument prototype would still apply. */
45719 char $ac_func ();
45720 /* The GNU C library defines this for functions which it implements
45721 to always fail with ENOSYS. Some functions are actually named
45722 something starting with __ and the normal name is an alias. */
45723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45724 choke me
45725 #else
45726 char (*f) () = $ac_func;
45727 #endif
45728 #ifdef __cplusplus
45730 #endif
45733 main ()
45735 return f != $ac_func;
45737 return 0;
45739 _ACEOF
45740 rm -f conftest.$ac_objext conftest$ac_exeext
45741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45742 (eval $ac_link) 2>conftest.er1
45743 ac_status=$?
45744 grep -v '^ *+' conftest.er1 >conftest.err
45745 rm -f conftest.er1
45746 cat conftest.err >&5
45747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45748 (exit $ac_status); } &&
45749 { ac_try='test -z "$ac_c_werror_flag"
45750 || test ! -s conftest.err'
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); }; } &&
45756 { ac_try='test -s conftest$ac_exeext'
45757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45758 (eval $ac_try) 2>&5
45759 ac_status=$?
45760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45761 (exit $ac_status); }; }; then
45762 eval "$as_ac_var=yes"
45763 else
45764 echo "$as_me: failed program was:" >&5
45765 sed 's/^/| /' conftest.$ac_ext >&5
45767 eval "$as_ac_var=no"
45769 rm -f conftest.err conftest.$ac_objext \
45770 conftest$ac_exeext conftest.$ac_ext
45772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45774 if test `eval echo '${'$as_ac_var'}'` = yes; then
45775 cat >>confdefs.h <<_ACEOF
45776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45777 _ACEOF
45780 done
45787 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45788 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45789 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45790 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45791 echo $ECHO_N "(cached) $ECHO_C" >&6
45792 else
45796 ac_ext=cc
45797 ac_cpp='$CXXCPP $CPPFLAGS'
45798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45802 cat >conftest.$ac_ext <<_ACEOF
45803 /* confdefs.h. */
45804 _ACEOF
45805 cat confdefs.h >>conftest.$ac_ext
45806 cat >>conftest.$ac_ext <<_ACEOF
45807 /* end confdefs.h. */
45808 #include <math.h>
45810 main ()
45812 modfl(0, 0);
45814 return 0;
45816 _ACEOF
45817 rm -f conftest.$ac_objext
45818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45819 (eval $ac_compile) 2>conftest.er1
45820 ac_status=$?
45821 grep -v '^ *+' conftest.er1 >conftest.err
45822 rm -f conftest.er1
45823 cat conftest.err >&5
45824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45825 (exit $ac_status); } &&
45826 { ac_try='test -z "$ac_cxx_werror_flag"
45827 || test ! -s conftest.err'
45828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45829 (eval $ac_try) 2>&5
45830 ac_status=$?
45831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45832 (exit $ac_status); }; } &&
45833 { ac_try='test -s conftest.$ac_objext'
45834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45835 (eval $ac_try) 2>&5
45836 ac_status=$?
45837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45838 (exit $ac_status); }; }; then
45839 glibcxx_cv_func_modfl_use=yes
45840 else
45841 echo "$as_me: failed program was:" >&5
45842 sed 's/^/| /' conftest.$ac_ext >&5
45844 glibcxx_cv_func_modfl_use=no
45846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45847 ac_ext=c
45848 ac_cpp='$CPP $CPPFLAGS'
45849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45857 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45858 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45860 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45862 for ac_func in modfl
45864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45865 echo "$as_me:$LINENO: checking for $ac_func" >&5
45866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45867 if eval "test \"\${$as_ac_var+set}\" = set"; then
45868 echo $ECHO_N "(cached) $ECHO_C" >&6
45869 else
45870 if test x$gcc_no_link = xyes; then
45871 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45873 { (exit 1); exit 1; }; }
45875 cat >conftest.$ac_ext <<_ACEOF
45876 /* confdefs.h. */
45877 _ACEOF
45878 cat confdefs.h >>conftest.$ac_ext
45879 cat >>conftest.$ac_ext <<_ACEOF
45880 /* end confdefs.h. */
45881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45883 #define $ac_func innocuous_$ac_func
45885 /* System header to define __stub macros and hopefully few prototypes,
45886 which can conflict with char $ac_func (); below.
45887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45888 <limits.h> exists even on freestanding compilers. */
45890 #ifdef __STDC__
45891 # include <limits.h>
45892 #else
45893 # include <assert.h>
45894 #endif
45896 #undef $ac_func
45898 /* Override any gcc2 internal prototype to avoid an error. */
45899 #ifdef __cplusplus
45900 extern "C"
45902 #endif
45903 /* We use char because int might match the return type of a gcc2
45904 builtin and then its argument prototype would still apply. */
45905 char $ac_func ();
45906 /* The GNU C library defines this for functions which it implements
45907 to always fail with ENOSYS. Some functions are actually named
45908 something starting with __ and the normal name is an alias. */
45909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45910 choke me
45911 #else
45912 char (*f) () = $ac_func;
45913 #endif
45914 #ifdef __cplusplus
45916 #endif
45919 main ()
45921 return f != $ac_func;
45923 return 0;
45925 _ACEOF
45926 rm -f conftest.$ac_objext conftest$ac_exeext
45927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45928 (eval $ac_link) 2>conftest.er1
45929 ac_status=$?
45930 grep -v '^ *+' conftest.er1 >conftest.err
45931 rm -f conftest.er1
45932 cat conftest.err >&5
45933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45934 (exit $ac_status); } &&
45935 { ac_try='test -z "$ac_c_werror_flag"
45936 || test ! -s conftest.err'
45937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45938 (eval $ac_try) 2>&5
45939 ac_status=$?
45940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45941 (exit $ac_status); }; } &&
45942 { ac_try='test -s conftest$ac_exeext'
45943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45944 (eval $ac_try) 2>&5
45945 ac_status=$?
45946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947 (exit $ac_status); }; }; then
45948 eval "$as_ac_var=yes"
45949 else
45950 echo "$as_me: failed program was:" >&5
45951 sed 's/^/| /' conftest.$ac_ext >&5
45953 eval "$as_ac_var=no"
45955 rm -f conftest.err conftest.$ac_objext \
45956 conftest$ac_exeext conftest.$ac_ext
45958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45960 if test `eval echo '${'$as_ac_var'}'` = yes; then
45961 cat >>confdefs.h <<_ACEOF
45962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45963 _ACEOF
45966 done
45968 else
45970 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45971 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45972 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45973 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45974 echo $ECHO_N "(cached) $ECHO_C" >&6
45975 else
45979 ac_ext=cc
45980 ac_cpp='$CXXCPP $CPPFLAGS'
45981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45985 cat >conftest.$ac_ext <<_ACEOF
45986 /* confdefs.h. */
45987 _ACEOF
45988 cat confdefs.h >>conftest.$ac_ext
45989 cat >>conftest.$ac_ext <<_ACEOF
45990 /* end confdefs.h. */
45991 #include <math.h>
45993 main ()
45995 _modfl(0, 0);
45997 return 0;
45999 _ACEOF
46000 rm -f conftest.$ac_objext
46001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46002 (eval $ac_compile) 2>conftest.er1
46003 ac_status=$?
46004 grep -v '^ *+' conftest.er1 >conftest.err
46005 rm -f conftest.er1
46006 cat conftest.err >&5
46007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46008 (exit $ac_status); } &&
46009 { ac_try='test -z "$ac_cxx_werror_flag"
46010 || test ! -s conftest.err'
46011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46012 (eval $ac_try) 2>&5
46013 ac_status=$?
46014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46015 (exit $ac_status); }; } &&
46016 { ac_try='test -s conftest.$ac_objext'
46017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46018 (eval $ac_try) 2>&5
46019 ac_status=$?
46020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46021 (exit $ac_status); }; }; then
46022 glibcxx_cv_func__modfl_use=yes
46023 else
46024 echo "$as_me: failed program was:" >&5
46025 sed 's/^/| /' conftest.$ac_ext >&5
46027 glibcxx_cv_func__modfl_use=no
46029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46030 ac_ext=c
46031 ac_cpp='$CPP $CPPFLAGS'
46032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46040 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
46041 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
46043 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
46045 for ac_func in _modfl
46047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46048 echo "$as_me:$LINENO: checking for $ac_func" >&5
46049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46050 if eval "test \"\${$as_ac_var+set}\" = set"; then
46051 echo $ECHO_N "(cached) $ECHO_C" >&6
46052 else
46053 if test x$gcc_no_link = xyes; then
46054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46056 { (exit 1); exit 1; }; }
46058 cat >conftest.$ac_ext <<_ACEOF
46059 /* confdefs.h. */
46060 _ACEOF
46061 cat confdefs.h >>conftest.$ac_ext
46062 cat >>conftest.$ac_ext <<_ACEOF
46063 /* end confdefs.h. */
46064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46066 #define $ac_func innocuous_$ac_func
46068 /* System header to define __stub macros and hopefully few prototypes,
46069 which can conflict with char $ac_func (); below.
46070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46071 <limits.h> exists even on freestanding compilers. */
46073 #ifdef __STDC__
46074 # include <limits.h>
46075 #else
46076 # include <assert.h>
46077 #endif
46079 #undef $ac_func
46081 /* Override any gcc2 internal prototype to avoid an error. */
46082 #ifdef __cplusplus
46083 extern "C"
46085 #endif
46086 /* We use char because int might match the return type of a gcc2
46087 builtin and then its argument prototype would still apply. */
46088 char $ac_func ();
46089 /* The GNU C library defines this for functions which it implements
46090 to always fail with ENOSYS. Some functions are actually named
46091 something starting with __ and the normal name is an alias. */
46092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46093 choke me
46094 #else
46095 char (*f) () = $ac_func;
46096 #endif
46097 #ifdef __cplusplus
46099 #endif
46102 main ()
46104 return f != $ac_func;
46106 return 0;
46108 _ACEOF
46109 rm -f conftest.$ac_objext conftest$ac_exeext
46110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46111 (eval $ac_link) 2>conftest.er1
46112 ac_status=$?
46113 grep -v '^ *+' conftest.er1 >conftest.err
46114 rm -f conftest.er1
46115 cat conftest.err >&5
46116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46117 (exit $ac_status); } &&
46118 { ac_try='test -z "$ac_c_werror_flag"
46119 || test ! -s conftest.err'
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); }; } &&
46125 { ac_try='test -s conftest$ac_exeext'
46126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46127 (eval $ac_try) 2>&5
46128 ac_status=$?
46129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46130 (exit $ac_status); }; }; then
46131 eval "$as_ac_var=yes"
46132 else
46133 echo "$as_me: failed program was:" >&5
46134 sed 's/^/| /' conftest.$ac_ext >&5
46136 eval "$as_ac_var=no"
46138 rm -f conftest.err conftest.$ac_objext \
46139 conftest$ac_exeext conftest.$ac_ext
46141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46143 if test `eval echo '${'$as_ac_var'}'` = yes; then
46144 cat >>confdefs.h <<_ACEOF
46145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46146 _ACEOF
46149 done
46156 echo "$as_me:$LINENO: checking for powl declaration" >&5
46157 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46158 if test x${glibcxx_cv_func_powl_use+set} != xset; then
46159 if test "${glibcxx_cv_func_powl_use+set}" = set; then
46160 echo $ECHO_N "(cached) $ECHO_C" >&6
46161 else
46165 ac_ext=cc
46166 ac_cpp='$CXXCPP $CPPFLAGS'
46167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46171 cat >conftest.$ac_ext <<_ACEOF
46172 /* confdefs.h. */
46173 _ACEOF
46174 cat confdefs.h >>conftest.$ac_ext
46175 cat >>conftest.$ac_ext <<_ACEOF
46176 /* end confdefs.h. */
46177 #include <math.h>
46179 main ()
46181 powl(0, 0);
46183 return 0;
46185 _ACEOF
46186 rm -f conftest.$ac_objext
46187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46188 (eval $ac_compile) 2>conftest.er1
46189 ac_status=$?
46190 grep -v '^ *+' conftest.er1 >conftest.err
46191 rm -f conftest.er1
46192 cat conftest.err >&5
46193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194 (exit $ac_status); } &&
46195 { ac_try='test -z "$ac_cxx_werror_flag"
46196 || test ! -s conftest.err'
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); }; } &&
46202 { ac_try='test -s conftest.$ac_objext'
46203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46204 (eval $ac_try) 2>&5
46205 ac_status=$?
46206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46207 (exit $ac_status); }; }; then
46208 glibcxx_cv_func_powl_use=yes
46209 else
46210 echo "$as_me: failed program was:" >&5
46211 sed 's/^/| /' conftest.$ac_ext >&5
46213 glibcxx_cv_func_powl_use=no
46215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46216 ac_ext=c
46217 ac_cpp='$CPP $CPPFLAGS'
46218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46226 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46227 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46229 if test x$glibcxx_cv_func_powl_use = x"yes"; then
46231 for ac_func in powl
46233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46234 echo "$as_me:$LINENO: checking for $ac_func" >&5
46235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46236 if eval "test \"\${$as_ac_var+set}\" = set"; then
46237 echo $ECHO_N "(cached) $ECHO_C" >&6
46238 else
46239 if test x$gcc_no_link = xyes; then
46240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46242 { (exit 1); exit 1; }; }
46244 cat >conftest.$ac_ext <<_ACEOF
46245 /* confdefs.h. */
46246 _ACEOF
46247 cat confdefs.h >>conftest.$ac_ext
46248 cat >>conftest.$ac_ext <<_ACEOF
46249 /* end confdefs.h. */
46250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46252 #define $ac_func innocuous_$ac_func
46254 /* System header to define __stub macros and hopefully few prototypes,
46255 which can conflict with char $ac_func (); below.
46256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46257 <limits.h> exists even on freestanding compilers. */
46259 #ifdef __STDC__
46260 # include <limits.h>
46261 #else
46262 # include <assert.h>
46263 #endif
46265 #undef $ac_func
46267 /* Override any gcc2 internal prototype to avoid an error. */
46268 #ifdef __cplusplus
46269 extern "C"
46271 #endif
46272 /* We use char because int might match the return type of a gcc2
46273 builtin and then its argument prototype would still apply. */
46274 char $ac_func ();
46275 /* The GNU C library defines this for functions which it implements
46276 to always fail with ENOSYS. Some functions are actually named
46277 something starting with __ and the normal name is an alias. */
46278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46279 choke me
46280 #else
46281 char (*f) () = $ac_func;
46282 #endif
46283 #ifdef __cplusplus
46285 #endif
46288 main ()
46290 return f != $ac_func;
46292 return 0;
46294 _ACEOF
46295 rm -f conftest.$ac_objext conftest$ac_exeext
46296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46297 (eval $ac_link) 2>conftest.er1
46298 ac_status=$?
46299 grep -v '^ *+' conftest.er1 >conftest.err
46300 rm -f conftest.er1
46301 cat conftest.err >&5
46302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46303 (exit $ac_status); } &&
46304 { ac_try='test -z "$ac_c_werror_flag"
46305 || test ! -s conftest.err'
46306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46307 (eval $ac_try) 2>&5
46308 ac_status=$?
46309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46310 (exit $ac_status); }; } &&
46311 { ac_try='test -s conftest$ac_exeext'
46312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46313 (eval $ac_try) 2>&5
46314 ac_status=$?
46315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46316 (exit $ac_status); }; }; then
46317 eval "$as_ac_var=yes"
46318 else
46319 echo "$as_me: failed program was:" >&5
46320 sed 's/^/| /' conftest.$ac_ext >&5
46322 eval "$as_ac_var=no"
46324 rm -f conftest.err conftest.$ac_objext \
46325 conftest$ac_exeext conftest.$ac_ext
46327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46329 if test `eval echo '${'$as_ac_var'}'` = yes; then
46330 cat >>confdefs.h <<_ACEOF
46331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46332 _ACEOF
46335 done
46337 else
46339 echo "$as_me:$LINENO: checking for _powl declaration" >&5
46340 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46341 if test x${glibcxx_cv_func__powl_use+set} != xset; then
46342 if test "${glibcxx_cv_func__powl_use+set}" = set; then
46343 echo $ECHO_N "(cached) $ECHO_C" >&6
46344 else
46348 ac_ext=cc
46349 ac_cpp='$CXXCPP $CPPFLAGS'
46350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46354 cat >conftest.$ac_ext <<_ACEOF
46355 /* confdefs.h. */
46356 _ACEOF
46357 cat confdefs.h >>conftest.$ac_ext
46358 cat >>conftest.$ac_ext <<_ACEOF
46359 /* end confdefs.h. */
46360 #include <math.h>
46362 main ()
46364 _powl(0, 0);
46366 return 0;
46368 _ACEOF
46369 rm -f conftest.$ac_objext
46370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46371 (eval $ac_compile) 2>conftest.er1
46372 ac_status=$?
46373 grep -v '^ *+' conftest.er1 >conftest.err
46374 rm -f conftest.er1
46375 cat conftest.err >&5
46376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46377 (exit $ac_status); } &&
46378 { ac_try='test -z "$ac_cxx_werror_flag"
46379 || test ! -s conftest.err'
46380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46381 (eval $ac_try) 2>&5
46382 ac_status=$?
46383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46384 (exit $ac_status); }; } &&
46385 { ac_try='test -s conftest.$ac_objext'
46386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46387 (eval $ac_try) 2>&5
46388 ac_status=$?
46389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46390 (exit $ac_status); }; }; then
46391 glibcxx_cv_func__powl_use=yes
46392 else
46393 echo "$as_me: failed program was:" >&5
46394 sed 's/^/| /' conftest.$ac_ext >&5
46396 glibcxx_cv_func__powl_use=no
46398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46399 ac_ext=c
46400 ac_cpp='$CPP $CPPFLAGS'
46401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46409 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46410 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46412 if test x$glibcxx_cv_func__powl_use = x"yes"; then
46414 for ac_func in _powl
46416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46417 echo "$as_me:$LINENO: checking for $ac_func" >&5
46418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46419 if eval "test \"\${$as_ac_var+set}\" = set"; then
46420 echo $ECHO_N "(cached) $ECHO_C" >&6
46421 else
46422 if test x$gcc_no_link = xyes; then
46423 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46425 { (exit 1); exit 1; }; }
46427 cat >conftest.$ac_ext <<_ACEOF
46428 /* confdefs.h. */
46429 _ACEOF
46430 cat confdefs.h >>conftest.$ac_ext
46431 cat >>conftest.$ac_ext <<_ACEOF
46432 /* end confdefs.h. */
46433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46435 #define $ac_func innocuous_$ac_func
46437 /* System header to define __stub macros and hopefully few prototypes,
46438 which can conflict with char $ac_func (); below.
46439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46440 <limits.h> exists even on freestanding compilers. */
46442 #ifdef __STDC__
46443 # include <limits.h>
46444 #else
46445 # include <assert.h>
46446 #endif
46448 #undef $ac_func
46450 /* Override any gcc2 internal prototype to avoid an error. */
46451 #ifdef __cplusplus
46452 extern "C"
46454 #endif
46455 /* We use char because int might match the return type of a gcc2
46456 builtin and then its argument prototype would still apply. */
46457 char $ac_func ();
46458 /* The GNU C library defines this for functions which it implements
46459 to always fail with ENOSYS. Some functions are actually named
46460 something starting with __ and the normal name is an alias. */
46461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46462 choke me
46463 #else
46464 char (*f) () = $ac_func;
46465 #endif
46466 #ifdef __cplusplus
46468 #endif
46471 main ()
46473 return f != $ac_func;
46475 return 0;
46477 _ACEOF
46478 rm -f conftest.$ac_objext conftest$ac_exeext
46479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46480 (eval $ac_link) 2>conftest.er1
46481 ac_status=$?
46482 grep -v '^ *+' conftest.er1 >conftest.err
46483 rm -f conftest.er1
46484 cat conftest.err >&5
46485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46486 (exit $ac_status); } &&
46487 { ac_try='test -z "$ac_c_werror_flag"
46488 || test ! -s conftest.err'
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); }; } &&
46494 { ac_try='test -s conftest$ac_exeext'
46495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46496 (eval $ac_try) 2>&5
46497 ac_status=$?
46498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499 (exit $ac_status); }; }; then
46500 eval "$as_ac_var=yes"
46501 else
46502 echo "$as_me: failed program was:" >&5
46503 sed 's/^/| /' conftest.$ac_ext >&5
46505 eval "$as_ac_var=no"
46507 rm -f conftest.err conftest.$ac_objext \
46508 conftest$ac_exeext conftest.$ac_ext
46510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46512 if test `eval echo '${'$as_ac_var'}'` = yes; then
46513 cat >>confdefs.h <<_ACEOF
46514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46515 _ACEOF
46518 done
46525 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46526 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46527 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46528 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46529 echo $ECHO_N "(cached) $ECHO_C" >&6
46530 else
46534 ac_ext=cc
46535 ac_cpp='$CXXCPP $CPPFLAGS'
46536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46540 cat >conftest.$ac_ext <<_ACEOF
46541 /* confdefs.h. */
46542 _ACEOF
46543 cat confdefs.h >>conftest.$ac_ext
46544 cat >>conftest.$ac_ext <<_ACEOF
46545 /* end confdefs.h. */
46546 #include <math.h>
46547 #ifdef HAVE_IEEEFP_H
46548 #include <ieeefp.h>
46549 #endif
46552 main ()
46554 sqrtl(0);
46556 return 0;
46558 _ACEOF
46559 rm -f conftest.$ac_objext
46560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46561 (eval $ac_compile) 2>conftest.er1
46562 ac_status=$?
46563 grep -v '^ *+' conftest.er1 >conftest.err
46564 rm -f conftest.er1
46565 cat conftest.err >&5
46566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46567 (exit $ac_status); } &&
46568 { ac_try='test -z "$ac_cxx_werror_flag"
46569 || test ! -s conftest.err'
46570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46571 (eval $ac_try) 2>&5
46572 ac_status=$?
46573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46574 (exit $ac_status); }; } &&
46575 { ac_try='test -s conftest.$ac_objext'
46576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46577 (eval $ac_try) 2>&5
46578 ac_status=$?
46579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580 (exit $ac_status); }; }; then
46581 glibcxx_cv_func_sqrtl_use=yes
46582 else
46583 echo "$as_me: failed program was:" >&5
46584 sed 's/^/| /' conftest.$ac_ext >&5
46586 glibcxx_cv_func_sqrtl_use=no
46588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46589 ac_ext=c
46590 ac_cpp='$CPP $CPPFLAGS'
46591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46599 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46600 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46602 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46604 for ac_func in sqrtl
46606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46607 echo "$as_me:$LINENO: checking for $ac_func" >&5
46608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46609 if eval "test \"\${$as_ac_var+set}\" = set"; then
46610 echo $ECHO_N "(cached) $ECHO_C" >&6
46611 else
46612 if test x$gcc_no_link = xyes; then
46613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46615 { (exit 1); exit 1; }; }
46617 cat >conftest.$ac_ext <<_ACEOF
46618 /* confdefs.h. */
46619 _ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h. */
46623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46625 #define $ac_func innocuous_$ac_func
46627 /* System header to define __stub macros and hopefully few prototypes,
46628 which can conflict with char $ac_func (); below.
46629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46630 <limits.h> exists even on freestanding compilers. */
46632 #ifdef __STDC__
46633 # include <limits.h>
46634 #else
46635 # include <assert.h>
46636 #endif
46638 #undef $ac_func
46640 /* Override any gcc2 internal prototype to avoid an error. */
46641 #ifdef __cplusplus
46642 extern "C"
46644 #endif
46645 /* We use char because int might match the return type of a gcc2
46646 builtin and then its argument prototype would still apply. */
46647 char $ac_func ();
46648 /* The GNU C library defines this for functions which it implements
46649 to always fail with ENOSYS. Some functions are actually named
46650 something starting with __ and the normal name is an alias. */
46651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46652 choke me
46653 #else
46654 char (*f) () = $ac_func;
46655 #endif
46656 #ifdef __cplusplus
46658 #endif
46661 main ()
46663 return f != $ac_func;
46665 return 0;
46667 _ACEOF
46668 rm -f conftest.$ac_objext conftest$ac_exeext
46669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46670 (eval $ac_link) 2>conftest.er1
46671 ac_status=$?
46672 grep -v '^ *+' conftest.er1 >conftest.err
46673 rm -f conftest.er1
46674 cat conftest.err >&5
46675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46676 (exit $ac_status); } &&
46677 { ac_try='test -z "$ac_c_werror_flag"
46678 || test ! -s conftest.err'
46679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46680 (eval $ac_try) 2>&5
46681 ac_status=$?
46682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46683 (exit $ac_status); }; } &&
46684 { ac_try='test -s conftest$ac_exeext'
46685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46686 (eval $ac_try) 2>&5
46687 ac_status=$?
46688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689 (exit $ac_status); }; }; then
46690 eval "$as_ac_var=yes"
46691 else
46692 echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46695 eval "$as_ac_var=no"
46697 rm -f conftest.err conftest.$ac_objext \
46698 conftest$ac_exeext conftest.$ac_ext
46700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46702 if test `eval echo '${'$as_ac_var'}'` = yes; then
46703 cat >>confdefs.h <<_ACEOF
46704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46705 _ACEOF
46708 done
46710 else
46712 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46713 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46714 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46715 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46716 echo $ECHO_N "(cached) $ECHO_C" >&6
46717 else
46721 ac_ext=cc
46722 ac_cpp='$CXXCPP $CPPFLAGS'
46723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46727 cat >conftest.$ac_ext <<_ACEOF
46728 /* confdefs.h. */
46729 _ACEOF
46730 cat confdefs.h >>conftest.$ac_ext
46731 cat >>conftest.$ac_ext <<_ACEOF
46732 /* end confdefs.h. */
46733 #include <math.h>
46734 #ifdef HAVE_IEEEFP_H
46735 #include <ieeefp.h>
46736 #endif
46739 main ()
46741 _sqrtl(0);
46743 return 0;
46745 _ACEOF
46746 rm -f conftest.$ac_objext
46747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46748 (eval $ac_compile) 2>conftest.er1
46749 ac_status=$?
46750 grep -v '^ *+' conftest.er1 >conftest.err
46751 rm -f conftest.er1
46752 cat conftest.err >&5
46753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46754 (exit $ac_status); } &&
46755 { ac_try='test -z "$ac_cxx_werror_flag"
46756 || test ! -s conftest.err'
46757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46758 (eval $ac_try) 2>&5
46759 ac_status=$?
46760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46761 (exit $ac_status); }; } &&
46762 { ac_try='test -s conftest.$ac_objext'
46763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46764 (eval $ac_try) 2>&5
46765 ac_status=$?
46766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46767 (exit $ac_status); }; }; then
46768 glibcxx_cv_func__sqrtl_use=yes
46769 else
46770 echo "$as_me: failed program was:" >&5
46771 sed 's/^/| /' conftest.$ac_ext >&5
46773 glibcxx_cv_func__sqrtl_use=no
46775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46776 ac_ext=c
46777 ac_cpp='$CPP $CPPFLAGS'
46778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46786 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46787 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46789 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46791 for ac_func in _sqrtl
46793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46794 echo "$as_me:$LINENO: checking for $ac_func" >&5
46795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46796 if eval "test \"\${$as_ac_var+set}\" = set"; then
46797 echo $ECHO_N "(cached) $ECHO_C" >&6
46798 else
46799 if test x$gcc_no_link = xyes; then
46800 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46802 { (exit 1); exit 1; }; }
46804 cat >conftest.$ac_ext <<_ACEOF
46805 /* confdefs.h. */
46806 _ACEOF
46807 cat confdefs.h >>conftest.$ac_ext
46808 cat >>conftest.$ac_ext <<_ACEOF
46809 /* end confdefs.h. */
46810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46812 #define $ac_func innocuous_$ac_func
46814 /* System header to define __stub macros and hopefully few prototypes,
46815 which can conflict with char $ac_func (); below.
46816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46817 <limits.h> exists even on freestanding compilers. */
46819 #ifdef __STDC__
46820 # include <limits.h>
46821 #else
46822 # include <assert.h>
46823 #endif
46825 #undef $ac_func
46827 /* Override any gcc2 internal prototype to avoid an error. */
46828 #ifdef __cplusplus
46829 extern "C"
46831 #endif
46832 /* We use char because int might match the return type of a gcc2
46833 builtin and then its argument prototype would still apply. */
46834 char $ac_func ();
46835 /* The GNU C library defines this for functions which it implements
46836 to always fail with ENOSYS. Some functions are actually named
46837 something starting with __ and the normal name is an alias. */
46838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46839 choke me
46840 #else
46841 char (*f) () = $ac_func;
46842 #endif
46843 #ifdef __cplusplus
46845 #endif
46848 main ()
46850 return f != $ac_func;
46852 return 0;
46854 _ACEOF
46855 rm -f conftest.$ac_objext conftest$ac_exeext
46856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46857 (eval $ac_link) 2>conftest.er1
46858 ac_status=$?
46859 grep -v '^ *+' conftest.er1 >conftest.err
46860 rm -f conftest.er1
46861 cat conftest.err >&5
46862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46863 (exit $ac_status); } &&
46864 { ac_try='test -z "$ac_c_werror_flag"
46865 || test ! -s conftest.err'
46866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46867 (eval $ac_try) 2>&5
46868 ac_status=$?
46869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46870 (exit $ac_status); }; } &&
46871 { ac_try='test -s conftest$ac_exeext'
46872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46873 (eval $ac_try) 2>&5
46874 ac_status=$?
46875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46876 (exit $ac_status); }; }; then
46877 eval "$as_ac_var=yes"
46878 else
46879 echo "$as_me: failed program was:" >&5
46880 sed 's/^/| /' conftest.$ac_ext >&5
46882 eval "$as_ac_var=no"
46884 rm -f conftest.err conftest.$ac_objext \
46885 conftest$ac_exeext conftest.$ac_ext
46887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46889 if test `eval echo '${'$as_ac_var'}'` = yes; then
46890 cat >>confdefs.h <<_ACEOF
46891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46892 _ACEOF
46895 done
46902 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46903 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46904 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46905 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46906 echo $ECHO_N "(cached) $ECHO_C" >&6
46907 else
46911 ac_ext=cc
46912 ac_cpp='$CXXCPP $CPPFLAGS'
46913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46917 cat >conftest.$ac_ext <<_ACEOF
46918 /* confdefs.h. */
46919 _ACEOF
46920 cat confdefs.h >>conftest.$ac_ext
46921 cat >>conftest.$ac_ext <<_ACEOF
46922 /* end confdefs.h. */
46923 #include <math.h>
46925 main ()
46927 sincosl(0, 0, 0);
46929 return 0;
46931 _ACEOF
46932 rm -f conftest.$ac_objext
46933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46934 (eval $ac_compile) 2>conftest.er1
46935 ac_status=$?
46936 grep -v '^ *+' conftest.er1 >conftest.err
46937 rm -f conftest.er1
46938 cat conftest.err >&5
46939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46940 (exit $ac_status); } &&
46941 { ac_try='test -z "$ac_cxx_werror_flag"
46942 || test ! -s conftest.err'
46943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46944 (eval $ac_try) 2>&5
46945 ac_status=$?
46946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46947 (exit $ac_status); }; } &&
46948 { ac_try='test -s conftest.$ac_objext'
46949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46950 (eval $ac_try) 2>&5
46951 ac_status=$?
46952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46953 (exit $ac_status); }; }; then
46954 glibcxx_cv_func_sincosl_use=yes
46955 else
46956 echo "$as_me: failed program was:" >&5
46957 sed 's/^/| /' conftest.$ac_ext >&5
46959 glibcxx_cv_func_sincosl_use=no
46961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46962 ac_ext=c
46963 ac_cpp='$CPP $CPPFLAGS'
46964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46972 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46973 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46975 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46977 for ac_func in sincosl
46979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46980 echo "$as_me:$LINENO: checking for $ac_func" >&5
46981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46982 if eval "test \"\${$as_ac_var+set}\" = set"; then
46983 echo $ECHO_N "(cached) $ECHO_C" >&6
46984 else
46985 if test x$gcc_no_link = xyes; then
46986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46988 { (exit 1); exit 1; }; }
46990 cat >conftest.$ac_ext <<_ACEOF
46991 /* confdefs.h. */
46992 _ACEOF
46993 cat confdefs.h >>conftest.$ac_ext
46994 cat >>conftest.$ac_ext <<_ACEOF
46995 /* end confdefs.h. */
46996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46998 #define $ac_func innocuous_$ac_func
47000 /* System header to define __stub macros and hopefully few prototypes,
47001 which can conflict with char $ac_func (); below.
47002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47003 <limits.h> exists even on freestanding compilers. */
47005 #ifdef __STDC__
47006 # include <limits.h>
47007 #else
47008 # include <assert.h>
47009 #endif
47011 #undef $ac_func
47013 /* Override any gcc2 internal prototype to avoid an error. */
47014 #ifdef __cplusplus
47015 extern "C"
47017 #endif
47018 /* We use char because int might match the return type of a gcc2
47019 builtin and then its argument prototype would still apply. */
47020 char $ac_func ();
47021 /* The GNU C library defines this for functions which it implements
47022 to always fail with ENOSYS. Some functions are actually named
47023 something starting with __ and the normal name is an alias. */
47024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47025 choke me
47026 #else
47027 char (*f) () = $ac_func;
47028 #endif
47029 #ifdef __cplusplus
47031 #endif
47034 main ()
47036 return f != $ac_func;
47038 return 0;
47040 _ACEOF
47041 rm -f conftest.$ac_objext conftest$ac_exeext
47042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47043 (eval $ac_link) 2>conftest.er1
47044 ac_status=$?
47045 grep -v '^ *+' conftest.er1 >conftest.err
47046 rm -f conftest.er1
47047 cat conftest.err >&5
47048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47049 (exit $ac_status); } &&
47050 { ac_try='test -z "$ac_c_werror_flag"
47051 || test ! -s conftest.err'
47052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47053 (eval $ac_try) 2>&5
47054 ac_status=$?
47055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056 (exit $ac_status); }; } &&
47057 { ac_try='test -s conftest$ac_exeext'
47058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47059 (eval $ac_try) 2>&5
47060 ac_status=$?
47061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47062 (exit $ac_status); }; }; then
47063 eval "$as_ac_var=yes"
47064 else
47065 echo "$as_me: failed program was:" >&5
47066 sed 's/^/| /' conftest.$ac_ext >&5
47068 eval "$as_ac_var=no"
47070 rm -f conftest.err conftest.$ac_objext \
47071 conftest$ac_exeext conftest.$ac_ext
47073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47075 if test `eval echo '${'$as_ac_var'}'` = yes; then
47076 cat >>confdefs.h <<_ACEOF
47077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47078 _ACEOF
47081 done
47083 else
47085 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47086 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47087 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47088 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47089 echo $ECHO_N "(cached) $ECHO_C" >&6
47090 else
47094 ac_ext=cc
47095 ac_cpp='$CXXCPP $CPPFLAGS'
47096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47100 cat >conftest.$ac_ext <<_ACEOF
47101 /* confdefs.h. */
47102 _ACEOF
47103 cat confdefs.h >>conftest.$ac_ext
47104 cat >>conftest.$ac_ext <<_ACEOF
47105 /* end confdefs.h. */
47106 #include <math.h>
47108 main ()
47110 _sincosl(0, 0, 0);
47112 return 0;
47114 _ACEOF
47115 rm -f conftest.$ac_objext
47116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47117 (eval $ac_compile) 2>conftest.er1
47118 ac_status=$?
47119 grep -v '^ *+' conftest.er1 >conftest.err
47120 rm -f conftest.er1
47121 cat conftest.err >&5
47122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47123 (exit $ac_status); } &&
47124 { ac_try='test -z "$ac_cxx_werror_flag"
47125 || test ! -s conftest.err'
47126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47127 (eval $ac_try) 2>&5
47128 ac_status=$?
47129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47130 (exit $ac_status); }; } &&
47131 { ac_try='test -s conftest.$ac_objext'
47132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47133 (eval $ac_try) 2>&5
47134 ac_status=$?
47135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47136 (exit $ac_status); }; }; then
47137 glibcxx_cv_func__sincosl_use=yes
47138 else
47139 echo "$as_me: failed program was:" >&5
47140 sed 's/^/| /' conftest.$ac_ext >&5
47142 glibcxx_cv_func__sincosl_use=no
47144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47145 ac_ext=c
47146 ac_cpp='$CPP $CPPFLAGS'
47147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47155 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47156 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47158 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47160 for ac_func in _sincosl
47162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47163 echo "$as_me:$LINENO: checking for $ac_func" >&5
47164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47165 if eval "test \"\${$as_ac_var+set}\" = set"; then
47166 echo $ECHO_N "(cached) $ECHO_C" >&6
47167 else
47168 if test x$gcc_no_link = xyes; then
47169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47171 { (exit 1); exit 1; }; }
47173 cat >conftest.$ac_ext <<_ACEOF
47174 /* confdefs.h. */
47175 _ACEOF
47176 cat confdefs.h >>conftest.$ac_ext
47177 cat >>conftest.$ac_ext <<_ACEOF
47178 /* end confdefs.h. */
47179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47181 #define $ac_func innocuous_$ac_func
47183 /* System header to define __stub macros and hopefully few prototypes,
47184 which can conflict with char $ac_func (); below.
47185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47186 <limits.h> exists even on freestanding compilers. */
47188 #ifdef __STDC__
47189 # include <limits.h>
47190 #else
47191 # include <assert.h>
47192 #endif
47194 #undef $ac_func
47196 /* Override any gcc2 internal prototype to avoid an error. */
47197 #ifdef __cplusplus
47198 extern "C"
47200 #endif
47201 /* We use char because int might match the return type of a gcc2
47202 builtin and then its argument prototype would still apply. */
47203 char $ac_func ();
47204 /* The GNU C library defines this for functions which it implements
47205 to always fail with ENOSYS. Some functions are actually named
47206 something starting with __ and the normal name is an alias. */
47207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47208 choke me
47209 #else
47210 char (*f) () = $ac_func;
47211 #endif
47212 #ifdef __cplusplus
47214 #endif
47217 main ()
47219 return f != $ac_func;
47221 return 0;
47223 _ACEOF
47224 rm -f conftest.$ac_objext conftest$ac_exeext
47225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47226 (eval $ac_link) 2>conftest.er1
47227 ac_status=$?
47228 grep -v '^ *+' conftest.er1 >conftest.err
47229 rm -f conftest.er1
47230 cat conftest.err >&5
47231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47232 (exit $ac_status); } &&
47233 { ac_try='test -z "$ac_c_werror_flag"
47234 || test ! -s conftest.err'
47235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47236 (eval $ac_try) 2>&5
47237 ac_status=$?
47238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239 (exit $ac_status); }; } &&
47240 { ac_try='test -s conftest$ac_exeext'
47241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47242 (eval $ac_try) 2>&5
47243 ac_status=$?
47244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47245 (exit $ac_status); }; }; then
47246 eval "$as_ac_var=yes"
47247 else
47248 echo "$as_me: failed program was:" >&5
47249 sed 's/^/| /' conftest.$ac_ext >&5
47251 eval "$as_ac_var=no"
47253 rm -f conftest.err conftest.$ac_objext \
47254 conftest$ac_exeext conftest.$ac_ext
47256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47258 if test `eval echo '${'$as_ac_var'}'` = yes; then
47259 cat >>confdefs.h <<_ACEOF
47260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47261 _ACEOF
47264 done
47271 echo "$as_me:$LINENO: checking for finitel declaration" >&5
47272 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47273 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47274 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47275 echo $ECHO_N "(cached) $ECHO_C" >&6
47276 else
47280 ac_ext=cc
47281 ac_cpp='$CXXCPP $CPPFLAGS'
47282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47286 cat >conftest.$ac_ext <<_ACEOF
47287 /* confdefs.h. */
47288 _ACEOF
47289 cat confdefs.h >>conftest.$ac_ext
47290 cat >>conftest.$ac_ext <<_ACEOF
47291 /* end confdefs.h. */
47292 #include <math.h>
47293 #ifdef HAVE_IEEEFP_H
47294 #include <ieeefp.h>
47295 #endif
47298 main ()
47300 finitel(0);
47302 return 0;
47304 _ACEOF
47305 rm -f conftest.$ac_objext
47306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47307 (eval $ac_compile) 2>conftest.er1
47308 ac_status=$?
47309 grep -v '^ *+' conftest.er1 >conftest.err
47310 rm -f conftest.er1
47311 cat conftest.err >&5
47312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47313 (exit $ac_status); } &&
47314 { ac_try='test -z "$ac_cxx_werror_flag"
47315 || test ! -s conftest.err'
47316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47317 (eval $ac_try) 2>&5
47318 ac_status=$?
47319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47320 (exit $ac_status); }; } &&
47321 { ac_try='test -s conftest.$ac_objext'
47322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47323 (eval $ac_try) 2>&5
47324 ac_status=$?
47325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47326 (exit $ac_status); }; }; then
47327 glibcxx_cv_func_finitel_use=yes
47328 else
47329 echo "$as_me: failed program was:" >&5
47330 sed 's/^/| /' conftest.$ac_ext >&5
47332 glibcxx_cv_func_finitel_use=no
47334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47335 ac_ext=c
47336 ac_cpp='$CPP $CPPFLAGS'
47337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47345 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47346 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47348 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47350 for ac_func in finitel
47352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47353 echo "$as_me:$LINENO: checking for $ac_func" >&5
47354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47355 if eval "test \"\${$as_ac_var+set}\" = set"; then
47356 echo $ECHO_N "(cached) $ECHO_C" >&6
47357 else
47358 if test x$gcc_no_link = xyes; then
47359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47361 { (exit 1); exit 1; }; }
47363 cat >conftest.$ac_ext <<_ACEOF
47364 /* confdefs.h. */
47365 _ACEOF
47366 cat confdefs.h >>conftest.$ac_ext
47367 cat >>conftest.$ac_ext <<_ACEOF
47368 /* end confdefs.h. */
47369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47371 #define $ac_func innocuous_$ac_func
47373 /* System header to define __stub macros and hopefully few prototypes,
47374 which can conflict with char $ac_func (); below.
47375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47376 <limits.h> exists even on freestanding compilers. */
47378 #ifdef __STDC__
47379 # include <limits.h>
47380 #else
47381 # include <assert.h>
47382 #endif
47384 #undef $ac_func
47386 /* Override any gcc2 internal prototype to avoid an error. */
47387 #ifdef __cplusplus
47388 extern "C"
47390 #endif
47391 /* We use char because int might match the return type of a gcc2
47392 builtin and then its argument prototype would still apply. */
47393 char $ac_func ();
47394 /* The GNU C library defines this for functions which it implements
47395 to always fail with ENOSYS. Some functions are actually named
47396 something starting with __ and the normal name is an alias. */
47397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47398 choke me
47399 #else
47400 char (*f) () = $ac_func;
47401 #endif
47402 #ifdef __cplusplus
47404 #endif
47407 main ()
47409 return f != $ac_func;
47411 return 0;
47413 _ACEOF
47414 rm -f conftest.$ac_objext conftest$ac_exeext
47415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47416 (eval $ac_link) 2>conftest.er1
47417 ac_status=$?
47418 grep -v '^ *+' conftest.er1 >conftest.err
47419 rm -f conftest.er1
47420 cat conftest.err >&5
47421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422 (exit $ac_status); } &&
47423 { ac_try='test -z "$ac_c_werror_flag"
47424 || test ! -s conftest.err'
47425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47426 (eval $ac_try) 2>&5
47427 ac_status=$?
47428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47429 (exit $ac_status); }; } &&
47430 { ac_try='test -s conftest$ac_exeext'
47431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47432 (eval $ac_try) 2>&5
47433 ac_status=$?
47434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47435 (exit $ac_status); }; }; then
47436 eval "$as_ac_var=yes"
47437 else
47438 echo "$as_me: failed program was:" >&5
47439 sed 's/^/| /' conftest.$ac_ext >&5
47441 eval "$as_ac_var=no"
47443 rm -f conftest.err conftest.$ac_objext \
47444 conftest$ac_exeext conftest.$ac_ext
47446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47448 if test `eval echo '${'$as_ac_var'}'` = yes; then
47449 cat >>confdefs.h <<_ACEOF
47450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47451 _ACEOF
47454 done
47456 else
47458 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47459 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47460 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47461 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47462 echo $ECHO_N "(cached) $ECHO_C" >&6
47463 else
47467 ac_ext=cc
47468 ac_cpp='$CXXCPP $CPPFLAGS'
47469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47473 cat >conftest.$ac_ext <<_ACEOF
47474 /* confdefs.h. */
47475 _ACEOF
47476 cat confdefs.h >>conftest.$ac_ext
47477 cat >>conftest.$ac_ext <<_ACEOF
47478 /* end confdefs.h. */
47479 #include <math.h>
47480 #ifdef HAVE_IEEEFP_H
47481 #include <ieeefp.h>
47482 #endif
47485 main ()
47487 _finitel(0);
47489 return 0;
47491 _ACEOF
47492 rm -f conftest.$ac_objext
47493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47494 (eval $ac_compile) 2>conftest.er1
47495 ac_status=$?
47496 grep -v '^ *+' conftest.er1 >conftest.err
47497 rm -f conftest.er1
47498 cat conftest.err >&5
47499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47500 (exit $ac_status); } &&
47501 { ac_try='test -z "$ac_cxx_werror_flag"
47502 || test ! -s conftest.err'
47503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47504 (eval $ac_try) 2>&5
47505 ac_status=$?
47506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507 (exit $ac_status); }; } &&
47508 { ac_try='test -s conftest.$ac_objext'
47509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47510 (eval $ac_try) 2>&5
47511 ac_status=$?
47512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47513 (exit $ac_status); }; }; then
47514 glibcxx_cv_func__finitel_use=yes
47515 else
47516 echo "$as_me: failed program was:" >&5
47517 sed 's/^/| /' conftest.$ac_ext >&5
47519 glibcxx_cv_func__finitel_use=no
47521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47522 ac_ext=c
47523 ac_cpp='$CPP $CPPFLAGS'
47524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47532 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47533 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47535 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47537 for ac_func in _finitel
47539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47540 echo "$as_me:$LINENO: checking for $ac_func" >&5
47541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47542 if eval "test \"\${$as_ac_var+set}\" = set"; then
47543 echo $ECHO_N "(cached) $ECHO_C" >&6
47544 else
47545 if test x$gcc_no_link = xyes; then
47546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47548 { (exit 1); exit 1; }; }
47550 cat >conftest.$ac_ext <<_ACEOF
47551 /* confdefs.h. */
47552 _ACEOF
47553 cat confdefs.h >>conftest.$ac_ext
47554 cat >>conftest.$ac_ext <<_ACEOF
47555 /* end confdefs.h. */
47556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47558 #define $ac_func innocuous_$ac_func
47560 /* System header to define __stub macros and hopefully few prototypes,
47561 which can conflict with char $ac_func (); below.
47562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47563 <limits.h> exists even on freestanding compilers. */
47565 #ifdef __STDC__
47566 # include <limits.h>
47567 #else
47568 # include <assert.h>
47569 #endif
47571 #undef $ac_func
47573 /* Override any gcc2 internal prototype to avoid an error. */
47574 #ifdef __cplusplus
47575 extern "C"
47577 #endif
47578 /* We use char because int might match the return type of a gcc2
47579 builtin and then its argument prototype would still apply. */
47580 char $ac_func ();
47581 /* The GNU C library defines this for functions which it implements
47582 to always fail with ENOSYS. Some functions are actually named
47583 something starting with __ and the normal name is an alias. */
47584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47585 choke me
47586 #else
47587 char (*f) () = $ac_func;
47588 #endif
47589 #ifdef __cplusplus
47591 #endif
47594 main ()
47596 return f != $ac_func;
47598 return 0;
47600 _ACEOF
47601 rm -f conftest.$ac_objext conftest$ac_exeext
47602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47603 (eval $ac_link) 2>conftest.er1
47604 ac_status=$?
47605 grep -v '^ *+' conftest.er1 >conftest.err
47606 rm -f conftest.er1
47607 cat conftest.err >&5
47608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47609 (exit $ac_status); } &&
47610 { ac_try='test -z "$ac_c_werror_flag"
47611 || test ! -s conftest.err'
47612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47613 (eval $ac_try) 2>&5
47614 ac_status=$?
47615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616 (exit $ac_status); }; } &&
47617 { ac_try='test -s conftest$ac_exeext'
47618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47619 (eval $ac_try) 2>&5
47620 ac_status=$?
47621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47622 (exit $ac_status); }; }; then
47623 eval "$as_ac_var=yes"
47624 else
47625 echo "$as_me: failed program was:" >&5
47626 sed 's/^/| /' conftest.$ac_ext >&5
47628 eval "$as_ac_var=no"
47630 rm -f conftest.err conftest.$ac_objext \
47631 conftest$ac_exeext conftest.$ac_ext
47633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47635 if test `eval echo '${'$as_ac_var'}'` = yes; then
47636 cat >>confdefs.h <<_ACEOF
47637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47638 _ACEOF
47641 done
47649 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47650 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47651 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47652 echo $ECHO_N "(cached) $ECHO_C" >&6
47653 else
47657 ac_ext=cc
47658 ac_cpp='$CXXCPP $CPPFLAGS'
47659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47663 cat >conftest.$ac_ext <<_ACEOF
47664 /* confdefs.h. */
47665 _ACEOF
47666 cat confdefs.h >>conftest.$ac_ext
47667 cat >>conftest.$ac_ext <<_ACEOF
47668 /* end confdefs.h. */
47669 #include <math.h>
47671 main ()
47673 `for x in _acosf _asinf _atanf \
47674 _cosf _sinf _tanf \
47675 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47677 return 0;
47679 _ACEOF
47680 rm -f conftest.$ac_objext
47681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47682 (eval $ac_compile) 2>conftest.er1
47683 ac_status=$?
47684 grep -v '^ *+' conftest.er1 >conftest.err
47685 rm -f conftest.er1
47686 cat conftest.err >&5
47687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47688 (exit $ac_status); } &&
47689 { ac_try='test -z "$ac_cxx_werror_flag"
47690 || test ! -s conftest.err'
47691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47692 (eval $ac_try) 2>&5
47693 ac_status=$?
47694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695 (exit $ac_status); }; } &&
47696 { ac_try='test -s conftest.$ac_objext'
47697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47698 (eval $ac_try) 2>&5
47699 ac_status=$?
47700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47701 (exit $ac_status); }; }; then
47702 glibcxx_cv_func__float_trig_use=yes
47703 else
47704 echo "$as_me: failed program was:" >&5
47705 sed 's/^/| /' conftest.$ac_ext >&5
47707 glibcxx_cv_func__float_trig_use=no
47709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47710 ac_ext=c
47711 ac_cpp='$CPP $CPPFLAGS'
47712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47718 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47719 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47720 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47730 for ac_func in _acosf _asinf _atanf \
47731 _cosf _sinf _tanf \
47732 _coshf _sinhf _tanhf
47734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47735 echo "$as_me:$LINENO: checking for $ac_func" >&5
47736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47737 if eval "test \"\${$as_ac_var+set}\" = set"; then
47738 echo $ECHO_N "(cached) $ECHO_C" >&6
47739 else
47740 if test x$gcc_no_link = xyes; then
47741 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47742 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47743 { (exit 1); exit 1; }; }
47745 cat >conftest.$ac_ext <<_ACEOF
47746 /* confdefs.h. */
47747 _ACEOF
47748 cat confdefs.h >>conftest.$ac_ext
47749 cat >>conftest.$ac_ext <<_ACEOF
47750 /* end confdefs.h. */
47751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47753 #define $ac_func innocuous_$ac_func
47755 /* System header to define __stub macros and hopefully few prototypes,
47756 which can conflict with char $ac_func (); below.
47757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47758 <limits.h> exists even on freestanding compilers. */
47760 #ifdef __STDC__
47761 # include <limits.h>
47762 #else
47763 # include <assert.h>
47764 #endif
47766 #undef $ac_func
47768 /* Override any gcc2 internal prototype to avoid an error. */
47769 #ifdef __cplusplus
47770 extern "C"
47772 #endif
47773 /* We use char because int might match the return type of a gcc2
47774 builtin and then its argument prototype would still apply. */
47775 char $ac_func ();
47776 /* The GNU C library defines this for functions which it implements
47777 to always fail with ENOSYS. Some functions are actually named
47778 something starting with __ and the normal name is an alias. */
47779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47780 choke me
47781 #else
47782 char (*f) () = $ac_func;
47783 #endif
47784 #ifdef __cplusplus
47786 #endif
47789 main ()
47791 return f != $ac_func;
47793 return 0;
47795 _ACEOF
47796 rm -f conftest.$ac_objext conftest$ac_exeext
47797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47798 (eval $ac_link) 2>conftest.er1
47799 ac_status=$?
47800 grep -v '^ *+' conftest.er1 >conftest.err
47801 rm -f conftest.er1
47802 cat conftest.err >&5
47803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47804 (exit $ac_status); } &&
47805 { ac_try='test -z "$ac_c_werror_flag"
47806 || test ! -s conftest.err'
47807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47808 (eval $ac_try) 2>&5
47809 ac_status=$?
47810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47811 (exit $ac_status); }; } &&
47812 { ac_try='test -s conftest$ac_exeext'
47813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47814 (eval $ac_try) 2>&5
47815 ac_status=$?
47816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47817 (exit $ac_status); }; }; then
47818 eval "$as_ac_var=yes"
47819 else
47820 echo "$as_me: failed program was:" >&5
47821 sed 's/^/| /' conftest.$ac_ext >&5
47823 eval "$as_ac_var=no"
47825 rm -f conftest.err conftest.$ac_objext \
47826 conftest$ac_exeext conftest.$ac_ext
47828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47830 if test `eval echo '${'$as_ac_var'}'` = yes; then
47831 cat >>confdefs.h <<_ACEOF
47832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47833 _ACEOF
47836 done
47841 echo "$as_me:$LINENO: checking for _float round functions" >&5
47842 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47843 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47844 echo $ECHO_N "(cached) $ECHO_C" >&6
47845 else
47849 ac_ext=cc
47850 ac_cpp='$CXXCPP $CPPFLAGS'
47851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47855 cat >conftest.$ac_ext <<_ACEOF
47856 /* confdefs.h. */
47857 _ACEOF
47858 cat confdefs.h >>conftest.$ac_ext
47859 cat >>conftest.$ac_ext <<_ACEOF
47860 /* end confdefs.h. */
47861 #include <math.h>
47863 main ()
47865 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47867 return 0;
47869 _ACEOF
47870 rm -f conftest.$ac_objext
47871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47872 (eval $ac_compile) 2>conftest.er1
47873 ac_status=$?
47874 grep -v '^ *+' conftest.er1 >conftest.err
47875 rm -f conftest.er1
47876 cat conftest.err >&5
47877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47878 (exit $ac_status); } &&
47879 { ac_try='test -z "$ac_cxx_werror_flag"
47880 || test ! -s conftest.err'
47881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47882 (eval $ac_try) 2>&5
47883 ac_status=$?
47884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885 (exit $ac_status); }; } &&
47886 { ac_try='test -s conftest.$ac_objext'
47887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47888 (eval $ac_try) 2>&5
47889 ac_status=$?
47890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47891 (exit $ac_status); }; }; then
47892 glibcxx_cv_func__float_round_use=yes
47893 else
47894 echo "$as_me: failed program was:" >&5
47895 sed 's/^/| /' conftest.$ac_ext >&5
47897 glibcxx_cv_func__float_round_use=no
47899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47900 ac_ext=c
47901 ac_cpp='$CPP $CPPFLAGS'
47902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47908 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47909 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47910 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47913 for ac_func in _ceilf _floorf
47915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47916 echo "$as_me:$LINENO: checking for $ac_func" >&5
47917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47918 if eval "test \"\${$as_ac_var+set}\" = set"; then
47919 echo $ECHO_N "(cached) $ECHO_C" >&6
47920 else
47921 if test x$gcc_no_link = xyes; then
47922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47924 { (exit 1); exit 1; }; }
47926 cat >conftest.$ac_ext <<_ACEOF
47927 /* confdefs.h. */
47928 _ACEOF
47929 cat confdefs.h >>conftest.$ac_ext
47930 cat >>conftest.$ac_ext <<_ACEOF
47931 /* end confdefs.h. */
47932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47934 #define $ac_func innocuous_$ac_func
47936 /* System header to define __stub macros and hopefully few prototypes,
47937 which can conflict with char $ac_func (); below.
47938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47939 <limits.h> exists even on freestanding compilers. */
47941 #ifdef __STDC__
47942 # include <limits.h>
47943 #else
47944 # include <assert.h>
47945 #endif
47947 #undef $ac_func
47949 /* Override any gcc2 internal prototype to avoid an error. */
47950 #ifdef __cplusplus
47951 extern "C"
47953 #endif
47954 /* We use char because int might match the return type of a gcc2
47955 builtin and then its argument prototype would still apply. */
47956 char $ac_func ();
47957 /* The GNU C library defines this for functions which it implements
47958 to always fail with ENOSYS. Some functions are actually named
47959 something starting with __ and the normal name is an alias. */
47960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47961 choke me
47962 #else
47963 char (*f) () = $ac_func;
47964 #endif
47965 #ifdef __cplusplus
47967 #endif
47970 main ()
47972 return f != $ac_func;
47974 return 0;
47976 _ACEOF
47977 rm -f conftest.$ac_objext conftest$ac_exeext
47978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47979 (eval $ac_link) 2>conftest.er1
47980 ac_status=$?
47981 grep -v '^ *+' conftest.er1 >conftest.err
47982 rm -f conftest.er1
47983 cat conftest.err >&5
47984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47985 (exit $ac_status); } &&
47986 { ac_try='test -z "$ac_c_werror_flag"
47987 || test ! -s conftest.err'
47988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47989 (eval $ac_try) 2>&5
47990 ac_status=$?
47991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992 (exit $ac_status); }; } &&
47993 { ac_try='test -s conftest$ac_exeext'
47994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47995 (eval $ac_try) 2>&5
47996 ac_status=$?
47997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47998 (exit $ac_status); }; }; then
47999 eval "$as_ac_var=yes"
48000 else
48001 echo "$as_me: failed program was:" >&5
48002 sed 's/^/| /' conftest.$ac_ext >&5
48004 eval "$as_ac_var=no"
48006 rm -f conftest.err conftest.$ac_objext \
48007 conftest$ac_exeext conftest.$ac_ext
48009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48011 if test `eval echo '${'$as_ac_var'}'` = yes; then
48012 cat >>confdefs.h <<_ACEOF
48013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48014 _ACEOF
48017 done
48023 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
48024 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
48025 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
48026 echo $ECHO_N "(cached) $ECHO_C" >&6
48027 else
48031 ac_ext=cc
48032 ac_cpp='$CXXCPP $CPPFLAGS'
48033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48037 cat >conftest.$ac_ext <<_ACEOF
48038 /* confdefs.h. */
48039 _ACEOF
48040 cat confdefs.h >>conftest.$ac_ext
48041 cat >>conftest.$ac_ext <<_ACEOF
48042 /* end confdefs.h. */
48043 #include <math.h>
48045 main ()
48047 `for x in _acosl _asinl _atanl \
48048 _cosl _sinl _tanl \
48049 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
48051 return 0;
48053 _ACEOF
48054 rm -f conftest.$ac_objext
48055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48056 (eval $ac_compile) 2>conftest.er1
48057 ac_status=$?
48058 grep -v '^ *+' conftest.er1 >conftest.err
48059 rm -f conftest.er1
48060 cat conftest.err >&5
48061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48062 (exit $ac_status); } &&
48063 { ac_try='test -z "$ac_cxx_werror_flag"
48064 || test ! -s conftest.err'
48065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48066 (eval $ac_try) 2>&5
48067 ac_status=$?
48068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48069 (exit $ac_status); }; } &&
48070 { ac_try='test -s conftest.$ac_objext'
48071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48072 (eval $ac_try) 2>&5
48073 ac_status=$?
48074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48075 (exit $ac_status); }; }; then
48076 glibcxx_cv_func__long_double_trig_use=yes
48077 else
48078 echo "$as_me: failed program was:" >&5
48079 sed 's/^/| /' conftest.$ac_ext >&5
48081 glibcxx_cv_func__long_double_trig_use=no
48083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48084 ac_ext=c
48085 ac_cpp='$CPP $CPPFLAGS'
48086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48092 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48093 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48094 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48104 for ac_func in _acosl _asinl _atanl \
48105 _cosl _sinl _tanl \
48106 _coshl _sinhl _tanhl
48108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48109 echo "$as_me:$LINENO: checking for $ac_func" >&5
48110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48111 if eval "test \"\${$as_ac_var+set}\" = set"; then
48112 echo $ECHO_N "(cached) $ECHO_C" >&6
48113 else
48114 if test x$gcc_no_link = xyes; then
48115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48117 { (exit 1); exit 1; }; }
48119 cat >conftest.$ac_ext <<_ACEOF
48120 /* confdefs.h. */
48121 _ACEOF
48122 cat confdefs.h >>conftest.$ac_ext
48123 cat >>conftest.$ac_ext <<_ACEOF
48124 /* end confdefs.h. */
48125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48127 #define $ac_func innocuous_$ac_func
48129 /* System header to define __stub macros and hopefully few prototypes,
48130 which can conflict with char $ac_func (); below.
48131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48132 <limits.h> exists even on freestanding compilers. */
48134 #ifdef __STDC__
48135 # include <limits.h>
48136 #else
48137 # include <assert.h>
48138 #endif
48140 #undef $ac_func
48142 /* Override any gcc2 internal prototype to avoid an error. */
48143 #ifdef __cplusplus
48144 extern "C"
48146 #endif
48147 /* We use char because int might match the return type of a gcc2
48148 builtin and then its argument prototype would still apply. */
48149 char $ac_func ();
48150 /* The GNU C library defines this for functions which it implements
48151 to always fail with ENOSYS. Some functions are actually named
48152 something starting with __ and the normal name is an alias. */
48153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48154 choke me
48155 #else
48156 char (*f) () = $ac_func;
48157 #endif
48158 #ifdef __cplusplus
48160 #endif
48163 main ()
48165 return f != $ac_func;
48167 return 0;
48169 _ACEOF
48170 rm -f conftest.$ac_objext conftest$ac_exeext
48171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48172 (eval $ac_link) 2>conftest.er1
48173 ac_status=$?
48174 grep -v '^ *+' conftest.er1 >conftest.err
48175 rm -f conftest.er1
48176 cat conftest.err >&5
48177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48178 (exit $ac_status); } &&
48179 { ac_try='test -z "$ac_c_werror_flag"
48180 || test ! -s conftest.err'
48181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48182 (eval $ac_try) 2>&5
48183 ac_status=$?
48184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48185 (exit $ac_status); }; } &&
48186 { ac_try='test -s conftest$ac_exeext'
48187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48188 (eval $ac_try) 2>&5
48189 ac_status=$?
48190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48191 (exit $ac_status); }; }; then
48192 eval "$as_ac_var=yes"
48193 else
48194 echo "$as_me: failed program was:" >&5
48195 sed 's/^/| /' conftest.$ac_ext >&5
48197 eval "$as_ac_var=no"
48199 rm -f conftest.err conftest.$ac_objext \
48200 conftest$ac_exeext conftest.$ac_ext
48202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48204 if test `eval echo '${'$as_ac_var'}'` = yes; then
48205 cat >>confdefs.h <<_ACEOF
48206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48207 _ACEOF
48210 done
48215 echo "$as_me:$LINENO: checking for _long double round functions" >&5
48216 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48217 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48218 echo $ECHO_N "(cached) $ECHO_C" >&6
48219 else
48223 ac_ext=cc
48224 ac_cpp='$CXXCPP $CPPFLAGS'
48225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48229 cat >conftest.$ac_ext <<_ACEOF
48230 /* confdefs.h. */
48231 _ACEOF
48232 cat confdefs.h >>conftest.$ac_ext
48233 cat >>conftest.$ac_ext <<_ACEOF
48234 /* end confdefs.h. */
48235 #include <math.h>
48237 main ()
48239 `for x in _ceill _floorl; do echo "$x (0);"; done`
48241 return 0;
48243 _ACEOF
48244 rm -f conftest.$ac_objext
48245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48246 (eval $ac_compile) 2>conftest.er1
48247 ac_status=$?
48248 grep -v '^ *+' conftest.er1 >conftest.err
48249 rm -f conftest.er1
48250 cat conftest.err >&5
48251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48252 (exit $ac_status); } &&
48253 { ac_try='test -z "$ac_cxx_werror_flag"
48254 || test ! -s conftest.err'
48255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48256 (eval $ac_try) 2>&5
48257 ac_status=$?
48258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48259 (exit $ac_status); }; } &&
48260 { ac_try='test -s conftest.$ac_objext'
48261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48262 (eval $ac_try) 2>&5
48263 ac_status=$?
48264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48265 (exit $ac_status); }; }; then
48266 glibcxx_cv_func__long_double_round_use=yes
48267 else
48268 echo "$as_me: failed program was:" >&5
48269 sed 's/^/| /' conftest.$ac_ext >&5
48271 glibcxx_cv_func__long_double_round_use=no
48273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48274 ac_ext=c
48275 ac_cpp='$CPP $CPPFLAGS'
48276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48282 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48283 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48284 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48287 for ac_func in _ceill _floorl
48289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48290 echo "$as_me:$LINENO: checking for $ac_func" >&5
48291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48292 if eval "test \"\${$as_ac_var+set}\" = set"; then
48293 echo $ECHO_N "(cached) $ECHO_C" >&6
48294 else
48295 if test x$gcc_no_link = xyes; then
48296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48298 { (exit 1); exit 1; }; }
48300 cat >conftest.$ac_ext <<_ACEOF
48301 /* confdefs.h. */
48302 _ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h. */
48306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48308 #define $ac_func innocuous_$ac_func
48310 /* System header to define __stub macros and hopefully few prototypes,
48311 which can conflict with char $ac_func (); below.
48312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48313 <limits.h> exists even on freestanding compilers. */
48315 #ifdef __STDC__
48316 # include <limits.h>
48317 #else
48318 # include <assert.h>
48319 #endif
48321 #undef $ac_func
48323 /* Override any gcc2 internal prototype to avoid an error. */
48324 #ifdef __cplusplus
48325 extern "C"
48327 #endif
48328 /* We use char because int might match the return type of a gcc2
48329 builtin and then its argument prototype would still apply. */
48330 char $ac_func ();
48331 /* The GNU C library defines this for functions which it implements
48332 to always fail with ENOSYS. Some functions are actually named
48333 something starting with __ and the normal name is an alias. */
48334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48335 choke me
48336 #else
48337 char (*f) () = $ac_func;
48338 #endif
48339 #ifdef __cplusplus
48341 #endif
48344 main ()
48346 return f != $ac_func;
48348 return 0;
48350 _ACEOF
48351 rm -f conftest.$ac_objext conftest$ac_exeext
48352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48353 (eval $ac_link) 2>conftest.er1
48354 ac_status=$?
48355 grep -v '^ *+' conftest.er1 >conftest.err
48356 rm -f conftest.er1
48357 cat conftest.err >&5
48358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48359 (exit $ac_status); } &&
48360 { ac_try='test -z "$ac_c_werror_flag"
48361 || 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 eval "$as_ac_var=yes"
48374 else
48375 echo "$as_me: failed program was:" >&5
48376 sed 's/^/| /' conftest.$ac_ext >&5
48378 eval "$as_ac_var=no"
48380 rm -f conftest.err conftest.$ac_objext \
48381 conftest$ac_exeext conftest.$ac_ext
48383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48385 if test `eval echo '${'$as_ac_var'}'` = yes; then
48386 cat >>confdefs.h <<_ACEOF
48387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48388 _ACEOF
48391 done
48396 LIBS="$ac_save_LIBS"
48397 CXXFLAGS="$ac_save_CXXFLAGS"
48401 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48402 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48403 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48404 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48405 echo $ECHO_N "(cached) $ECHO_C" >&6
48406 else
48410 ac_ext=cc
48411 ac_cpp='$CXXCPP $CPPFLAGS'
48412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48416 cat >conftest.$ac_ext <<_ACEOF
48417 /* confdefs.h. */
48418 _ACEOF
48419 cat confdefs.h >>conftest.$ac_ext
48420 cat >>conftest.$ac_ext <<_ACEOF
48421 /* end confdefs.h. */
48422 #include <math.h>
48424 main ()
48426 __builtin_abs(0);
48428 return 0;
48430 _ACEOF
48431 rm -f conftest.$ac_objext
48432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48433 (eval $ac_compile) 2>conftest.er1
48434 ac_status=$?
48435 grep -v '^ *+' conftest.er1 >conftest.err
48436 rm -f conftest.er1
48437 cat conftest.err >&5
48438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48439 (exit $ac_status); } &&
48440 { ac_try='test -z "$ac_cxx_werror_flag"
48441 || test ! -s conftest.err'
48442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48443 (eval $ac_try) 2>&5
48444 ac_status=$?
48445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48446 (exit $ac_status); }; } &&
48447 { ac_try='test -s conftest.$ac_objext'
48448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48449 (eval $ac_try) 2>&5
48450 ac_status=$?
48451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48452 (exit $ac_status); }; }; then
48453 glibcxx_cv_func___builtin_abs_use=yes
48454 else
48455 echo "$as_me: failed program was:" >&5
48456 sed 's/^/| /' conftest.$ac_ext >&5
48458 glibcxx_cv_func___builtin_abs_use=no
48460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48461 ac_ext=c
48462 ac_cpp='$CPP $CPPFLAGS'
48463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48471 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48472 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48473 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48474 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48475 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48476 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48477 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48478 echo $ECHO_N "(cached) $ECHO_C" >&6
48479 else
48481 if test x$gcc_no_link = xyes; then
48482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48484 { (exit 1); exit 1; }; }
48486 cat >conftest.$ac_ext <<_ACEOF
48487 /* confdefs.h. */
48488 _ACEOF
48489 cat confdefs.h >>conftest.$ac_ext
48490 cat >>conftest.$ac_ext <<_ACEOF
48491 /* end confdefs.h. */
48492 #include <math.h>
48494 main ()
48496 __builtin_abs(0);
48498 return 0;
48500 _ACEOF
48501 rm -f conftest.$ac_objext conftest$ac_exeext
48502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48503 (eval $ac_link) 2>conftest.er1
48504 ac_status=$?
48505 grep -v '^ *+' conftest.er1 >conftest.err
48506 rm -f conftest.er1
48507 cat conftest.err >&5
48508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48509 (exit $ac_status); } &&
48510 { ac_try='test -z "$ac_c_werror_flag"
48511 || test ! -s conftest.err'
48512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48513 (eval $ac_try) 2>&5
48514 ac_status=$?
48515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48516 (exit $ac_status); }; } &&
48517 { ac_try='test -s conftest$ac_exeext'
48518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48519 (eval $ac_try) 2>&5
48520 ac_status=$?
48521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48522 (exit $ac_status); }; }; then
48523 glibcxx_cv_func___builtin_abs_link=yes
48524 else
48525 echo "$as_me: failed program was:" >&5
48526 sed 's/^/| /' conftest.$ac_ext >&5
48528 glibcxx_cv_func___builtin_abs_link=no
48530 rm -f conftest.err conftest.$ac_objext \
48531 conftest$ac_exeext conftest.$ac_ext
48536 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48537 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48538 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48539 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48540 cat >>confdefs.h <<_ACEOF
48541 #define ${ac_tr_func} 1
48542 _ACEOF
48548 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48549 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48550 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48551 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48552 echo $ECHO_N "(cached) $ECHO_C" >&6
48553 else
48557 ac_ext=cc
48558 ac_cpp='$CXXCPP $CPPFLAGS'
48559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48563 cat >conftest.$ac_ext <<_ACEOF
48564 /* confdefs.h. */
48565 _ACEOF
48566 cat confdefs.h >>conftest.$ac_ext
48567 cat >>conftest.$ac_ext <<_ACEOF
48568 /* end confdefs.h. */
48569 #include <math.h>
48571 main ()
48573 __builtin_fabsf(0);
48575 return 0;
48577 _ACEOF
48578 rm -f conftest.$ac_objext
48579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48580 (eval $ac_compile) 2>conftest.er1
48581 ac_status=$?
48582 grep -v '^ *+' conftest.er1 >conftest.err
48583 rm -f conftest.er1
48584 cat conftest.err >&5
48585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48586 (exit $ac_status); } &&
48587 { ac_try='test -z "$ac_cxx_werror_flag"
48588 || test ! -s conftest.err'
48589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48590 (eval $ac_try) 2>&5
48591 ac_status=$?
48592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48593 (exit $ac_status); }; } &&
48594 { ac_try='test -s conftest.$ac_objext'
48595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48596 (eval $ac_try) 2>&5
48597 ac_status=$?
48598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599 (exit $ac_status); }; }; then
48600 glibcxx_cv_func___builtin_fabsf_use=yes
48601 else
48602 echo "$as_me: failed program was:" >&5
48603 sed 's/^/| /' conftest.$ac_ext >&5
48605 glibcxx_cv_func___builtin_fabsf_use=no
48607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48608 ac_ext=c
48609 ac_cpp='$CPP $CPPFLAGS'
48610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48618 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48619 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48620 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48621 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48622 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48623 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48624 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48625 echo $ECHO_N "(cached) $ECHO_C" >&6
48626 else
48628 if test x$gcc_no_link = xyes; then
48629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48631 { (exit 1); exit 1; }; }
48633 cat >conftest.$ac_ext <<_ACEOF
48634 /* confdefs.h. */
48635 _ACEOF
48636 cat confdefs.h >>conftest.$ac_ext
48637 cat >>conftest.$ac_ext <<_ACEOF
48638 /* end confdefs.h. */
48639 #include <math.h>
48641 main ()
48643 __builtin_fabsf(0);
48645 return 0;
48647 _ACEOF
48648 rm -f conftest.$ac_objext conftest$ac_exeext
48649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48650 (eval $ac_link) 2>conftest.er1
48651 ac_status=$?
48652 grep -v '^ *+' conftest.er1 >conftest.err
48653 rm -f conftest.er1
48654 cat conftest.err >&5
48655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48656 (exit $ac_status); } &&
48657 { ac_try='test -z "$ac_c_werror_flag"
48658 || test ! -s conftest.err'
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); }; } &&
48664 { ac_try='test -s conftest$ac_exeext'
48665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48666 (eval $ac_try) 2>&5
48667 ac_status=$?
48668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48669 (exit $ac_status); }; }; then
48670 glibcxx_cv_func___builtin_fabsf_link=yes
48671 else
48672 echo "$as_me: failed program was:" >&5
48673 sed 's/^/| /' conftest.$ac_ext >&5
48675 glibcxx_cv_func___builtin_fabsf_link=no
48677 rm -f conftest.err conftest.$ac_objext \
48678 conftest$ac_exeext conftest.$ac_ext
48683 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48684 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48685 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48686 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48687 cat >>confdefs.h <<_ACEOF
48688 #define ${ac_tr_func} 1
48689 _ACEOF
48695 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48696 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48697 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48698 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48699 echo $ECHO_N "(cached) $ECHO_C" >&6
48700 else
48704 ac_ext=cc
48705 ac_cpp='$CXXCPP $CPPFLAGS'
48706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48710 cat >conftest.$ac_ext <<_ACEOF
48711 /* confdefs.h. */
48712 _ACEOF
48713 cat confdefs.h >>conftest.$ac_ext
48714 cat >>conftest.$ac_ext <<_ACEOF
48715 /* end confdefs.h. */
48716 #include <math.h>
48718 main ()
48720 __builtin_fabs(0);
48722 return 0;
48724 _ACEOF
48725 rm -f conftest.$ac_objext
48726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48727 (eval $ac_compile) 2>conftest.er1
48728 ac_status=$?
48729 grep -v '^ *+' conftest.er1 >conftest.err
48730 rm -f conftest.er1
48731 cat conftest.err >&5
48732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48733 (exit $ac_status); } &&
48734 { ac_try='test -z "$ac_cxx_werror_flag"
48735 || test ! -s conftest.err'
48736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48737 (eval $ac_try) 2>&5
48738 ac_status=$?
48739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48740 (exit $ac_status); }; } &&
48741 { ac_try='test -s conftest.$ac_objext'
48742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48743 (eval $ac_try) 2>&5
48744 ac_status=$?
48745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48746 (exit $ac_status); }; }; then
48747 glibcxx_cv_func___builtin_fabs_use=yes
48748 else
48749 echo "$as_me: failed program was:" >&5
48750 sed 's/^/| /' conftest.$ac_ext >&5
48752 glibcxx_cv_func___builtin_fabs_use=no
48754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48755 ac_ext=c
48756 ac_cpp='$CPP $CPPFLAGS'
48757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48765 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48766 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48767 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48768 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48769 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48770 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48771 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48772 echo $ECHO_N "(cached) $ECHO_C" >&6
48773 else
48775 if test x$gcc_no_link = xyes; then
48776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48778 { (exit 1); exit 1; }; }
48780 cat >conftest.$ac_ext <<_ACEOF
48781 /* confdefs.h. */
48782 _ACEOF
48783 cat confdefs.h >>conftest.$ac_ext
48784 cat >>conftest.$ac_ext <<_ACEOF
48785 /* end confdefs.h. */
48786 #include <math.h>
48788 main ()
48790 __builtin_fabs(0);
48792 return 0;
48794 _ACEOF
48795 rm -f conftest.$ac_objext conftest$ac_exeext
48796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48797 (eval $ac_link) 2>conftest.er1
48798 ac_status=$?
48799 grep -v '^ *+' conftest.er1 >conftest.err
48800 rm -f conftest.er1
48801 cat conftest.err >&5
48802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48803 (exit $ac_status); } &&
48804 { ac_try='test -z "$ac_c_werror_flag"
48805 || test ! -s conftest.err'
48806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48807 (eval $ac_try) 2>&5
48808 ac_status=$?
48809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810 (exit $ac_status); }; } &&
48811 { ac_try='test -s conftest$ac_exeext'
48812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48813 (eval $ac_try) 2>&5
48814 ac_status=$?
48815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48816 (exit $ac_status); }; }; then
48817 glibcxx_cv_func___builtin_fabs_link=yes
48818 else
48819 echo "$as_me: failed program was:" >&5
48820 sed 's/^/| /' conftest.$ac_ext >&5
48822 glibcxx_cv_func___builtin_fabs_link=no
48824 rm -f conftest.err conftest.$ac_objext \
48825 conftest$ac_exeext conftest.$ac_ext
48830 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48831 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48832 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48833 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48834 cat >>confdefs.h <<_ACEOF
48835 #define ${ac_tr_func} 1
48836 _ACEOF
48842 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48843 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48844 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48845 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48846 echo $ECHO_N "(cached) $ECHO_C" >&6
48847 else
48851 ac_ext=cc
48852 ac_cpp='$CXXCPP $CPPFLAGS'
48853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48857 cat >conftest.$ac_ext <<_ACEOF
48858 /* confdefs.h. */
48859 _ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h. */
48863 #include <math.h>
48865 main ()
48867 __builtin_fabsl(0);
48869 return 0;
48871 _ACEOF
48872 rm -f conftest.$ac_objext
48873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48874 (eval $ac_compile) 2>conftest.er1
48875 ac_status=$?
48876 grep -v '^ *+' conftest.er1 >conftest.err
48877 rm -f conftest.er1
48878 cat conftest.err >&5
48879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880 (exit $ac_status); } &&
48881 { ac_try='test -z "$ac_cxx_werror_flag"
48882 || test ! -s conftest.err'
48883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48884 (eval $ac_try) 2>&5
48885 ac_status=$?
48886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887 (exit $ac_status); }; } &&
48888 { ac_try='test -s conftest.$ac_objext'
48889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48890 (eval $ac_try) 2>&5
48891 ac_status=$?
48892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48893 (exit $ac_status); }; }; then
48894 glibcxx_cv_func___builtin_fabsl_use=yes
48895 else
48896 echo "$as_me: failed program was:" >&5
48897 sed 's/^/| /' conftest.$ac_ext >&5
48899 glibcxx_cv_func___builtin_fabsl_use=no
48901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48902 ac_ext=c
48903 ac_cpp='$CPP $CPPFLAGS'
48904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48912 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48913 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48914 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48915 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48916 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48917 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48918 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48919 echo $ECHO_N "(cached) $ECHO_C" >&6
48920 else
48922 if test x$gcc_no_link = xyes; then
48923 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48925 { (exit 1); exit 1; }; }
48927 cat >conftest.$ac_ext <<_ACEOF
48928 /* confdefs.h. */
48929 _ACEOF
48930 cat confdefs.h >>conftest.$ac_ext
48931 cat >>conftest.$ac_ext <<_ACEOF
48932 /* end confdefs.h. */
48933 #include <math.h>
48935 main ()
48937 __builtin_fabsl(0);
48939 return 0;
48941 _ACEOF
48942 rm -f conftest.$ac_objext conftest$ac_exeext
48943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48944 (eval $ac_link) 2>conftest.er1
48945 ac_status=$?
48946 grep -v '^ *+' conftest.er1 >conftest.err
48947 rm -f conftest.er1
48948 cat conftest.err >&5
48949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48950 (exit $ac_status); } &&
48951 { ac_try='test -z "$ac_c_werror_flag"
48952 || test ! -s conftest.err'
48953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48954 (eval $ac_try) 2>&5
48955 ac_status=$?
48956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48957 (exit $ac_status); }; } &&
48958 { ac_try='test -s conftest$ac_exeext'
48959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48960 (eval $ac_try) 2>&5
48961 ac_status=$?
48962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48963 (exit $ac_status); }; }; then
48964 glibcxx_cv_func___builtin_fabsl_link=yes
48965 else
48966 echo "$as_me: failed program was:" >&5
48967 sed 's/^/| /' conftest.$ac_ext >&5
48969 glibcxx_cv_func___builtin_fabsl_link=no
48971 rm -f conftest.err conftest.$ac_objext \
48972 conftest$ac_exeext conftest.$ac_ext
48977 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48978 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48979 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48980 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48981 cat >>confdefs.h <<_ACEOF
48982 #define ${ac_tr_func} 1
48983 _ACEOF
48989 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48990 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48991 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48992 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48993 echo $ECHO_N "(cached) $ECHO_C" >&6
48994 else
48998 ac_ext=cc
48999 ac_cpp='$CXXCPP $CPPFLAGS'
49000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49004 cat >conftest.$ac_ext <<_ACEOF
49005 /* confdefs.h. */
49006 _ACEOF
49007 cat confdefs.h >>conftest.$ac_ext
49008 cat >>conftest.$ac_ext <<_ACEOF
49009 /* end confdefs.h. */
49010 #include <math.h>
49012 main ()
49014 __builtin_labs(0);
49016 return 0;
49018 _ACEOF
49019 rm -f conftest.$ac_objext
49020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49021 (eval $ac_compile) 2>conftest.er1
49022 ac_status=$?
49023 grep -v '^ *+' conftest.er1 >conftest.err
49024 rm -f conftest.er1
49025 cat conftest.err >&5
49026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027 (exit $ac_status); } &&
49028 { ac_try='test -z "$ac_cxx_werror_flag"
49029 || test ! -s conftest.err'
49030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49031 (eval $ac_try) 2>&5
49032 ac_status=$?
49033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49034 (exit $ac_status); }; } &&
49035 { ac_try='test -s conftest.$ac_objext'
49036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49037 (eval $ac_try) 2>&5
49038 ac_status=$?
49039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49040 (exit $ac_status); }; }; then
49041 glibcxx_cv_func___builtin_labs_use=yes
49042 else
49043 echo "$as_me: failed program was:" >&5
49044 sed 's/^/| /' conftest.$ac_ext >&5
49046 glibcxx_cv_func___builtin_labs_use=no
49048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49049 ac_ext=c
49050 ac_cpp='$CPP $CPPFLAGS'
49051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49059 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
49060 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
49061 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
49062 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
49063 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
49064 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
49065 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
49066 echo $ECHO_N "(cached) $ECHO_C" >&6
49067 else
49069 if test x$gcc_no_link = xyes; then
49070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49072 { (exit 1); exit 1; }; }
49074 cat >conftest.$ac_ext <<_ACEOF
49075 /* confdefs.h. */
49076 _ACEOF
49077 cat confdefs.h >>conftest.$ac_ext
49078 cat >>conftest.$ac_ext <<_ACEOF
49079 /* end confdefs.h. */
49080 #include <math.h>
49082 main ()
49084 __builtin_labs(0);
49086 return 0;
49088 _ACEOF
49089 rm -f conftest.$ac_objext conftest$ac_exeext
49090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49091 (eval $ac_link) 2>conftest.er1
49092 ac_status=$?
49093 grep -v '^ *+' conftest.er1 >conftest.err
49094 rm -f conftest.er1
49095 cat conftest.err >&5
49096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49097 (exit $ac_status); } &&
49098 { ac_try='test -z "$ac_c_werror_flag"
49099 || test ! -s conftest.err'
49100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49101 (eval $ac_try) 2>&5
49102 ac_status=$?
49103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49104 (exit $ac_status); }; } &&
49105 { ac_try='test -s conftest$ac_exeext'
49106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49107 (eval $ac_try) 2>&5
49108 ac_status=$?
49109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49110 (exit $ac_status); }; }; then
49111 glibcxx_cv_func___builtin_labs_link=yes
49112 else
49113 echo "$as_me: failed program was:" >&5
49114 sed 's/^/| /' conftest.$ac_ext >&5
49116 glibcxx_cv_func___builtin_labs_link=no
49118 rm -f conftest.err conftest.$ac_objext \
49119 conftest$ac_exeext conftest.$ac_ext
49124 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49125 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49126 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49127 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49128 cat >>confdefs.h <<_ACEOF
49129 #define ${ac_tr_func} 1
49130 _ACEOF
49137 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49138 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49139 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49140 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49141 echo $ECHO_N "(cached) $ECHO_C" >&6
49142 else
49146 ac_ext=cc
49147 ac_cpp='$CXXCPP $CPPFLAGS'
49148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49152 cat >conftest.$ac_ext <<_ACEOF
49153 /* confdefs.h. */
49154 _ACEOF
49155 cat confdefs.h >>conftest.$ac_ext
49156 cat >>conftest.$ac_ext <<_ACEOF
49157 /* end confdefs.h. */
49158 #include <math.h>
49160 main ()
49162 __builtin_sqrtf(0);
49164 return 0;
49166 _ACEOF
49167 rm -f conftest.$ac_objext
49168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49169 (eval $ac_compile) 2>conftest.er1
49170 ac_status=$?
49171 grep -v '^ *+' conftest.er1 >conftest.err
49172 rm -f conftest.er1
49173 cat conftest.err >&5
49174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49175 (exit $ac_status); } &&
49176 { ac_try='test -z "$ac_cxx_werror_flag"
49177 || test ! -s conftest.err'
49178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49179 (eval $ac_try) 2>&5
49180 ac_status=$?
49181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182 (exit $ac_status); }; } &&
49183 { ac_try='test -s conftest.$ac_objext'
49184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49185 (eval $ac_try) 2>&5
49186 ac_status=$?
49187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49188 (exit $ac_status); }; }; then
49189 glibcxx_cv_func___builtin_sqrtf_use=yes
49190 else
49191 echo "$as_me: failed program was:" >&5
49192 sed 's/^/| /' conftest.$ac_ext >&5
49194 glibcxx_cv_func___builtin_sqrtf_use=no
49196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49197 ac_ext=c
49198 ac_cpp='$CPP $CPPFLAGS'
49199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49207 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49208 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49209 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49210 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49211 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49212 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49213 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49214 echo $ECHO_N "(cached) $ECHO_C" >&6
49215 else
49217 if test x$gcc_no_link = xyes; then
49218 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49220 { (exit 1); exit 1; }; }
49222 cat >conftest.$ac_ext <<_ACEOF
49223 /* confdefs.h. */
49224 _ACEOF
49225 cat confdefs.h >>conftest.$ac_ext
49226 cat >>conftest.$ac_ext <<_ACEOF
49227 /* end confdefs.h. */
49228 #include <math.h>
49230 main ()
49232 __builtin_sqrtf(0);
49234 return 0;
49236 _ACEOF
49237 rm -f conftest.$ac_objext conftest$ac_exeext
49238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49239 (eval $ac_link) 2>conftest.er1
49240 ac_status=$?
49241 grep -v '^ *+' conftest.er1 >conftest.err
49242 rm -f conftest.er1
49243 cat conftest.err >&5
49244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49245 (exit $ac_status); } &&
49246 { ac_try='test -z "$ac_c_werror_flag"
49247 || test ! -s conftest.err'
49248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49249 (eval $ac_try) 2>&5
49250 ac_status=$?
49251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252 (exit $ac_status); }; } &&
49253 { ac_try='test -s conftest$ac_exeext'
49254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49255 (eval $ac_try) 2>&5
49256 ac_status=$?
49257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258 (exit $ac_status); }; }; then
49259 glibcxx_cv_func___builtin_sqrtf_link=yes
49260 else
49261 echo "$as_me: failed program was:" >&5
49262 sed 's/^/| /' conftest.$ac_ext >&5
49264 glibcxx_cv_func___builtin_sqrtf_link=no
49266 rm -f conftest.err conftest.$ac_objext \
49267 conftest$ac_exeext conftest.$ac_ext
49272 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49273 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49274 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49275 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49276 cat >>confdefs.h <<_ACEOF
49277 #define ${ac_tr_func} 1
49278 _ACEOF
49284 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49285 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49286 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49287 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49288 echo $ECHO_N "(cached) $ECHO_C" >&6
49289 else
49293 ac_ext=cc
49294 ac_cpp='$CXXCPP $CPPFLAGS'
49295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49299 cat >conftest.$ac_ext <<_ACEOF
49300 /* confdefs.h. */
49301 _ACEOF
49302 cat confdefs.h >>conftest.$ac_ext
49303 cat >>conftest.$ac_ext <<_ACEOF
49304 /* end confdefs.h. */
49305 #include <math.h>
49307 main ()
49309 __builtin_sqrt(0);
49311 return 0;
49313 _ACEOF
49314 rm -f conftest.$ac_objext
49315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49316 (eval $ac_compile) 2>conftest.er1
49317 ac_status=$?
49318 grep -v '^ *+' conftest.er1 >conftest.err
49319 rm -f conftest.er1
49320 cat conftest.err >&5
49321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49322 (exit $ac_status); } &&
49323 { ac_try='test -z "$ac_cxx_werror_flag"
49324 || test ! -s conftest.err'
49325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49326 (eval $ac_try) 2>&5
49327 ac_status=$?
49328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49329 (exit $ac_status); }; } &&
49330 { ac_try='test -s conftest.$ac_objext'
49331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49332 (eval $ac_try) 2>&5
49333 ac_status=$?
49334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49335 (exit $ac_status); }; }; then
49336 glibcxx_cv_func___builtin_sqrt_use=yes
49337 else
49338 echo "$as_me: failed program was:" >&5
49339 sed 's/^/| /' conftest.$ac_ext >&5
49341 glibcxx_cv_func___builtin_sqrt_use=no
49343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49344 ac_ext=c
49345 ac_cpp='$CPP $CPPFLAGS'
49346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49354 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49355 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49356 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49357 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49358 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49359 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49360 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49361 echo $ECHO_N "(cached) $ECHO_C" >&6
49362 else
49364 if test x$gcc_no_link = xyes; then
49365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49367 { (exit 1); exit 1; }; }
49369 cat >conftest.$ac_ext <<_ACEOF
49370 /* confdefs.h. */
49371 _ACEOF
49372 cat confdefs.h >>conftest.$ac_ext
49373 cat >>conftest.$ac_ext <<_ACEOF
49374 /* end confdefs.h. */
49375 #include <math.h>
49377 main ()
49379 __builtin_sqrt(0);
49381 return 0;
49383 _ACEOF
49384 rm -f conftest.$ac_objext conftest$ac_exeext
49385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49386 (eval $ac_link) 2>conftest.er1
49387 ac_status=$?
49388 grep -v '^ *+' conftest.er1 >conftest.err
49389 rm -f conftest.er1
49390 cat conftest.err >&5
49391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49392 (exit $ac_status); } &&
49393 { ac_try='test -z "$ac_c_werror_flag"
49394 || test ! -s conftest.err'
49395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49396 (eval $ac_try) 2>&5
49397 ac_status=$?
49398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49399 (exit $ac_status); }; } &&
49400 { ac_try='test -s conftest$ac_exeext'
49401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49402 (eval $ac_try) 2>&5
49403 ac_status=$?
49404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49405 (exit $ac_status); }; }; then
49406 glibcxx_cv_func___builtin_sqrt_link=yes
49407 else
49408 echo "$as_me: failed program was:" >&5
49409 sed 's/^/| /' conftest.$ac_ext >&5
49411 glibcxx_cv_func___builtin_sqrt_link=no
49413 rm -f conftest.err conftest.$ac_objext \
49414 conftest$ac_exeext conftest.$ac_ext
49419 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49420 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49421 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49422 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49423 cat >>confdefs.h <<_ACEOF
49424 #define ${ac_tr_func} 1
49425 _ACEOF
49431 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49432 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49433 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49434 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49435 echo $ECHO_N "(cached) $ECHO_C" >&6
49436 else
49440 ac_ext=cc
49441 ac_cpp='$CXXCPP $CPPFLAGS'
49442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49446 cat >conftest.$ac_ext <<_ACEOF
49447 /* confdefs.h. */
49448 _ACEOF
49449 cat confdefs.h >>conftest.$ac_ext
49450 cat >>conftest.$ac_ext <<_ACEOF
49451 /* end confdefs.h. */
49452 #include <math.h>
49454 main ()
49456 __builtin_sqrtl(0);
49458 return 0;
49460 _ACEOF
49461 rm -f conftest.$ac_objext
49462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49463 (eval $ac_compile) 2>conftest.er1
49464 ac_status=$?
49465 grep -v '^ *+' conftest.er1 >conftest.err
49466 rm -f conftest.er1
49467 cat conftest.err >&5
49468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49469 (exit $ac_status); } &&
49470 { ac_try='test -z "$ac_cxx_werror_flag"
49471 || test ! -s conftest.err'
49472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473 (eval $ac_try) 2>&5
49474 ac_status=$?
49475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476 (exit $ac_status); }; } &&
49477 { ac_try='test -s conftest.$ac_objext'
49478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479 (eval $ac_try) 2>&5
49480 ac_status=$?
49481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482 (exit $ac_status); }; }; then
49483 glibcxx_cv_func___builtin_sqrtl_use=yes
49484 else
49485 echo "$as_me: failed program was:" >&5
49486 sed 's/^/| /' conftest.$ac_ext >&5
49488 glibcxx_cv_func___builtin_sqrtl_use=no
49490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49491 ac_ext=c
49492 ac_cpp='$CPP $CPPFLAGS'
49493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49501 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49502 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49503 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49504 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49505 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49506 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49507 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49508 echo $ECHO_N "(cached) $ECHO_C" >&6
49509 else
49511 if test x$gcc_no_link = xyes; then
49512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49514 { (exit 1); exit 1; }; }
49516 cat >conftest.$ac_ext <<_ACEOF
49517 /* confdefs.h. */
49518 _ACEOF
49519 cat confdefs.h >>conftest.$ac_ext
49520 cat >>conftest.$ac_ext <<_ACEOF
49521 /* end confdefs.h. */
49522 #include <math.h>
49524 main ()
49526 __builtin_sqrtl(0);
49528 return 0;
49530 _ACEOF
49531 rm -f conftest.$ac_objext conftest$ac_exeext
49532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49533 (eval $ac_link) 2>conftest.er1
49534 ac_status=$?
49535 grep -v '^ *+' conftest.er1 >conftest.err
49536 rm -f conftest.er1
49537 cat conftest.err >&5
49538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539 (exit $ac_status); } &&
49540 { ac_try='test -z "$ac_c_werror_flag"
49541 || test ! -s conftest.err'
49542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49543 (eval $ac_try) 2>&5
49544 ac_status=$?
49545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49546 (exit $ac_status); }; } &&
49547 { ac_try='test -s conftest$ac_exeext'
49548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49549 (eval $ac_try) 2>&5
49550 ac_status=$?
49551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49552 (exit $ac_status); }; }; then
49553 glibcxx_cv_func___builtin_sqrtl_link=yes
49554 else
49555 echo "$as_me: failed program was:" >&5
49556 sed 's/^/| /' conftest.$ac_ext >&5
49558 glibcxx_cv_func___builtin_sqrtl_link=no
49560 rm -f conftest.err conftest.$ac_objext \
49561 conftest$ac_exeext conftest.$ac_ext
49566 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49567 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49568 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49569 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49570 cat >>confdefs.h <<_ACEOF
49571 #define ${ac_tr_func} 1
49572 _ACEOF
49579 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49580 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49581 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49582 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49583 echo $ECHO_N "(cached) $ECHO_C" >&6
49584 else
49588 ac_ext=cc
49589 ac_cpp='$CXXCPP $CPPFLAGS'
49590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49594 cat >conftest.$ac_ext <<_ACEOF
49595 /* confdefs.h. */
49596 _ACEOF
49597 cat confdefs.h >>conftest.$ac_ext
49598 cat >>conftest.$ac_ext <<_ACEOF
49599 /* end confdefs.h. */
49600 #include <math.h>
49602 main ()
49604 __builtin_sinf(0);
49606 return 0;
49608 _ACEOF
49609 rm -f conftest.$ac_objext
49610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49611 (eval $ac_compile) 2>conftest.er1
49612 ac_status=$?
49613 grep -v '^ *+' conftest.er1 >conftest.err
49614 rm -f conftest.er1
49615 cat conftest.err >&5
49616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49617 (exit $ac_status); } &&
49618 { ac_try='test -z "$ac_cxx_werror_flag"
49619 || test ! -s conftest.err'
49620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49621 (eval $ac_try) 2>&5
49622 ac_status=$?
49623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49624 (exit $ac_status); }; } &&
49625 { ac_try='test -s conftest.$ac_objext'
49626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49627 (eval $ac_try) 2>&5
49628 ac_status=$?
49629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49630 (exit $ac_status); }; }; then
49631 glibcxx_cv_func___builtin_sinf_use=yes
49632 else
49633 echo "$as_me: failed program was:" >&5
49634 sed 's/^/| /' conftest.$ac_ext >&5
49636 glibcxx_cv_func___builtin_sinf_use=no
49638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49639 ac_ext=c
49640 ac_cpp='$CPP $CPPFLAGS'
49641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49649 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49650 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49651 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49652 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49653 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49654 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49655 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49656 echo $ECHO_N "(cached) $ECHO_C" >&6
49657 else
49659 if test x$gcc_no_link = xyes; then
49660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49661 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49662 { (exit 1); exit 1; }; }
49664 cat >conftest.$ac_ext <<_ACEOF
49665 /* confdefs.h. */
49666 _ACEOF
49667 cat confdefs.h >>conftest.$ac_ext
49668 cat >>conftest.$ac_ext <<_ACEOF
49669 /* end confdefs.h. */
49670 #include <math.h>
49672 main ()
49674 __builtin_sinf(0);
49676 return 0;
49678 _ACEOF
49679 rm -f conftest.$ac_objext conftest$ac_exeext
49680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49681 (eval $ac_link) 2>conftest.er1
49682 ac_status=$?
49683 grep -v '^ *+' conftest.er1 >conftest.err
49684 rm -f conftest.er1
49685 cat conftest.err >&5
49686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49687 (exit $ac_status); } &&
49688 { ac_try='test -z "$ac_c_werror_flag"
49689 || test ! -s conftest.err'
49690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49691 (eval $ac_try) 2>&5
49692 ac_status=$?
49693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49694 (exit $ac_status); }; } &&
49695 { ac_try='test -s conftest$ac_exeext'
49696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49697 (eval $ac_try) 2>&5
49698 ac_status=$?
49699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49700 (exit $ac_status); }; }; then
49701 glibcxx_cv_func___builtin_sinf_link=yes
49702 else
49703 echo "$as_me: failed program was:" >&5
49704 sed 's/^/| /' conftest.$ac_ext >&5
49706 glibcxx_cv_func___builtin_sinf_link=no
49708 rm -f conftest.err conftest.$ac_objext \
49709 conftest$ac_exeext conftest.$ac_ext
49714 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49715 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49716 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49717 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49718 cat >>confdefs.h <<_ACEOF
49719 #define ${ac_tr_func} 1
49720 _ACEOF
49726 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49727 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49728 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49729 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49730 echo $ECHO_N "(cached) $ECHO_C" >&6
49731 else
49735 ac_ext=cc
49736 ac_cpp='$CXXCPP $CPPFLAGS'
49737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49741 cat >conftest.$ac_ext <<_ACEOF
49742 /* confdefs.h. */
49743 _ACEOF
49744 cat confdefs.h >>conftest.$ac_ext
49745 cat >>conftest.$ac_ext <<_ACEOF
49746 /* end confdefs.h. */
49747 #include <math.h>
49749 main ()
49751 __builtin_sin(0);
49753 return 0;
49755 _ACEOF
49756 rm -f conftest.$ac_objext
49757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49758 (eval $ac_compile) 2>conftest.er1
49759 ac_status=$?
49760 grep -v '^ *+' conftest.er1 >conftest.err
49761 rm -f conftest.er1
49762 cat conftest.err >&5
49763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49764 (exit $ac_status); } &&
49765 { ac_try='test -z "$ac_cxx_werror_flag"
49766 || test ! -s conftest.err'
49767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49768 (eval $ac_try) 2>&5
49769 ac_status=$?
49770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49771 (exit $ac_status); }; } &&
49772 { ac_try='test -s conftest.$ac_objext'
49773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49774 (eval $ac_try) 2>&5
49775 ac_status=$?
49776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49777 (exit $ac_status); }; }; then
49778 glibcxx_cv_func___builtin_sin_use=yes
49779 else
49780 echo "$as_me: failed program was:" >&5
49781 sed 's/^/| /' conftest.$ac_ext >&5
49783 glibcxx_cv_func___builtin_sin_use=no
49785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49786 ac_ext=c
49787 ac_cpp='$CPP $CPPFLAGS'
49788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49796 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49797 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49798 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49799 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49800 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49801 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49802 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49803 echo $ECHO_N "(cached) $ECHO_C" >&6
49804 else
49806 if test x$gcc_no_link = xyes; then
49807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49809 { (exit 1); exit 1; }; }
49811 cat >conftest.$ac_ext <<_ACEOF
49812 /* confdefs.h. */
49813 _ACEOF
49814 cat confdefs.h >>conftest.$ac_ext
49815 cat >>conftest.$ac_ext <<_ACEOF
49816 /* end confdefs.h. */
49817 #include <math.h>
49819 main ()
49821 __builtin_sin(0);
49823 return 0;
49825 _ACEOF
49826 rm -f conftest.$ac_objext conftest$ac_exeext
49827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49828 (eval $ac_link) 2>conftest.er1
49829 ac_status=$?
49830 grep -v '^ *+' conftest.er1 >conftest.err
49831 rm -f conftest.er1
49832 cat conftest.err >&5
49833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49834 (exit $ac_status); } &&
49835 { ac_try='test -z "$ac_c_werror_flag"
49836 || test ! -s conftest.err'
49837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49838 (eval $ac_try) 2>&5
49839 ac_status=$?
49840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49841 (exit $ac_status); }; } &&
49842 { ac_try='test -s conftest$ac_exeext'
49843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49844 (eval $ac_try) 2>&5
49845 ac_status=$?
49846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49847 (exit $ac_status); }; }; then
49848 glibcxx_cv_func___builtin_sin_link=yes
49849 else
49850 echo "$as_me: failed program was:" >&5
49851 sed 's/^/| /' conftest.$ac_ext >&5
49853 glibcxx_cv_func___builtin_sin_link=no
49855 rm -f conftest.err conftest.$ac_objext \
49856 conftest$ac_exeext conftest.$ac_ext
49861 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49862 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49863 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49864 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49865 cat >>confdefs.h <<_ACEOF
49866 #define ${ac_tr_func} 1
49867 _ACEOF
49873 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49874 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49875 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49876 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49877 echo $ECHO_N "(cached) $ECHO_C" >&6
49878 else
49882 ac_ext=cc
49883 ac_cpp='$CXXCPP $CPPFLAGS'
49884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49888 cat >conftest.$ac_ext <<_ACEOF
49889 /* confdefs.h. */
49890 _ACEOF
49891 cat confdefs.h >>conftest.$ac_ext
49892 cat >>conftest.$ac_ext <<_ACEOF
49893 /* end confdefs.h. */
49894 #include <math.h>
49896 main ()
49898 __builtin_sinl(0);
49900 return 0;
49902 _ACEOF
49903 rm -f conftest.$ac_objext
49904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49905 (eval $ac_compile) 2>conftest.er1
49906 ac_status=$?
49907 grep -v '^ *+' conftest.er1 >conftest.err
49908 rm -f conftest.er1
49909 cat conftest.err >&5
49910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911 (exit $ac_status); } &&
49912 { ac_try='test -z "$ac_cxx_werror_flag"
49913 || test ! -s conftest.err'
49914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49915 (eval $ac_try) 2>&5
49916 ac_status=$?
49917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49918 (exit $ac_status); }; } &&
49919 { ac_try='test -s conftest.$ac_objext'
49920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49921 (eval $ac_try) 2>&5
49922 ac_status=$?
49923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49924 (exit $ac_status); }; }; then
49925 glibcxx_cv_func___builtin_sinl_use=yes
49926 else
49927 echo "$as_me: failed program was:" >&5
49928 sed 's/^/| /' conftest.$ac_ext >&5
49930 glibcxx_cv_func___builtin_sinl_use=no
49932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49933 ac_ext=c
49934 ac_cpp='$CPP $CPPFLAGS'
49935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49943 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49944 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49945 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49946 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49947 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49948 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49949 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49950 echo $ECHO_N "(cached) $ECHO_C" >&6
49951 else
49953 if test x$gcc_no_link = xyes; then
49954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49956 { (exit 1); exit 1; }; }
49958 cat >conftest.$ac_ext <<_ACEOF
49959 /* confdefs.h. */
49960 _ACEOF
49961 cat confdefs.h >>conftest.$ac_ext
49962 cat >>conftest.$ac_ext <<_ACEOF
49963 /* end confdefs.h. */
49964 #include <math.h>
49966 main ()
49968 __builtin_sinl(0);
49970 return 0;
49972 _ACEOF
49973 rm -f conftest.$ac_objext conftest$ac_exeext
49974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49975 (eval $ac_link) 2>conftest.er1
49976 ac_status=$?
49977 grep -v '^ *+' conftest.er1 >conftest.err
49978 rm -f conftest.er1
49979 cat conftest.err >&5
49980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981 (exit $ac_status); } &&
49982 { ac_try='test -z "$ac_c_werror_flag"
49983 || test ! -s conftest.err'
49984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49985 (eval $ac_try) 2>&5
49986 ac_status=$?
49987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49988 (exit $ac_status); }; } &&
49989 { ac_try='test -s conftest$ac_exeext'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49992 ac_status=$?
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; }; then
49995 glibcxx_cv_func___builtin_sinl_link=yes
49996 else
49997 echo "$as_me: failed program was:" >&5
49998 sed 's/^/| /' conftest.$ac_ext >&5
50000 glibcxx_cv_func___builtin_sinl_link=no
50002 rm -f conftest.err conftest.$ac_objext \
50003 conftest$ac_exeext conftest.$ac_ext
50008 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
50009 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
50010 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
50011 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50012 cat >>confdefs.h <<_ACEOF
50013 #define ${ac_tr_func} 1
50014 _ACEOF
50021 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
50022 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
50023 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
50024 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
50025 echo $ECHO_N "(cached) $ECHO_C" >&6
50026 else
50030 ac_ext=cc
50031 ac_cpp='$CXXCPP $CPPFLAGS'
50032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50036 cat >conftest.$ac_ext <<_ACEOF
50037 /* confdefs.h. */
50038 _ACEOF
50039 cat confdefs.h >>conftest.$ac_ext
50040 cat >>conftest.$ac_ext <<_ACEOF
50041 /* end confdefs.h. */
50042 #include <math.h>
50044 main ()
50046 __builtin_cosf(0);
50048 return 0;
50050 _ACEOF
50051 rm -f conftest.$ac_objext
50052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50053 (eval $ac_compile) 2>conftest.er1
50054 ac_status=$?
50055 grep -v '^ *+' conftest.er1 >conftest.err
50056 rm -f conftest.er1
50057 cat conftest.err >&5
50058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50059 (exit $ac_status); } &&
50060 { ac_try='test -z "$ac_cxx_werror_flag"
50061 || test ! -s conftest.err'
50062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50063 (eval $ac_try) 2>&5
50064 ac_status=$?
50065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066 (exit $ac_status); }; } &&
50067 { ac_try='test -s conftest.$ac_objext'
50068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50069 (eval $ac_try) 2>&5
50070 ac_status=$?
50071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50072 (exit $ac_status); }; }; then
50073 glibcxx_cv_func___builtin_cosf_use=yes
50074 else
50075 echo "$as_me: failed program was:" >&5
50076 sed 's/^/| /' conftest.$ac_ext >&5
50078 glibcxx_cv_func___builtin_cosf_use=no
50080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50081 ac_ext=c
50082 ac_cpp='$CPP $CPPFLAGS'
50083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50091 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50092 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50093 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50094 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50095 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50096 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50097 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50098 echo $ECHO_N "(cached) $ECHO_C" >&6
50099 else
50101 if test x$gcc_no_link = xyes; then
50102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50104 { (exit 1); exit 1; }; }
50106 cat >conftest.$ac_ext <<_ACEOF
50107 /* confdefs.h. */
50108 _ACEOF
50109 cat confdefs.h >>conftest.$ac_ext
50110 cat >>conftest.$ac_ext <<_ACEOF
50111 /* end confdefs.h. */
50112 #include <math.h>
50114 main ()
50116 __builtin_cosf(0);
50118 return 0;
50120 _ACEOF
50121 rm -f conftest.$ac_objext conftest$ac_exeext
50122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50123 (eval $ac_link) 2>conftest.er1
50124 ac_status=$?
50125 grep -v '^ *+' conftest.er1 >conftest.err
50126 rm -f conftest.er1
50127 cat conftest.err >&5
50128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50129 (exit $ac_status); } &&
50130 { ac_try='test -z "$ac_c_werror_flag"
50131 || test ! -s conftest.err'
50132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50133 (eval $ac_try) 2>&5
50134 ac_status=$?
50135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50136 (exit $ac_status); }; } &&
50137 { ac_try='test -s conftest$ac_exeext'
50138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50139 (eval $ac_try) 2>&5
50140 ac_status=$?
50141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50142 (exit $ac_status); }; }; then
50143 glibcxx_cv_func___builtin_cosf_link=yes
50144 else
50145 echo "$as_me: failed program was:" >&5
50146 sed 's/^/| /' conftest.$ac_ext >&5
50148 glibcxx_cv_func___builtin_cosf_link=no
50150 rm -f conftest.err conftest.$ac_objext \
50151 conftest$ac_exeext conftest.$ac_ext
50156 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50157 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50158 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50159 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50160 cat >>confdefs.h <<_ACEOF
50161 #define ${ac_tr_func} 1
50162 _ACEOF
50168 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50169 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50170 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50171 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50172 echo $ECHO_N "(cached) $ECHO_C" >&6
50173 else
50177 ac_ext=cc
50178 ac_cpp='$CXXCPP $CPPFLAGS'
50179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50183 cat >conftest.$ac_ext <<_ACEOF
50184 /* confdefs.h. */
50185 _ACEOF
50186 cat confdefs.h >>conftest.$ac_ext
50187 cat >>conftest.$ac_ext <<_ACEOF
50188 /* end confdefs.h. */
50189 #include <math.h>
50191 main ()
50193 __builtin_cos(0);
50195 return 0;
50197 _ACEOF
50198 rm -f conftest.$ac_objext
50199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50200 (eval $ac_compile) 2>conftest.er1
50201 ac_status=$?
50202 grep -v '^ *+' conftest.er1 >conftest.err
50203 rm -f conftest.er1
50204 cat conftest.err >&5
50205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50206 (exit $ac_status); } &&
50207 { ac_try='test -z "$ac_cxx_werror_flag"
50208 || test ! -s conftest.err'
50209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50210 (eval $ac_try) 2>&5
50211 ac_status=$?
50212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213 (exit $ac_status); }; } &&
50214 { ac_try='test -s conftest.$ac_objext'
50215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50216 (eval $ac_try) 2>&5
50217 ac_status=$?
50218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50219 (exit $ac_status); }; }; then
50220 glibcxx_cv_func___builtin_cos_use=yes
50221 else
50222 echo "$as_me: failed program was:" >&5
50223 sed 's/^/| /' conftest.$ac_ext >&5
50225 glibcxx_cv_func___builtin_cos_use=no
50227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50228 ac_ext=c
50229 ac_cpp='$CPP $CPPFLAGS'
50230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50238 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50239 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50240 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50241 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50242 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50243 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50244 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50245 echo $ECHO_N "(cached) $ECHO_C" >&6
50246 else
50248 if test x$gcc_no_link = xyes; then
50249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50251 { (exit 1); exit 1; }; }
50253 cat >conftest.$ac_ext <<_ACEOF
50254 /* confdefs.h. */
50255 _ACEOF
50256 cat confdefs.h >>conftest.$ac_ext
50257 cat >>conftest.$ac_ext <<_ACEOF
50258 /* end confdefs.h. */
50259 #include <math.h>
50261 main ()
50263 __builtin_cos(0);
50265 return 0;
50267 _ACEOF
50268 rm -f conftest.$ac_objext conftest$ac_exeext
50269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50270 (eval $ac_link) 2>conftest.er1
50271 ac_status=$?
50272 grep -v '^ *+' conftest.er1 >conftest.err
50273 rm -f conftest.er1
50274 cat conftest.err >&5
50275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50276 (exit $ac_status); } &&
50277 { ac_try='test -z "$ac_c_werror_flag"
50278 || test ! -s conftest.err'
50279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50280 (eval $ac_try) 2>&5
50281 ac_status=$?
50282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50283 (exit $ac_status); }; } &&
50284 { ac_try='test -s conftest$ac_exeext'
50285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50286 (eval $ac_try) 2>&5
50287 ac_status=$?
50288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50289 (exit $ac_status); }; }; then
50290 glibcxx_cv_func___builtin_cos_link=yes
50291 else
50292 echo "$as_me: failed program was:" >&5
50293 sed 's/^/| /' conftest.$ac_ext >&5
50295 glibcxx_cv_func___builtin_cos_link=no
50297 rm -f conftest.err conftest.$ac_objext \
50298 conftest$ac_exeext conftest.$ac_ext
50303 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50304 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50305 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50306 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50307 cat >>confdefs.h <<_ACEOF
50308 #define ${ac_tr_func} 1
50309 _ACEOF
50315 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50316 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50317 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50318 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50319 echo $ECHO_N "(cached) $ECHO_C" >&6
50320 else
50324 ac_ext=cc
50325 ac_cpp='$CXXCPP $CPPFLAGS'
50326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50330 cat >conftest.$ac_ext <<_ACEOF
50331 /* confdefs.h. */
50332 _ACEOF
50333 cat confdefs.h >>conftest.$ac_ext
50334 cat >>conftest.$ac_ext <<_ACEOF
50335 /* end confdefs.h. */
50336 #include <math.h>
50338 main ()
50340 __builtin_cosl(0);
50342 return 0;
50344 _ACEOF
50345 rm -f conftest.$ac_objext
50346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50347 (eval $ac_compile) 2>conftest.er1
50348 ac_status=$?
50349 grep -v '^ *+' conftest.er1 >conftest.err
50350 rm -f conftest.er1
50351 cat conftest.err >&5
50352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50353 (exit $ac_status); } &&
50354 { ac_try='test -z "$ac_cxx_werror_flag"
50355 || test ! -s conftest.err'
50356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50357 (eval $ac_try) 2>&5
50358 ac_status=$?
50359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50360 (exit $ac_status); }; } &&
50361 { ac_try='test -s conftest.$ac_objext'
50362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50363 (eval $ac_try) 2>&5
50364 ac_status=$?
50365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50366 (exit $ac_status); }; }; then
50367 glibcxx_cv_func___builtin_cosl_use=yes
50368 else
50369 echo "$as_me: failed program was:" >&5
50370 sed 's/^/| /' conftest.$ac_ext >&5
50372 glibcxx_cv_func___builtin_cosl_use=no
50374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50375 ac_ext=c
50376 ac_cpp='$CPP $CPPFLAGS'
50377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50385 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50386 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50387 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50388 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50389 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50390 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50391 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50392 echo $ECHO_N "(cached) $ECHO_C" >&6
50393 else
50395 if test x$gcc_no_link = xyes; then
50396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50398 { (exit 1); exit 1; }; }
50400 cat >conftest.$ac_ext <<_ACEOF
50401 /* confdefs.h. */
50402 _ACEOF
50403 cat confdefs.h >>conftest.$ac_ext
50404 cat >>conftest.$ac_ext <<_ACEOF
50405 /* end confdefs.h. */
50406 #include <math.h>
50408 main ()
50410 __builtin_cosl(0);
50412 return 0;
50414 _ACEOF
50415 rm -f conftest.$ac_objext conftest$ac_exeext
50416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50417 (eval $ac_link) 2>conftest.er1
50418 ac_status=$?
50419 grep -v '^ *+' conftest.er1 >conftest.err
50420 rm -f conftest.er1
50421 cat conftest.err >&5
50422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50423 (exit $ac_status); } &&
50424 { ac_try='test -z "$ac_c_werror_flag"
50425 || test ! -s conftest.err'
50426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50427 (eval $ac_try) 2>&5
50428 ac_status=$?
50429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50430 (exit $ac_status); }; } &&
50431 { ac_try='test -s conftest$ac_exeext'
50432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50433 (eval $ac_try) 2>&5
50434 ac_status=$?
50435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50436 (exit $ac_status); }; }; then
50437 glibcxx_cv_func___builtin_cosl_link=yes
50438 else
50439 echo "$as_me: failed program was:" >&5
50440 sed 's/^/| /' conftest.$ac_ext >&5
50442 glibcxx_cv_func___builtin_cosl_link=no
50444 rm -f conftest.err conftest.$ac_objext \
50445 conftest$ac_exeext conftest.$ac_ext
50450 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50451 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50452 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50453 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50454 cat >>confdefs.h <<_ACEOF
50455 #define ${ac_tr_func} 1
50456 _ACEOF
50462 dummyvar=no
50463 if test x$dummyvar = x"yes"; then
50464 cat >>confdefs.h <<\_ACEOF
50465 #define HAVE___BUILTIN_ABS 1
50466 _ACEOF
50468 cat >>confdefs.h <<\_ACEOF
50469 #define HAVE___BUILTIN_LABS 1
50470 _ACEOF
50472 cat >>confdefs.h <<\_ACEOF
50473 #define HAVE___BUILTIN_COS 1
50474 _ACEOF
50476 cat >>confdefs.h <<\_ACEOF
50477 #define HAVE___BUILTIN_COSF 1
50478 _ACEOF
50480 cat >>confdefs.h <<\_ACEOF
50481 #define HAVE___BUILTIN_COSL 1
50482 _ACEOF
50484 cat >>confdefs.h <<\_ACEOF
50485 #define HAVE___BUILTIN_FABS 1
50486 _ACEOF
50488 cat >>confdefs.h <<\_ACEOF
50489 #define HAVE___BUILTIN_FABSF 1
50490 _ACEOF
50492 cat >>confdefs.h <<\_ACEOF
50493 #define HAVE___BUILTIN_FABSL 1
50494 _ACEOF
50496 cat >>confdefs.h <<\_ACEOF
50497 #define HAVE___BUILTIN_SIN 1
50498 _ACEOF
50500 cat >>confdefs.h <<\_ACEOF
50501 #define HAVE___BUILTIN_SINF 1
50502 _ACEOF
50504 cat >>confdefs.h <<\_ACEOF
50505 #define HAVE___BUILTIN_SINL 1
50506 _ACEOF
50508 cat >>confdefs.h <<\_ACEOF
50509 #define HAVE___BUILTIN_SQRT 1
50510 _ACEOF
50512 cat >>confdefs.h <<\_ACEOF
50513 #define HAVE___BUILTIN_SQRTF 1
50514 _ACEOF
50516 cat >>confdefs.h <<\_ACEOF
50517 #define HAVE___BUILTIN_SQRTL 1
50518 _ACEOF
50524 echo "$as_me:$LINENO: checking for main in -lm" >&5
50525 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50526 if test "${ac_cv_lib_m_main+set}" = set; then
50527 echo $ECHO_N "(cached) $ECHO_C" >&6
50528 else
50529 ac_check_lib_save_LIBS=$LIBS
50530 LIBS="-lm $LIBS"
50531 if test x$gcc_no_link = xyes; then
50532 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50534 { (exit 1); exit 1; }; }
50536 cat >conftest.$ac_ext <<_ACEOF
50537 /* confdefs.h. */
50538 _ACEOF
50539 cat confdefs.h >>conftest.$ac_ext
50540 cat >>conftest.$ac_ext <<_ACEOF
50541 /* end confdefs.h. */
50545 main ()
50547 main ();
50549 return 0;
50551 _ACEOF
50552 rm -f conftest.$ac_objext conftest$ac_exeext
50553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50554 (eval $ac_link) 2>conftest.er1
50555 ac_status=$?
50556 grep -v '^ *+' conftest.er1 >conftest.err
50557 rm -f conftest.er1
50558 cat conftest.err >&5
50559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50560 (exit $ac_status); } &&
50561 { ac_try='test -z "$ac_c_werror_flag"
50562 || test ! -s conftest.err'
50563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50564 (eval $ac_try) 2>&5
50565 ac_status=$?
50566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50567 (exit $ac_status); }; } &&
50568 { ac_try='test -s conftest$ac_exeext'
50569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50570 (eval $ac_try) 2>&5
50571 ac_status=$?
50572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573 (exit $ac_status); }; }; then
50574 ac_cv_lib_m_main=yes
50575 else
50576 echo "$as_me: failed program was:" >&5
50577 sed 's/^/| /' conftest.$ac_ext >&5
50579 ac_cv_lib_m_main=no
50581 rm -f conftest.err conftest.$ac_objext \
50582 conftest$ac_exeext conftest.$ac_ext
50583 LIBS=$ac_check_lib_save_LIBS
50585 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50586 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50587 if test $ac_cv_lib_m_main = yes; then
50588 cat >>confdefs.h <<_ACEOF
50589 #define HAVE_LIBM 1
50590 _ACEOF
50592 LIBS="-lm $LIBS"
50597 for ac_func in copysignf
50599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50600 echo "$as_me:$LINENO: checking for $ac_func" >&5
50601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50602 if eval "test \"\${$as_ac_var+set}\" = set"; then
50603 echo $ECHO_N "(cached) $ECHO_C" >&6
50604 else
50605 if test x$gcc_no_link = xyes; then
50606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50608 { (exit 1); exit 1; }; }
50610 cat >conftest.$ac_ext <<_ACEOF
50611 /* confdefs.h. */
50612 _ACEOF
50613 cat confdefs.h >>conftest.$ac_ext
50614 cat >>conftest.$ac_ext <<_ACEOF
50615 /* end confdefs.h. */
50616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50618 #define $ac_func innocuous_$ac_func
50620 /* System header to define __stub macros and hopefully few prototypes,
50621 which can conflict with char $ac_func (); below.
50622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50623 <limits.h> exists even on freestanding compilers. */
50625 #ifdef __STDC__
50626 # include <limits.h>
50627 #else
50628 # include <assert.h>
50629 #endif
50631 #undef $ac_func
50633 /* Override any gcc2 internal prototype to avoid an error. */
50634 #ifdef __cplusplus
50635 extern "C"
50637 #endif
50638 /* We use char because int might match the return type of a gcc2
50639 builtin and then its argument prototype would still apply. */
50640 char $ac_func ();
50641 /* The GNU C library defines this for functions which it implements
50642 to always fail with ENOSYS. Some functions are actually named
50643 something starting with __ and the normal name is an alias. */
50644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50645 choke me
50646 #else
50647 char (*f) () = $ac_func;
50648 #endif
50649 #ifdef __cplusplus
50651 #endif
50654 main ()
50656 return f != $ac_func;
50658 return 0;
50660 _ACEOF
50661 rm -f conftest.$ac_objext conftest$ac_exeext
50662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50663 (eval $ac_link) 2>conftest.er1
50664 ac_status=$?
50665 grep -v '^ *+' conftest.er1 >conftest.err
50666 rm -f conftest.er1
50667 cat conftest.err >&5
50668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50669 (exit $ac_status); } &&
50670 { ac_try='test -z "$ac_c_werror_flag"
50671 || test ! -s conftest.err'
50672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50673 (eval $ac_try) 2>&5
50674 ac_status=$?
50675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50676 (exit $ac_status); }; } &&
50677 { ac_try='test -s conftest$ac_exeext'
50678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50679 (eval $ac_try) 2>&5
50680 ac_status=$?
50681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50682 (exit $ac_status); }; }; then
50683 eval "$as_ac_var=yes"
50684 else
50685 echo "$as_me: failed program was:" >&5
50686 sed 's/^/| /' conftest.$ac_ext >&5
50688 eval "$as_ac_var=no"
50690 rm -f conftest.err conftest.$ac_objext \
50691 conftest$ac_exeext conftest.$ac_ext
50693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50695 if test `eval echo '${'$as_ac_var'}'` = yes; then
50696 cat >>confdefs.h <<_ACEOF
50697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50698 _ACEOF
50700 else
50701 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50703 done
50707 for ac_func in __signbit
50709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50710 echo "$as_me:$LINENO: checking for $ac_func" >&5
50711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50712 if eval "test \"\${$as_ac_var+set}\" = set"; then
50713 echo $ECHO_N "(cached) $ECHO_C" >&6
50714 else
50715 if test x$gcc_no_link = xyes; then
50716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50718 { (exit 1); exit 1; }; }
50720 cat >conftest.$ac_ext <<_ACEOF
50721 /* confdefs.h. */
50722 _ACEOF
50723 cat confdefs.h >>conftest.$ac_ext
50724 cat >>conftest.$ac_ext <<_ACEOF
50725 /* end confdefs.h. */
50726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50728 #define $ac_func innocuous_$ac_func
50730 /* System header to define __stub macros and hopefully few prototypes,
50731 which can conflict with char $ac_func (); below.
50732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50733 <limits.h> exists even on freestanding compilers. */
50735 #ifdef __STDC__
50736 # include <limits.h>
50737 #else
50738 # include <assert.h>
50739 #endif
50741 #undef $ac_func
50743 /* Override any gcc2 internal prototype to avoid an error. */
50744 #ifdef __cplusplus
50745 extern "C"
50747 #endif
50748 /* We use char because int might match the return type of a gcc2
50749 builtin and then its argument prototype would still apply. */
50750 char $ac_func ();
50751 /* The GNU C library defines this for functions which it implements
50752 to always fail with ENOSYS. Some functions are actually named
50753 something starting with __ and the normal name is an alias. */
50754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50755 choke me
50756 #else
50757 char (*f) () = $ac_func;
50758 #endif
50759 #ifdef __cplusplus
50761 #endif
50764 main ()
50766 return f != $ac_func;
50768 return 0;
50770 _ACEOF
50771 rm -f conftest.$ac_objext conftest$ac_exeext
50772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50773 (eval $ac_link) 2>conftest.er1
50774 ac_status=$?
50775 grep -v '^ *+' conftest.er1 >conftest.err
50776 rm -f conftest.er1
50777 cat conftest.err >&5
50778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779 (exit $ac_status); } &&
50780 { ac_try='test -z "$ac_c_werror_flag"
50781 || test ! -s conftest.err'
50782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50783 (eval $ac_try) 2>&5
50784 ac_status=$?
50785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50786 (exit $ac_status); }; } &&
50787 { ac_try='test -s conftest$ac_exeext'
50788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50789 (eval $ac_try) 2>&5
50790 ac_status=$?
50791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50792 (exit $ac_status); }; }; then
50793 eval "$as_ac_var=yes"
50794 else
50795 echo "$as_me: failed program was:" >&5
50796 sed 's/^/| /' conftest.$ac_ext >&5
50798 eval "$as_ac_var=no"
50800 rm -f conftest.err conftest.$ac_objext \
50801 conftest$ac_exeext conftest.$ac_ext
50803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50805 if test `eval echo '${'$as_ac_var'}'` = yes; then
50806 cat >>confdefs.h <<_ACEOF
50807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50808 _ACEOF
50810 else
50811 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50813 done
50816 for ac_func in __signbitf
50818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50819 echo "$as_me:$LINENO: checking for $ac_func" >&5
50820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50821 if eval "test \"\${$as_ac_var+set}\" = set"; then
50822 echo $ECHO_N "(cached) $ECHO_C" >&6
50823 else
50824 if test x$gcc_no_link = xyes; then
50825 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50827 { (exit 1); exit 1; }; }
50829 cat >conftest.$ac_ext <<_ACEOF
50830 /* confdefs.h. */
50831 _ACEOF
50832 cat confdefs.h >>conftest.$ac_ext
50833 cat >>conftest.$ac_ext <<_ACEOF
50834 /* end confdefs.h. */
50835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50837 #define $ac_func innocuous_$ac_func
50839 /* System header to define __stub macros and hopefully few prototypes,
50840 which can conflict with char $ac_func (); below.
50841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50842 <limits.h> exists even on freestanding compilers. */
50844 #ifdef __STDC__
50845 # include <limits.h>
50846 #else
50847 # include <assert.h>
50848 #endif
50850 #undef $ac_func
50852 /* Override any gcc2 internal prototype to avoid an error. */
50853 #ifdef __cplusplus
50854 extern "C"
50856 #endif
50857 /* We use char because int might match the return type of a gcc2
50858 builtin and then its argument prototype would still apply. */
50859 char $ac_func ();
50860 /* The GNU C library defines this for functions which it implements
50861 to always fail with ENOSYS. Some functions are actually named
50862 something starting with __ and the normal name is an alias. */
50863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50864 choke me
50865 #else
50866 char (*f) () = $ac_func;
50867 #endif
50868 #ifdef __cplusplus
50870 #endif
50873 main ()
50875 return f != $ac_func;
50877 return 0;
50879 _ACEOF
50880 rm -f conftest.$ac_objext conftest$ac_exeext
50881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50882 (eval $ac_link) 2>conftest.er1
50883 ac_status=$?
50884 grep -v '^ *+' conftest.er1 >conftest.err
50885 rm -f conftest.er1
50886 cat conftest.err >&5
50887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50888 (exit $ac_status); } &&
50889 { ac_try='test -z "$ac_c_werror_flag"
50890 || test ! -s conftest.err'
50891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50892 (eval $ac_try) 2>&5
50893 ac_status=$?
50894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50895 (exit $ac_status); }; } &&
50896 { ac_try='test -s conftest$ac_exeext'
50897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50898 (eval $ac_try) 2>&5
50899 ac_status=$?
50900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50901 (exit $ac_status); }; }; then
50902 eval "$as_ac_var=yes"
50903 else
50904 echo "$as_me: failed program was:" >&5
50905 sed 's/^/| /' conftest.$ac_ext >&5
50907 eval "$as_ac_var=no"
50909 rm -f conftest.err conftest.$ac_objext \
50910 conftest$ac_exeext conftest.$ac_ext
50912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50914 if test `eval echo '${'$as_ac_var'}'` = yes; then
50915 cat >>confdefs.h <<_ACEOF
50916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50917 _ACEOF
50919 else
50920 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50922 done
50925 if test x$ac_cv_func_copysignl = x"yes"; then
50927 for ac_func in __signbitl
50929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50930 echo "$as_me:$LINENO: checking for $ac_func" >&5
50931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50932 if eval "test \"\${$as_ac_var+set}\" = set"; then
50933 echo $ECHO_N "(cached) $ECHO_C" >&6
50934 else
50935 if test x$gcc_no_link = xyes; then
50936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50938 { (exit 1); exit 1; }; }
50940 cat >conftest.$ac_ext <<_ACEOF
50941 /* confdefs.h. */
50942 _ACEOF
50943 cat confdefs.h >>conftest.$ac_ext
50944 cat >>conftest.$ac_ext <<_ACEOF
50945 /* end confdefs.h. */
50946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50948 #define $ac_func innocuous_$ac_func
50950 /* System header to define __stub macros and hopefully few prototypes,
50951 which can conflict with char $ac_func (); below.
50952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50953 <limits.h> exists even on freestanding compilers. */
50955 #ifdef __STDC__
50956 # include <limits.h>
50957 #else
50958 # include <assert.h>
50959 #endif
50961 #undef $ac_func
50963 /* Override any gcc2 internal prototype to avoid an error. */
50964 #ifdef __cplusplus
50965 extern "C"
50967 #endif
50968 /* We use char because int might match the return type of a gcc2
50969 builtin and then its argument prototype would still apply. */
50970 char $ac_func ();
50971 /* The GNU C library defines this for functions which it implements
50972 to always fail with ENOSYS. Some functions are actually named
50973 something starting with __ and the normal name is an alias. */
50974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50975 choke me
50976 #else
50977 char (*f) () = $ac_func;
50978 #endif
50979 #ifdef __cplusplus
50981 #endif
50984 main ()
50986 return f != $ac_func;
50988 return 0;
50990 _ACEOF
50991 rm -f conftest.$ac_objext conftest$ac_exeext
50992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50993 (eval $ac_link) 2>conftest.er1
50994 ac_status=$?
50995 grep -v '^ *+' conftest.er1 >conftest.err
50996 rm -f conftest.er1
50997 cat conftest.err >&5
50998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50999 (exit $ac_status); } &&
51000 { ac_try='test -z "$ac_c_werror_flag"
51001 || test ! -s conftest.err'
51002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51003 (eval $ac_try) 2>&5
51004 ac_status=$?
51005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51006 (exit $ac_status); }; } &&
51007 { ac_try='test -s conftest$ac_exeext'
51008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51009 (eval $ac_try) 2>&5
51010 ac_status=$?
51011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51012 (exit $ac_status); }; }; then
51013 eval "$as_ac_var=yes"
51014 else
51015 echo "$as_me: failed program was:" >&5
51016 sed 's/^/| /' conftest.$ac_ext >&5
51018 eval "$as_ac_var=no"
51020 rm -f conftest.err conftest.$ac_objext \
51021 conftest$ac_exeext conftest.$ac_ext
51023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51025 if test `eval echo '${'$as_ac_var'}'` = yes; then
51026 cat >>confdefs.h <<_ACEOF
51027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51028 _ACEOF
51030 else
51031 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51033 done
51037 # XXX Review this. Nothing uses it.
51038 if test -n "$LIBMATHOBJS"; then
51039 need_libmath=yes
51044 # Test wchar.h for mbstate_t, which is needed for char_traits and
51045 # others even if wchar_t support is not on.
51046 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51047 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51048 cat >conftest.$ac_ext <<_ACEOF
51049 /* confdefs.h. */
51050 _ACEOF
51051 cat confdefs.h >>conftest.$ac_ext
51052 cat >>conftest.$ac_ext <<_ACEOF
51053 /* end confdefs.h. */
51054 #include <wchar.h>
51056 main ()
51058 mbstate_t teststate;
51060 return 0;
51062 _ACEOF
51063 rm -f conftest.$ac_objext
51064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51065 (eval $ac_compile) 2>conftest.er1
51066 ac_status=$?
51067 grep -v '^ *+' conftest.er1 >conftest.err
51068 rm -f conftest.er1
51069 cat conftest.err >&5
51070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51071 (exit $ac_status); } &&
51072 { ac_try='test -z "$ac_c_werror_flag"
51073 || test ! -s conftest.err'
51074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51075 (eval $ac_try) 2>&5
51076 ac_status=$?
51077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51078 (exit $ac_status); }; } &&
51079 { ac_try='test -s conftest.$ac_objext'
51080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51081 (eval $ac_try) 2>&5
51082 ac_status=$?
51083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51084 (exit $ac_status); }; }; then
51085 have_mbstate_t=yes
51086 else
51087 echo "$as_me: failed program was:" >&5
51088 sed 's/^/| /' conftest.$ac_ext >&5
51090 have_mbstate_t=no
51092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51093 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51094 echo "${ECHO_T}$have_mbstate_t" >&6
51095 if test x"$have_mbstate_t" = xyes; then
51096 cat >>confdefs.h <<\_ACEOF
51097 #define HAVE_MBSTATE_T 1
51098 _ACEOF
51102 # Sanity check for existence of ISO C99 headers for extended encoding.
51104 for ac_header in wchar.h
51106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51108 echo "$as_me:$LINENO: checking for $ac_header" >&5
51109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51111 echo $ECHO_N "(cached) $ECHO_C" >&6
51113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51115 else
51116 # Is the header compilable?
51117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51119 cat >conftest.$ac_ext <<_ACEOF
51120 /* confdefs.h. */
51121 _ACEOF
51122 cat confdefs.h >>conftest.$ac_ext
51123 cat >>conftest.$ac_ext <<_ACEOF
51124 /* end confdefs.h. */
51125 $ac_includes_default
51126 #include <$ac_header>
51127 _ACEOF
51128 rm -f conftest.$ac_objext
51129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51130 (eval $ac_compile) 2>conftest.er1
51131 ac_status=$?
51132 grep -v '^ *+' conftest.er1 >conftest.err
51133 rm -f conftest.er1
51134 cat conftest.err >&5
51135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51136 (exit $ac_status); } &&
51137 { ac_try='test -z "$ac_c_werror_flag"
51138 || test ! -s conftest.err'
51139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51140 (eval $ac_try) 2>&5
51141 ac_status=$?
51142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51143 (exit $ac_status); }; } &&
51144 { ac_try='test -s conftest.$ac_objext'
51145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51146 (eval $ac_try) 2>&5
51147 ac_status=$?
51148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51149 (exit $ac_status); }; }; then
51150 ac_header_compiler=yes
51151 else
51152 echo "$as_me: failed program was:" >&5
51153 sed 's/^/| /' conftest.$ac_ext >&5
51155 ac_header_compiler=no
51157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51159 echo "${ECHO_T}$ac_header_compiler" >&6
51161 # Is the header present?
51162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51164 cat >conftest.$ac_ext <<_ACEOF
51165 /* confdefs.h. */
51166 _ACEOF
51167 cat confdefs.h >>conftest.$ac_ext
51168 cat >>conftest.$ac_ext <<_ACEOF
51169 /* end confdefs.h. */
51170 #include <$ac_header>
51171 _ACEOF
51172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51174 ac_status=$?
51175 grep -v '^ *+' conftest.er1 >conftest.err
51176 rm -f conftest.er1
51177 cat conftest.err >&5
51178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51179 (exit $ac_status); } >/dev/null; then
51180 if test -s conftest.err; then
51181 ac_cpp_err=$ac_c_preproc_warn_flag
51182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51183 else
51184 ac_cpp_err=
51186 else
51187 ac_cpp_err=yes
51189 if test -z "$ac_cpp_err"; then
51190 ac_header_preproc=yes
51191 else
51192 echo "$as_me: failed program was:" >&5
51193 sed 's/^/| /' conftest.$ac_ext >&5
51195 ac_header_preproc=no
51197 rm -f conftest.err conftest.$ac_ext
51198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51199 echo "${ECHO_T}$ac_header_preproc" >&6
51201 # So? What about this header?
51202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51203 yes:no: )
51204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51208 ac_header_preproc=yes
51210 no:yes:* )
51211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51224 cat <<\_ASBOX
51225 ## ----------------------------------------- ##
51226 ## Report this to the package-unused lists. ##
51227 ## ----------------------------------------- ##
51228 _ASBOX
51230 sed "s/^/$as_me: WARNING: /" >&2
51232 esac
51233 echo "$as_me:$LINENO: checking for $ac_header" >&5
51234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51236 echo $ECHO_N "(cached) $ECHO_C" >&6
51237 else
51238 eval "$as_ac_Header=\$ac_header_preproc"
51240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51245 cat >>confdefs.h <<_ACEOF
51246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51247 _ACEOF
51248 ac_has_wchar_h=yes
51249 else
51250 ac_has_wchar_h=no
51253 done
51256 for ac_header in wctype.h
51258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51260 echo "$as_me:$LINENO: checking for $ac_header" >&5
51261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51263 echo $ECHO_N "(cached) $ECHO_C" >&6
51265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51267 else
51268 # Is the header compilable?
51269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51271 cat >conftest.$ac_ext <<_ACEOF
51272 /* confdefs.h. */
51273 _ACEOF
51274 cat confdefs.h >>conftest.$ac_ext
51275 cat >>conftest.$ac_ext <<_ACEOF
51276 /* end confdefs.h. */
51277 $ac_includes_default
51278 #include <$ac_header>
51279 _ACEOF
51280 rm -f conftest.$ac_objext
51281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51282 (eval $ac_compile) 2>conftest.er1
51283 ac_status=$?
51284 grep -v '^ *+' conftest.er1 >conftest.err
51285 rm -f conftest.er1
51286 cat conftest.err >&5
51287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288 (exit $ac_status); } &&
51289 { ac_try='test -z "$ac_c_werror_flag"
51290 || test ! -s conftest.err'
51291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51292 (eval $ac_try) 2>&5
51293 ac_status=$?
51294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51295 (exit $ac_status); }; } &&
51296 { ac_try='test -s conftest.$ac_objext'
51297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51298 (eval $ac_try) 2>&5
51299 ac_status=$?
51300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51301 (exit $ac_status); }; }; then
51302 ac_header_compiler=yes
51303 else
51304 echo "$as_me: failed program was:" >&5
51305 sed 's/^/| /' conftest.$ac_ext >&5
51307 ac_header_compiler=no
51309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51311 echo "${ECHO_T}$ac_header_compiler" >&6
51313 # Is the header present?
51314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51315 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
51323 _ACEOF
51324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51326 ac_status=$?
51327 grep -v '^ *+' conftest.er1 >conftest.err
51328 rm -f conftest.er1
51329 cat conftest.err >&5
51330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51331 (exit $ac_status); } >/dev/null; then
51332 if test -s conftest.err; then
51333 ac_cpp_err=$ac_c_preproc_warn_flag
51334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51335 else
51336 ac_cpp_err=
51338 else
51339 ac_cpp_err=yes
51341 if test -z "$ac_cpp_err"; then
51342 ac_header_preproc=yes
51343 else
51344 echo "$as_me: failed program was:" >&5
51345 sed 's/^/| /' conftest.$ac_ext >&5
51347 ac_header_preproc=no
51349 rm -f conftest.err conftest.$ac_ext
51350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51351 echo "${ECHO_T}$ac_header_preproc" >&6
51353 # So? What about this header?
51354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51355 yes:no: )
51356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51360 ac_header_preproc=yes
51362 no:yes:* )
51363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51376 cat <<\_ASBOX
51377 ## ----------------------------------------- ##
51378 ## Report this to the package-unused lists. ##
51379 ## ----------------------------------------- ##
51380 _ASBOX
51382 sed "s/^/$as_me: WARNING: /" >&2
51384 esac
51385 echo "$as_me:$LINENO: checking for $ac_header" >&5
51386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51388 echo $ECHO_N "(cached) $ECHO_C" >&6
51389 else
51390 eval "$as_ac_Header=\$ac_header_preproc"
51392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51397 cat >>confdefs.h <<_ACEOF
51398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51399 _ACEOF
51400 ac_has_wctype_h=yes
51401 else
51402 ac_has_wctype_h=no
51405 done
51408 # Only continue checking if the ISO C99 headers exist and support is on.
51409 if test x"$ac_has_wchar_h" = xyes &&
51410 test x"$ac_has_wctype_h" = xyes &&
51411 test x"$enable_c_mbchar" != xno; then
51413 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51414 # numeric_limits can instantiate type_traits<wchar_t>
51415 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51416 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51417 cat >conftest.$ac_ext <<_ACEOF
51418 /* confdefs.h. */
51419 _ACEOF
51420 cat confdefs.h >>conftest.$ac_ext
51421 cat >>conftest.$ac_ext <<_ACEOF
51422 /* end confdefs.h. */
51423 #include <wchar.h>
51425 main ()
51427 int i = WCHAR_MIN; int j = WCHAR_MAX;
51429 return 0;
51431 _ACEOF
51432 rm -f conftest.$ac_objext
51433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51434 (eval $ac_compile) 2>conftest.er1
51435 ac_status=$?
51436 grep -v '^ *+' conftest.er1 >conftest.err
51437 rm -f conftest.er1
51438 cat conftest.err >&5
51439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51440 (exit $ac_status); } &&
51441 { ac_try='test -z "$ac_c_werror_flag"
51442 || test ! -s conftest.err'
51443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51444 (eval $ac_try) 2>&5
51445 ac_status=$?
51446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51447 (exit $ac_status); }; } &&
51448 { ac_try='test -s conftest.$ac_objext'
51449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51450 (eval $ac_try) 2>&5
51451 ac_status=$?
51452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51453 (exit $ac_status); }; }; then
51454 has_wchar_minmax=yes
51455 else
51456 echo "$as_me: failed program was:" >&5
51457 sed 's/^/| /' conftest.$ac_ext >&5
51459 has_wchar_minmax=no
51461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51462 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51463 echo "${ECHO_T}$has_wchar_minmax" >&6
51465 # Test wchar.h for WEOF, which is what we use to determine whether
51466 # to specialize for char_traits<wchar_t> or not.
51467 echo "$as_me:$LINENO: checking for WEOF" >&5
51468 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51469 cat >conftest.$ac_ext <<_ACEOF
51470 /* confdefs.h. */
51471 _ACEOF
51472 cat confdefs.h >>conftest.$ac_ext
51473 cat >>conftest.$ac_ext <<_ACEOF
51474 /* end confdefs.h. */
51476 #include <wchar.h>
51477 #include <stddef.h>
51479 main ()
51481 wint_t i = WEOF;
51483 return 0;
51485 _ACEOF
51486 rm -f conftest.$ac_objext
51487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51488 (eval $ac_compile) 2>conftest.er1
51489 ac_status=$?
51490 grep -v '^ *+' conftest.er1 >conftest.err
51491 rm -f conftest.er1
51492 cat conftest.err >&5
51493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51494 (exit $ac_status); } &&
51495 { ac_try='test -z "$ac_c_werror_flag"
51496 || test ! -s conftest.err'
51497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51498 (eval $ac_try) 2>&5
51499 ac_status=$?
51500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51501 (exit $ac_status); }; } &&
51502 { ac_try='test -s conftest.$ac_objext'
51503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504 (eval $ac_try) 2>&5
51505 ac_status=$?
51506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507 (exit $ac_status); }; }; then
51508 has_weof=yes
51509 else
51510 echo "$as_me: failed program was:" >&5
51511 sed 's/^/| /' conftest.$ac_ext >&5
51513 has_weof=no
51515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51516 echo "$as_me:$LINENO: result: $has_weof" >&5
51517 echo "${ECHO_T}$has_weof" >&6
51519 # Tests for wide character functions used in char_traits<wchar_t>.
51520 ac_wfuncs=yes
51527 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51530 echo "$as_me:$LINENO: checking for $ac_func" >&5
51531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51532 if eval "test \"\${$as_ac_var+set}\" = set"; then
51533 echo $ECHO_N "(cached) $ECHO_C" >&6
51534 else
51535 if test x$gcc_no_link = xyes; then
51536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51538 { (exit 1); exit 1; }; }
51540 cat >conftest.$ac_ext <<_ACEOF
51541 /* confdefs.h. */
51542 _ACEOF
51543 cat confdefs.h >>conftest.$ac_ext
51544 cat >>conftest.$ac_ext <<_ACEOF
51545 /* end confdefs.h. */
51546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51548 #define $ac_func innocuous_$ac_func
51550 /* System header to define __stub macros and hopefully few prototypes,
51551 which can conflict with char $ac_func (); below.
51552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51553 <limits.h> exists even on freestanding compilers. */
51555 #ifdef __STDC__
51556 # include <limits.h>
51557 #else
51558 # include <assert.h>
51559 #endif
51561 #undef $ac_func
51563 /* Override any gcc2 internal prototype to avoid an error. */
51564 #ifdef __cplusplus
51565 extern "C"
51567 #endif
51568 /* We use char because int might match the return type of a gcc2
51569 builtin and then its argument prototype would still apply. */
51570 char $ac_func ();
51571 /* The GNU C library defines this for functions which it implements
51572 to always fail with ENOSYS. Some functions are actually named
51573 something starting with __ and the normal name is an alias. */
51574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51575 choke me
51576 #else
51577 char (*f) () = $ac_func;
51578 #endif
51579 #ifdef __cplusplus
51581 #endif
51584 main ()
51586 return f != $ac_func;
51588 return 0;
51590 _ACEOF
51591 rm -f conftest.$ac_objext conftest$ac_exeext
51592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51593 (eval $ac_link) 2>conftest.er1
51594 ac_status=$?
51595 grep -v '^ *+' conftest.er1 >conftest.err
51596 rm -f conftest.er1
51597 cat conftest.err >&5
51598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51599 (exit $ac_status); } &&
51600 { ac_try='test -z "$ac_c_werror_flag"
51601 || test ! -s conftest.err'
51602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51603 (eval $ac_try) 2>&5
51604 ac_status=$?
51605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51606 (exit $ac_status); }; } &&
51607 { ac_try='test -s conftest$ac_exeext'
51608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51609 (eval $ac_try) 2>&5
51610 ac_status=$?
51611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51612 (exit $ac_status); }; }; then
51613 eval "$as_ac_var=yes"
51614 else
51615 echo "$as_me: failed program was:" >&5
51616 sed 's/^/| /' conftest.$ac_ext >&5
51618 eval "$as_ac_var=no"
51620 rm -f conftest.err conftest.$ac_objext \
51621 conftest$ac_exeext conftest.$ac_ext
51623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51625 if test `eval echo '${'$as_ac_var'}'` = yes; then
51626 cat >>confdefs.h <<_ACEOF
51627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51628 _ACEOF
51630 else
51631 ac_wfuncs=no
51633 done
51636 # Checks for names injected into std:: by the c_std headers.
51683 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51684 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51685 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51686 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51687 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51688 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51691 echo "$as_me:$LINENO: checking for $ac_func" >&5
51692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51693 if eval "test \"\${$as_ac_var+set}\" = set"; then
51694 echo $ECHO_N "(cached) $ECHO_C" >&6
51695 else
51696 if test x$gcc_no_link = xyes; then
51697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51699 { (exit 1); exit 1; }; }
51701 cat >conftest.$ac_ext <<_ACEOF
51702 /* confdefs.h. */
51703 _ACEOF
51704 cat confdefs.h >>conftest.$ac_ext
51705 cat >>conftest.$ac_ext <<_ACEOF
51706 /* end confdefs.h. */
51707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51709 #define $ac_func innocuous_$ac_func
51711 /* System header to define __stub macros and hopefully few prototypes,
51712 which can conflict with char $ac_func (); below.
51713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51714 <limits.h> exists even on freestanding compilers. */
51716 #ifdef __STDC__
51717 # include <limits.h>
51718 #else
51719 # include <assert.h>
51720 #endif
51722 #undef $ac_func
51724 /* Override any gcc2 internal prototype to avoid an error. */
51725 #ifdef __cplusplus
51726 extern "C"
51728 #endif
51729 /* We use char because int might match the return type of a gcc2
51730 builtin and then its argument prototype would still apply. */
51731 char $ac_func ();
51732 /* The GNU C library defines this for functions which it implements
51733 to always fail with ENOSYS. Some functions are actually named
51734 something starting with __ and the normal name is an alias. */
51735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51736 choke me
51737 #else
51738 char (*f) () = $ac_func;
51739 #endif
51740 #ifdef __cplusplus
51742 #endif
51745 main ()
51747 return f != $ac_func;
51749 return 0;
51751 _ACEOF
51752 rm -f conftest.$ac_objext conftest$ac_exeext
51753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51754 (eval $ac_link) 2>conftest.er1
51755 ac_status=$?
51756 grep -v '^ *+' conftest.er1 >conftest.err
51757 rm -f conftest.er1
51758 cat conftest.err >&5
51759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51760 (exit $ac_status); } &&
51761 { ac_try='test -z "$ac_c_werror_flag"
51762 || test ! -s conftest.err'
51763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51764 (eval $ac_try) 2>&5
51765 ac_status=$?
51766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51767 (exit $ac_status); }; } &&
51768 { ac_try='test -s conftest$ac_exeext'
51769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51770 (eval $ac_try) 2>&5
51771 ac_status=$?
51772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51773 (exit $ac_status); }; }; then
51774 eval "$as_ac_var=yes"
51775 else
51776 echo "$as_me: failed program was:" >&5
51777 sed 's/^/| /' conftest.$ac_ext >&5
51779 eval "$as_ac_var=no"
51781 rm -f conftest.err conftest.$ac_objext \
51782 conftest$ac_exeext conftest.$ac_ext
51784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51786 if test `eval echo '${'$as_ac_var'}'` = yes; then
51787 cat >>confdefs.h <<_ACEOF
51788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51789 _ACEOF
51791 else
51792 ac_wfuncs=no
51794 done
51797 # Checks for wide character functions that are not required
51798 # for basic wchar_t support. Don't disable support if they are missing.
51799 # Injection of these is wrapped with guard macros.
51805 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51808 echo "$as_me:$LINENO: checking for $ac_func" >&5
51809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51810 if eval "test \"\${$as_ac_var+set}\" = set"; then
51811 echo $ECHO_N "(cached) $ECHO_C" >&6
51812 else
51813 if test x$gcc_no_link = xyes; then
51814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51816 { (exit 1); exit 1; }; }
51818 cat >conftest.$ac_ext <<_ACEOF
51819 /* confdefs.h. */
51820 _ACEOF
51821 cat confdefs.h >>conftest.$ac_ext
51822 cat >>conftest.$ac_ext <<_ACEOF
51823 /* end confdefs.h. */
51824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51826 #define $ac_func innocuous_$ac_func
51828 /* System header to define __stub macros and hopefully few prototypes,
51829 which can conflict with char $ac_func (); below.
51830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51831 <limits.h> exists even on freestanding compilers. */
51833 #ifdef __STDC__
51834 # include <limits.h>
51835 #else
51836 # include <assert.h>
51837 #endif
51839 #undef $ac_func
51841 /* Override any gcc2 internal prototype to avoid an error. */
51842 #ifdef __cplusplus
51843 extern "C"
51845 #endif
51846 /* We use char because int might match the return type of a gcc2
51847 builtin and then its argument prototype would still apply. */
51848 char $ac_func ();
51849 /* The GNU C library defines this for functions which it implements
51850 to always fail with ENOSYS. Some functions are actually named
51851 something starting with __ and the normal name is an alias. */
51852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51853 choke me
51854 #else
51855 char (*f) () = $ac_func;
51856 #endif
51857 #ifdef __cplusplus
51859 #endif
51862 main ()
51864 return f != $ac_func;
51866 return 0;
51868 _ACEOF
51869 rm -f conftest.$ac_objext conftest$ac_exeext
51870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51871 (eval $ac_link) 2>conftest.er1
51872 ac_status=$?
51873 grep -v '^ *+' conftest.er1 >conftest.err
51874 rm -f conftest.er1
51875 cat conftest.err >&5
51876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51877 (exit $ac_status); } &&
51878 { ac_try='test -z "$ac_c_werror_flag"
51879 || test ! -s conftest.err'
51880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51881 (eval $ac_try) 2>&5
51882 ac_status=$?
51883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51884 (exit $ac_status); }; } &&
51885 { ac_try='test -s conftest$ac_exeext'
51886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51887 (eval $ac_try) 2>&5
51888 ac_status=$?
51889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51890 (exit $ac_status); }; }; then
51891 eval "$as_ac_var=yes"
51892 else
51893 echo "$as_me: failed program was:" >&5
51894 sed 's/^/| /' conftest.$ac_ext >&5
51896 eval "$as_ac_var=no"
51898 rm -f conftest.err conftest.$ac_objext \
51899 conftest$ac_exeext conftest.$ac_ext
51901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51903 if test `eval echo '${'$as_ac_var'}'` = yes; then
51904 cat >>confdefs.h <<_ACEOF
51905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51906 _ACEOF
51909 done
51912 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51913 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51914 if test x"$has_weof" = xyes &&
51915 test x"$has_wchar_minmax" = xyes &&
51916 test x"$ac_wfuncs" = xyes;
51917 then
51918 ac_isoC99_wchar_t=yes
51919 else
51920 ac_isoC99_wchar_t=no
51922 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51923 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51925 # Use iconv for wchar_t to char conversions. As such, check for
51926 # X/Open Portability Guide, version 2 features (XPG2).
51927 if test "${ac_cv_header_iconv_h+set}" = set; then
51928 echo "$as_me:$LINENO: checking for iconv.h" >&5
51929 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51930 if test "${ac_cv_header_iconv_h+set}" = set; then
51931 echo $ECHO_N "(cached) $ECHO_C" >&6
51933 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51934 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51935 else
51936 # Is the header compilable?
51937 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51938 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51939 cat >conftest.$ac_ext <<_ACEOF
51940 /* confdefs.h. */
51941 _ACEOF
51942 cat confdefs.h >>conftest.$ac_ext
51943 cat >>conftest.$ac_ext <<_ACEOF
51944 /* end confdefs.h. */
51945 $ac_includes_default
51946 #include <iconv.h>
51947 _ACEOF
51948 rm -f conftest.$ac_objext
51949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51950 (eval $ac_compile) 2>conftest.er1
51951 ac_status=$?
51952 grep -v '^ *+' conftest.er1 >conftest.err
51953 rm -f conftest.er1
51954 cat conftest.err >&5
51955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51956 (exit $ac_status); } &&
51957 { ac_try='test -z "$ac_c_werror_flag"
51958 || test ! -s conftest.err'
51959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51960 (eval $ac_try) 2>&5
51961 ac_status=$?
51962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51963 (exit $ac_status); }; } &&
51964 { ac_try='test -s conftest.$ac_objext'
51965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51966 (eval $ac_try) 2>&5
51967 ac_status=$?
51968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51969 (exit $ac_status); }; }; then
51970 ac_header_compiler=yes
51971 else
51972 echo "$as_me: failed program was:" >&5
51973 sed 's/^/| /' conftest.$ac_ext >&5
51975 ac_header_compiler=no
51977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51979 echo "${ECHO_T}$ac_header_compiler" >&6
51981 # Is the header present?
51982 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51983 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51984 cat >conftest.$ac_ext <<_ACEOF
51985 /* confdefs.h. */
51986 _ACEOF
51987 cat confdefs.h >>conftest.$ac_ext
51988 cat >>conftest.$ac_ext <<_ACEOF
51989 /* end confdefs.h. */
51990 #include <iconv.h>
51991 _ACEOF
51992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51994 ac_status=$?
51995 grep -v '^ *+' conftest.er1 >conftest.err
51996 rm -f conftest.er1
51997 cat conftest.err >&5
51998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51999 (exit $ac_status); } >/dev/null; then
52000 if test -s conftest.err; then
52001 ac_cpp_err=$ac_c_preproc_warn_flag
52002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52003 else
52004 ac_cpp_err=
52006 else
52007 ac_cpp_err=yes
52009 if test -z "$ac_cpp_err"; then
52010 ac_header_preproc=yes
52011 else
52012 echo "$as_me: failed program was:" >&5
52013 sed 's/^/| /' conftest.$ac_ext >&5
52015 ac_header_preproc=no
52017 rm -f conftest.err conftest.$ac_ext
52018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52019 echo "${ECHO_T}$ac_header_preproc" >&6
52021 # So? What about this header?
52022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52023 yes:no: )
52024 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52025 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52026 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
52027 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
52028 ac_header_preproc=yes
52030 no:yes:* )
52031 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52032 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52033 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52034 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52035 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
52036 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
52037 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
52038 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
52039 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52040 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52041 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
52042 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
52044 cat <<\_ASBOX
52045 ## ----------------------------------------- ##
52046 ## Report this to the package-unused lists. ##
52047 ## ----------------------------------------- ##
52048 _ASBOX
52050 sed "s/^/$as_me: WARNING: /" >&2
52052 esac
52053 echo "$as_me:$LINENO: checking for iconv.h" >&5
52054 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52055 if test "${ac_cv_header_iconv_h+set}" = set; then
52056 echo $ECHO_N "(cached) $ECHO_C" >&6
52057 else
52058 ac_cv_header_iconv_h=$ac_header_preproc
52060 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52061 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52064 if test $ac_cv_header_iconv_h = yes; then
52065 ac_has_iconv_h=yes
52066 else
52067 ac_has_iconv_h=no
52071 if test "${ac_cv_header_langinfo_h+set}" = set; then
52072 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52073 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52074 if test "${ac_cv_header_langinfo_h+set}" = set; then
52075 echo $ECHO_N "(cached) $ECHO_C" >&6
52077 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52078 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52079 else
52080 # Is the header compilable?
52081 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52082 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52083 cat >conftest.$ac_ext <<_ACEOF
52084 /* confdefs.h. */
52085 _ACEOF
52086 cat confdefs.h >>conftest.$ac_ext
52087 cat >>conftest.$ac_ext <<_ACEOF
52088 /* end confdefs.h. */
52089 $ac_includes_default
52090 #include <langinfo.h>
52091 _ACEOF
52092 rm -f conftest.$ac_objext
52093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52094 (eval $ac_compile) 2>conftest.er1
52095 ac_status=$?
52096 grep -v '^ *+' conftest.er1 >conftest.err
52097 rm -f conftest.er1
52098 cat conftest.err >&5
52099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52100 (exit $ac_status); } &&
52101 { ac_try='test -z "$ac_c_werror_flag"
52102 || test ! -s conftest.err'
52103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52104 (eval $ac_try) 2>&5
52105 ac_status=$?
52106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52107 (exit $ac_status); }; } &&
52108 { ac_try='test -s conftest.$ac_objext'
52109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52110 (eval $ac_try) 2>&5
52111 ac_status=$?
52112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52113 (exit $ac_status); }; }; then
52114 ac_header_compiler=yes
52115 else
52116 echo "$as_me: failed program was:" >&5
52117 sed 's/^/| /' conftest.$ac_ext >&5
52119 ac_header_compiler=no
52121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52123 echo "${ECHO_T}$ac_header_compiler" >&6
52125 # Is the header present?
52126 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52127 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52128 cat >conftest.$ac_ext <<_ACEOF
52129 /* confdefs.h. */
52130 _ACEOF
52131 cat confdefs.h >>conftest.$ac_ext
52132 cat >>conftest.$ac_ext <<_ACEOF
52133 /* end confdefs.h. */
52134 #include <langinfo.h>
52135 _ACEOF
52136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52137 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
52144 if test -s conftest.err; then
52145 ac_cpp_err=$ac_c_preproc_warn_flag
52146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52147 else
52148 ac_cpp_err=
52150 else
52151 ac_cpp_err=yes
52153 if test -z "$ac_cpp_err"; then
52154 ac_header_preproc=yes
52155 else
52156 echo "$as_me: failed program was:" >&5
52157 sed 's/^/| /' conftest.$ac_ext >&5
52159 ac_header_preproc=no
52161 rm -f conftest.err conftest.$ac_ext
52162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52163 echo "${ECHO_T}$ac_header_preproc" >&6
52165 # So? What about this header?
52166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52167 yes:no: )
52168 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52169 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52170 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52171 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52172 ac_header_preproc=yes
52174 no:yes:* )
52175 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52176 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52177 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52178 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52179 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52180 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52181 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
52182 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
52183 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52184 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52185 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52186 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52188 cat <<\_ASBOX
52189 ## ----------------------------------------- ##
52190 ## Report this to the package-unused lists. ##
52191 ## ----------------------------------------- ##
52192 _ASBOX
52194 sed "s/^/$as_me: WARNING: /" >&2
52196 esac
52197 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52198 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52199 if test "${ac_cv_header_langinfo_h+set}" = set; then
52200 echo $ECHO_N "(cached) $ECHO_C" >&6
52201 else
52202 ac_cv_header_langinfo_h=$ac_header_preproc
52204 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52205 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52208 if test $ac_cv_header_langinfo_h = yes; then
52209 ac_has_langinfo_h=yes
52210 else
52211 ac_has_langinfo_h=no
52216 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52217 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52218 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52219 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52220 echo $ECHO_N "(cached) $ECHO_C" >&6
52221 else
52222 ac_check_lib_save_LIBS=$LIBS
52223 LIBS="-liconv $LIBS"
52224 if test x$gcc_no_link = xyes; then
52225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52227 { (exit 1); exit 1; }; }
52229 cat >conftest.$ac_ext <<_ACEOF
52230 /* confdefs.h. */
52231 _ACEOF
52232 cat confdefs.h >>conftest.$ac_ext
52233 cat >>conftest.$ac_ext <<_ACEOF
52234 /* end confdefs.h. */
52236 /* Override any gcc2 internal prototype to avoid an error. */
52237 #ifdef __cplusplus
52238 extern "C"
52239 #endif
52240 /* We use char because int might match the return type of a gcc2
52241 builtin and then its argument prototype would still apply. */
52242 char iconv ();
52244 main ()
52246 iconv ();
52248 return 0;
52250 _ACEOF
52251 rm -f conftest.$ac_objext conftest$ac_exeext
52252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52253 (eval $ac_link) 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); } &&
52260 { ac_try='test -z "$ac_c_werror_flag"
52261 || test ! -s conftest.err'
52262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52263 (eval $ac_try) 2>&5
52264 ac_status=$?
52265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52266 (exit $ac_status); }; } &&
52267 { ac_try='test -s conftest$ac_exeext'
52268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52269 (eval $ac_try) 2>&5
52270 ac_status=$?
52271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52272 (exit $ac_status); }; }; then
52273 ac_cv_lib_iconv_iconv=yes
52274 else
52275 echo "$as_me: failed program was:" >&5
52276 sed 's/^/| /' conftest.$ac_ext >&5
52278 ac_cv_lib_iconv_iconv=no
52280 rm -f conftest.err conftest.$ac_objext \
52281 conftest$ac_exeext conftest.$ac_ext
52282 LIBS=$ac_check_lib_save_LIBS
52284 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52285 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52286 if test $ac_cv_lib_iconv_iconv = yes; then
52287 LIBICONV="-liconv"
52290 ac_save_LIBS="$LIBS"
52291 LIBS="$LIBS $LIBICONV"
52298 for ac_func in iconv_open iconv_close iconv nl_langinfo
52300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52301 echo "$as_me:$LINENO: checking for $ac_func" >&5
52302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52303 if eval "test \"\${$as_ac_var+set}\" = set"; then
52304 echo $ECHO_N "(cached) $ECHO_C" >&6
52305 else
52306 if test x$gcc_no_link = xyes; then
52307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52309 { (exit 1); exit 1; }; }
52311 cat >conftest.$ac_ext <<_ACEOF
52312 /* confdefs.h. */
52313 _ACEOF
52314 cat confdefs.h >>conftest.$ac_ext
52315 cat >>conftest.$ac_ext <<_ACEOF
52316 /* end confdefs.h. */
52317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52319 #define $ac_func innocuous_$ac_func
52321 /* System header to define __stub macros and hopefully few prototypes,
52322 which can conflict with char $ac_func (); below.
52323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52324 <limits.h> exists even on freestanding compilers. */
52326 #ifdef __STDC__
52327 # include <limits.h>
52328 #else
52329 # include <assert.h>
52330 #endif
52332 #undef $ac_func
52334 /* Override any gcc2 internal prototype to avoid an error. */
52335 #ifdef __cplusplus
52336 extern "C"
52338 #endif
52339 /* We use char because int might match the return type of a gcc2
52340 builtin and then its argument prototype would still apply. */
52341 char $ac_func ();
52342 /* The GNU C library defines this for functions which it implements
52343 to always fail with ENOSYS. Some functions are actually named
52344 something starting with __ and the normal name is an alias. */
52345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52346 choke me
52347 #else
52348 char (*f) () = $ac_func;
52349 #endif
52350 #ifdef __cplusplus
52352 #endif
52355 main ()
52357 return f != $ac_func;
52359 return 0;
52361 _ACEOF
52362 rm -f conftest.$ac_objext conftest$ac_exeext
52363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52364 (eval $ac_link) 2>conftest.er1
52365 ac_status=$?
52366 grep -v '^ *+' conftest.er1 >conftest.err
52367 rm -f conftest.er1
52368 cat conftest.err >&5
52369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52370 (exit $ac_status); } &&
52371 { ac_try='test -z "$ac_c_werror_flag"
52372 || test ! -s conftest.err'
52373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52374 (eval $ac_try) 2>&5
52375 ac_status=$?
52376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52377 (exit $ac_status); }; } &&
52378 { ac_try='test -s conftest$ac_exeext'
52379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52380 (eval $ac_try) 2>&5
52381 ac_status=$?
52382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52383 (exit $ac_status); }; }; then
52384 eval "$as_ac_var=yes"
52385 else
52386 echo "$as_me: failed program was:" >&5
52387 sed 's/^/| /' conftest.$ac_ext >&5
52389 eval "$as_ac_var=no"
52391 rm -f conftest.err conftest.$ac_objext \
52392 conftest$ac_exeext conftest.$ac_ext
52394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52396 if test `eval echo '${'$as_ac_var'}'` = yes; then
52397 cat >>confdefs.h <<_ACEOF
52398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52399 _ACEOF
52400 ac_XPG2funcs=yes
52401 else
52402 ac_XPG2funcs=no
52404 done
52407 LIBS="$ac_save_LIBS"
52409 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52410 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52411 if test x"$ac_has_iconv_h" = xyes &&
52412 test x"$ac_has_langinfo_h" = xyes &&
52413 test x"$ac_XPG2funcs" = xyes;
52414 then
52415 ac_XPG2_wchar_t=yes
52416 else
52417 ac_XPG2_wchar_t=no
52419 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52420 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52422 # At the moment, only enable wchar_t specializations if all the
52423 # above support is present.
52424 if test x"$ac_isoC99_wchar_t" = xyes &&
52425 test x"$ac_XPG2_wchar_t" = xyes;
52426 then
52427 cat >>confdefs.h <<\_ACEOF
52428 #define _GLIBCXX_USE_WCHAR_T 1
52429 _ACEOF
52431 enable_wchar_t=yes
52434 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52435 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52436 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52437 echo "${ECHO_T}$enable_wchar_t" >&6
52440 ac_test_CXXFLAGS="${CXXFLAGS+set}"
52441 ac_save_CXXFLAGS="$CXXFLAGS"
52442 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52445 echo "$as_me:$LINENO: checking for strtold declaration" >&5
52446 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52447 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52448 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52449 echo $ECHO_N "(cached) $ECHO_C" >&6
52450 else
52454 ac_ext=cc
52455 ac_cpp='$CXXCPP $CPPFLAGS'
52456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52460 cat >conftest.$ac_ext <<_ACEOF
52461 /* confdefs.h. */
52462 _ACEOF
52463 cat confdefs.h >>conftest.$ac_ext
52464 cat >>conftest.$ac_ext <<_ACEOF
52465 /* end confdefs.h. */
52466 #include <stdlib.h>
52468 main ()
52470 strtold(0, 0);
52472 return 0;
52474 _ACEOF
52475 rm -f conftest.$ac_objext
52476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52477 (eval $ac_compile) 2>conftest.er1
52478 ac_status=$?
52479 grep -v '^ *+' conftest.er1 >conftest.err
52480 rm -f conftest.er1
52481 cat conftest.err >&5
52482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52483 (exit $ac_status); } &&
52484 { ac_try='test -z "$ac_cxx_werror_flag"
52485 || test ! -s conftest.err'
52486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52487 (eval $ac_try) 2>&5
52488 ac_status=$?
52489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52490 (exit $ac_status); }; } &&
52491 { ac_try='test -s conftest.$ac_objext'
52492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52493 (eval $ac_try) 2>&5
52494 ac_status=$?
52495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52496 (exit $ac_status); }; }; then
52497 glibcxx_cv_func_strtold_use=yes
52498 else
52499 echo "$as_me: failed program was:" >&5
52500 sed 's/^/| /' conftest.$ac_ext >&5
52502 glibcxx_cv_func_strtold_use=no
52504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52505 ac_ext=c
52506 ac_cpp='$CPP $CPPFLAGS'
52507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52515 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52516 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52517 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52519 for ac_func in strtold
52521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52522 echo "$as_me:$LINENO: checking for $ac_func" >&5
52523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52524 if eval "test \"\${$as_ac_var+set}\" = set"; then
52525 echo $ECHO_N "(cached) $ECHO_C" >&6
52526 else
52527 if test x$gcc_no_link = xyes; then
52528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52530 { (exit 1); exit 1; }; }
52532 cat >conftest.$ac_ext <<_ACEOF
52533 /* confdefs.h. */
52534 _ACEOF
52535 cat confdefs.h >>conftest.$ac_ext
52536 cat >>conftest.$ac_ext <<_ACEOF
52537 /* end confdefs.h. */
52538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52540 #define $ac_func innocuous_$ac_func
52542 /* System header to define __stub macros and hopefully few prototypes,
52543 which can conflict with char $ac_func (); below.
52544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52545 <limits.h> exists even on freestanding compilers. */
52547 #ifdef __STDC__
52548 # include <limits.h>
52549 #else
52550 # include <assert.h>
52551 #endif
52553 #undef $ac_func
52555 /* Override any gcc2 internal prototype to avoid an error. */
52556 #ifdef __cplusplus
52557 extern "C"
52559 #endif
52560 /* We use char because int might match the return type of a gcc2
52561 builtin and then its argument prototype would still apply. */
52562 char $ac_func ();
52563 /* The GNU C library defines this for functions which it implements
52564 to always fail with ENOSYS. Some functions are actually named
52565 something starting with __ and the normal name is an alias. */
52566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52567 choke me
52568 #else
52569 char (*f) () = $ac_func;
52570 #endif
52571 #ifdef __cplusplus
52573 #endif
52576 main ()
52578 return f != $ac_func;
52580 return 0;
52582 _ACEOF
52583 rm -f conftest.$ac_objext conftest$ac_exeext
52584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52585 (eval $ac_link) 2>conftest.er1
52586 ac_status=$?
52587 grep -v '^ *+' conftest.er1 >conftest.err
52588 rm -f conftest.er1
52589 cat conftest.err >&5
52590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52591 (exit $ac_status); } &&
52592 { ac_try='test -z "$ac_c_werror_flag"
52593 || test ! -s conftest.err'
52594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52595 (eval $ac_try) 2>&5
52596 ac_status=$?
52597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52598 (exit $ac_status); }; } &&
52599 { ac_try='test -s conftest$ac_exeext'
52600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52601 (eval $ac_try) 2>&5
52602 ac_status=$?
52603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52604 (exit $ac_status); }; }; then
52605 eval "$as_ac_var=yes"
52606 else
52607 echo "$as_me: failed program was:" >&5
52608 sed 's/^/| /' conftest.$ac_ext >&5
52610 eval "$as_ac_var=no"
52612 rm -f conftest.err conftest.$ac_objext \
52613 conftest$ac_exeext conftest.$ac_ext
52615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52617 if test `eval echo '${'$as_ac_var'}'` = yes; then
52618 cat >>confdefs.h <<_ACEOF
52619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52620 _ACEOF
52623 done
52628 echo "$as_me:$LINENO: checking for strtof declaration" >&5
52629 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52630 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52631 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52632 echo $ECHO_N "(cached) $ECHO_C" >&6
52633 else
52637 ac_ext=cc
52638 ac_cpp='$CXXCPP $CPPFLAGS'
52639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52643 cat >conftest.$ac_ext <<_ACEOF
52644 /* confdefs.h. */
52645 _ACEOF
52646 cat confdefs.h >>conftest.$ac_ext
52647 cat >>conftest.$ac_ext <<_ACEOF
52648 /* end confdefs.h. */
52649 #include <stdlib.h>
52651 main ()
52653 strtof(0, 0);
52655 return 0;
52657 _ACEOF
52658 rm -f conftest.$ac_objext
52659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52660 (eval $ac_compile) 2>conftest.er1
52661 ac_status=$?
52662 grep -v '^ *+' conftest.er1 >conftest.err
52663 rm -f conftest.er1
52664 cat conftest.err >&5
52665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52666 (exit $ac_status); } &&
52667 { ac_try='test -z "$ac_cxx_werror_flag"
52668 || test ! -s conftest.err'
52669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52670 (eval $ac_try) 2>&5
52671 ac_status=$?
52672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52673 (exit $ac_status); }; } &&
52674 { ac_try='test -s conftest.$ac_objext'
52675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52676 (eval $ac_try) 2>&5
52677 ac_status=$?
52678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52679 (exit $ac_status); }; }; then
52680 glibcxx_cv_func_strtof_use=yes
52681 else
52682 echo "$as_me: failed program was:" >&5
52683 sed 's/^/| /' conftest.$ac_ext >&5
52685 glibcxx_cv_func_strtof_use=no
52687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52688 ac_ext=c
52689 ac_cpp='$CPP $CPPFLAGS'
52690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52698 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52699 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52700 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52702 for ac_func in strtof
52704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52705 echo "$as_me:$LINENO: checking for $ac_func" >&5
52706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52707 if eval "test \"\${$as_ac_var+set}\" = set"; then
52708 echo $ECHO_N "(cached) $ECHO_C" >&6
52709 else
52710 if test x$gcc_no_link = xyes; then
52711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52713 { (exit 1); exit 1; }; }
52715 cat >conftest.$ac_ext <<_ACEOF
52716 /* confdefs.h. */
52717 _ACEOF
52718 cat confdefs.h >>conftest.$ac_ext
52719 cat >>conftest.$ac_ext <<_ACEOF
52720 /* end confdefs.h. */
52721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52723 #define $ac_func innocuous_$ac_func
52725 /* System header to define __stub macros and hopefully few prototypes,
52726 which can conflict with char $ac_func (); below.
52727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52728 <limits.h> exists even on freestanding compilers. */
52730 #ifdef __STDC__
52731 # include <limits.h>
52732 #else
52733 # include <assert.h>
52734 #endif
52736 #undef $ac_func
52738 /* Override any gcc2 internal prototype to avoid an error. */
52739 #ifdef __cplusplus
52740 extern "C"
52742 #endif
52743 /* We use char because int might match the return type of a gcc2
52744 builtin and then its argument prototype would still apply. */
52745 char $ac_func ();
52746 /* The GNU C library defines this for functions which it implements
52747 to always fail with ENOSYS. Some functions are actually named
52748 something starting with __ and the normal name is an alias. */
52749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52750 choke me
52751 #else
52752 char (*f) () = $ac_func;
52753 #endif
52754 #ifdef __cplusplus
52756 #endif
52759 main ()
52761 return f != $ac_func;
52763 return 0;
52765 _ACEOF
52766 rm -f conftest.$ac_objext conftest$ac_exeext
52767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52768 (eval $ac_link) 2>conftest.er1
52769 ac_status=$?
52770 grep -v '^ *+' conftest.er1 >conftest.err
52771 rm -f conftest.er1
52772 cat conftest.err >&5
52773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52774 (exit $ac_status); } &&
52775 { ac_try='test -z "$ac_c_werror_flag"
52776 || test ! -s conftest.err'
52777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52778 (eval $ac_try) 2>&5
52779 ac_status=$?
52780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52781 (exit $ac_status); }; } &&
52782 { ac_try='test -s conftest$ac_exeext'
52783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52784 (eval $ac_try) 2>&5
52785 ac_status=$?
52786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52787 (exit $ac_status); }; }; then
52788 eval "$as_ac_var=yes"
52789 else
52790 echo "$as_me: failed program was:" >&5
52791 sed 's/^/| /' conftest.$ac_ext >&5
52793 eval "$as_ac_var=no"
52795 rm -f conftest.err conftest.$ac_objext \
52796 conftest$ac_exeext conftest.$ac_ext
52798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52800 if test `eval echo '${'$as_ac_var'}'` = yes; then
52801 cat >>confdefs.h <<_ACEOF
52802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52803 _ACEOF
52806 done
52811 CXXFLAGS="$ac_save_CXXFLAGS"
52814 # For showmanyc_helper().
52817 for ac_header in sys/ioctl.h sys/filio.h
52819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52821 echo "$as_me:$LINENO: checking for $ac_header" >&5
52822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52824 echo $ECHO_N "(cached) $ECHO_C" >&6
52826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52828 else
52829 # Is the header compilable?
52830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52832 cat >conftest.$ac_ext <<_ACEOF
52833 /* confdefs.h. */
52834 _ACEOF
52835 cat confdefs.h >>conftest.$ac_ext
52836 cat >>conftest.$ac_ext <<_ACEOF
52837 /* end confdefs.h. */
52838 $ac_includes_default
52839 #include <$ac_header>
52840 _ACEOF
52841 rm -f conftest.$ac_objext
52842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52843 (eval $ac_compile) 2>conftest.er1
52844 ac_status=$?
52845 grep -v '^ *+' conftest.er1 >conftest.err
52846 rm -f conftest.er1
52847 cat conftest.err >&5
52848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52849 (exit $ac_status); } &&
52850 { ac_try='test -z "$ac_c_werror_flag"
52851 || test ! -s conftest.err'
52852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52853 (eval $ac_try) 2>&5
52854 ac_status=$?
52855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52856 (exit $ac_status); }; } &&
52857 { ac_try='test -s conftest.$ac_objext'
52858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52859 (eval $ac_try) 2>&5
52860 ac_status=$?
52861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52862 (exit $ac_status); }; }; then
52863 ac_header_compiler=yes
52864 else
52865 echo "$as_me: failed program was:" >&5
52866 sed 's/^/| /' conftest.$ac_ext >&5
52868 ac_header_compiler=no
52870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52872 echo "${ECHO_T}$ac_header_compiler" >&6
52874 # Is the header present?
52875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52877 cat >conftest.$ac_ext <<_ACEOF
52878 /* confdefs.h. */
52879 _ACEOF
52880 cat confdefs.h >>conftest.$ac_ext
52881 cat >>conftest.$ac_ext <<_ACEOF
52882 /* end confdefs.h. */
52883 #include <$ac_header>
52884 _ACEOF
52885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52887 ac_status=$?
52888 grep -v '^ *+' conftest.er1 >conftest.err
52889 rm -f conftest.er1
52890 cat conftest.err >&5
52891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52892 (exit $ac_status); } >/dev/null; then
52893 if test -s conftest.err; then
52894 ac_cpp_err=$ac_c_preproc_warn_flag
52895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52896 else
52897 ac_cpp_err=
52899 else
52900 ac_cpp_err=yes
52902 if test -z "$ac_cpp_err"; then
52903 ac_header_preproc=yes
52904 else
52905 echo "$as_me: failed program was:" >&5
52906 sed 's/^/| /' conftest.$ac_ext >&5
52908 ac_header_preproc=no
52910 rm -f conftest.err conftest.$ac_ext
52911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52912 echo "${ECHO_T}$ac_header_preproc" >&6
52914 # So? What about this header?
52915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52916 yes:no: )
52917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52921 ac_header_preproc=yes
52923 no:yes:* )
52924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52937 cat <<\_ASBOX
52938 ## ----------------------------------------- ##
52939 ## Report this to the package-unused lists. ##
52940 ## ----------------------------------------- ##
52941 _ASBOX
52943 sed "s/^/$as_me: WARNING: /" >&2
52945 esac
52946 echo "$as_me:$LINENO: checking for $ac_header" >&5
52947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52949 echo $ECHO_N "(cached) $ECHO_C" >&6
52950 else
52951 eval "$as_ac_Header=\$ac_header_preproc"
52953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52958 cat >>confdefs.h <<_ACEOF
52959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52960 _ACEOF
52964 done
52967 if test "${glibcxx_cv_POLL+set}" = set; then
52968 echo $ECHO_N "(cached) $ECHO_C" >&6
52969 else
52971 if test x$gcc_no_link = xyes; then
52972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52974 { (exit 1); exit 1; }; }
52976 cat >conftest.$ac_ext <<_ACEOF
52977 /* confdefs.h. */
52978 _ACEOF
52979 cat confdefs.h >>conftest.$ac_ext
52980 cat >>conftest.$ac_ext <<_ACEOF
52981 /* end confdefs.h. */
52982 #include <poll.h>
52984 main ()
52986 struct pollfd pfd[1];
52987 pfd[0].events = POLLIN;
52988 poll(pfd, 1, 0);
52990 return 0;
52992 _ACEOF
52993 rm -f conftest.$ac_objext conftest$ac_exeext
52994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52995 (eval $ac_link) 2>conftest.er1
52996 ac_status=$?
52997 grep -v '^ *+' conftest.er1 >conftest.err
52998 rm -f conftest.er1
52999 cat conftest.err >&5
53000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53001 (exit $ac_status); } &&
53002 { ac_try='test -z "$ac_c_werror_flag"
53003 || test ! -s conftest.err'
53004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53005 (eval $ac_try) 2>&5
53006 ac_status=$?
53007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53008 (exit $ac_status); }; } &&
53009 { ac_try='test -s conftest$ac_exeext'
53010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53011 (eval $ac_try) 2>&5
53012 ac_status=$?
53013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53014 (exit $ac_status); }; }; then
53015 glibcxx_cv_POLL=yes
53016 else
53017 echo "$as_me: failed program was:" >&5
53018 sed 's/^/| /' conftest.$ac_ext >&5
53020 glibcxx_cv_POLL=no
53022 rm -f conftest.err conftest.$ac_objext \
53023 conftest$ac_exeext conftest.$ac_ext
53027 if test $glibcxx_cv_POLL = yes; then
53028 cat >>confdefs.h <<\_ACEOF
53029 #define HAVE_POLL 1
53030 _ACEOF
53035 if test "${glibcxx_cv_S_ISREG+set}" = set; then
53036 echo $ECHO_N "(cached) $ECHO_C" >&6
53037 else
53039 if test x$gcc_no_link = xyes; then
53040 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53042 { (exit 1); exit 1; }; }
53044 cat >conftest.$ac_ext <<_ACEOF
53045 /* confdefs.h. */
53046 _ACEOF
53047 cat confdefs.h >>conftest.$ac_ext
53048 cat >>conftest.$ac_ext <<_ACEOF
53049 /* end confdefs.h. */
53050 #include <sys/stat.h>
53052 main ()
53054 struct stat buffer;
53055 fstat(0, &buffer);
53056 S_ISREG(buffer.st_mode);
53058 return 0;
53060 _ACEOF
53061 rm -f conftest.$ac_objext conftest$ac_exeext
53062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53063 (eval $ac_link) 2>conftest.er1
53064 ac_status=$?
53065 grep -v '^ *+' conftest.er1 >conftest.err
53066 rm -f conftest.er1
53067 cat conftest.err >&5
53068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53069 (exit $ac_status); } &&
53070 { ac_try='test -z "$ac_c_werror_flag"
53071 || test ! -s conftest.err'
53072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53073 (eval $ac_try) 2>&5
53074 ac_status=$?
53075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53076 (exit $ac_status); }; } &&
53077 { ac_try='test -s conftest$ac_exeext'
53078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53079 (eval $ac_try) 2>&5
53080 ac_status=$?
53081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53082 (exit $ac_status); }; }; then
53083 glibcxx_cv_S_ISREG=yes
53084 else
53085 echo "$as_me: failed program was:" >&5
53086 sed 's/^/| /' conftest.$ac_ext >&5
53088 glibcxx_cv_S_ISREG=no
53090 rm -f conftest.err conftest.$ac_objext \
53091 conftest$ac_exeext conftest.$ac_ext
53095 if test "${glibcxx_cv_S_IFREG+set}" = set; then
53096 echo $ECHO_N "(cached) $ECHO_C" >&6
53097 else
53099 if test x$gcc_no_link = xyes; then
53100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53102 { (exit 1); exit 1; }; }
53104 cat >conftest.$ac_ext <<_ACEOF
53105 /* confdefs.h. */
53106 _ACEOF
53107 cat confdefs.h >>conftest.$ac_ext
53108 cat >>conftest.$ac_ext <<_ACEOF
53109 /* end confdefs.h. */
53110 #include <sys/stat.h>
53112 main ()
53114 struct stat buffer;
53115 fstat(0, &buffer);
53116 S_IFREG & buffer.st_mode;
53118 return 0;
53120 _ACEOF
53121 rm -f conftest.$ac_objext conftest$ac_exeext
53122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53123 (eval $ac_link) 2>conftest.er1
53124 ac_status=$?
53125 grep -v '^ *+' conftest.er1 >conftest.err
53126 rm -f conftest.er1
53127 cat conftest.err >&5
53128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53129 (exit $ac_status); } &&
53130 { ac_try='test -z "$ac_c_werror_flag"
53131 || test ! -s conftest.err'
53132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53133 (eval $ac_try) 2>&5
53134 ac_status=$?
53135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136 (exit $ac_status); }; } &&
53137 { ac_try='test -s conftest$ac_exeext'
53138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53139 (eval $ac_try) 2>&5
53140 ac_status=$?
53141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53142 (exit $ac_status); }; }; then
53143 glibcxx_cv_S_IFREG=yes
53144 else
53145 echo "$as_me: failed program was:" >&5
53146 sed 's/^/| /' conftest.$ac_ext >&5
53148 glibcxx_cv_S_IFREG=no
53150 rm -f conftest.err conftest.$ac_objext \
53151 conftest$ac_exeext conftest.$ac_ext
53155 if test $glibcxx_cv_S_ISREG = yes; then
53156 cat >>confdefs.h <<\_ACEOF
53157 #define HAVE_S_ISREG 1
53158 _ACEOF
53160 elif test $glibcxx_cv_S_IFREG = yes; then
53161 cat >>confdefs.h <<\_ACEOF
53162 #define HAVE_S_IFREG 1
53163 _ACEOF
53168 # For xsputn_2().
53170 for ac_header in sys/uio.h
53172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53174 echo "$as_me:$LINENO: checking for $ac_header" >&5
53175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53177 echo $ECHO_N "(cached) $ECHO_C" >&6
53179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53181 else
53182 # Is the header compilable?
53183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53185 cat >conftest.$ac_ext <<_ACEOF
53186 /* confdefs.h. */
53187 _ACEOF
53188 cat confdefs.h >>conftest.$ac_ext
53189 cat >>conftest.$ac_ext <<_ACEOF
53190 /* end confdefs.h. */
53191 $ac_includes_default
53192 #include <$ac_header>
53193 _ACEOF
53194 rm -f conftest.$ac_objext
53195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53196 (eval $ac_compile) 2>conftest.er1
53197 ac_status=$?
53198 grep -v '^ *+' conftest.er1 >conftest.err
53199 rm -f conftest.er1
53200 cat conftest.err >&5
53201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53202 (exit $ac_status); } &&
53203 { ac_try='test -z "$ac_c_werror_flag"
53204 || test ! -s conftest.err'
53205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53206 (eval $ac_try) 2>&5
53207 ac_status=$?
53208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53209 (exit $ac_status); }; } &&
53210 { ac_try='test -s conftest.$ac_objext'
53211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53212 (eval $ac_try) 2>&5
53213 ac_status=$?
53214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53215 (exit $ac_status); }; }; then
53216 ac_header_compiler=yes
53217 else
53218 echo "$as_me: failed program was:" >&5
53219 sed 's/^/| /' conftest.$ac_ext >&5
53221 ac_header_compiler=no
53223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53225 echo "${ECHO_T}$ac_header_compiler" >&6
53227 # Is the header present?
53228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53230 cat >conftest.$ac_ext <<_ACEOF
53231 /* confdefs.h. */
53232 _ACEOF
53233 cat confdefs.h >>conftest.$ac_ext
53234 cat >>conftest.$ac_ext <<_ACEOF
53235 /* end confdefs.h. */
53236 #include <$ac_header>
53237 _ACEOF
53238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53240 ac_status=$?
53241 grep -v '^ *+' conftest.er1 >conftest.err
53242 rm -f conftest.er1
53243 cat conftest.err >&5
53244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53245 (exit $ac_status); } >/dev/null; then
53246 if test -s conftest.err; then
53247 ac_cpp_err=$ac_c_preproc_warn_flag
53248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53249 else
53250 ac_cpp_err=
53252 else
53253 ac_cpp_err=yes
53255 if test -z "$ac_cpp_err"; then
53256 ac_header_preproc=yes
53257 else
53258 echo "$as_me: failed program was:" >&5
53259 sed 's/^/| /' conftest.$ac_ext >&5
53261 ac_header_preproc=no
53263 rm -f conftest.err conftest.$ac_ext
53264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53265 echo "${ECHO_T}$ac_header_preproc" >&6
53267 # So? What about this header?
53268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53269 yes:no: )
53270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53274 ac_header_preproc=yes
53276 no:yes:* )
53277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53290 cat <<\_ASBOX
53291 ## ----------------------------------------- ##
53292 ## Report this to the package-unused lists. ##
53293 ## ----------------------------------------- ##
53294 _ASBOX
53296 sed "s/^/$as_me: WARNING: /" >&2
53298 esac
53299 echo "$as_me:$LINENO: checking for $ac_header" >&5
53300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53302 echo $ECHO_N "(cached) $ECHO_C" >&6
53303 else
53304 eval "$as_ac_Header=\$ac_header_preproc"
53306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53311 cat >>confdefs.h <<_ACEOF
53312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53313 _ACEOF
53317 done
53320 if test "${glibcxx_cv_WRITEV+set}" = set; then
53321 echo $ECHO_N "(cached) $ECHO_C" >&6
53322 else
53324 if test x$gcc_no_link = xyes; then
53325 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53327 { (exit 1); exit 1; }; }
53329 cat >conftest.$ac_ext <<_ACEOF
53330 /* confdefs.h. */
53331 _ACEOF
53332 cat confdefs.h >>conftest.$ac_ext
53333 cat >>conftest.$ac_ext <<_ACEOF
53334 /* end confdefs.h. */
53335 #include <sys/uio.h>
53337 main ()
53339 struct iovec iov[2];
53340 writev(0, iov, 0);
53342 return 0;
53344 _ACEOF
53345 rm -f conftest.$ac_objext conftest$ac_exeext
53346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53347 (eval $ac_link) 2>conftest.er1
53348 ac_status=$?
53349 grep -v '^ *+' conftest.er1 >conftest.err
53350 rm -f conftest.er1
53351 cat conftest.err >&5
53352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53353 (exit $ac_status); } &&
53354 { ac_try='test -z "$ac_c_werror_flag"
53355 || test ! -s conftest.err'
53356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53357 (eval $ac_try) 2>&5
53358 ac_status=$?
53359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53360 (exit $ac_status); }; } &&
53361 { ac_try='test -s conftest$ac_exeext'
53362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53363 (eval $ac_try) 2>&5
53364 ac_status=$?
53365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53366 (exit $ac_status); }; }; then
53367 glibcxx_cv_WRITEV=yes
53368 else
53369 echo "$as_me: failed program was:" >&5
53370 sed 's/^/| /' conftest.$ac_ext >&5
53372 glibcxx_cv_WRITEV=no
53374 rm -f conftest.err conftest.$ac_objext \
53375 conftest$ac_exeext conftest.$ac_ext
53379 if test $glibcxx_cv_WRITEV = yes; then
53380 cat >>confdefs.h <<\_ACEOF
53381 #define HAVE_WRITEV 1
53382 _ACEOF
53387 cat >>confdefs.h <<\_ACEOF
53388 #define HAVE_LC_MESSAGES 1
53389 _ACEOF
53392 cat >conftest.$ac_ext <<_ACEOF
53393 /* confdefs.h. */
53394 _ACEOF
53395 cat confdefs.h >>conftest.$ac_ext
53396 cat >>conftest.$ac_ext <<_ACEOF
53397 /* end confdefs.h. */
53398 #include <setjmp.h>
53400 main ()
53402 sigjmp_buf env;
53403 while (! sigsetjmp (env, 1))
53404 siglongjmp (env, 1);
53407 return 0;
53409 _ACEOF
53410 rm -f conftest.$ac_objext
53411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53412 (eval $ac_compile) 2>conftest.er1
53413 ac_status=$?
53414 grep -v '^ *+' conftest.er1 >conftest.err
53415 rm -f conftest.er1
53416 cat conftest.err >&5
53417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53418 (exit $ac_status); } &&
53419 { ac_try='test -z "$ac_c_werror_flag"
53420 || test ! -s conftest.err'
53421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53422 (eval $ac_try) 2>&5
53423 ac_status=$?
53424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53425 (exit $ac_status); }; } &&
53426 { ac_try='test -s conftest.$ac_objext'
53427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53428 (eval $ac_try) 2>&5
53429 ac_status=$?
53430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53431 (exit $ac_status); }; }; then
53433 cat >>confdefs.h <<\_ACEOF
53434 #define HAVE_SIGSETJMP 1
53435 _ACEOF
53437 else
53438 echo "$as_me: failed program was:" >&5
53439 sed 's/^/| /' conftest.$ac_ext >&5
53442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53444 cat >>confdefs.h <<\_ACEOF
53445 #define HAVE_MMAP 1
53446 _ACEOF
53450 *-freebsd*)
53467 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53468 machine/endian.h machine/param.h sys/machine.h sys/types.h \
53469 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53470 sys/time.h unistd.h
53472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53474 echo "$as_me:$LINENO: checking for $ac_header" >&5
53475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53477 echo $ECHO_N "(cached) $ECHO_C" >&6
53479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53481 else
53482 # Is the header compilable?
53483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53485 cat >conftest.$ac_ext <<_ACEOF
53486 /* confdefs.h. */
53487 _ACEOF
53488 cat confdefs.h >>conftest.$ac_ext
53489 cat >>conftest.$ac_ext <<_ACEOF
53490 /* end confdefs.h. */
53491 $ac_includes_default
53492 #include <$ac_header>
53493 _ACEOF
53494 rm -f conftest.$ac_objext
53495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53496 (eval $ac_compile) 2>conftest.er1
53497 ac_status=$?
53498 grep -v '^ *+' conftest.er1 >conftest.err
53499 rm -f conftest.er1
53500 cat conftest.err >&5
53501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53502 (exit $ac_status); } &&
53503 { ac_try='test -z "$ac_c_werror_flag"
53504 || test ! -s conftest.err'
53505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53506 (eval $ac_try) 2>&5
53507 ac_status=$?
53508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53509 (exit $ac_status); }; } &&
53510 { ac_try='test -s conftest.$ac_objext'
53511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53512 (eval $ac_try) 2>&5
53513 ac_status=$?
53514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53515 (exit $ac_status); }; }; then
53516 ac_header_compiler=yes
53517 else
53518 echo "$as_me: failed program was:" >&5
53519 sed 's/^/| /' conftest.$ac_ext >&5
53521 ac_header_compiler=no
53523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53525 echo "${ECHO_T}$ac_header_compiler" >&6
53527 # Is the header present?
53528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53530 cat >conftest.$ac_ext <<_ACEOF
53531 /* confdefs.h. */
53532 _ACEOF
53533 cat confdefs.h >>conftest.$ac_ext
53534 cat >>conftest.$ac_ext <<_ACEOF
53535 /* end confdefs.h. */
53536 #include <$ac_header>
53537 _ACEOF
53538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53540 ac_status=$?
53541 grep -v '^ *+' conftest.er1 >conftest.err
53542 rm -f conftest.er1
53543 cat conftest.err >&5
53544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53545 (exit $ac_status); } >/dev/null; then
53546 if test -s conftest.err; then
53547 ac_cpp_err=$ac_c_preproc_warn_flag
53548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53549 else
53550 ac_cpp_err=
53552 else
53553 ac_cpp_err=yes
53555 if test -z "$ac_cpp_err"; then
53556 ac_header_preproc=yes
53557 else
53558 echo "$as_me: failed program was:" >&5
53559 sed 's/^/| /' conftest.$ac_ext >&5
53561 ac_header_preproc=no
53563 rm -f conftest.err conftest.$ac_ext
53564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53565 echo "${ECHO_T}$ac_header_preproc" >&6
53567 # So? What about this header?
53568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53569 yes:no: )
53570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53574 ac_header_preproc=yes
53576 no:yes:* )
53577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53590 cat <<\_ASBOX
53591 ## ----------------------------------------- ##
53592 ## Report this to the package-unused lists. ##
53593 ## ----------------------------------------- ##
53594 _ASBOX
53596 sed "s/^/$as_me: WARNING: /" >&2
53598 esac
53599 echo "$as_me:$LINENO: checking for $ac_header" >&5
53600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53602 echo $ECHO_N "(cached) $ECHO_C" >&6
53603 else
53604 eval "$as_ac_Header=\$ac_header_preproc"
53606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53611 cat >>confdefs.h <<_ACEOF
53612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53613 _ACEOF
53617 done
53619 SECTION_FLAGS='-ffunction-sections -fdata-sections'
53622 # If we're not using GNU ld, then there's no point in even trying these
53623 # tests. Check for that first. We should have already tested for gld
53624 # by now (in libtool), but require it now just to be safe...
53625 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53626 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53630 # The name set by libtool depends on the version of libtool. Shame on us
53631 # for depending on an impl detail, but c'est la vie. Older versions used
53632 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53633 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53634 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53635 # set (hence we're using an older libtool), then set it.
53636 if test x${with_gnu_ld+set} != xset; then
53637 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53638 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53639 with_gnu_ld=no
53640 else
53641 with_gnu_ld=$ac_cv_prog_gnu_ld
53645 # Start by getting the version number. I think the libtool test already
53646 # does some of this, but throws away the result.
53648 ldver=`$LD --version 2>/dev/null | head -1 | \
53649 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53651 glibcxx_gnu_ld_version=`echo $ldver | \
53652 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53654 # Set --gc-sections.
53655 if test "$with_gnu_ld" = "notbroken"; then
53656 # GNU ld it is! Joy and bunny rabbits!
53658 # All these tests are for C++; save the language and the compiler flags.
53659 # Need to do this so that g++ won't try to link in libstdc++
53660 ac_test_CFLAGS="${CFLAGS+set}"
53661 ac_save_CFLAGS="$CFLAGS"
53662 CFLAGS='-x c++ -Wl,--gc-sections'
53664 # Check for -Wl,--gc-sections
53665 # XXX This test is broken at the moment, as symbols required for linking
53666 # are now in libsupc++ (not built yet). In addition, this test has
53667 # cored on solaris in the past. In addition, --gc-sections doesn't
53668 # really work at the moment (keeps on discarding used sections, first
53669 # .eh_frame and now some of the glibc sections for iconv).
53670 # Bzzzzt. Thanks for playing, maybe next time.
53671 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53672 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53673 if test "$cross_compiling" = yes; then
53674 ac_sectionLDflags=yes
53675 else
53676 cat >conftest.$ac_ext <<_ACEOF
53677 /* confdefs.h. */
53678 _ACEOF
53679 cat confdefs.h >>conftest.$ac_ext
53680 cat >>conftest.$ac_ext <<_ACEOF
53681 /* end confdefs.h. */
53683 int main(void)
53685 try { throw 1; }
53686 catch (...) { };
53687 return 0;
53690 _ACEOF
53691 rm -f conftest$ac_exeext
53692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53693 (eval $ac_link) 2>&5
53694 ac_status=$?
53695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53698 (eval $ac_try) 2>&5
53699 ac_status=$?
53700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53701 (exit $ac_status); }; }; then
53702 ac_sectionLDflags=yes
53703 else
53704 echo "$as_me: program exited with status $ac_status" >&5
53705 echo "$as_me: failed program was:" >&5
53706 sed 's/^/| /' conftest.$ac_ext >&5
53708 ( exit $ac_status )
53709 ac_sectionLDflags=no
53711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53713 if test "$ac_test_CFLAGS" = set; then
53714 CFLAGS="$ac_save_CFLAGS"
53715 else
53716 # this is the suspicious part
53717 CFLAGS=''
53719 if test "$ac_sectionLDflags" = "yes"; then
53720 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53722 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53723 echo "${ECHO_T}$ac_sectionLDflags" >&6
53726 # Set linker optimization flags.
53727 if test x"$with_gnu_ld" = x"yes"; then
53728 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53736 echo "$as_me:$LINENO: checking for main in -lm" >&5
53737 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53738 if test "${ac_cv_lib_m_main+set}" = set; then
53739 echo $ECHO_N "(cached) $ECHO_C" >&6
53740 else
53741 ac_check_lib_save_LIBS=$LIBS
53742 LIBS="-lm $LIBS"
53743 if test x$gcc_no_link = xyes; then
53744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53746 { (exit 1); exit 1; }; }
53748 cat >conftest.$ac_ext <<_ACEOF
53749 /* confdefs.h. */
53750 _ACEOF
53751 cat confdefs.h >>conftest.$ac_ext
53752 cat >>conftest.$ac_ext <<_ACEOF
53753 /* end confdefs.h. */
53757 main ()
53759 main ();
53761 return 0;
53763 _ACEOF
53764 rm -f conftest.$ac_objext conftest$ac_exeext
53765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53766 (eval $ac_link) 2>conftest.er1
53767 ac_status=$?
53768 grep -v '^ *+' conftest.er1 >conftest.err
53769 rm -f conftest.er1
53770 cat conftest.err >&5
53771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53772 (exit $ac_status); } &&
53773 { ac_try='test -z "$ac_c_werror_flag"
53774 || test ! -s conftest.err'
53775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53776 (eval $ac_try) 2>&5
53777 ac_status=$?
53778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53779 (exit $ac_status); }; } &&
53780 { ac_try='test -s conftest$ac_exeext'
53781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53782 (eval $ac_try) 2>&5
53783 ac_status=$?
53784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53785 (exit $ac_status); }; }; then
53786 ac_cv_lib_m_main=yes
53787 else
53788 echo "$as_me: failed program was:" >&5
53789 sed 's/^/| /' conftest.$ac_ext >&5
53791 ac_cv_lib_m_main=no
53793 rm -f conftest.err conftest.$ac_objext \
53794 conftest$ac_exeext conftest.$ac_ext
53795 LIBS=$ac_check_lib_save_LIBS
53797 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53798 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53799 if test $ac_cv_lib_m_main = yes; then
53800 cat >>confdefs.h <<_ACEOF
53801 #define HAVE_LIBM 1
53802 _ACEOF
53804 LIBS="-lm $LIBS"
53809 for ac_func in copysignf
53811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53812 echo "$as_me:$LINENO: checking for $ac_func" >&5
53813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53814 if eval "test \"\${$as_ac_var+set}\" = set"; then
53815 echo $ECHO_N "(cached) $ECHO_C" >&6
53816 else
53817 if test x$gcc_no_link = xyes; then
53818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53820 { (exit 1); exit 1; }; }
53822 cat >conftest.$ac_ext <<_ACEOF
53823 /* confdefs.h. */
53824 _ACEOF
53825 cat confdefs.h >>conftest.$ac_ext
53826 cat >>conftest.$ac_ext <<_ACEOF
53827 /* end confdefs.h. */
53828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53830 #define $ac_func innocuous_$ac_func
53832 /* System header to define __stub macros and hopefully few prototypes,
53833 which can conflict with char $ac_func (); below.
53834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53835 <limits.h> exists even on freestanding compilers. */
53837 #ifdef __STDC__
53838 # include <limits.h>
53839 #else
53840 # include <assert.h>
53841 #endif
53843 #undef $ac_func
53845 /* Override any gcc2 internal prototype to avoid an error. */
53846 #ifdef __cplusplus
53847 extern "C"
53849 #endif
53850 /* We use char because int might match the return type of a gcc2
53851 builtin and then its argument prototype would still apply. */
53852 char $ac_func ();
53853 /* The GNU C library defines this for functions which it implements
53854 to always fail with ENOSYS. Some functions are actually named
53855 something starting with __ and the normal name is an alias. */
53856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53857 choke me
53858 #else
53859 char (*f) () = $ac_func;
53860 #endif
53861 #ifdef __cplusplus
53863 #endif
53866 main ()
53868 return f != $ac_func;
53870 return 0;
53872 _ACEOF
53873 rm -f conftest.$ac_objext conftest$ac_exeext
53874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53875 (eval $ac_link) 2>conftest.er1
53876 ac_status=$?
53877 grep -v '^ *+' conftest.er1 >conftest.err
53878 rm -f conftest.er1
53879 cat conftest.err >&5
53880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53881 (exit $ac_status); } &&
53882 { ac_try='test -z "$ac_c_werror_flag"
53883 || test ! -s conftest.err'
53884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53885 (eval $ac_try) 2>&5
53886 ac_status=$?
53887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53888 (exit $ac_status); }; } &&
53889 { ac_try='test -s conftest$ac_exeext'
53890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53891 (eval $ac_try) 2>&5
53892 ac_status=$?
53893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53894 (exit $ac_status); }; }; then
53895 eval "$as_ac_var=yes"
53896 else
53897 echo "$as_me: failed program was:" >&5
53898 sed 's/^/| /' conftest.$ac_ext >&5
53900 eval "$as_ac_var=no"
53902 rm -f conftest.err conftest.$ac_objext \
53903 conftest$ac_exeext conftest.$ac_ext
53905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53907 if test `eval echo '${'$as_ac_var'}'` = yes; then
53908 cat >>confdefs.h <<_ACEOF
53909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53910 _ACEOF
53912 else
53913 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53915 done
53919 for ac_func in __signbit
53921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53922 echo "$as_me:$LINENO: checking for $ac_func" >&5
53923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53924 if eval "test \"\${$as_ac_var+set}\" = set"; then
53925 echo $ECHO_N "(cached) $ECHO_C" >&6
53926 else
53927 if test x$gcc_no_link = xyes; then
53928 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53929 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53930 { (exit 1); exit 1; }; }
53932 cat >conftest.$ac_ext <<_ACEOF
53933 /* confdefs.h. */
53934 _ACEOF
53935 cat confdefs.h >>conftest.$ac_ext
53936 cat >>conftest.$ac_ext <<_ACEOF
53937 /* end confdefs.h. */
53938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53940 #define $ac_func innocuous_$ac_func
53942 /* System header to define __stub macros and hopefully few prototypes,
53943 which can conflict with char $ac_func (); below.
53944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53945 <limits.h> exists even on freestanding compilers. */
53947 #ifdef __STDC__
53948 # include <limits.h>
53949 #else
53950 # include <assert.h>
53951 #endif
53953 #undef $ac_func
53955 /* Override any gcc2 internal prototype to avoid an error. */
53956 #ifdef __cplusplus
53957 extern "C"
53959 #endif
53960 /* We use char because int might match the return type of a gcc2
53961 builtin and then its argument prototype would still apply. */
53962 char $ac_func ();
53963 /* The GNU C library defines this for functions which it implements
53964 to always fail with ENOSYS. Some functions are actually named
53965 something starting with __ and the normal name is an alias. */
53966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53967 choke me
53968 #else
53969 char (*f) () = $ac_func;
53970 #endif
53971 #ifdef __cplusplus
53973 #endif
53976 main ()
53978 return f != $ac_func;
53980 return 0;
53982 _ACEOF
53983 rm -f conftest.$ac_objext conftest$ac_exeext
53984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53985 (eval $ac_link) 2>conftest.er1
53986 ac_status=$?
53987 grep -v '^ *+' conftest.er1 >conftest.err
53988 rm -f conftest.er1
53989 cat conftest.err >&5
53990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53991 (exit $ac_status); } &&
53992 { ac_try='test -z "$ac_c_werror_flag"
53993 || test ! -s conftest.err'
53994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53995 (eval $ac_try) 2>&5
53996 ac_status=$?
53997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53998 (exit $ac_status); }; } &&
53999 { ac_try='test -s conftest$ac_exeext'
54000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54001 (eval $ac_try) 2>&5
54002 ac_status=$?
54003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004 (exit $ac_status); }; }; then
54005 eval "$as_ac_var=yes"
54006 else
54007 echo "$as_me: failed program was:" >&5
54008 sed 's/^/| /' conftest.$ac_ext >&5
54010 eval "$as_ac_var=no"
54012 rm -f conftest.err conftest.$ac_objext \
54013 conftest$ac_exeext conftest.$ac_ext
54015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54017 if test `eval echo '${'$as_ac_var'}'` = yes; then
54018 cat >>confdefs.h <<_ACEOF
54019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54020 _ACEOF
54022 else
54023 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54025 done
54028 for ac_func in __signbitf
54030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54031 echo "$as_me:$LINENO: checking for $ac_func" >&5
54032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54033 if eval "test \"\${$as_ac_var+set}\" = set"; then
54034 echo $ECHO_N "(cached) $ECHO_C" >&6
54035 else
54036 if test x$gcc_no_link = xyes; then
54037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54039 { (exit 1); exit 1; }; }
54041 cat >conftest.$ac_ext <<_ACEOF
54042 /* confdefs.h. */
54043 _ACEOF
54044 cat confdefs.h >>conftest.$ac_ext
54045 cat >>conftest.$ac_ext <<_ACEOF
54046 /* end confdefs.h. */
54047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54049 #define $ac_func innocuous_$ac_func
54051 /* System header to define __stub macros and hopefully few prototypes,
54052 which can conflict with char $ac_func (); below.
54053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54054 <limits.h> exists even on freestanding compilers. */
54056 #ifdef __STDC__
54057 # include <limits.h>
54058 #else
54059 # include <assert.h>
54060 #endif
54062 #undef $ac_func
54064 /* Override any gcc2 internal prototype to avoid an error. */
54065 #ifdef __cplusplus
54066 extern "C"
54068 #endif
54069 /* We use char because int might match the return type of a gcc2
54070 builtin and then its argument prototype would still apply. */
54071 char $ac_func ();
54072 /* The GNU C library defines this for functions which it implements
54073 to always fail with ENOSYS. Some functions are actually named
54074 something starting with __ and the normal name is an alias. */
54075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54076 choke me
54077 #else
54078 char (*f) () = $ac_func;
54079 #endif
54080 #ifdef __cplusplus
54082 #endif
54085 main ()
54087 return f != $ac_func;
54089 return 0;
54091 _ACEOF
54092 rm -f conftest.$ac_objext conftest$ac_exeext
54093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54094 (eval $ac_link) 2>conftest.er1
54095 ac_status=$?
54096 grep -v '^ *+' conftest.er1 >conftest.err
54097 rm -f conftest.er1
54098 cat conftest.err >&5
54099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54100 (exit $ac_status); } &&
54101 { ac_try='test -z "$ac_c_werror_flag"
54102 || test ! -s conftest.err'
54103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54104 (eval $ac_try) 2>&5
54105 ac_status=$?
54106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54107 (exit $ac_status); }; } &&
54108 { ac_try='test -s conftest$ac_exeext'
54109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54110 (eval $ac_try) 2>&5
54111 ac_status=$?
54112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54113 (exit $ac_status); }; }; then
54114 eval "$as_ac_var=yes"
54115 else
54116 echo "$as_me: failed program was:" >&5
54117 sed 's/^/| /' conftest.$ac_ext >&5
54119 eval "$as_ac_var=no"
54121 rm -f conftest.err conftest.$ac_objext \
54122 conftest$ac_exeext conftest.$ac_ext
54124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54126 if test `eval echo '${'$as_ac_var'}'` = yes; then
54127 cat >>confdefs.h <<_ACEOF
54128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54129 _ACEOF
54131 else
54132 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54134 done
54137 if test x$ac_cv_func_copysignl = x"yes"; then
54139 for ac_func in __signbitl
54141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54142 echo "$as_me:$LINENO: checking for $ac_func" >&5
54143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54144 if eval "test \"\${$as_ac_var+set}\" = set"; then
54145 echo $ECHO_N "(cached) $ECHO_C" >&6
54146 else
54147 if test x$gcc_no_link = xyes; then
54148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54150 { (exit 1); exit 1; }; }
54152 cat >conftest.$ac_ext <<_ACEOF
54153 /* confdefs.h. */
54154 _ACEOF
54155 cat confdefs.h >>conftest.$ac_ext
54156 cat >>conftest.$ac_ext <<_ACEOF
54157 /* end confdefs.h. */
54158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54160 #define $ac_func innocuous_$ac_func
54162 /* System header to define __stub macros and hopefully few prototypes,
54163 which can conflict with char $ac_func (); below.
54164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54165 <limits.h> exists even on freestanding compilers. */
54167 #ifdef __STDC__
54168 # include <limits.h>
54169 #else
54170 # include <assert.h>
54171 #endif
54173 #undef $ac_func
54175 /* Override any gcc2 internal prototype to avoid an error. */
54176 #ifdef __cplusplus
54177 extern "C"
54179 #endif
54180 /* We use char because int might match the return type of a gcc2
54181 builtin and then its argument prototype would still apply. */
54182 char $ac_func ();
54183 /* The GNU C library defines this for functions which it implements
54184 to always fail with ENOSYS. Some functions are actually named
54185 something starting with __ and the normal name is an alias. */
54186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54187 choke me
54188 #else
54189 char (*f) () = $ac_func;
54190 #endif
54191 #ifdef __cplusplus
54193 #endif
54196 main ()
54198 return f != $ac_func;
54200 return 0;
54202 _ACEOF
54203 rm -f conftest.$ac_objext conftest$ac_exeext
54204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54205 (eval $ac_link) 2>conftest.er1
54206 ac_status=$?
54207 grep -v '^ *+' conftest.er1 >conftest.err
54208 rm -f conftest.er1
54209 cat conftest.err >&5
54210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54211 (exit $ac_status); } &&
54212 { ac_try='test -z "$ac_c_werror_flag"
54213 || test ! -s conftest.err'
54214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54215 (eval $ac_try) 2>&5
54216 ac_status=$?
54217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54218 (exit $ac_status); }; } &&
54219 { ac_try='test -s conftest$ac_exeext'
54220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54221 (eval $ac_try) 2>&5
54222 ac_status=$?
54223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54224 (exit $ac_status); }; }; then
54225 eval "$as_ac_var=yes"
54226 else
54227 echo "$as_me: failed program was:" >&5
54228 sed 's/^/| /' conftest.$ac_ext >&5
54230 eval "$as_ac_var=no"
54232 rm -f conftest.err conftest.$ac_objext \
54233 conftest$ac_exeext conftest.$ac_ext
54235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54237 if test `eval echo '${'$as_ac_var'}'` = yes; then
54238 cat >>confdefs.h <<_ACEOF
54239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54240 _ACEOF
54242 else
54243 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54245 done
54249 # XXX Review this. Nothing uses it.
54250 if test -n "$LIBMATHOBJS"; then
54251 need_libmath=yes
54256 # Test wchar.h for mbstate_t, which is needed for char_traits and
54257 # others even if wchar_t support is not on.
54258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
54259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54260 cat >conftest.$ac_ext <<_ACEOF
54261 /* confdefs.h. */
54262 _ACEOF
54263 cat confdefs.h >>conftest.$ac_ext
54264 cat >>conftest.$ac_ext <<_ACEOF
54265 /* end confdefs.h. */
54266 #include <wchar.h>
54268 main ()
54270 mbstate_t teststate;
54272 return 0;
54274 _ACEOF
54275 rm -f conftest.$ac_objext
54276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54277 (eval $ac_compile) 2>conftest.er1
54278 ac_status=$?
54279 grep -v '^ *+' conftest.er1 >conftest.err
54280 rm -f conftest.er1
54281 cat conftest.err >&5
54282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54283 (exit $ac_status); } &&
54284 { ac_try='test -z "$ac_c_werror_flag"
54285 || test ! -s conftest.err'
54286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54287 (eval $ac_try) 2>&5
54288 ac_status=$?
54289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54290 (exit $ac_status); }; } &&
54291 { ac_try='test -s conftest.$ac_objext'
54292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54293 (eval $ac_try) 2>&5
54294 ac_status=$?
54295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54296 (exit $ac_status); }; }; then
54297 have_mbstate_t=yes
54298 else
54299 echo "$as_me: failed program was:" >&5
54300 sed 's/^/| /' conftest.$ac_ext >&5
54302 have_mbstate_t=no
54304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54305 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54306 echo "${ECHO_T}$have_mbstate_t" >&6
54307 if test x"$have_mbstate_t" = xyes; then
54308 cat >>confdefs.h <<\_ACEOF
54309 #define HAVE_MBSTATE_T 1
54310 _ACEOF
54314 # Sanity check for existence of ISO C99 headers for extended encoding.
54316 for ac_header in wchar.h
54318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54320 echo "$as_me:$LINENO: checking for $ac_header" >&5
54321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54323 echo $ECHO_N "(cached) $ECHO_C" >&6
54325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54327 else
54328 # Is the header compilable?
54329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54331 cat >conftest.$ac_ext <<_ACEOF
54332 /* confdefs.h. */
54333 _ACEOF
54334 cat confdefs.h >>conftest.$ac_ext
54335 cat >>conftest.$ac_ext <<_ACEOF
54336 /* end confdefs.h. */
54337 $ac_includes_default
54338 #include <$ac_header>
54339 _ACEOF
54340 rm -f conftest.$ac_objext
54341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54342 (eval $ac_compile) 2>conftest.er1
54343 ac_status=$?
54344 grep -v '^ *+' conftest.er1 >conftest.err
54345 rm -f conftest.er1
54346 cat conftest.err >&5
54347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54348 (exit $ac_status); } &&
54349 { ac_try='test -z "$ac_c_werror_flag"
54350 || test ! -s conftest.err'
54351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54352 (eval $ac_try) 2>&5
54353 ac_status=$?
54354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54355 (exit $ac_status); }; } &&
54356 { ac_try='test -s conftest.$ac_objext'
54357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54358 (eval $ac_try) 2>&5
54359 ac_status=$?
54360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54361 (exit $ac_status); }; }; then
54362 ac_header_compiler=yes
54363 else
54364 echo "$as_me: failed program was:" >&5
54365 sed 's/^/| /' conftest.$ac_ext >&5
54367 ac_header_compiler=no
54369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54371 echo "${ECHO_T}$ac_header_compiler" >&6
54373 # Is the header present?
54374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54376 cat >conftest.$ac_ext <<_ACEOF
54377 /* confdefs.h. */
54378 _ACEOF
54379 cat confdefs.h >>conftest.$ac_ext
54380 cat >>conftest.$ac_ext <<_ACEOF
54381 /* end confdefs.h. */
54382 #include <$ac_header>
54383 _ACEOF
54384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54386 ac_status=$?
54387 grep -v '^ *+' conftest.er1 >conftest.err
54388 rm -f conftest.er1
54389 cat conftest.err >&5
54390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54391 (exit $ac_status); } >/dev/null; then
54392 if test -s conftest.err; then
54393 ac_cpp_err=$ac_c_preproc_warn_flag
54394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54395 else
54396 ac_cpp_err=
54398 else
54399 ac_cpp_err=yes
54401 if test -z "$ac_cpp_err"; then
54402 ac_header_preproc=yes
54403 else
54404 echo "$as_me: failed program was:" >&5
54405 sed 's/^/| /' conftest.$ac_ext >&5
54407 ac_header_preproc=no
54409 rm -f conftest.err conftest.$ac_ext
54410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54411 echo "${ECHO_T}$ac_header_preproc" >&6
54413 # So? What about this header?
54414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54415 yes:no: )
54416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54420 ac_header_preproc=yes
54422 no:yes:* )
54423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54436 cat <<\_ASBOX
54437 ## ----------------------------------------- ##
54438 ## Report this to the package-unused lists. ##
54439 ## ----------------------------------------- ##
54440 _ASBOX
54442 sed "s/^/$as_me: WARNING: /" >&2
54444 esac
54445 echo "$as_me:$LINENO: checking for $ac_header" >&5
54446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54448 echo $ECHO_N "(cached) $ECHO_C" >&6
54449 else
54450 eval "$as_ac_Header=\$ac_header_preproc"
54452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54457 cat >>confdefs.h <<_ACEOF
54458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54459 _ACEOF
54460 ac_has_wchar_h=yes
54461 else
54462 ac_has_wchar_h=no
54465 done
54468 for ac_header in wctype.h
54470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54472 echo "$as_me:$LINENO: checking for $ac_header" >&5
54473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54475 echo $ECHO_N "(cached) $ECHO_C" >&6
54477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54479 else
54480 # Is the header compilable?
54481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54483 cat >conftest.$ac_ext <<_ACEOF
54484 /* confdefs.h. */
54485 _ACEOF
54486 cat confdefs.h >>conftest.$ac_ext
54487 cat >>conftest.$ac_ext <<_ACEOF
54488 /* end confdefs.h. */
54489 $ac_includes_default
54490 #include <$ac_header>
54491 _ACEOF
54492 rm -f conftest.$ac_objext
54493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54494 (eval $ac_compile) 2>conftest.er1
54495 ac_status=$?
54496 grep -v '^ *+' conftest.er1 >conftest.err
54497 rm -f conftest.er1
54498 cat conftest.err >&5
54499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54500 (exit $ac_status); } &&
54501 { ac_try='test -z "$ac_c_werror_flag"
54502 || test ! -s conftest.err'
54503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54504 (eval $ac_try) 2>&5
54505 ac_status=$?
54506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54507 (exit $ac_status); }; } &&
54508 { ac_try='test -s conftest.$ac_objext'
54509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54510 (eval $ac_try) 2>&5
54511 ac_status=$?
54512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54513 (exit $ac_status); }; }; then
54514 ac_header_compiler=yes
54515 else
54516 echo "$as_me: failed program was:" >&5
54517 sed 's/^/| /' conftest.$ac_ext >&5
54519 ac_header_compiler=no
54521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54523 echo "${ECHO_T}$ac_header_compiler" >&6
54525 # Is the header present?
54526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54528 cat >conftest.$ac_ext <<_ACEOF
54529 /* confdefs.h. */
54530 _ACEOF
54531 cat confdefs.h >>conftest.$ac_ext
54532 cat >>conftest.$ac_ext <<_ACEOF
54533 /* end confdefs.h. */
54534 #include <$ac_header>
54535 _ACEOF
54536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54538 ac_status=$?
54539 grep -v '^ *+' conftest.er1 >conftest.err
54540 rm -f conftest.er1
54541 cat conftest.err >&5
54542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54543 (exit $ac_status); } >/dev/null; then
54544 if test -s conftest.err; then
54545 ac_cpp_err=$ac_c_preproc_warn_flag
54546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54547 else
54548 ac_cpp_err=
54550 else
54551 ac_cpp_err=yes
54553 if test -z "$ac_cpp_err"; then
54554 ac_header_preproc=yes
54555 else
54556 echo "$as_me: failed program was:" >&5
54557 sed 's/^/| /' conftest.$ac_ext >&5
54559 ac_header_preproc=no
54561 rm -f conftest.err conftest.$ac_ext
54562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54563 echo "${ECHO_T}$ac_header_preproc" >&6
54565 # So? What about this header?
54566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54567 yes:no: )
54568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54572 ac_header_preproc=yes
54574 no:yes:* )
54575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54588 cat <<\_ASBOX
54589 ## ----------------------------------------- ##
54590 ## Report this to the package-unused lists. ##
54591 ## ----------------------------------------- ##
54592 _ASBOX
54594 sed "s/^/$as_me: WARNING: /" >&2
54596 esac
54597 echo "$as_me:$LINENO: checking for $ac_header" >&5
54598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54600 echo $ECHO_N "(cached) $ECHO_C" >&6
54601 else
54602 eval "$as_ac_Header=\$ac_header_preproc"
54604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54609 cat >>confdefs.h <<_ACEOF
54610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54611 _ACEOF
54612 ac_has_wctype_h=yes
54613 else
54614 ac_has_wctype_h=no
54617 done
54620 # Only continue checking if the ISO C99 headers exist and support is on.
54621 if test x"$ac_has_wchar_h" = xyes &&
54622 test x"$ac_has_wctype_h" = xyes &&
54623 test x"$enable_c_mbchar" != xno; then
54625 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54626 # numeric_limits can instantiate type_traits<wchar_t>
54627 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54628 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54629 cat >conftest.$ac_ext <<_ACEOF
54630 /* confdefs.h. */
54631 _ACEOF
54632 cat confdefs.h >>conftest.$ac_ext
54633 cat >>conftest.$ac_ext <<_ACEOF
54634 /* end confdefs.h. */
54635 #include <wchar.h>
54637 main ()
54639 int i = WCHAR_MIN; int j = WCHAR_MAX;
54641 return 0;
54643 _ACEOF
54644 rm -f conftest.$ac_objext
54645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54646 (eval $ac_compile) 2>conftest.er1
54647 ac_status=$?
54648 grep -v '^ *+' conftest.er1 >conftest.err
54649 rm -f conftest.er1
54650 cat conftest.err >&5
54651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54652 (exit $ac_status); } &&
54653 { ac_try='test -z "$ac_c_werror_flag"
54654 || test ! -s conftest.err'
54655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54656 (eval $ac_try) 2>&5
54657 ac_status=$?
54658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54659 (exit $ac_status); }; } &&
54660 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
54666 has_wchar_minmax=yes
54667 else
54668 echo "$as_me: failed program was:" >&5
54669 sed 's/^/| /' conftest.$ac_ext >&5
54671 has_wchar_minmax=no
54673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54674 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54675 echo "${ECHO_T}$has_wchar_minmax" >&6
54677 # Test wchar.h for WEOF, which is what we use to determine whether
54678 # to specialize for char_traits<wchar_t> or not.
54679 echo "$as_me:$LINENO: checking for WEOF" >&5
54680 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54681 cat >conftest.$ac_ext <<_ACEOF
54682 /* confdefs.h. */
54683 _ACEOF
54684 cat confdefs.h >>conftest.$ac_ext
54685 cat >>conftest.$ac_ext <<_ACEOF
54686 /* end confdefs.h. */
54688 #include <wchar.h>
54689 #include <stddef.h>
54691 main ()
54693 wint_t i = WEOF;
54695 return 0;
54697 _ACEOF
54698 rm -f conftest.$ac_objext
54699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54700 (eval $ac_compile) 2>conftest.er1
54701 ac_status=$?
54702 grep -v '^ *+' conftest.er1 >conftest.err
54703 rm -f conftest.er1
54704 cat conftest.err >&5
54705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54706 (exit $ac_status); } &&
54707 { ac_try='test -z "$ac_c_werror_flag"
54708 || test ! -s conftest.err'
54709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54710 (eval $ac_try) 2>&5
54711 ac_status=$?
54712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713 (exit $ac_status); }; } &&
54714 { ac_try='test -s conftest.$ac_objext'
54715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54716 (eval $ac_try) 2>&5
54717 ac_status=$?
54718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54719 (exit $ac_status); }; }; then
54720 has_weof=yes
54721 else
54722 echo "$as_me: failed program was:" >&5
54723 sed 's/^/| /' conftest.$ac_ext >&5
54725 has_weof=no
54727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54728 echo "$as_me:$LINENO: result: $has_weof" >&5
54729 echo "${ECHO_T}$has_weof" >&6
54731 # Tests for wide character functions used in char_traits<wchar_t>.
54732 ac_wfuncs=yes
54739 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54742 echo "$as_me:$LINENO: checking for $ac_func" >&5
54743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54744 if eval "test \"\${$as_ac_var+set}\" = set"; then
54745 echo $ECHO_N "(cached) $ECHO_C" >&6
54746 else
54747 if test x$gcc_no_link = xyes; then
54748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54750 { (exit 1); exit 1; }; }
54752 cat >conftest.$ac_ext <<_ACEOF
54753 /* confdefs.h. */
54754 _ACEOF
54755 cat confdefs.h >>conftest.$ac_ext
54756 cat >>conftest.$ac_ext <<_ACEOF
54757 /* end confdefs.h. */
54758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54760 #define $ac_func innocuous_$ac_func
54762 /* System header to define __stub macros and hopefully few prototypes,
54763 which can conflict with char $ac_func (); below.
54764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54765 <limits.h> exists even on freestanding compilers. */
54767 #ifdef __STDC__
54768 # include <limits.h>
54769 #else
54770 # include <assert.h>
54771 #endif
54773 #undef $ac_func
54775 /* Override any gcc2 internal prototype to avoid an error. */
54776 #ifdef __cplusplus
54777 extern "C"
54779 #endif
54780 /* We use char because int might match the return type of a gcc2
54781 builtin and then its argument prototype would still apply. */
54782 char $ac_func ();
54783 /* The GNU C library defines this for functions which it implements
54784 to always fail with ENOSYS. Some functions are actually named
54785 something starting with __ and the normal name is an alias. */
54786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54787 choke me
54788 #else
54789 char (*f) () = $ac_func;
54790 #endif
54791 #ifdef __cplusplus
54793 #endif
54796 main ()
54798 return f != $ac_func;
54800 return 0;
54802 _ACEOF
54803 rm -f conftest.$ac_objext conftest$ac_exeext
54804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54805 (eval $ac_link) 2>conftest.er1
54806 ac_status=$?
54807 grep -v '^ *+' conftest.er1 >conftest.err
54808 rm -f conftest.er1
54809 cat conftest.err >&5
54810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54811 (exit $ac_status); } &&
54812 { ac_try='test -z "$ac_c_werror_flag"
54813 || test ! -s conftest.err'
54814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54815 (eval $ac_try) 2>&5
54816 ac_status=$?
54817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54818 (exit $ac_status); }; } &&
54819 { ac_try='test -s conftest$ac_exeext'
54820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54821 (eval $ac_try) 2>&5
54822 ac_status=$?
54823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54824 (exit $ac_status); }; }; then
54825 eval "$as_ac_var=yes"
54826 else
54827 echo "$as_me: failed program was:" >&5
54828 sed 's/^/| /' conftest.$ac_ext >&5
54830 eval "$as_ac_var=no"
54832 rm -f conftest.err conftest.$ac_objext \
54833 conftest$ac_exeext conftest.$ac_ext
54835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54837 if test `eval echo '${'$as_ac_var'}'` = yes; then
54838 cat >>confdefs.h <<_ACEOF
54839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54840 _ACEOF
54842 else
54843 ac_wfuncs=no
54845 done
54848 # Checks for names injected into std:: by the c_std headers.
54895 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54896 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54897 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54898 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54899 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54900 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54903 echo "$as_me:$LINENO: checking for $ac_func" >&5
54904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54905 if eval "test \"\${$as_ac_var+set}\" = set"; then
54906 echo $ECHO_N "(cached) $ECHO_C" >&6
54907 else
54908 if test x$gcc_no_link = xyes; then
54909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54911 { (exit 1); exit 1; }; }
54913 cat >conftest.$ac_ext <<_ACEOF
54914 /* confdefs.h. */
54915 _ACEOF
54916 cat confdefs.h >>conftest.$ac_ext
54917 cat >>conftest.$ac_ext <<_ACEOF
54918 /* end confdefs.h. */
54919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54921 #define $ac_func innocuous_$ac_func
54923 /* System header to define __stub macros and hopefully few prototypes,
54924 which can conflict with char $ac_func (); below.
54925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54926 <limits.h> exists even on freestanding compilers. */
54928 #ifdef __STDC__
54929 # include <limits.h>
54930 #else
54931 # include <assert.h>
54932 #endif
54934 #undef $ac_func
54936 /* Override any gcc2 internal prototype to avoid an error. */
54937 #ifdef __cplusplus
54938 extern "C"
54940 #endif
54941 /* We use char because int might match the return type of a gcc2
54942 builtin and then its argument prototype would still apply. */
54943 char $ac_func ();
54944 /* The GNU C library defines this for functions which it implements
54945 to always fail with ENOSYS. Some functions are actually named
54946 something starting with __ and the normal name is an alias. */
54947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54948 choke me
54949 #else
54950 char (*f) () = $ac_func;
54951 #endif
54952 #ifdef __cplusplus
54954 #endif
54957 main ()
54959 return f != $ac_func;
54961 return 0;
54963 _ACEOF
54964 rm -f conftest.$ac_objext conftest$ac_exeext
54965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54966 (eval $ac_link) 2>conftest.er1
54967 ac_status=$?
54968 grep -v '^ *+' conftest.er1 >conftest.err
54969 rm -f conftest.er1
54970 cat conftest.err >&5
54971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54972 (exit $ac_status); } &&
54973 { ac_try='test -z "$ac_c_werror_flag"
54974 || test ! -s conftest.err'
54975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54976 (eval $ac_try) 2>&5
54977 ac_status=$?
54978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54979 (exit $ac_status); }; } &&
54980 { ac_try='test -s conftest$ac_exeext'
54981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54982 (eval $ac_try) 2>&5
54983 ac_status=$?
54984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54985 (exit $ac_status); }; }; then
54986 eval "$as_ac_var=yes"
54987 else
54988 echo "$as_me: failed program was:" >&5
54989 sed 's/^/| /' conftest.$ac_ext >&5
54991 eval "$as_ac_var=no"
54993 rm -f conftest.err conftest.$ac_objext \
54994 conftest$ac_exeext conftest.$ac_ext
54996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54998 if test `eval echo '${'$as_ac_var'}'` = yes; then
54999 cat >>confdefs.h <<_ACEOF
55000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55001 _ACEOF
55003 else
55004 ac_wfuncs=no
55006 done
55009 # Checks for wide character functions that are not required
55010 # for basic wchar_t support. Don't disable support if they are missing.
55011 # Injection of these is wrapped with guard macros.
55017 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
55019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55020 echo "$as_me:$LINENO: checking for $ac_func" >&5
55021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55022 if eval "test \"\${$as_ac_var+set}\" = set"; then
55023 echo $ECHO_N "(cached) $ECHO_C" >&6
55024 else
55025 if test x$gcc_no_link = xyes; then
55026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55028 { (exit 1); exit 1; }; }
55030 cat >conftest.$ac_ext <<_ACEOF
55031 /* confdefs.h. */
55032 _ACEOF
55033 cat confdefs.h >>conftest.$ac_ext
55034 cat >>conftest.$ac_ext <<_ACEOF
55035 /* end confdefs.h. */
55036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55038 #define $ac_func innocuous_$ac_func
55040 /* System header to define __stub macros and hopefully few prototypes,
55041 which can conflict with char $ac_func (); below.
55042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55043 <limits.h> exists even on freestanding compilers. */
55045 #ifdef __STDC__
55046 # include <limits.h>
55047 #else
55048 # include <assert.h>
55049 #endif
55051 #undef $ac_func
55053 /* Override any gcc2 internal prototype to avoid an error. */
55054 #ifdef __cplusplus
55055 extern "C"
55057 #endif
55058 /* We use char because int might match the return type of a gcc2
55059 builtin and then its argument prototype would still apply. */
55060 char $ac_func ();
55061 /* The GNU C library defines this for functions which it implements
55062 to always fail with ENOSYS. Some functions are actually named
55063 something starting with __ and the normal name is an alias. */
55064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55065 choke me
55066 #else
55067 char (*f) () = $ac_func;
55068 #endif
55069 #ifdef __cplusplus
55071 #endif
55074 main ()
55076 return f != $ac_func;
55078 return 0;
55080 _ACEOF
55081 rm -f conftest.$ac_objext conftest$ac_exeext
55082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55083 (eval $ac_link) 2>conftest.er1
55084 ac_status=$?
55085 grep -v '^ *+' conftest.er1 >conftest.err
55086 rm -f conftest.er1
55087 cat conftest.err >&5
55088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55089 (exit $ac_status); } &&
55090 { ac_try='test -z "$ac_c_werror_flag"
55091 || test ! -s conftest.err'
55092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55093 (eval $ac_try) 2>&5
55094 ac_status=$?
55095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55096 (exit $ac_status); }; } &&
55097 { ac_try='test -s conftest$ac_exeext'
55098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55099 (eval $ac_try) 2>&5
55100 ac_status=$?
55101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55102 (exit $ac_status); }; }; then
55103 eval "$as_ac_var=yes"
55104 else
55105 echo "$as_me: failed program was:" >&5
55106 sed 's/^/| /' conftest.$ac_ext >&5
55108 eval "$as_ac_var=no"
55110 rm -f conftest.err conftest.$ac_objext \
55111 conftest$ac_exeext conftest.$ac_ext
55113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55115 if test `eval echo '${'$as_ac_var'}'` = yes; then
55116 cat >>confdefs.h <<_ACEOF
55117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55118 _ACEOF
55121 done
55124 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55125 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55126 if test x"$has_weof" = xyes &&
55127 test x"$has_wchar_minmax" = xyes &&
55128 test x"$ac_wfuncs" = xyes;
55129 then
55130 ac_isoC99_wchar_t=yes
55131 else
55132 ac_isoC99_wchar_t=no
55134 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55135 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55137 # Use iconv for wchar_t to char conversions. As such, check for
55138 # X/Open Portability Guide, version 2 features (XPG2).
55139 if test "${ac_cv_header_iconv_h+set}" = set; then
55140 echo "$as_me:$LINENO: checking for iconv.h" >&5
55141 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55142 if test "${ac_cv_header_iconv_h+set}" = set; then
55143 echo $ECHO_N "(cached) $ECHO_C" >&6
55145 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55146 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55147 else
55148 # Is the header compilable?
55149 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55150 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55151 cat >conftest.$ac_ext <<_ACEOF
55152 /* confdefs.h. */
55153 _ACEOF
55154 cat confdefs.h >>conftest.$ac_ext
55155 cat >>conftest.$ac_ext <<_ACEOF
55156 /* end confdefs.h. */
55157 $ac_includes_default
55158 #include <iconv.h>
55159 _ACEOF
55160 rm -f conftest.$ac_objext
55161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55162 (eval $ac_compile) 2>conftest.er1
55163 ac_status=$?
55164 grep -v '^ *+' conftest.er1 >conftest.err
55165 rm -f conftest.er1
55166 cat conftest.err >&5
55167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55168 (exit $ac_status); } &&
55169 { ac_try='test -z "$ac_c_werror_flag"
55170 || test ! -s conftest.err'
55171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55172 (eval $ac_try) 2>&5
55173 ac_status=$?
55174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55175 (exit $ac_status); }; } &&
55176 { ac_try='test -s conftest.$ac_objext'
55177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55178 (eval $ac_try) 2>&5
55179 ac_status=$?
55180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55181 (exit $ac_status); }; }; then
55182 ac_header_compiler=yes
55183 else
55184 echo "$as_me: failed program was:" >&5
55185 sed 's/^/| /' conftest.$ac_ext >&5
55187 ac_header_compiler=no
55189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55191 echo "${ECHO_T}$ac_header_compiler" >&6
55193 # Is the header present?
55194 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55195 echo $ECHO_N "checking iconv.h presence... $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 #include <iconv.h>
55203 _ACEOF
55204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55206 ac_status=$?
55207 grep -v '^ *+' conftest.er1 >conftest.err
55208 rm -f conftest.er1
55209 cat conftest.err >&5
55210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55211 (exit $ac_status); } >/dev/null; then
55212 if test -s conftest.err; then
55213 ac_cpp_err=$ac_c_preproc_warn_flag
55214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55215 else
55216 ac_cpp_err=
55218 else
55219 ac_cpp_err=yes
55221 if test -z "$ac_cpp_err"; then
55222 ac_header_preproc=yes
55223 else
55224 echo "$as_me: failed program was:" >&5
55225 sed 's/^/| /' conftest.$ac_ext >&5
55227 ac_header_preproc=no
55229 rm -f conftest.err conftest.$ac_ext
55230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55231 echo "${ECHO_T}$ac_header_preproc" >&6
55233 # So? What about this header?
55234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55235 yes:no: )
55236 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55237 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55238 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55239 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55240 ac_header_preproc=yes
55242 no:yes:* )
55243 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55244 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55245 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55246 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55247 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55248 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55249 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
55250 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
55251 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55252 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55253 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55254 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55256 cat <<\_ASBOX
55257 ## ----------------------------------------- ##
55258 ## Report this to the package-unused lists. ##
55259 ## ----------------------------------------- ##
55260 _ASBOX
55262 sed "s/^/$as_me: WARNING: /" >&2
55264 esac
55265 echo "$as_me:$LINENO: checking for iconv.h" >&5
55266 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55267 if test "${ac_cv_header_iconv_h+set}" = set; then
55268 echo $ECHO_N "(cached) $ECHO_C" >&6
55269 else
55270 ac_cv_header_iconv_h=$ac_header_preproc
55272 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55273 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55276 if test $ac_cv_header_iconv_h = yes; then
55277 ac_has_iconv_h=yes
55278 else
55279 ac_has_iconv_h=no
55283 if test "${ac_cv_header_langinfo_h+set}" = set; then
55284 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55285 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55286 if test "${ac_cv_header_langinfo_h+set}" = set; then
55287 echo $ECHO_N "(cached) $ECHO_C" >&6
55289 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55290 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55291 else
55292 # Is the header compilable?
55293 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55294 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55295 cat >conftest.$ac_ext <<_ACEOF
55296 /* confdefs.h. */
55297 _ACEOF
55298 cat confdefs.h >>conftest.$ac_ext
55299 cat >>conftest.$ac_ext <<_ACEOF
55300 /* end confdefs.h. */
55301 $ac_includes_default
55302 #include <langinfo.h>
55303 _ACEOF
55304 rm -f conftest.$ac_objext
55305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55306 (eval $ac_compile) 2>conftest.er1
55307 ac_status=$?
55308 grep -v '^ *+' conftest.er1 >conftest.err
55309 rm -f conftest.er1
55310 cat conftest.err >&5
55311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55312 (exit $ac_status); } &&
55313 { ac_try='test -z "$ac_c_werror_flag"
55314 || test ! -s conftest.err'
55315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55316 (eval $ac_try) 2>&5
55317 ac_status=$?
55318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55319 (exit $ac_status); }; } &&
55320 { ac_try='test -s conftest.$ac_objext'
55321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55322 (eval $ac_try) 2>&5
55323 ac_status=$?
55324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55325 (exit $ac_status); }; }; then
55326 ac_header_compiler=yes
55327 else
55328 echo "$as_me: failed program was:" >&5
55329 sed 's/^/| /' conftest.$ac_ext >&5
55331 ac_header_compiler=no
55333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55335 echo "${ECHO_T}$ac_header_compiler" >&6
55337 # Is the header present?
55338 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55339 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55340 cat >conftest.$ac_ext <<_ACEOF
55341 /* confdefs.h. */
55342 _ACEOF
55343 cat confdefs.h >>conftest.$ac_ext
55344 cat >>conftest.$ac_ext <<_ACEOF
55345 /* end confdefs.h. */
55346 #include <langinfo.h>
55347 _ACEOF
55348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55350 ac_status=$?
55351 grep -v '^ *+' conftest.er1 >conftest.err
55352 rm -f conftest.er1
55353 cat conftest.err >&5
55354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55355 (exit $ac_status); } >/dev/null; then
55356 if test -s conftest.err; then
55357 ac_cpp_err=$ac_c_preproc_warn_flag
55358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55359 else
55360 ac_cpp_err=
55362 else
55363 ac_cpp_err=yes
55365 if test -z "$ac_cpp_err"; then
55366 ac_header_preproc=yes
55367 else
55368 echo "$as_me: failed program was:" >&5
55369 sed 's/^/| /' conftest.$ac_ext >&5
55371 ac_header_preproc=no
55373 rm -f conftest.err conftest.$ac_ext
55374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55375 echo "${ECHO_T}$ac_header_preproc" >&6
55377 # So? What about this header?
55378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55379 yes:no: )
55380 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55381 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55382 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55383 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55384 ac_header_preproc=yes
55386 no:yes:* )
55387 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55388 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55389 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55390 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55391 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55392 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55393 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
55394 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
55395 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55396 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55397 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55398 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55400 cat <<\_ASBOX
55401 ## ----------------------------------------- ##
55402 ## Report this to the package-unused lists. ##
55403 ## ----------------------------------------- ##
55404 _ASBOX
55406 sed "s/^/$as_me: WARNING: /" >&2
55408 esac
55409 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55410 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55411 if test "${ac_cv_header_langinfo_h+set}" = set; then
55412 echo $ECHO_N "(cached) $ECHO_C" >&6
55413 else
55414 ac_cv_header_langinfo_h=$ac_header_preproc
55416 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55417 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55420 if test $ac_cv_header_langinfo_h = yes; then
55421 ac_has_langinfo_h=yes
55422 else
55423 ac_has_langinfo_h=no
55428 # Check for existence of libiconv.a providing XPG2 wchar_t support.
55429 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55430 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55431 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55432 echo $ECHO_N "(cached) $ECHO_C" >&6
55433 else
55434 ac_check_lib_save_LIBS=$LIBS
55435 LIBS="-liconv $LIBS"
55436 if test x$gcc_no_link = xyes; then
55437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55439 { (exit 1); exit 1; }; }
55441 cat >conftest.$ac_ext <<_ACEOF
55442 /* confdefs.h. */
55443 _ACEOF
55444 cat confdefs.h >>conftest.$ac_ext
55445 cat >>conftest.$ac_ext <<_ACEOF
55446 /* end confdefs.h. */
55448 /* Override any gcc2 internal prototype to avoid an error. */
55449 #ifdef __cplusplus
55450 extern "C"
55451 #endif
55452 /* We use char because int might match the return type of a gcc2
55453 builtin and then its argument prototype would still apply. */
55454 char iconv ();
55456 main ()
55458 iconv ();
55460 return 0;
55462 _ACEOF
55463 rm -f conftest.$ac_objext conftest$ac_exeext
55464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55465 (eval $ac_link) 2>conftest.er1
55466 ac_status=$?
55467 grep -v '^ *+' conftest.er1 >conftest.err
55468 rm -f conftest.er1
55469 cat conftest.err >&5
55470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55471 (exit $ac_status); } &&
55472 { ac_try='test -z "$ac_c_werror_flag"
55473 || test ! -s conftest.err'
55474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55475 (eval $ac_try) 2>&5
55476 ac_status=$?
55477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55478 (exit $ac_status); }; } &&
55479 { ac_try='test -s conftest$ac_exeext'
55480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55481 (eval $ac_try) 2>&5
55482 ac_status=$?
55483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55484 (exit $ac_status); }; }; then
55485 ac_cv_lib_iconv_iconv=yes
55486 else
55487 echo "$as_me: failed program was:" >&5
55488 sed 's/^/| /' conftest.$ac_ext >&5
55490 ac_cv_lib_iconv_iconv=no
55492 rm -f conftest.err conftest.$ac_objext \
55493 conftest$ac_exeext conftest.$ac_ext
55494 LIBS=$ac_check_lib_save_LIBS
55496 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55497 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55498 if test $ac_cv_lib_iconv_iconv = yes; then
55499 LIBICONV="-liconv"
55502 ac_save_LIBS="$LIBS"
55503 LIBS="$LIBS $LIBICONV"
55510 for ac_func in iconv_open iconv_close iconv nl_langinfo
55512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55513 echo "$as_me:$LINENO: checking for $ac_func" >&5
55514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55515 if eval "test \"\${$as_ac_var+set}\" = set"; then
55516 echo $ECHO_N "(cached) $ECHO_C" >&6
55517 else
55518 if test x$gcc_no_link = xyes; then
55519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55521 { (exit 1); exit 1; }; }
55523 cat >conftest.$ac_ext <<_ACEOF
55524 /* confdefs.h. */
55525 _ACEOF
55526 cat confdefs.h >>conftest.$ac_ext
55527 cat >>conftest.$ac_ext <<_ACEOF
55528 /* end confdefs.h. */
55529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55531 #define $ac_func innocuous_$ac_func
55533 /* System header to define __stub macros and hopefully few prototypes,
55534 which can conflict with char $ac_func (); below.
55535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55536 <limits.h> exists even on freestanding compilers. */
55538 #ifdef __STDC__
55539 # include <limits.h>
55540 #else
55541 # include <assert.h>
55542 #endif
55544 #undef $ac_func
55546 /* Override any gcc2 internal prototype to avoid an error. */
55547 #ifdef __cplusplus
55548 extern "C"
55550 #endif
55551 /* We use char because int might match the return type of a gcc2
55552 builtin and then its argument prototype would still apply. */
55553 char $ac_func ();
55554 /* The GNU C library defines this for functions which it implements
55555 to always fail with ENOSYS. Some functions are actually named
55556 something starting with __ and the normal name is an alias. */
55557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55558 choke me
55559 #else
55560 char (*f) () = $ac_func;
55561 #endif
55562 #ifdef __cplusplus
55564 #endif
55567 main ()
55569 return f != $ac_func;
55571 return 0;
55573 _ACEOF
55574 rm -f conftest.$ac_objext conftest$ac_exeext
55575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55576 (eval $ac_link) 2>conftest.er1
55577 ac_status=$?
55578 grep -v '^ *+' conftest.er1 >conftest.err
55579 rm -f conftest.er1
55580 cat conftest.err >&5
55581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55582 (exit $ac_status); } &&
55583 { ac_try='test -z "$ac_c_werror_flag"
55584 || test ! -s conftest.err'
55585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55586 (eval $ac_try) 2>&5
55587 ac_status=$?
55588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55589 (exit $ac_status); }; } &&
55590 { ac_try='test -s conftest$ac_exeext'
55591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55592 (eval $ac_try) 2>&5
55593 ac_status=$?
55594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55595 (exit $ac_status); }; }; then
55596 eval "$as_ac_var=yes"
55597 else
55598 echo "$as_me: failed program was:" >&5
55599 sed 's/^/| /' conftest.$ac_ext >&5
55601 eval "$as_ac_var=no"
55603 rm -f conftest.err conftest.$ac_objext \
55604 conftest$ac_exeext conftest.$ac_ext
55606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55608 if test `eval echo '${'$as_ac_var'}'` = yes; then
55609 cat >>confdefs.h <<_ACEOF
55610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55611 _ACEOF
55612 ac_XPG2funcs=yes
55613 else
55614 ac_XPG2funcs=no
55616 done
55619 LIBS="$ac_save_LIBS"
55621 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55622 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55623 if test x"$ac_has_iconv_h" = xyes &&
55624 test x"$ac_has_langinfo_h" = xyes &&
55625 test x"$ac_XPG2funcs" = xyes;
55626 then
55627 ac_XPG2_wchar_t=yes
55628 else
55629 ac_XPG2_wchar_t=no
55631 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55632 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55634 # At the moment, only enable wchar_t specializations if all the
55635 # above support is present.
55636 if test x"$ac_isoC99_wchar_t" = xyes &&
55637 test x"$ac_XPG2_wchar_t" = xyes;
55638 then
55639 cat >>confdefs.h <<\_ACEOF
55640 #define _GLIBCXX_USE_WCHAR_T 1
55641 _ACEOF
55643 enable_wchar_t=yes
55646 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55647 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55648 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55649 echo "${ECHO_T}$enable_wchar_t" >&6
55651 cat >>confdefs.h <<\_ACEOF
55652 #define HAVE_LC_MESSAGES 1
55653 _ACEOF
55655 cat >>confdefs.h <<\_ACEOF
55656 #define HAVE_GETPAGESIZE 1
55657 _ACEOF
55659 cat >>confdefs.h <<\_ACEOF
55660 #define HAVE_SETENV 1
55661 _ACEOF
55663 cat >>confdefs.h <<\_ACEOF
55664 #define HAVE_SIGSETJMP 1
55665 _ACEOF
55667 cat >>confdefs.h <<\_ACEOF
55668 #define HAVE_COPYSIGN 1
55669 _ACEOF
55671 cat >>confdefs.h <<\_ACEOF
55672 #define HAVE_COPYSIGNF 1
55673 _ACEOF
55675 cat >>confdefs.h <<\_ACEOF
55676 #define HAVE_FINITEF 1
55677 _ACEOF
55679 cat >>confdefs.h <<\_ACEOF
55680 #define HAVE_FINITE 1
55681 _ACEOF
55683 cat >>confdefs.h <<\_ACEOF
55684 #define HAVE_FREXPF 1
55685 _ACEOF
55687 cat >>confdefs.h <<\_ACEOF
55688 #define HAVE_HYPOT 1
55689 _ACEOF
55691 cat >>confdefs.h <<\_ACEOF
55692 #define HAVE_HYPOTF 1
55693 _ACEOF
55695 cat >>confdefs.h <<\_ACEOF
55696 #define HAVE_ISINF 1
55697 _ACEOF
55699 cat >>confdefs.h <<\_ACEOF
55700 #define HAVE_ISNAN 1
55701 _ACEOF
55703 cat >>confdefs.h <<\_ACEOF
55704 #define HAVE_ISNANF 1
55705 _ACEOF
55708 cat >>confdefs.h <<\_ACEOF
55709 #define HAVE_MMAP 1
55710 _ACEOF
55712 cat >>confdefs.h <<\_ACEOF
55713 #define HAVE_ACOSF 1
55714 _ACEOF
55716 cat >>confdefs.h <<\_ACEOF
55717 #define HAVE_ASINF 1
55718 _ACEOF
55720 cat >>confdefs.h <<\_ACEOF
55721 #define HAVE_ATAN2F 1
55722 _ACEOF
55724 cat >>confdefs.h <<\_ACEOF
55725 #define HAVE_ATANF 1
55726 _ACEOF
55728 cat >>confdefs.h <<\_ACEOF
55729 #define HAVE_CEILF 1
55730 _ACEOF
55732 cat >>confdefs.h <<\_ACEOF
55733 #define HAVE_COPYSIGN 1
55734 _ACEOF
55736 cat >>confdefs.h <<\_ACEOF
55737 #define HAVE_COPYSIGNF 1
55738 _ACEOF
55740 cat >>confdefs.h <<\_ACEOF
55741 #define HAVE_COSF 1
55742 _ACEOF
55744 cat >>confdefs.h <<\_ACEOF
55745 #define HAVE_COSHF 1
55746 _ACEOF
55748 cat >>confdefs.h <<\_ACEOF
55749 #define HAVE_EXPF 1
55750 _ACEOF
55752 cat >>confdefs.h <<\_ACEOF
55753 #define HAVE_FABSF 1
55754 _ACEOF
55756 cat >>confdefs.h <<\_ACEOF
55757 #define HAVE_FLOORF 1
55758 _ACEOF
55760 cat >>confdefs.h <<\_ACEOF
55761 #define HAVE_FMODF 1
55762 _ACEOF
55764 cat >>confdefs.h <<\_ACEOF
55765 #define HAVE_FREXPF 1
55766 _ACEOF
55768 cat >>confdefs.h <<\_ACEOF
55769 #define HAVE_LDEXPF 1
55770 _ACEOF
55772 cat >>confdefs.h <<\_ACEOF
55773 #define HAVE_LOG10F 1
55774 _ACEOF
55776 cat >>confdefs.h <<\_ACEOF
55777 #define HAVE_LOGF 1
55778 _ACEOF
55780 cat >>confdefs.h <<\_ACEOF
55781 #define HAVE_MODFF 1
55782 _ACEOF
55784 cat >>confdefs.h <<\_ACEOF
55785 #define HAVE_POWF 1
55786 _ACEOF
55788 cat >>confdefs.h <<\_ACEOF
55789 #define HAVE_SINF 1
55790 _ACEOF
55792 cat >>confdefs.h <<\_ACEOF
55793 #define HAVE_SINHF 1
55794 _ACEOF
55796 cat >>confdefs.h <<\_ACEOF
55797 #define HAVE_SQRTF 1
55798 _ACEOF
55800 cat >>confdefs.h <<\_ACEOF
55801 #define HAVE_TANF 1
55802 _ACEOF
55804 cat >>confdefs.h <<\_ACEOF
55805 #define HAVE_TANHF 1
55806 _ACEOF
55808 if test x"long_double_math_on_this_cpu" = x"yes"; then
55809 cat >>confdefs.h <<\_ACEOF
55810 #define HAVE_FINITEL 1
55811 _ACEOF
55813 cat >>confdefs.h <<\_ACEOF
55814 #define HAVE_ISINFL 1
55815 _ACEOF
55817 cat >>confdefs.h <<\_ACEOF
55818 #define HAVE_ISNANL 1
55819 _ACEOF
55823 *-hpux*)
55836 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55837 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55838 fp.h locale.h float.h inttypes.h
55840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55842 echo "$as_me:$LINENO: checking for $ac_header" >&5
55843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55845 echo $ECHO_N "(cached) $ECHO_C" >&6
55847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55849 else
55850 # Is the header compilable?
55851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55853 cat >conftest.$ac_ext <<_ACEOF
55854 /* confdefs.h. */
55855 _ACEOF
55856 cat confdefs.h >>conftest.$ac_ext
55857 cat >>conftest.$ac_ext <<_ACEOF
55858 /* end confdefs.h. */
55859 $ac_includes_default
55860 #include <$ac_header>
55861 _ACEOF
55862 rm -f conftest.$ac_objext
55863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55864 (eval $ac_compile) 2>conftest.er1
55865 ac_status=$?
55866 grep -v '^ *+' conftest.er1 >conftest.err
55867 rm -f conftest.er1
55868 cat conftest.err >&5
55869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55870 (exit $ac_status); } &&
55871 { ac_try='test -z "$ac_c_werror_flag"
55872 || test ! -s conftest.err'
55873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55874 (eval $ac_try) 2>&5
55875 ac_status=$?
55876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55877 (exit $ac_status); }; } &&
55878 { ac_try='test -s conftest.$ac_objext'
55879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55880 (eval $ac_try) 2>&5
55881 ac_status=$?
55882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55883 (exit $ac_status); }; }; then
55884 ac_header_compiler=yes
55885 else
55886 echo "$as_me: failed program was:" >&5
55887 sed 's/^/| /' conftest.$ac_ext >&5
55889 ac_header_compiler=no
55891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55893 echo "${ECHO_T}$ac_header_compiler" >&6
55895 # Is the header present?
55896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55898 cat >conftest.$ac_ext <<_ACEOF
55899 /* confdefs.h. */
55900 _ACEOF
55901 cat confdefs.h >>conftest.$ac_ext
55902 cat >>conftest.$ac_ext <<_ACEOF
55903 /* end confdefs.h. */
55904 #include <$ac_header>
55905 _ACEOF
55906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55908 ac_status=$?
55909 grep -v '^ *+' conftest.er1 >conftest.err
55910 rm -f conftest.er1
55911 cat conftest.err >&5
55912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55913 (exit $ac_status); } >/dev/null; then
55914 if test -s conftest.err; then
55915 ac_cpp_err=$ac_c_preproc_warn_flag
55916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55917 else
55918 ac_cpp_err=
55920 else
55921 ac_cpp_err=yes
55923 if test -z "$ac_cpp_err"; then
55924 ac_header_preproc=yes
55925 else
55926 echo "$as_me: failed program was:" >&5
55927 sed 's/^/| /' conftest.$ac_ext >&5
55929 ac_header_preproc=no
55931 rm -f conftest.err conftest.$ac_ext
55932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55933 echo "${ECHO_T}$ac_header_preproc" >&6
55935 # So? What about this header?
55936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55937 yes:no: )
55938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55942 ac_header_preproc=yes
55944 no:yes:* )
55945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55958 cat <<\_ASBOX
55959 ## ----------------------------------------- ##
55960 ## Report this to the package-unused lists. ##
55961 ## ----------------------------------------- ##
55962 _ASBOX
55964 sed "s/^/$as_me: WARNING: /" >&2
55966 esac
55967 echo "$as_me:$LINENO: checking for $ac_header" >&5
55968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55970 echo $ECHO_N "(cached) $ECHO_C" >&6
55971 else
55972 eval "$as_ac_Header=\$ac_header_preproc"
55974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55979 cat >>confdefs.h <<_ACEOF
55980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55981 _ACEOF
55985 done
55987 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55990 # If we're not using GNU ld, then there's no point in even trying these
55991 # tests. Check for that first. We should have already tested for gld
55992 # by now (in libtool), but require it now just to be safe...
55993 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55994 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55998 # The name set by libtool depends on the version of libtool. Shame on us
55999 # for depending on an impl detail, but c'est la vie. Older versions used
56000 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56001 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56002 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
56003 # set (hence we're using an older libtool), then set it.
56004 if test x${with_gnu_ld+set} != xset; then
56005 if test x${ac_cv_prog_gnu_ld+set} != xset; then
56006 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56007 with_gnu_ld=no
56008 else
56009 with_gnu_ld=$ac_cv_prog_gnu_ld
56013 # Start by getting the version number. I think the libtool test already
56014 # does some of this, but throws away the result.
56016 ldver=`$LD --version 2>/dev/null | head -1 | \
56017 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56019 glibcxx_gnu_ld_version=`echo $ldver | \
56020 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56022 # Set --gc-sections.
56023 if test "$with_gnu_ld" = "notbroken"; then
56024 # GNU ld it is! Joy and bunny rabbits!
56026 # All these tests are for C++; save the language and the compiler flags.
56027 # Need to do this so that g++ won't try to link in libstdc++
56028 ac_test_CFLAGS="${CFLAGS+set}"
56029 ac_save_CFLAGS="$CFLAGS"
56030 CFLAGS='-x c++ -Wl,--gc-sections'
56032 # Check for -Wl,--gc-sections
56033 # XXX This test is broken at the moment, as symbols required for linking
56034 # are now in libsupc++ (not built yet). In addition, this test has
56035 # cored on solaris in the past. In addition, --gc-sections doesn't
56036 # really work at the moment (keeps on discarding used sections, first
56037 # .eh_frame and now some of the glibc sections for iconv).
56038 # Bzzzzt. Thanks for playing, maybe next time.
56039 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56040 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56041 if test "$cross_compiling" = yes; then
56042 ac_sectionLDflags=yes
56043 else
56044 cat >conftest.$ac_ext <<_ACEOF
56045 /* confdefs.h. */
56046 _ACEOF
56047 cat confdefs.h >>conftest.$ac_ext
56048 cat >>conftest.$ac_ext <<_ACEOF
56049 /* end confdefs.h. */
56051 int main(void)
56053 try { throw 1; }
56054 catch (...) { };
56055 return 0;
56058 _ACEOF
56059 rm -f conftest$ac_exeext
56060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56061 (eval $ac_link) 2>&5
56062 ac_status=$?
56063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56066 (eval $ac_try) 2>&5
56067 ac_status=$?
56068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56069 (exit $ac_status); }; }; then
56070 ac_sectionLDflags=yes
56071 else
56072 echo "$as_me: program exited with status $ac_status" >&5
56073 echo "$as_me: failed program was:" >&5
56074 sed 's/^/| /' conftest.$ac_ext >&5
56076 ( exit $ac_status )
56077 ac_sectionLDflags=no
56079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56081 if test "$ac_test_CFLAGS" = set; then
56082 CFLAGS="$ac_save_CFLAGS"
56083 else
56084 # this is the suspicious part
56085 CFLAGS=''
56087 if test "$ac_sectionLDflags" = "yes"; then
56088 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56090 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56091 echo "${ECHO_T}$ac_sectionLDflags" >&6
56094 # Set linker optimization flags.
56095 if test x"$with_gnu_ld" = x"yes"; then
56096 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56104 echo "$as_me:$LINENO: checking for main in -lm" >&5
56105 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56106 if test "${ac_cv_lib_m_main+set}" = set; then
56107 echo $ECHO_N "(cached) $ECHO_C" >&6
56108 else
56109 ac_check_lib_save_LIBS=$LIBS
56110 LIBS="-lm $LIBS"
56111 if test x$gcc_no_link = xyes; then
56112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56114 { (exit 1); exit 1; }; }
56116 cat >conftest.$ac_ext <<_ACEOF
56117 /* confdefs.h. */
56118 _ACEOF
56119 cat confdefs.h >>conftest.$ac_ext
56120 cat >>conftest.$ac_ext <<_ACEOF
56121 /* end confdefs.h. */
56125 main ()
56127 main ();
56129 return 0;
56131 _ACEOF
56132 rm -f conftest.$ac_objext conftest$ac_exeext
56133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56134 (eval $ac_link) 2>conftest.er1
56135 ac_status=$?
56136 grep -v '^ *+' conftest.er1 >conftest.err
56137 rm -f conftest.er1
56138 cat conftest.err >&5
56139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56140 (exit $ac_status); } &&
56141 { ac_try='test -z "$ac_c_werror_flag"
56142 || test ! -s conftest.err'
56143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56144 (eval $ac_try) 2>&5
56145 ac_status=$?
56146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56147 (exit $ac_status); }; } &&
56148 { ac_try='test -s conftest$ac_exeext'
56149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56150 (eval $ac_try) 2>&5
56151 ac_status=$?
56152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56153 (exit $ac_status); }; }; then
56154 ac_cv_lib_m_main=yes
56155 else
56156 echo "$as_me: failed program was:" >&5
56157 sed 's/^/| /' conftest.$ac_ext >&5
56159 ac_cv_lib_m_main=no
56161 rm -f conftest.err conftest.$ac_objext \
56162 conftest$ac_exeext conftest.$ac_ext
56163 LIBS=$ac_check_lib_save_LIBS
56165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56166 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56167 if test $ac_cv_lib_m_main = yes; then
56168 cat >>confdefs.h <<_ACEOF
56169 #define HAVE_LIBM 1
56170 _ACEOF
56172 LIBS="-lm $LIBS"
56177 for ac_func in copysignf
56179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56180 echo "$as_me:$LINENO: checking for $ac_func" >&5
56181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56182 if eval "test \"\${$as_ac_var+set}\" = set"; then
56183 echo $ECHO_N "(cached) $ECHO_C" >&6
56184 else
56185 if test x$gcc_no_link = xyes; then
56186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56188 { (exit 1); exit 1; }; }
56190 cat >conftest.$ac_ext <<_ACEOF
56191 /* confdefs.h. */
56192 _ACEOF
56193 cat confdefs.h >>conftest.$ac_ext
56194 cat >>conftest.$ac_ext <<_ACEOF
56195 /* end confdefs.h. */
56196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56198 #define $ac_func innocuous_$ac_func
56200 /* System header to define __stub macros and hopefully few prototypes,
56201 which can conflict with char $ac_func (); below.
56202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56203 <limits.h> exists even on freestanding compilers. */
56205 #ifdef __STDC__
56206 # include <limits.h>
56207 #else
56208 # include <assert.h>
56209 #endif
56211 #undef $ac_func
56213 /* Override any gcc2 internal prototype to avoid an error. */
56214 #ifdef __cplusplus
56215 extern "C"
56217 #endif
56218 /* We use char because int might match the return type of a gcc2
56219 builtin and then its argument prototype would still apply. */
56220 char $ac_func ();
56221 /* The GNU C library defines this for functions which it implements
56222 to always fail with ENOSYS. Some functions are actually named
56223 something starting with __ and the normal name is an alias. */
56224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56225 choke me
56226 #else
56227 char (*f) () = $ac_func;
56228 #endif
56229 #ifdef __cplusplus
56231 #endif
56234 main ()
56236 return f != $ac_func;
56238 return 0;
56240 _ACEOF
56241 rm -f conftest.$ac_objext conftest$ac_exeext
56242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56243 (eval $ac_link) 2>conftest.er1
56244 ac_status=$?
56245 grep -v '^ *+' conftest.er1 >conftest.err
56246 rm -f conftest.er1
56247 cat conftest.err >&5
56248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56249 (exit $ac_status); } &&
56250 { ac_try='test -z "$ac_c_werror_flag"
56251 || test ! -s conftest.err'
56252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56253 (eval $ac_try) 2>&5
56254 ac_status=$?
56255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56256 (exit $ac_status); }; } &&
56257 { ac_try='test -s conftest$ac_exeext'
56258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56259 (eval $ac_try) 2>&5
56260 ac_status=$?
56261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56262 (exit $ac_status); }; }; then
56263 eval "$as_ac_var=yes"
56264 else
56265 echo "$as_me: failed program was:" >&5
56266 sed 's/^/| /' conftest.$ac_ext >&5
56268 eval "$as_ac_var=no"
56270 rm -f conftest.err conftest.$ac_objext \
56271 conftest$ac_exeext conftest.$ac_ext
56273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56275 if test `eval echo '${'$as_ac_var'}'` = yes; then
56276 cat >>confdefs.h <<_ACEOF
56277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56278 _ACEOF
56280 else
56281 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56283 done
56287 for ac_func in __signbit
56289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56290 echo "$as_me:$LINENO: checking for $ac_func" >&5
56291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56292 if eval "test \"\${$as_ac_var+set}\" = set"; then
56293 echo $ECHO_N "(cached) $ECHO_C" >&6
56294 else
56295 if test x$gcc_no_link = xyes; then
56296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56298 { (exit 1); exit 1; }; }
56300 cat >conftest.$ac_ext <<_ACEOF
56301 /* confdefs.h. */
56302 _ACEOF
56303 cat confdefs.h >>conftest.$ac_ext
56304 cat >>conftest.$ac_ext <<_ACEOF
56305 /* end confdefs.h. */
56306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56308 #define $ac_func innocuous_$ac_func
56310 /* System header to define __stub macros and hopefully few prototypes,
56311 which can conflict with char $ac_func (); below.
56312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56313 <limits.h> exists even on freestanding compilers. */
56315 #ifdef __STDC__
56316 # include <limits.h>
56317 #else
56318 # include <assert.h>
56319 #endif
56321 #undef $ac_func
56323 /* Override any gcc2 internal prototype to avoid an error. */
56324 #ifdef __cplusplus
56325 extern "C"
56327 #endif
56328 /* We use char because int might match the return type of a gcc2
56329 builtin and then its argument prototype would still apply. */
56330 char $ac_func ();
56331 /* The GNU C library defines this for functions which it implements
56332 to always fail with ENOSYS. Some functions are actually named
56333 something starting with __ and the normal name is an alias. */
56334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56335 choke me
56336 #else
56337 char (*f) () = $ac_func;
56338 #endif
56339 #ifdef __cplusplus
56341 #endif
56344 main ()
56346 return f != $ac_func;
56348 return 0;
56350 _ACEOF
56351 rm -f conftest.$ac_objext conftest$ac_exeext
56352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56353 (eval $ac_link) 2>conftest.er1
56354 ac_status=$?
56355 grep -v '^ *+' conftest.er1 >conftest.err
56356 rm -f conftest.er1
56357 cat conftest.err >&5
56358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56359 (exit $ac_status); } &&
56360 { ac_try='test -z "$ac_c_werror_flag"
56361 || test ! -s conftest.err'
56362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56363 (eval $ac_try) 2>&5
56364 ac_status=$?
56365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56366 (exit $ac_status); }; } &&
56367 { ac_try='test -s conftest$ac_exeext'
56368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56369 (eval $ac_try) 2>&5
56370 ac_status=$?
56371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56372 (exit $ac_status); }; }; then
56373 eval "$as_ac_var=yes"
56374 else
56375 echo "$as_me: failed program was:" >&5
56376 sed 's/^/| /' conftest.$ac_ext >&5
56378 eval "$as_ac_var=no"
56380 rm -f conftest.err conftest.$ac_objext \
56381 conftest$ac_exeext conftest.$ac_ext
56383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56385 if test `eval echo '${'$as_ac_var'}'` = yes; then
56386 cat >>confdefs.h <<_ACEOF
56387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56388 _ACEOF
56390 else
56391 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56393 done
56396 for ac_func in __signbitf
56398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56399 echo "$as_me:$LINENO: checking for $ac_func" >&5
56400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56401 if eval "test \"\${$as_ac_var+set}\" = set"; then
56402 echo $ECHO_N "(cached) $ECHO_C" >&6
56403 else
56404 if test x$gcc_no_link = xyes; then
56405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56407 { (exit 1); exit 1; }; }
56409 cat >conftest.$ac_ext <<_ACEOF
56410 /* confdefs.h. */
56411 _ACEOF
56412 cat confdefs.h >>conftest.$ac_ext
56413 cat >>conftest.$ac_ext <<_ACEOF
56414 /* end confdefs.h. */
56415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56417 #define $ac_func innocuous_$ac_func
56419 /* System header to define __stub macros and hopefully few prototypes,
56420 which can conflict with char $ac_func (); below.
56421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56422 <limits.h> exists even on freestanding compilers. */
56424 #ifdef __STDC__
56425 # include <limits.h>
56426 #else
56427 # include <assert.h>
56428 #endif
56430 #undef $ac_func
56432 /* Override any gcc2 internal prototype to avoid an error. */
56433 #ifdef __cplusplus
56434 extern "C"
56436 #endif
56437 /* We use char because int might match the return type of a gcc2
56438 builtin and then its argument prototype would still apply. */
56439 char $ac_func ();
56440 /* The GNU C library defines this for functions which it implements
56441 to always fail with ENOSYS. Some functions are actually named
56442 something starting with __ and the normal name is an alias. */
56443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56444 choke me
56445 #else
56446 char (*f) () = $ac_func;
56447 #endif
56448 #ifdef __cplusplus
56450 #endif
56453 main ()
56455 return f != $ac_func;
56457 return 0;
56459 _ACEOF
56460 rm -f conftest.$ac_objext conftest$ac_exeext
56461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56462 (eval $ac_link) 2>conftest.er1
56463 ac_status=$?
56464 grep -v '^ *+' conftest.er1 >conftest.err
56465 rm -f conftest.er1
56466 cat conftest.err >&5
56467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56468 (exit $ac_status); } &&
56469 { ac_try='test -z "$ac_c_werror_flag"
56470 || test ! -s conftest.err'
56471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56472 (eval $ac_try) 2>&5
56473 ac_status=$?
56474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56475 (exit $ac_status); }; } &&
56476 { ac_try='test -s conftest$ac_exeext'
56477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56478 (eval $ac_try) 2>&5
56479 ac_status=$?
56480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56481 (exit $ac_status); }; }; then
56482 eval "$as_ac_var=yes"
56483 else
56484 echo "$as_me: failed program was:" >&5
56485 sed 's/^/| /' conftest.$ac_ext >&5
56487 eval "$as_ac_var=no"
56489 rm -f conftest.err conftest.$ac_objext \
56490 conftest$ac_exeext conftest.$ac_ext
56492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56494 if test `eval echo '${'$as_ac_var'}'` = yes; then
56495 cat >>confdefs.h <<_ACEOF
56496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56497 _ACEOF
56499 else
56500 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56502 done
56505 if test x$ac_cv_func_copysignl = x"yes"; then
56507 for ac_func in __signbitl
56509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56510 echo "$as_me:$LINENO: checking for $ac_func" >&5
56511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56512 if eval "test \"\${$as_ac_var+set}\" = set"; then
56513 echo $ECHO_N "(cached) $ECHO_C" >&6
56514 else
56515 if test x$gcc_no_link = xyes; then
56516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56518 { (exit 1); exit 1; }; }
56520 cat >conftest.$ac_ext <<_ACEOF
56521 /* confdefs.h. */
56522 _ACEOF
56523 cat confdefs.h >>conftest.$ac_ext
56524 cat >>conftest.$ac_ext <<_ACEOF
56525 /* end confdefs.h. */
56526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56528 #define $ac_func innocuous_$ac_func
56530 /* System header to define __stub macros and hopefully few prototypes,
56531 which can conflict with char $ac_func (); below.
56532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56533 <limits.h> exists even on freestanding compilers. */
56535 #ifdef __STDC__
56536 # include <limits.h>
56537 #else
56538 # include <assert.h>
56539 #endif
56541 #undef $ac_func
56543 /* Override any gcc2 internal prototype to avoid an error. */
56544 #ifdef __cplusplus
56545 extern "C"
56547 #endif
56548 /* We use char because int might match the return type of a gcc2
56549 builtin and then its argument prototype would still apply. */
56550 char $ac_func ();
56551 /* The GNU C library defines this for functions which it implements
56552 to always fail with ENOSYS. Some functions are actually named
56553 something starting with __ and the normal name is an alias. */
56554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56555 choke me
56556 #else
56557 char (*f) () = $ac_func;
56558 #endif
56559 #ifdef __cplusplus
56561 #endif
56564 main ()
56566 return f != $ac_func;
56568 return 0;
56570 _ACEOF
56571 rm -f conftest.$ac_objext conftest$ac_exeext
56572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56573 (eval $ac_link) 2>conftest.er1
56574 ac_status=$?
56575 grep -v '^ *+' conftest.er1 >conftest.err
56576 rm -f conftest.er1
56577 cat conftest.err >&5
56578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56579 (exit $ac_status); } &&
56580 { ac_try='test -z "$ac_c_werror_flag"
56581 || test ! -s conftest.err'
56582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56583 (eval $ac_try) 2>&5
56584 ac_status=$?
56585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56586 (exit $ac_status); }; } &&
56587 { ac_try='test -s conftest$ac_exeext'
56588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56589 (eval $ac_try) 2>&5
56590 ac_status=$?
56591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56592 (exit $ac_status); }; }; then
56593 eval "$as_ac_var=yes"
56594 else
56595 echo "$as_me: failed program was:" >&5
56596 sed 's/^/| /' conftest.$ac_ext >&5
56598 eval "$as_ac_var=no"
56600 rm -f conftest.err conftest.$ac_objext \
56601 conftest$ac_exeext conftest.$ac_ext
56603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56605 if test `eval echo '${'$as_ac_var'}'` = yes; then
56606 cat >>confdefs.h <<_ACEOF
56607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56608 _ACEOF
56610 else
56611 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56613 done
56617 # XXX Review this. Nothing uses it.
56618 if test -n "$LIBMATHOBJS"; then
56619 need_libmath=yes
56624 # Test wchar.h for mbstate_t, which is needed for char_traits and
56625 # others even if wchar_t support is not on.
56626 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56627 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56628 cat >conftest.$ac_ext <<_ACEOF
56629 /* confdefs.h. */
56630 _ACEOF
56631 cat confdefs.h >>conftest.$ac_ext
56632 cat >>conftest.$ac_ext <<_ACEOF
56633 /* end confdefs.h. */
56634 #include <wchar.h>
56636 main ()
56638 mbstate_t teststate;
56640 return 0;
56642 _ACEOF
56643 rm -f conftest.$ac_objext
56644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56645 (eval $ac_compile) 2>conftest.er1
56646 ac_status=$?
56647 grep -v '^ *+' conftest.er1 >conftest.err
56648 rm -f conftest.er1
56649 cat conftest.err >&5
56650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56651 (exit $ac_status); } &&
56652 { ac_try='test -z "$ac_c_werror_flag"
56653 || test ! -s conftest.err'
56654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56655 (eval $ac_try) 2>&5
56656 ac_status=$?
56657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56658 (exit $ac_status); }; } &&
56659 { ac_try='test -s conftest.$ac_objext'
56660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56661 (eval $ac_try) 2>&5
56662 ac_status=$?
56663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56664 (exit $ac_status); }; }; then
56665 have_mbstate_t=yes
56666 else
56667 echo "$as_me: failed program was:" >&5
56668 sed 's/^/| /' conftest.$ac_ext >&5
56670 have_mbstate_t=no
56672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56673 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56674 echo "${ECHO_T}$have_mbstate_t" >&6
56675 if test x"$have_mbstate_t" = xyes; then
56676 cat >>confdefs.h <<\_ACEOF
56677 #define HAVE_MBSTATE_T 1
56678 _ACEOF
56682 # Sanity check for existence of ISO C99 headers for extended encoding.
56684 for ac_header in wchar.h
56686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56688 echo "$as_me:$LINENO: checking for $ac_header" >&5
56689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56691 echo $ECHO_N "(cached) $ECHO_C" >&6
56693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56695 else
56696 # Is the header compilable?
56697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56699 cat >conftest.$ac_ext <<_ACEOF
56700 /* confdefs.h. */
56701 _ACEOF
56702 cat confdefs.h >>conftest.$ac_ext
56703 cat >>conftest.$ac_ext <<_ACEOF
56704 /* end confdefs.h. */
56705 $ac_includes_default
56706 #include <$ac_header>
56707 _ACEOF
56708 rm -f conftest.$ac_objext
56709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56710 (eval $ac_compile) 2>conftest.er1
56711 ac_status=$?
56712 grep -v '^ *+' conftest.er1 >conftest.err
56713 rm -f conftest.er1
56714 cat conftest.err >&5
56715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56716 (exit $ac_status); } &&
56717 { ac_try='test -z "$ac_c_werror_flag"
56718 || test ! -s conftest.err'
56719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56720 (eval $ac_try) 2>&5
56721 ac_status=$?
56722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56723 (exit $ac_status); }; } &&
56724 { ac_try='test -s conftest.$ac_objext'
56725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56726 (eval $ac_try) 2>&5
56727 ac_status=$?
56728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56729 (exit $ac_status); }; }; then
56730 ac_header_compiler=yes
56731 else
56732 echo "$as_me: failed program was:" >&5
56733 sed 's/^/| /' conftest.$ac_ext >&5
56735 ac_header_compiler=no
56737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56739 echo "${ECHO_T}$ac_header_compiler" >&6
56741 # Is the header present?
56742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56744 cat >conftest.$ac_ext <<_ACEOF
56745 /* confdefs.h. */
56746 _ACEOF
56747 cat confdefs.h >>conftest.$ac_ext
56748 cat >>conftest.$ac_ext <<_ACEOF
56749 /* end confdefs.h. */
56750 #include <$ac_header>
56751 _ACEOF
56752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56754 ac_status=$?
56755 grep -v '^ *+' conftest.er1 >conftest.err
56756 rm -f conftest.er1
56757 cat conftest.err >&5
56758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56759 (exit $ac_status); } >/dev/null; then
56760 if test -s conftest.err; then
56761 ac_cpp_err=$ac_c_preproc_warn_flag
56762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56763 else
56764 ac_cpp_err=
56766 else
56767 ac_cpp_err=yes
56769 if test -z "$ac_cpp_err"; then
56770 ac_header_preproc=yes
56771 else
56772 echo "$as_me: failed program was:" >&5
56773 sed 's/^/| /' conftest.$ac_ext >&5
56775 ac_header_preproc=no
56777 rm -f conftest.err conftest.$ac_ext
56778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56779 echo "${ECHO_T}$ac_header_preproc" >&6
56781 # So? What about this header?
56782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56783 yes:no: )
56784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56788 ac_header_preproc=yes
56790 no:yes:* )
56791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56804 cat <<\_ASBOX
56805 ## ----------------------------------------- ##
56806 ## Report this to the package-unused lists. ##
56807 ## ----------------------------------------- ##
56808 _ASBOX
56810 sed "s/^/$as_me: WARNING: /" >&2
56812 esac
56813 echo "$as_me:$LINENO: checking for $ac_header" >&5
56814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56816 echo $ECHO_N "(cached) $ECHO_C" >&6
56817 else
56818 eval "$as_ac_Header=\$ac_header_preproc"
56820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56825 cat >>confdefs.h <<_ACEOF
56826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56827 _ACEOF
56828 ac_has_wchar_h=yes
56829 else
56830 ac_has_wchar_h=no
56833 done
56836 for ac_header in wctype.h
56838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56840 echo "$as_me:$LINENO: checking for $ac_header" >&5
56841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56843 echo $ECHO_N "(cached) $ECHO_C" >&6
56845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56847 else
56848 # Is the header compilable?
56849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56851 cat >conftest.$ac_ext <<_ACEOF
56852 /* confdefs.h. */
56853 _ACEOF
56854 cat confdefs.h >>conftest.$ac_ext
56855 cat >>conftest.$ac_ext <<_ACEOF
56856 /* end confdefs.h. */
56857 $ac_includes_default
56858 #include <$ac_header>
56859 _ACEOF
56860 rm -f conftest.$ac_objext
56861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56862 (eval $ac_compile) 2>conftest.er1
56863 ac_status=$?
56864 grep -v '^ *+' conftest.er1 >conftest.err
56865 rm -f conftest.er1
56866 cat conftest.err >&5
56867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56868 (exit $ac_status); } &&
56869 { ac_try='test -z "$ac_c_werror_flag"
56870 || test ! -s conftest.err'
56871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56872 (eval $ac_try) 2>&5
56873 ac_status=$?
56874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56875 (exit $ac_status); }; } &&
56876 { ac_try='test -s conftest.$ac_objext'
56877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56878 (eval $ac_try) 2>&5
56879 ac_status=$?
56880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56881 (exit $ac_status); }; }; then
56882 ac_header_compiler=yes
56883 else
56884 echo "$as_me: failed program was:" >&5
56885 sed 's/^/| /' conftest.$ac_ext >&5
56887 ac_header_compiler=no
56889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56891 echo "${ECHO_T}$ac_header_compiler" >&6
56893 # Is the header present?
56894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56896 cat >conftest.$ac_ext <<_ACEOF
56897 /* confdefs.h. */
56898 _ACEOF
56899 cat confdefs.h >>conftest.$ac_ext
56900 cat >>conftest.$ac_ext <<_ACEOF
56901 /* end confdefs.h. */
56902 #include <$ac_header>
56903 _ACEOF
56904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56906 ac_status=$?
56907 grep -v '^ *+' conftest.er1 >conftest.err
56908 rm -f conftest.er1
56909 cat conftest.err >&5
56910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56911 (exit $ac_status); } >/dev/null; then
56912 if test -s conftest.err; then
56913 ac_cpp_err=$ac_c_preproc_warn_flag
56914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56915 else
56916 ac_cpp_err=
56918 else
56919 ac_cpp_err=yes
56921 if test -z "$ac_cpp_err"; then
56922 ac_header_preproc=yes
56923 else
56924 echo "$as_me: failed program was:" >&5
56925 sed 's/^/| /' conftest.$ac_ext >&5
56927 ac_header_preproc=no
56929 rm -f conftest.err conftest.$ac_ext
56930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56931 echo "${ECHO_T}$ac_header_preproc" >&6
56933 # So? What about this header?
56934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56935 yes:no: )
56936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56940 ac_header_preproc=yes
56942 no:yes:* )
56943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56956 cat <<\_ASBOX
56957 ## ----------------------------------------- ##
56958 ## Report this to the package-unused lists. ##
56959 ## ----------------------------------------- ##
56960 _ASBOX
56962 sed "s/^/$as_me: WARNING: /" >&2
56964 esac
56965 echo "$as_me:$LINENO: checking for $ac_header" >&5
56966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56968 echo $ECHO_N "(cached) $ECHO_C" >&6
56969 else
56970 eval "$as_ac_Header=\$ac_header_preproc"
56972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56977 cat >>confdefs.h <<_ACEOF
56978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56979 _ACEOF
56980 ac_has_wctype_h=yes
56981 else
56982 ac_has_wctype_h=no
56985 done
56988 # Only continue checking if the ISO C99 headers exist and support is on.
56989 if test x"$ac_has_wchar_h" = xyes &&
56990 test x"$ac_has_wctype_h" = xyes &&
56991 test x"$enable_c_mbchar" != xno; then
56993 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56994 # numeric_limits can instantiate type_traits<wchar_t>
56995 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56996 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56997 cat >conftest.$ac_ext <<_ACEOF
56998 /* confdefs.h. */
56999 _ACEOF
57000 cat confdefs.h >>conftest.$ac_ext
57001 cat >>conftest.$ac_ext <<_ACEOF
57002 /* end confdefs.h. */
57003 #include <wchar.h>
57005 main ()
57007 int i = WCHAR_MIN; int j = WCHAR_MAX;
57009 return 0;
57011 _ACEOF
57012 rm -f conftest.$ac_objext
57013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57014 (eval $ac_compile) 2>conftest.er1
57015 ac_status=$?
57016 grep -v '^ *+' conftest.er1 >conftest.err
57017 rm -f conftest.er1
57018 cat conftest.err >&5
57019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57020 (exit $ac_status); } &&
57021 { ac_try='test -z "$ac_c_werror_flag"
57022 || test ! -s conftest.err'
57023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57024 (eval $ac_try) 2>&5
57025 ac_status=$?
57026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57027 (exit $ac_status); }; } &&
57028 { ac_try='test -s conftest.$ac_objext'
57029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57030 (eval $ac_try) 2>&5
57031 ac_status=$?
57032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57033 (exit $ac_status); }; }; then
57034 has_wchar_minmax=yes
57035 else
57036 echo "$as_me: failed program was:" >&5
57037 sed 's/^/| /' conftest.$ac_ext >&5
57039 has_wchar_minmax=no
57041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57042 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57043 echo "${ECHO_T}$has_wchar_minmax" >&6
57045 # Test wchar.h for WEOF, which is what we use to determine whether
57046 # to specialize for char_traits<wchar_t> or not.
57047 echo "$as_me:$LINENO: checking for WEOF" >&5
57048 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57049 cat >conftest.$ac_ext <<_ACEOF
57050 /* confdefs.h. */
57051 _ACEOF
57052 cat confdefs.h >>conftest.$ac_ext
57053 cat >>conftest.$ac_ext <<_ACEOF
57054 /* end confdefs.h. */
57056 #include <wchar.h>
57057 #include <stddef.h>
57059 main ()
57061 wint_t i = WEOF;
57063 return 0;
57065 _ACEOF
57066 rm -f conftest.$ac_objext
57067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57068 (eval $ac_compile) 2>conftest.er1
57069 ac_status=$?
57070 grep -v '^ *+' conftest.er1 >conftest.err
57071 rm -f conftest.er1
57072 cat conftest.err >&5
57073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57074 (exit $ac_status); } &&
57075 { ac_try='test -z "$ac_c_werror_flag"
57076 || test ! -s conftest.err'
57077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57078 (eval $ac_try) 2>&5
57079 ac_status=$?
57080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57081 (exit $ac_status); }; } &&
57082 { ac_try='test -s conftest.$ac_objext'
57083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57084 (eval $ac_try) 2>&5
57085 ac_status=$?
57086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57087 (exit $ac_status); }; }; then
57088 has_weof=yes
57089 else
57090 echo "$as_me: failed program was:" >&5
57091 sed 's/^/| /' conftest.$ac_ext >&5
57093 has_weof=no
57095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57096 echo "$as_me:$LINENO: result: $has_weof" >&5
57097 echo "${ECHO_T}$has_weof" >&6
57099 # Tests for wide character functions used in char_traits<wchar_t>.
57100 ac_wfuncs=yes
57107 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57110 echo "$as_me:$LINENO: checking for $ac_func" >&5
57111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57112 if eval "test \"\${$as_ac_var+set}\" = set"; then
57113 echo $ECHO_N "(cached) $ECHO_C" >&6
57114 else
57115 if test x$gcc_no_link = xyes; then
57116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57118 { (exit 1); exit 1; }; }
57120 cat >conftest.$ac_ext <<_ACEOF
57121 /* confdefs.h. */
57122 _ACEOF
57123 cat confdefs.h >>conftest.$ac_ext
57124 cat >>conftest.$ac_ext <<_ACEOF
57125 /* end confdefs.h. */
57126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57128 #define $ac_func innocuous_$ac_func
57130 /* System header to define __stub macros and hopefully few prototypes,
57131 which can conflict with char $ac_func (); below.
57132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57133 <limits.h> exists even on freestanding compilers. */
57135 #ifdef __STDC__
57136 # include <limits.h>
57137 #else
57138 # include <assert.h>
57139 #endif
57141 #undef $ac_func
57143 /* Override any gcc2 internal prototype to avoid an error. */
57144 #ifdef __cplusplus
57145 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 $ac_func ();
57151 /* The GNU C library defines this for functions which it implements
57152 to always fail with ENOSYS. Some functions are actually named
57153 something starting with __ and the normal name is an alias. */
57154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57155 choke me
57156 #else
57157 char (*f) () = $ac_func;
57158 #endif
57159 #ifdef __cplusplus
57161 #endif
57164 main ()
57166 return f != $ac_func;
57168 return 0;
57170 _ACEOF
57171 rm -f conftest.$ac_objext conftest$ac_exeext
57172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57173 (eval $ac_link) 2>conftest.er1
57174 ac_status=$?
57175 grep -v '^ *+' conftest.er1 >conftest.err
57176 rm -f conftest.er1
57177 cat conftest.err >&5
57178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57179 (exit $ac_status); } &&
57180 { ac_try='test -z "$ac_c_werror_flag"
57181 || test ! -s conftest.err'
57182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57183 (eval $ac_try) 2>&5
57184 ac_status=$?
57185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57186 (exit $ac_status); }; } &&
57187 { ac_try='test -s conftest$ac_exeext'
57188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57189 (eval $ac_try) 2>&5
57190 ac_status=$?
57191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57192 (exit $ac_status); }; }; then
57193 eval "$as_ac_var=yes"
57194 else
57195 echo "$as_me: failed program was:" >&5
57196 sed 's/^/| /' conftest.$ac_ext >&5
57198 eval "$as_ac_var=no"
57200 rm -f conftest.err conftest.$ac_objext \
57201 conftest$ac_exeext conftest.$ac_ext
57203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57205 if test `eval echo '${'$as_ac_var'}'` = yes; then
57206 cat >>confdefs.h <<_ACEOF
57207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57208 _ACEOF
57210 else
57211 ac_wfuncs=no
57213 done
57216 # Checks for names injected into std:: by the c_std headers.
57263 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57264 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57265 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57266 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57267 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57268 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57271 echo "$as_me:$LINENO: checking for $ac_func" >&5
57272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57273 if eval "test \"\${$as_ac_var+set}\" = set"; then
57274 echo $ECHO_N "(cached) $ECHO_C" >&6
57275 else
57276 if test x$gcc_no_link = xyes; then
57277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57279 { (exit 1); exit 1; }; }
57281 cat >conftest.$ac_ext <<_ACEOF
57282 /* confdefs.h. */
57283 _ACEOF
57284 cat confdefs.h >>conftest.$ac_ext
57285 cat >>conftest.$ac_ext <<_ACEOF
57286 /* end confdefs.h. */
57287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57289 #define $ac_func innocuous_$ac_func
57291 /* System header to define __stub macros and hopefully few prototypes,
57292 which can conflict with char $ac_func (); below.
57293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57294 <limits.h> exists even on freestanding compilers. */
57296 #ifdef __STDC__
57297 # include <limits.h>
57298 #else
57299 # include <assert.h>
57300 #endif
57302 #undef $ac_func
57304 /* Override any gcc2 internal prototype to avoid an error. */
57305 #ifdef __cplusplus
57306 extern "C"
57308 #endif
57309 /* We use char because int might match the return type of a gcc2
57310 builtin and then its argument prototype would still apply. */
57311 char $ac_func ();
57312 /* The GNU C library defines this for functions which it implements
57313 to always fail with ENOSYS. Some functions are actually named
57314 something starting with __ and the normal name is an alias. */
57315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57316 choke me
57317 #else
57318 char (*f) () = $ac_func;
57319 #endif
57320 #ifdef __cplusplus
57322 #endif
57325 main ()
57327 return f != $ac_func;
57329 return 0;
57331 _ACEOF
57332 rm -f conftest.$ac_objext conftest$ac_exeext
57333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57334 (eval $ac_link) 2>conftest.er1
57335 ac_status=$?
57336 grep -v '^ *+' conftest.er1 >conftest.err
57337 rm -f conftest.er1
57338 cat conftest.err >&5
57339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57340 (exit $ac_status); } &&
57341 { ac_try='test -z "$ac_c_werror_flag"
57342 || test ! -s conftest.err'
57343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57344 (eval $ac_try) 2>&5
57345 ac_status=$?
57346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57347 (exit $ac_status); }; } &&
57348 { ac_try='test -s conftest$ac_exeext'
57349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57350 (eval $ac_try) 2>&5
57351 ac_status=$?
57352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57353 (exit $ac_status); }; }; then
57354 eval "$as_ac_var=yes"
57355 else
57356 echo "$as_me: failed program was:" >&5
57357 sed 's/^/| /' conftest.$ac_ext >&5
57359 eval "$as_ac_var=no"
57361 rm -f conftest.err conftest.$ac_objext \
57362 conftest$ac_exeext conftest.$ac_ext
57364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57366 if test `eval echo '${'$as_ac_var'}'` = yes; then
57367 cat >>confdefs.h <<_ACEOF
57368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57369 _ACEOF
57371 else
57372 ac_wfuncs=no
57374 done
57377 # Checks for wide character functions that are not required
57378 # for basic wchar_t support. Don't disable support if they are missing.
57379 # Injection of these is wrapped with guard macros.
57385 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57388 echo "$as_me:$LINENO: checking for $ac_func" >&5
57389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57390 if eval "test \"\${$as_ac_var+set}\" = set"; then
57391 echo $ECHO_N "(cached) $ECHO_C" >&6
57392 else
57393 if test x$gcc_no_link = xyes; then
57394 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57396 { (exit 1); exit 1; }; }
57398 cat >conftest.$ac_ext <<_ACEOF
57399 /* confdefs.h. */
57400 _ACEOF
57401 cat confdefs.h >>conftest.$ac_ext
57402 cat >>conftest.$ac_ext <<_ACEOF
57403 /* end confdefs.h. */
57404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57406 #define $ac_func innocuous_$ac_func
57408 /* System header to define __stub macros and hopefully few prototypes,
57409 which can conflict with char $ac_func (); below.
57410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57411 <limits.h> exists even on freestanding compilers. */
57413 #ifdef __STDC__
57414 # include <limits.h>
57415 #else
57416 # include <assert.h>
57417 #endif
57419 #undef $ac_func
57421 /* Override any gcc2 internal prototype to avoid an error. */
57422 #ifdef __cplusplus
57423 extern "C"
57425 #endif
57426 /* We use char because int might match the return type of a gcc2
57427 builtin and then its argument prototype would still apply. */
57428 char $ac_func ();
57429 /* The GNU C library defines this for functions which it implements
57430 to always fail with ENOSYS. Some functions are actually named
57431 something starting with __ and the normal name is an alias. */
57432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57433 choke me
57434 #else
57435 char (*f) () = $ac_func;
57436 #endif
57437 #ifdef __cplusplus
57439 #endif
57442 main ()
57444 return f != $ac_func;
57446 return 0;
57448 _ACEOF
57449 rm -f conftest.$ac_objext conftest$ac_exeext
57450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57451 (eval $ac_link) 2>conftest.er1
57452 ac_status=$?
57453 grep -v '^ *+' conftest.er1 >conftest.err
57454 rm -f conftest.er1
57455 cat conftest.err >&5
57456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57457 (exit $ac_status); } &&
57458 { ac_try='test -z "$ac_c_werror_flag"
57459 || test ! -s conftest.err'
57460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57461 (eval $ac_try) 2>&5
57462 ac_status=$?
57463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57464 (exit $ac_status); }; } &&
57465 { ac_try='test -s conftest$ac_exeext'
57466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57467 (eval $ac_try) 2>&5
57468 ac_status=$?
57469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57470 (exit $ac_status); }; }; then
57471 eval "$as_ac_var=yes"
57472 else
57473 echo "$as_me: failed program was:" >&5
57474 sed 's/^/| /' conftest.$ac_ext >&5
57476 eval "$as_ac_var=no"
57478 rm -f conftest.err conftest.$ac_objext \
57479 conftest$ac_exeext conftest.$ac_ext
57481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57483 if test `eval echo '${'$as_ac_var'}'` = yes; then
57484 cat >>confdefs.h <<_ACEOF
57485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57486 _ACEOF
57489 done
57492 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57493 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57494 if test x"$has_weof" = xyes &&
57495 test x"$has_wchar_minmax" = xyes &&
57496 test x"$ac_wfuncs" = xyes;
57497 then
57498 ac_isoC99_wchar_t=yes
57499 else
57500 ac_isoC99_wchar_t=no
57502 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57503 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57505 # Use iconv for wchar_t to char conversions. As such, check for
57506 # X/Open Portability Guide, version 2 features (XPG2).
57507 if test "${ac_cv_header_iconv_h+set}" = set; then
57508 echo "$as_me:$LINENO: checking for iconv.h" >&5
57509 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57510 if test "${ac_cv_header_iconv_h+set}" = set; then
57511 echo $ECHO_N "(cached) $ECHO_C" >&6
57513 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57514 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57515 else
57516 # Is the header compilable?
57517 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57518 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57519 cat >conftest.$ac_ext <<_ACEOF
57520 /* confdefs.h. */
57521 _ACEOF
57522 cat confdefs.h >>conftest.$ac_ext
57523 cat >>conftest.$ac_ext <<_ACEOF
57524 /* end confdefs.h. */
57525 $ac_includes_default
57526 #include <iconv.h>
57527 _ACEOF
57528 rm -f conftest.$ac_objext
57529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57530 (eval $ac_compile) 2>conftest.er1
57531 ac_status=$?
57532 grep -v '^ *+' conftest.er1 >conftest.err
57533 rm -f conftest.er1
57534 cat conftest.err >&5
57535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57536 (exit $ac_status); } &&
57537 { ac_try='test -z "$ac_c_werror_flag"
57538 || test ! -s conftest.err'
57539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57540 (eval $ac_try) 2>&5
57541 ac_status=$?
57542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57543 (exit $ac_status); }; } &&
57544 { ac_try='test -s conftest.$ac_objext'
57545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57546 (eval $ac_try) 2>&5
57547 ac_status=$?
57548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57549 (exit $ac_status); }; }; then
57550 ac_header_compiler=yes
57551 else
57552 echo "$as_me: failed program was:" >&5
57553 sed 's/^/| /' conftest.$ac_ext >&5
57555 ac_header_compiler=no
57557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57559 echo "${ECHO_T}$ac_header_compiler" >&6
57561 # Is the header present?
57562 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57563 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57564 cat >conftest.$ac_ext <<_ACEOF
57565 /* confdefs.h. */
57566 _ACEOF
57567 cat confdefs.h >>conftest.$ac_ext
57568 cat >>conftest.$ac_ext <<_ACEOF
57569 /* end confdefs.h. */
57570 #include <iconv.h>
57571 _ACEOF
57572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57574 ac_status=$?
57575 grep -v '^ *+' conftest.er1 >conftest.err
57576 rm -f conftest.er1
57577 cat conftest.err >&5
57578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57579 (exit $ac_status); } >/dev/null; then
57580 if test -s conftest.err; then
57581 ac_cpp_err=$ac_c_preproc_warn_flag
57582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57583 else
57584 ac_cpp_err=
57586 else
57587 ac_cpp_err=yes
57589 if test -z "$ac_cpp_err"; then
57590 ac_header_preproc=yes
57591 else
57592 echo "$as_me: failed program was:" >&5
57593 sed 's/^/| /' conftest.$ac_ext >&5
57595 ac_header_preproc=no
57597 rm -f conftest.err conftest.$ac_ext
57598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57599 echo "${ECHO_T}$ac_header_preproc" >&6
57601 # So? What about this header?
57602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57603 yes:no: )
57604 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57605 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57606 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57607 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57608 ac_header_preproc=yes
57610 no:yes:* )
57611 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57612 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57613 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57614 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57615 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57616 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57617 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
57618 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
57619 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57620 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57621 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57622 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57624 cat <<\_ASBOX
57625 ## ----------------------------------------- ##
57626 ## Report this to the package-unused lists. ##
57627 ## ----------------------------------------- ##
57628 _ASBOX
57630 sed "s/^/$as_me: WARNING: /" >&2
57632 esac
57633 echo "$as_me:$LINENO: checking for iconv.h" >&5
57634 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57635 if test "${ac_cv_header_iconv_h+set}" = set; then
57636 echo $ECHO_N "(cached) $ECHO_C" >&6
57637 else
57638 ac_cv_header_iconv_h=$ac_header_preproc
57640 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57641 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57644 if test $ac_cv_header_iconv_h = yes; then
57645 ac_has_iconv_h=yes
57646 else
57647 ac_has_iconv_h=no
57651 if test "${ac_cv_header_langinfo_h+set}" = set; then
57652 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57653 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57654 if test "${ac_cv_header_langinfo_h+set}" = set; then
57655 echo $ECHO_N "(cached) $ECHO_C" >&6
57657 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57658 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57659 else
57660 # Is the header compilable?
57661 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57662 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57663 cat >conftest.$ac_ext <<_ACEOF
57664 /* confdefs.h. */
57665 _ACEOF
57666 cat confdefs.h >>conftest.$ac_ext
57667 cat >>conftest.$ac_ext <<_ACEOF
57668 /* end confdefs.h. */
57669 $ac_includes_default
57670 #include <langinfo.h>
57671 _ACEOF
57672 rm -f conftest.$ac_objext
57673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57674 (eval $ac_compile) 2>conftest.er1
57675 ac_status=$?
57676 grep -v '^ *+' conftest.er1 >conftest.err
57677 rm -f conftest.er1
57678 cat conftest.err >&5
57679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57680 (exit $ac_status); } &&
57681 { ac_try='test -z "$ac_c_werror_flag"
57682 || test ! -s conftest.err'
57683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57684 (eval $ac_try) 2>&5
57685 ac_status=$?
57686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57687 (exit $ac_status); }; } &&
57688 { ac_try='test -s conftest.$ac_objext'
57689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57690 (eval $ac_try) 2>&5
57691 ac_status=$?
57692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57693 (exit $ac_status); }; }; then
57694 ac_header_compiler=yes
57695 else
57696 echo "$as_me: failed program was:" >&5
57697 sed 's/^/| /' conftest.$ac_ext >&5
57699 ac_header_compiler=no
57701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57703 echo "${ECHO_T}$ac_header_compiler" >&6
57705 # Is the header present?
57706 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57707 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57708 cat >conftest.$ac_ext <<_ACEOF
57709 /* confdefs.h. */
57710 _ACEOF
57711 cat confdefs.h >>conftest.$ac_ext
57712 cat >>conftest.$ac_ext <<_ACEOF
57713 /* end confdefs.h. */
57714 #include <langinfo.h>
57715 _ACEOF
57716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57718 ac_status=$?
57719 grep -v '^ *+' conftest.er1 >conftest.err
57720 rm -f conftest.er1
57721 cat conftest.err >&5
57722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57723 (exit $ac_status); } >/dev/null; then
57724 if test -s conftest.err; then
57725 ac_cpp_err=$ac_c_preproc_warn_flag
57726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57727 else
57728 ac_cpp_err=
57730 else
57731 ac_cpp_err=yes
57733 if test -z "$ac_cpp_err"; then
57734 ac_header_preproc=yes
57735 else
57736 echo "$as_me: failed program was:" >&5
57737 sed 's/^/| /' conftest.$ac_ext >&5
57739 ac_header_preproc=no
57741 rm -f conftest.err conftest.$ac_ext
57742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57743 echo "${ECHO_T}$ac_header_preproc" >&6
57745 # So? What about this header?
57746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57747 yes:no: )
57748 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57749 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57750 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57751 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57752 ac_header_preproc=yes
57754 no:yes:* )
57755 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57756 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57757 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57758 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57759 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57760 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57761 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57762 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57763 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57764 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57765 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57766 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57768 cat <<\_ASBOX
57769 ## ----------------------------------------- ##
57770 ## Report this to the package-unused lists. ##
57771 ## ----------------------------------------- ##
57772 _ASBOX
57774 sed "s/^/$as_me: WARNING: /" >&2
57776 esac
57777 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57778 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57779 if test "${ac_cv_header_langinfo_h+set}" = set; then
57780 echo $ECHO_N "(cached) $ECHO_C" >&6
57781 else
57782 ac_cv_header_langinfo_h=$ac_header_preproc
57784 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57785 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57788 if test $ac_cv_header_langinfo_h = yes; then
57789 ac_has_langinfo_h=yes
57790 else
57791 ac_has_langinfo_h=no
57796 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57797 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57798 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57799 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57800 echo $ECHO_N "(cached) $ECHO_C" >&6
57801 else
57802 ac_check_lib_save_LIBS=$LIBS
57803 LIBS="-liconv $LIBS"
57804 if test x$gcc_no_link = xyes; then
57805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57807 { (exit 1); exit 1; }; }
57809 cat >conftest.$ac_ext <<_ACEOF
57810 /* confdefs.h. */
57811 _ACEOF
57812 cat confdefs.h >>conftest.$ac_ext
57813 cat >>conftest.$ac_ext <<_ACEOF
57814 /* end confdefs.h. */
57816 /* Override any gcc2 internal prototype to avoid an error. */
57817 #ifdef __cplusplus
57818 extern "C"
57819 #endif
57820 /* We use char because int might match the return type of a gcc2
57821 builtin and then its argument prototype would still apply. */
57822 char iconv ();
57824 main ()
57826 iconv ();
57828 return 0;
57830 _ACEOF
57831 rm -f conftest.$ac_objext conftest$ac_exeext
57832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57833 (eval $ac_link) 2>conftest.er1
57834 ac_status=$?
57835 grep -v '^ *+' conftest.er1 >conftest.err
57836 rm -f conftest.er1
57837 cat conftest.err >&5
57838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57839 (exit $ac_status); } &&
57840 { ac_try='test -z "$ac_c_werror_flag"
57841 || test ! -s conftest.err'
57842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57843 (eval $ac_try) 2>&5
57844 ac_status=$?
57845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57846 (exit $ac_status); }; } &&
57847 { ac_try='test -s conftest$ac_exeext'
57848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57849 (eval $ac_try) 2>&5
57850 ac_status=$?
57851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57852 (exit $ac_status); }; }; then
57853 ac_cv_lib_iconv_iconv=yes
57854 else
57855 echo "$as_me: failed program was:" >&5
57856 sed 's/^/| /' conftest.$ac_ext >&5
57858 ac_cv_lib_iconv_iconv=no
57860 rm -f conftest.err conftest.$ac_objext \
57861 conftest$ac_exeext conftest.$ac_ext
57862 LIBS=$ac_check_lib_save_LIBS
57864 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57865 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57866 if test $ac_cv_lib_iconv_iconv = yes; then
57867 LIBICONV="-liconv"
57870 ac_save_LIBS="$LIBS"
57871 LIBS="$LIBS $LIBICONV"
57878 for ac_func in iconv_open iconv_close iconv nl_langinfo
57880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57881 echo "$as_me:$LINENO: checking for $ac_func" >&5
57882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57883 if eval "test \"\${$as_ac_var+set}\" = set"; then
57884 echo $ECHO_N "(cached) $ECHO_C" >&6
57885 else
57886 if test x$gcc_no_link = xyes; then
57887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57889 { (exit 1); exit 1; }; }
57891 cat >conftest.$ac_ext <<_ACEOF
57892 /* confdefs.h. */
57893 _ACEOF
57894 cat confdefs.h >>conftest.$ac_ext
57895 cat >>conftest.$ac_ext <<_ACEOF
57896 /* end confdefs.h. */
57897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57899 #define $ac_func innocuous_$ac_func
57901 /* System header to define __stub macros and hopefully few prototypes,
57902 which can conflict with char $ac_func (); below.
57903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57904 <limits.h> exists even on freestanding compilers. */
57906 #ifdef __STDC__
57907 # include <limits.h>
57908 #else
57909 # include <assert.h>
57910 #endif
57912 #undef $ac_func
57914 /* Override any gcc2 internal prototype to avoid an error. */
57915 #ifdef __cplusplus
57916 extern "C"
57918 #endif
57919 /* We use char because int might match the return type of a gcc2
57920 builtin and then its argument prototype would still apply. */
57921 char $ac_func ();
57922 /* The GNU C library defines this for functions which it implements
57923 to always fail with ENOSYS. Some functions are actually named
57924 something starting with __ and the normal name is an alias. */
57925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57926 choke me
57927 #else
57928 char (*f) () = $ac_func;
57929 #endif
57930 #ifdef __cplusplus
57932 #endif
57935 main ()
57937 return f != $ac_func;
57939 return 0;
57941 _ACEOF
57942 rm -f conftest.$ac_objext conftest$ac_exeext
57943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57944 (eval $ac_link) 2>conftest.er1
57945 ac_status=$?
57946 grep -v '^ *+' conftest.er1 >conftest.err
57947 rm -f conftest.er1
57948 cat conftest.err >&5
57949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57950 (exit $ac_status); } &&
57951 { ac_try='test -z "$ac_c_werror_flag"
57952 || test ! -s conftest.err'
57953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57954 (eval $ac_try) 2>&5
57955 ac_status=$?
57956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57957 (exit $ac_status); }; } &&
57958 { ac_try='test -s conftest$ac_exeext'
57959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57960 (eval $ac_try) 2>&5
57961 ac_status=$?
57962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57963 (exit $ac_status); }; }; then
57964 eval "$as_ac_var=yes"
57965 else
57966 echo "$as_me: failed program was:" >&5
57967 sed 's/^/| /' conftest.$ac_ext >&5
57969 eval "$as_ac_var=no"
57971 rm -f conftest.err conftest.$ac_objext \
57972 conftest$ac_exeext conftest.$ac_ext
57974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57976 if test `eval echo '${'$as_ac_var'}'` = yes; then
57977 cat >>confdefs.h <<_ACEOF
57978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57979 _ACEOF
57980 ac_XPG2funcs=yes
57981 else
57982 ac_XPG2funcs=no
57984 done
57987 LIBS="$ac_save_LIBS"
57989 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57990 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57991 if test x"$ac_has_iconv_h" = xyes &&
57992 test x"$ac_has_langinfo_h" = xyes &&
57993 test x"$ac_XPG2funcs" = xyes;
57994 then
57995 ac_XPG2_wchar_t=yes
57996 else
57997 ac_XPG2_wchar_t=no
57999 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
58000 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
58002 # At the moment, only enable wchar_t specializations if all the
58003 # above support is present.
58004 if test x"$ac_isoC99_wchar_t" = xyes &&
58005 test x"$ac_XPG2_wchar_t" = xyes;
58006 then
58007 cat >>confdefs.h <<\_ACEOF
58008 #define _GLIBCXX_USE_WCHAR_T 1
58009 _ACEOF
58011 enable_wchar_t=yes
58014 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58015 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58016 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58017 echo "${ECHO_T}$enable_wchar_t" >&6
58019 cat >>confdefs.h <<\_ACEOF
58020 #define HAVE_COPYSIGN 1
58021 _ACEOF
58023 cat >>confdefs.h <<\_ACEOF
58024 #define HAVE_COPYSIGNF 1
58025 _ACEOF
58027 cat >>confdefs.h <<\_ACEOF
58028 #define HAVE_FREXPF 1
58029 _ACEOF
58031 cat >>confdefs.h <<\_ACEOF
58032 #define HAVE_HYPOT 1
58033 _ACEOF
58035 case "$target" in
58036 *-hpux10*)
58037 cat >>confdefs.h <<\_ACEOF
58038 #define HAVE_FINITE 1
58039 _ACEOF
58041 cat >>confdefs.h <<\_ACEOF
58042 #define HAVE_FINITEF 1
58043 _ACEOF
58045 cat >>confdefs.h <<\_ACEOF
58046 #define HAVE_ISINF 1
58047 _ACEOF
58049 cat >>confdefs.h <<\_ACEOF
58050 #define HAVE_ISINFF 1
58051 _ACEOF
58053 cat >>confdefs.h <<\_ACEOF
58054 #define HAVE_ISNAN 1
58055 _ACEOF
58057 cat >>confdefs.h <<\_ACEOF
58058 #define HAVE_ISNANF 1
58059 _ACEOF
58062 esac
58064 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58077 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58078 machine/endian.h machine/param.h sys/machine.h sys/types.h \
58079 fp.h locale.h float.h inttypes.h
58081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58083 echo "$as_me:$LINENO: checking for $ac_header" >&5
58084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58086 echo $ECHO_N "(cached) $ECHO_C" >&6
58088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58090 else
58091 # Is the header compilable?
58092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58094 cat >conftest.$ac_ext <<_ACEOF
58095 /* confdefs.h. */
58096 _ACEOF
58097 cat confdefs.h >>conftest.$ac_ext
58098 cat >>conftest.$ac_ext <<_ACEOF
58099 /* end confdefs.h. */
58100 $ac_includes_default
58101 #include <$ac_header>
58102 _ACEOF
58103 rm -f conftest.$ac_objext
58104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58105 (eval $ac_compile) 2>conftest.er1
58106 ac_status=$?
58107 grep -v '^ *+' conftest.er1 >conftest.err
58108 rm -f conftest.er1
58109 cat conftest.err >&5
58110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58111 (exit $ac_status); } &&
58112 { ac_try='test -z "$ac_c_werror_flag"
58113 || test ! -s conftest.err'
58114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58115 (eval $ac_try) 2>&5
58116 ac_status=$?
58117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58118 (exit $ac_status); }; } &&
58119 { ac_try='test -s conftest.$ac_objext'
58120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58121 (eval $ac_try) 2>&5
58122 ac_status=$?
58123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58124 (exit $ac_status); }; }; then
58125 ac_header_compiler=yes
58126 else
58127 echo "$as_me: failed program was:" >&5
58128 sed 's/^/| /' conftest.$ac_ext >&5
58130 ac_header_compiler=no
58132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58134 echo "${ECHO_T}$ac_header_compiler" >&6
58136 # Is the header present?
58137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58139 cat >conftest.$ac_ext <<_ACEOF
58140 /* confdefs.h. */
58141 _ACEOF
58142 cat confdefs.h >>conftest.$ac_ext
58143 cat >>conftest.$ac_ext <<_ACEOF
58144 /* end confdefs.h. */
58145 #include <$ac_header>
58146 _ACEOF
58147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58149 ac_status=$?
58150 grep -v '^ *+' conftest.er1 >conftest.err
58151 rm -f conftest.er1
58152 cat conftest.err >&5
58153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58154 (exit $ac_status); } >/dev/null; then
58155 if test -s conftest.err; then
58156 ac_cpp_err=$ac_c_preproc_warn_flag
58157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58158 else
58159 ac_cpp_err=
58161 else
58162 ac_cpp_err=yes
58164 if test -z "$ac_cpp_err"; then
58165 ac_header_preproc=yes
58166 else
58167 echo "$as_me: failed program was:" >&5
58168 sed 's/^/| /' conftest.$ac_ext >&5
58170 ac_header_preproc=no
58172 rm -f conftest.err conftest.$ac_ext
58173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58174 echo "${ECHO_T}$ac_header_preproc" >&6
58176 # So? What about this header?
58177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58178 yes:no: )
58179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58183 ac_header_preproc=yes
58185 no:yes:* )
58186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58199 cat <<\_ASBOX
58200 ## ----------------------------------------- ##
58201 ## Report this to the package-unused lists. ##
58202 ## ----------------------------------------- ##
58203 _ASBOX
58205 sed "s/^/$as_me: WARNING: /" >&2
58207 esac
58208 echo "$as_me:$LINENO: checking for $ac_header" >&5
58209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58211 echo $ECHO_N "(cached) $ECHO_C" >&6
58212 else
58213 eval "$as_ac_Header=\$ac_header_preproc"
58215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58220 cat >>confdefs.h <<_ACEOF
58221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58222 _ACEOF
58226 done
58228 SECTION_FLAGS='-ffunction-sections -fdata-sections'
58231 # If we're not using GNU ld, then there's no point in even trying these
58232 # tests. Check for that first. We should have already tested for gld
58233 # by now (in libtool), but require it now just to be safe...
58234 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58235 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58239 # The name set by libtool depends on the version of libtool. Shame on us
58240 # for depending on an impl detail, but c'est la vie. Older versions used
58241 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58242 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58243 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
58244 # set (hence we're using an older libtool), then set it.
58245 if test x${with_gnu_ld+set} != xset; then
58246 if test x${ac_cv_prog_gnu_ld+set} != xset; then
58247 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
58248 with_gnu_ld=no
58249 else
58250 with_gnu_ld=$ac_cv_prog_gnu_ld
58254 # Start by getting the version number. I think the libtool test already
58255 # does some of this, but throws away the result.
58257 ldver=`$LD --version 2>/dev/null | head -1 | \
58258 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58260 glibcxx_gnu_ld_version=`echo $ldver | \
58261 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58263 # Set --gc-sections.
58264 if test "$with_gnu_ld" = "notbroken"; then
58265 # GNU ld it is! Joy and bunny rabbits!
58267 # All these tests are for C++; save the language and the compiler flags.
58268 # Need to do this so that g++ won't try to link in libstdc++
58269 ac_test_CFLAGS="${CFLAGS+set}"
58270 ac_save_CFLAGS="$CFLAGS"
58271 CFLAGS='-x c++ -Wl,--gc-sections'
58273 # Check for -Wl,--gc-sections
58274 # XXX This test is broken at the moment, as symbols required for linking
58275 # are now in libsupc++ (not built yet). In addition, this test has
58276 # cored on solaris in the past. In addition, --gc-sections doesn't
58277 # really work at the moment (keeps on discarding used sections, first
58278 # .eh_frame and now some of the glibc sections for iconv).
58279 # Bzzzzt. Thanks for playing, maybe next time.
58280 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58281 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58282 if test "$cross_compiling" = yes; then
58283 ac_sectionLDflags=yes
58284 else
58285 cat >conftest.$ac_ext <<_ACEOF
58286 /* confdefs.h. */
58287 _ACEOF
58288 cat confdefs.h >>conftest.$ac_ext
58289 cat >>conftest.$ac_ext <<_ACEOF
58290 /* end confdefs.h. */
58292 int main(void)
58294 try { throw 1; }
58295 catch (...) { };
58296 return 0;
58299 _ACEOF
58300 rm -f conftest$ac_exeext
58301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58302 (eval $ac_link) 2>&5
58303 ac_status=$?
58304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58307 (eval $ac_try) 2>&5
58308 ac_status=$?
58309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58310 (exit $ac_status); }; }; then
58311 ac_sectionLDflags=yes
58312 else
58313 echo "$as_me: program exited with status $ac_status" >&5
58314 echo "$as_me: failed program was:" >&5
58315 sed 's/^/| /' conftest.$ac_ext >&5
58317 ( exit $ac_status )
58318 ac_sectionLDflags=no
58320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58322 if test "$ac_test_CFLAGS" = set; then
58323 CFLAGS="$ac_save_CFLAGS"
58324 else
58325 # this is the suspicious part
58326 CFLAGS=''
58328 if test "$ac_sectionLDflags" = "yes"; then
58329 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58331 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58332 echo "${ECHO_T}$ac_sectionLDflags" >&6
58335 # Set linker optimization flags.
58336 if test x"$with_gnu_ld" = x"yes"; then
58337 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58345 echo "$as_me:$LINENO: checking for main in -lm" >&5
58346 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58347 if test "${ac_cv_lib_m_main+set}" = set; then
58348 echo $ECHO_N "(cached) $ECHO_C" >&6
58349 else
58350 ac_check_lib_save_LIBS=$LIBS
58351 LIBS="-lm $LIBS"
58352 if test x$gcc_no_link = xyes; then
58353 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58354 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58355 { (exit 1); exit 1; }; }
58357 cat >conftest.$ac_ext <<_ACEOF
58358 /* confdefs.h. */
58359 _ACEOF
58360 cat confdefs.h >>conftest.$ac_ext
58361 cat >>conftest.$ac_ext <<_ACEOF
58362 /* end confdefs.h. */
58366 main ()
58368 main ();
58370 return 0;
58372 _ACEOF
58373 rm -f conftest.$ac_objext conftest$ac_exeext
58374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58375 (eval $ac_link) 2>conftest.er1
58376 ac_status=$?
58377 grep -v '^ *+' conftest.er1 >conftest.err
58378 rm -f conftest.er1
58379 cat conftest.err >&5
58380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58381 (exit $ac_status); } &&
58382 { ac_try='test -z "$ac_c_werror_flag"
58383 || test ! -s conftest.err'
58384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58385 (eval $ac_try) 2>&5
58386 ac_status=$?
58387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58388 (exit $ac_status); }; } &&
58389 { ac_try='test -s conftest$ac_exeext'
58390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58391 (eval $ac_try) 2>&5
58392 ac_status=$?
58393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58394 (exit $ac_status); }; }; then
58395 ac_cv_lib_m_main=yes
58396 else
58397 echo "$as_me: failed program was:" >&5
58398 sed 's/^/| /' conftest.$ac_ext >&5
58400 ac_cv_lib_m_main=no
58402 rm -f conftest.err conftest.$ac_objext \
58403 conftest$ac_exeext conftest.$ac_ext
58404 LIBS=$ac_check_lib_save_LIBS
58406 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58407 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58408 if test $ac_cv_lib_m_main = yes; then
58409 cat >>confdefs.h <<_ACEOF
58410 #define HAVE_LIBM 1
58411 _ACEOF
58413 LIBS="-lm $LIBS"
58418 for ac_func in copysignf
58420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58421 echo "$as_me:$LINENO: checking for $ac_func" >&5
58422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58423 if eval "test \"\${$as_ac_var+set}\" = set"; then
58424 echo $ECHO_N "(cached) $ECHO_C" >&6
58425 else
58426 if test x$gcc_no_link = xyes; then
58427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58429 { (exit 1); exit 1; }; }
58431 cat >conftest.$ac_ext <<_ACEOF
58432 /* confdefs.h. */
58433 _ACEOF
58434 cat confdefs.h >>conftest.$ac_ext
58435 cat >>conftest.$ac_ext <<_ACEOF
58436 /* end confdefs.h. */
58437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58439 #define $ac_func innocuous_$ac_func
58441 /* System header to define __stub macros and hopefully few prototypes,
58442 which can conflict with char $ac_func (); below.
58443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58444 <limits.h> exists even on freestanding compilers. */
58446 #ifdef __STDC__
58447 # include <limits.h>
58448 #else
58449 # include <assert.h>
58450 #endif
58452 #undef $ac_func
58454 /* Override any gcc2 internal prototype to avoid an error. */
58455 #ifdef __cplusplus
58456 extern "C"
58458 #endif
58459 /* We use char because int might match the return type of a gcc2
58460 builtin and then its argument prototype would still apply. */
58461 char $ac_func ();
58462 /* The GNU C library defines this for functions which it implements
58463 to always fail with ENOSYS. Some functions are actually named
58464 something starting with __ and the normal name is an alias. */
58465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58466 choke me
58467 #else
58468 char (*f) () = $ac_func;
58469 #endif
58470 #ifdef __cplusplus
58472 #endif
58475 main ()
58477 return f != $ac_func;
58479 return 0;
58481 _ACEOF
58482 rm -f conftest.$ac_objext conftest$ac_exeext
58483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58484 (eval $ac_link) 2>conftest.er1
58485 ac_status=$?
58486 grep -v '^ *+' conftest.er1 >conftest.err
58487 rm -f conftest.er1
58488 cat conftest.err >&5
58489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58490 (exit $ac_status); } &&
58491 { ac_try='test -z "$ac_c_werror_flag"
58492 || test ! -s conftest.err'
58493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58494 (eval $ac_try) 2>&5
58495 ac_status=$?
58496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58497 (exit $ac_status); }; } &&
58498 { ac_try='test -s conftest$ac_exeext'
58499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58500 (eval $ac_try) 2>&5
58501 ac_status=$?
58502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58503 (exit $ac_status); }; }; then
58504 eval "$as_ac_var=yes"
58505 else
58506 echo "$as_me: failed program was:" >&5
58507 sed 's/^/| /' conftest.$ac_ext >&5
58509 eval "$as_ac_var=no"
58511 rm -f conftest.err conftest.$ac_objext \
58512 conftest$ac_exeext conftest.$ac_ext
58514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58516 if test `eval echo '${'$as_ac_var'}'` = yes; then
58517 cat >>confdefs.h <<_ACEOF
58518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58519 _ACEOF
58521 else
58522 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58524 done
58528 for ac_func in __signbit
58530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58531 echo "$as_me:$LINENO: checking for $ac_func" >&5
58532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58533 if eval "test \"\${$as_ac_var+set}\" = set"; then
58534 echo $ECHO_N "(cached) $ECHO_C" >&6
58535 else
58536 if test x$gcc_no_link = xyes; then
58537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58539 { (exit 1); exit 1; }; }
58541 cat >conftest.$ac_ext <<_ACEOF
58542 /* confdefs.h. */
58543 _ACEOF
58544 cat confdefs.h >>conftest.$ac_ext
58545 cat >>conftest.$ac_ext <<_ACEOF
58546 /* end confdefs.h. */
58547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58549 #define $ac_func innocuous_$ac_func
58551 /* System header to define __stub macros and hopefully few prototypes,
58552 which can conflict with char $ac_func (); below.
58553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58554 <limits.h> exists even on freestanding compilers. */
58556 #ifdef __STDC__
58557 # include <limits.h>
58558 #else
58559 # include <assert.h>
58560 #endif
58562 #undef $ac_func
58564 /* Override any gcc2 internal prototype to avoid an error. */
58565 #ifdef __cplusplus
58566 extern "C"
58568 #endif
58569 /* We use char because int might match the return type of a gcc2
58570 builtin and then its argument prototype would still apply. */
58571 char $ac_func ();
58572 /* The GNU C library defines this for functions which it implements
58573 to always fail with ENOSYS. Some functions are actually named
58574 something starting with __ and the normal name is an alias. */
58575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58576 choke me
58577 #else
58578 char (*f) () = $ac_func;
58579 #endif
58580 #ifdef __cplusplus
58582 #endif
58585 main ()
58587 return f != $ac_func;
58589 return 0;
58591 _ACEOF
58592 rm -f conftest.$ac_objext conftest$ac_exeext
58593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58594 (eval $ac_link) 2>conftest.er1
58595 ac_status=$?
58596 grep -v '^ *+' conftest.er1 >conftest.err
58597 rm -f conftest.er1
58598 cat conftest.err >&5
58599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58600 (exit $ac_status); } &&
58601 { ac_try='test -z "$ac_c_werror_flag"
58602 || test ! -s conftest.err'
58603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58604 (eval $ac_try) 2>&5
58605 ac_status=$?
58606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58607 (exit $ac_status); }; } &&
58608 { ac_try='test -s conftest$ac_exeext'
58609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58610 (eval $ac_try) 2>&5
58611 ac_status=$?
58612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58613 (exit $ac_status); }; }; then
58614 eval "$as_ac_var=yes"
58615 else
58616 echo "$as_me: failed program was:" >&5
58617 sed 's/^/| /' conftest.$ac_ext >&5
58619 eval "$as_ac_var=no"
58621 rm -f conftest.err conftest.$ac_objext \
58622 conftest$ac_exeext conftest.$ac_ext
58624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58626 if test `eval echo '${'$as_ac_var'}'` = yes; then
58627 cat >>confdefs.h <<_ACEOF
58628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58629 _ACEOF
58631 else
58632 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58634 done
58637 for ac_func in __signbitf
58639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58640 echo "$as_me:$LINENO: checking for $ac_func" >&5
58641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58642 if eval "test \"\${$as_ac_var+set}\" = set"; then
58643 echo $ECHO_N "(cached) $ECHO_C" >&6
58644 else
58645 if test x$gcc_no_link = xyes; then
58646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58648 { (exit 1); exit 1; }; }
58650 cat >conftest.$ac_ext <<_ACEOF
58651 /* confdefs.h. */
58652 _ACEOF
58653 cat confdefs.h >>conftest.$ac_ext
58654 cat >>conftest.$ac_ext <<_ACEOF
58655 /* end confdefs.h. */
58656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58658 #define $ac_func innocuous_$ac_func
58660 /* System header to define __stub macros and hopefully few prototypes,
58661 which can conflict with char $ac_func (); below.
58662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58663 <limits.h> exists even on freestanding compilers. */
58665 #ifdef __STDC__
58666 # include <limits.h>
58667 #else
58668 # include <assert.h>
58669 #endif
58671 #undef $ac_func
58673 /* Override any gcc2 internal prototype to avoid an error. */
58674 #ifdef __cplusplus
58675 extern "C"
58677 #endif
58678 /* We use char because int might match the return type of a gcc2
58679 builtin and then its argument prototype would still apply. */
58680 char $ac_func ();
58681 /* The GNU C library defines this for functions which it implements
58682 to always fail with ENOSYS. Some functions are actually named
58683 something starting with __ and the normal name is an alias. */
58684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58685 choke me
58686 #else
58687 char (*f) () = $ac_func;
58688 #endif
58689 #ifdef __cplusplus
58691 #endif
58694 main ()
58696 return f != $ac_func;
58698 return 0;
58700 _ACEOF
58701 rm -f conftest.$ac_objext conftest$ac_exeext
58702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58703 (eval $ac_link) 2>conftest.er1
58704 ac_status=$?
58705 grep -v '^ *+' conftest.er1 >conftest.err
58706 rm -f conftest.er1
58707 cat conftest.err >&5
58708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709 (exit $ac_status); } &&
58710 { ac_try='test -z "$ac_c_werror_flag"
58711 || test ! -s conftest.err'
58712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58713 (eval $ac_try) 2>&5
58714 ac_status=$?
58715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58716 (exit $ac_status); }; } &&
58717 { ac_try='test -s conftest$ac_exeext'
58718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58719 (eval $ac_try) 2>&5
58720 ac_status=$?
58721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58722 (exit $ac_status); }; }; then
58723 eval "$as_ac_var=yes"
58724 else
58725 echo "$as_me: failed program was:" >&5
58726 sed 's/^/| /' conftest.$ac_ext >&5
58728 eval "$as_ac_var=no"
58730 rm -f conftest.err conftest.$ac_objext \
58731 conftest$ac_exeext conftest.$ac_ext
58733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58735 if test `eval echo '${'$as_ac_var'}'` = yes; then
58736 cat >>confdefs.h <<_ACEOF
58737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58738 _ACEOF
58740 else
58741 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58743 done
58746 if test x$ac_cv_func_copysignl = x"yes"; then
58748 for ac_func in __signbitl
58750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58751 echo "$as_me:$LINENO: checking for $ac_func" >&5
58752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58753 if eval "test \"\${$as_ac_var+set}\" = set"; then
58754 echo $ECHO_N "(cached) $ECHO_C" >&6
58755 else
58756 if test x$gcc_no_link = xyes; then
58757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58759 { (exit 1); exit 1; }; }
58761 cat >conftest.$ac_ext <<_ACEOF
58762 /* confdefs.h. */
58763 _ACEOF
58764 cat confdefs.h >>conftest.$ac_ext
58765 cat >>conftest.$ac_ext <<_ACEOF
58766 /* end confdefs.h. */
58767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58769 #define $ac_func innocuous_$ac_func
58771 /* System header to define __stub macros and hopefully few prototypes,
58772 which can conflict with char $ac_func (); below.
58773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58774 <limits.h> exists even on freestanding compilers. */
58776 #ifdef __STDC__
58777 # include <limits.h>
58778 #else
58779 # include <assert.h>
58780 #endif
58782 #undef $ac_func
58784 /* Override any gcc2 internal prototype to avoid an error. */
58785 #ifdef __cplusplus
58786 extern "C"
58788 #endif
58789 /* We use char because int might match the return type of a gcc2
58790 builtin and then its argument prototype would still apply. */
58791 char $ac_func ();
58792 /* The GNU C library defines this for functions which it implements
58793 to always fail with ENOSYS. Some functions are actually named
58794 something starting with __ and the normal name is an alias. */
58795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58796 choke me
58797 #else
58798 char (*f) () = $ac_func;
58799 #endif
58800 #ifdef __cplusplus
58802 #endif
58805 main ()
58807 return f != $ac_func;
58809 return 0;
58811 _ACEOF
58812 rm -f conftest.$ac_objext conftest$ac_exeext
58813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58814 (eval $ac_link) 2>conftest.er1
58815 ac_status=$?
58816 grep -v '^ *+' conftest.er1 >conftest.err
58817 rm -f conftest.er1
58818 cat conftest.err >&5
58819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58820 (exit $ac_status); } &&
58821 { ac_try='test -z "$ac_c_werror_flag"
58822 || test ! -s conftest.err'
58823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58824 (eval $ac_try) 2>&5
58825 ac_status=$?
58826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58827 (exit $ac_status); }; } &&
58828 { ac_try='test -s conftest$ac_exeext'
58829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58830 (eval $ac_try) 2>&5
58831 ac_status=$?
58832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58833 (exit $ac_status); }; }; then
58834 eval "$as_ac_var=yes"
58835 else
58836 echo "$as_me: failed program was:" >&5
58837 sed 's/^/| /' conftest.$ac_ext >&5
58839 eval "$as_ac_var=no"
58841 rm -f conftest.err conftest.$ac_objext \
58842 conftest$ac_exeext conftest.$ac_ext
58844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58846 if test `eval echo '${'$as_ac_var'}'` = yes; then
58847 cat >>confdefs.h <<_ACEOF
58848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58849 _ACEOF
58851 else
58852 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58854 done
58858 # XXX Review this. Nothing uses it.
58859 if test -n "$LIBMATHOBJS"; then
58860 need_libmath=yes
58865 # Test wchar.h for mbstate_t, which is needed for char_traits and
58866 # others even if wchar_t support is not on.
58867 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58868 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58869 cat >conftest.$ac_ext <<_ACEOF
58870 /* confdefs.h. */
58871 _ACEOF
58872 cat confdefs.h >>conftest.$ac_ext
58873 cat >>conftest.$ac_ext <<_ACEOF
58874 /* end confdefs.h. */
58875 #include <wchar.h>
58877 main ()
58879 mbstate_t teststate;
58881 return 0;
58883 _ACEOF
58884 rm -f conftest.$ac_objext
58885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58886 (eval $ac_compile) 2>conftest.er1
58887 ac_status=$?
58888 grep -v '^ *+' conftest.er1 >conftest.err
58889 rm -f conftest.er1
58890 cat conftest.err >&5
58891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58892 (exit $ac_status); } &&
58893 { ac_try='test -z "$ac_c_werror_flag"
58894 || test ! -s conftest.err'
58895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58896 (eval $ac_try) 2>&5
58897 ac_status=$?
58898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58899 (exit $ac_status); }; } &&
58900 { ac_try='test -s conftest.$ac_objext'
58901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58902 (eval $ac_try) 2>&5
58903 ac_status=$?
58904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58905 (exit $ac_status); }; }; then
58906 have_mbstate_t=yes
58907 else
58908 echo "$as_me: failed program was:" >&5
58909 sed 's/^/| /' conftest.$ac_ext >&5
58911 have_mbstate_t=no
58913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58914 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58915 echo "${ECHO_T}$have_mbstate_t" >&6
58916 if test x"$have_mbstate_t" = xyes; then
58917 cat >>confdefs.h <<\_ACEOF
58918 #define HAVE_MBSTATE_T 1
58919 _ACEOF
58923 # Sanity check for existence of ISO C99 headers for extended encoding.
58925 for ac_header in wchar.h
58927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58929 echo "$as_me:$LINENO: checking for $ac_header" >&5
58930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58932 echo $ECHO_N "(cached) $ECHO_C" >&6
58934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58936 else
58937 # Is the header compilable?
58938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58940 cat >conftest.$ac_ext <<_ACEOF
58941 /* confdefs.h. */
58942 _ACEOF
58943 cat confdefs.h >>conftest.$ac_ext
58944 cat >>conftest.$ac_ext <<_ACEOF
58945 /* end confdefs.h. */
58946 $ac_includes_default
58947 #include <$ac_header>
58948 _ACEOF
58949 rm -f conftest.$ac_objext
58950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58951 (eval $ac_compile) 2>conftest.er1
58952 ac_status=$?
58953 grep -v '^ *+' conftest.er1 >conftest.err
58954 rm -f conftest.er1
58955 cat conftest.err >&5
58956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58957 (exit $ac_status); } &&
58958 { ac_try='test -z "$ac_c_werror_flag"
58959 || test ! -s conftest.err'
58960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58961 (eval $ac_try) 2>&5
58962 ac_status=$?
58963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58964 (exit $ac_status); }; } &&
58965 { ac_try='test -s conftest.$ac_objext'
58966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58967 (eval $ac_try) 2>&5
58968 ac_status=$?
58969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58970 (exit $ac_status); }; }; then
58971 ac_header_compiler=yes
58972 else
58973 echo "$as_me: failed program was:" >&5
58974 sed 's/^/| /' conftest.$ac_ext >&5
58976 ac_header_compiler=no
58978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58980 echo "${ECHO_T}$ac_header_compiler" >&6
58982 # Is the header present?
58983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58985 cat >conftest.$ac_ext <<_ACEOF
58986 /* confdefs.h. */
58987 _ACEOF
58988 cat confdefs.h >>conftest.$ac_ext
58989 cat >>conftest.$ac_ext <<_ACEOF
58990 /* end confdefs.h. */
58991 #include <$ac_header>
58992 _ACEOF
58993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58995 ac_status=$?
58996 grep -v '^ *+' conftest.er1 >conftest.err
58997 rm -f conftest.er1
58998 cat conftest.err >&5
58999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59000 (exit $ac_status); } >/dev/null; then
59001 if test -s conftest.err; then
59002 ac_cpp_err=$ac_c_preproc_warn_flag
59003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59004 else
59005 ac_cpp_err=
59007 else
59008 ac_cpp_err=yes
59010 if test -z "$ac_cpp_err"; then
59011 ac_header_preproc=yes
59012 else
59013 echo "$as_me: failed program was:" >&5
59014 sed 's/^/| /' conftest.$ac_ext >&5
59016 ac_header_preproc=no
59018 rm -f conftest.err conftest.$ac_ext
59019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59020 echo "${ECHO_T}$ac_header_preproc" >&6
59022 # So? What about this header?
59023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59024 yes:no: )
59025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59029 ac_header_preproc=yes
59031 no:yes:* )
59032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59045 cat <<\_ASBOX
59046 ## ----------------------------------------- ##
59047 ## Report this to the package-unused lists. ##
59048 ## ----------------------------------------- ##
59049 _ASBOX
59051 sed "s/^/$as_me: WARNING: /" >&2
59053 esac
59054 echo "$as_me:$LINENO: checking for $ac_header" >&5
59055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59057 echo $ECHO_N "(cached) $ECHO_C" >&6
59058 else
59059 eval "$as_ac_Header=\$ac_header_preproc"
59061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59066 cat >>confdefs.h <<_ACEOF
59067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59068 _ACEOF
59069 ac_has_wchar_h=yes
59070 else
59071 ac_has_wchar_h=no
59074 done
59077 for ac_header in wctype.h
59079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59081 echo "$as_me:$LINENO: checking for $ac_header" >&5
59082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59084 echo $ECHO_N "(cached) $ECHO_C" >&6
59086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59088 else
59089 # Is the header compilable?
59090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59092 cat >conftest.$ac_ext <<_ACEOF
59093 /* confdefs.h. */
59094 _ACEOF
59095 cat confdefs.h >>conftest.$ac_ext
59096 cat >>conftest.$ac_ext <<_ACEOF
59097 /* end confdefs.h. */
59098 $ac_includes_default
59099 #include <$ac_header>
59100 _ACEOF
59101 rm -f conftest.$ac_objext
59102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59103 (eval $ac_compile) 2>conftest.er1
59104 ac_status=$?
59105 grep -v '^ *+' conftest.er1 >conftest.err
59106 rm -f conftest.er1
59107 cat conftest.err >&5
59108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59109 (exit $ac_status); } &&
59110 { ac_try='test -z "$ac_c_werror_flag"
59111 || test ! -s conftest.err'
59112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59113 (eval $ac_try) 2>&5
59114 ac_status=$?
59115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59116 (exit $ac_status); }; } &&
59117 { ac_try='test -s conftest.$ac_objext'
59118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59119 (eval $ac_try) 2>&5
59120 ac_status=$?
59121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59122 (exit $ac_status); }; }; then
59123 ac_header_compiler=yes
59124 else
59125 echo "$as_me: failed program was:" >&5
59126 sed 's/^/| /' conftest.$ac_ext >&5
59128 ac_header_compiler=no
59130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59132 echo "${ECHO_T}$ac_header_compiler" >&6
59134 # Is the header present?
59135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59137 cat >conftest.$ac_ext <<_ACEOF
59138 /* confdefs.h. */
59139 _ACEOF
59140 cat confdefs.h >>conftest.$ac_ext
59141 cat >>conftest.$ac_ext <<_ACEOF
59142 /* end confdefs.h. */
59143 #include <$ac_header>
59144 _ACEOF
59145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59147 ac_status=$?
59148 grep -v '^ *+' conftest.er1 >conftest.err
59149 rm -f conftest.er1
59150 cat conftest.err >&5
59151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59152 (exit $ac_status); } >/dev/null; then
59153 if test -s conftest.err; then
59154 ac_cpp_err=$ac_c_preproc_warn_flag
59155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59156 else
59157 ac_cpp_err=
59159 else
59160 ac_cpp_err=yes
59162 if test -z "$ac_cpp_err"; then
59163 ac_header_preproc=yes
59164 else
59165 echo "$as_me: failed program was:" >&5
59166 sed 's/^/| /' conftest.$ac_ext >&5
59168 ac_header_preproc=no
59170 rm -f conftest.err conftest.$ac_ext
59171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59172 echo "${ECHO_T}$ac_header_preproc" >&6
59174 # So? What about this header?
59175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59176 yes:no: )
59177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59181 ac_header_preproc=yes
59183 no:yes:* )
59184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59197 cat <<\_ASBOX
59198 ## ----------------------------------------- ##
59199 ## Report this to the package-unused lists. ##
59200 ## ----------------------------------------- ##
59201 _ASBOX
59203 sed "s/^/$as_me: WARNING: /" >&2
59205 esac
59206 echo "$as_me:$LINENO: checking for $ac_header" >&5
59207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59209 echo $ECHO_N "(cached) $ECHO_C" >&6
59210 else
59211 eval "$as_ac_Header=\$ac_header_preproc"
59213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59218 cat >>confdefs.h <<_ACEOF
59219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59220 _ACEOF
59221 ac_has_wctype_h=yes
59222 else
59223 ac_has_wctype_h=no
59226 done
59229 # Only continue checking if the ISO C99 headers exist and support is on.
59230 if test x"$ac_has_wchar_h" = xyes &&
59231 test x"$ac_has_wctype_h" = xyes &&
59232 test x"$enable_c_mbchar" != xno; then
59234 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59235 # numeric_limits can instantiate type_traits<wchar_t>
59236 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59237 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59238 cat >conftest.$ac_ext <<_ACEOF
59239 /* confdefs.h. */
59240 _ACEOF
59241 cat confdefs.h >>conftest.$ac_ext
59242 cat >>conftest.$ac_ext <<_ACEOF
59243 /* end confdefs.h. */
59244 #include <wchar.h>
59246 main ()
59248 int i = WCHAR_MIN; int j = WCHAR_MAX;
59250 return 0;
59252 _ACEOF
59253 rm -f conftest.$ac_objext
59254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59255 (eval $ac_compile) 2>conftest.er1
59256 ac_status=$?
59257 grep -v '^ *+' conftest.er1 >conftest.err
59258 rm -f conftest.er1
59259 cat conftest.err >&5
59260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59261 (exit $ac_status); } &&
59262 { ac_try='test -z "$ac_c_werror_flag"
59263 || test ! -s conftest.err'
59264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59265 (eval $ac_try) 2>&5
59266 ac_status=$?
59267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59268 (exit $ac_status); }; } &&
59269 { ac_try='test -s conftest.$ac_objext'
59270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59271 (eval $ac_try) 2>&5
59272 ac_status=$?
59273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59274 (exit $ac_status); }; }; then
59275 has_wchar_minmax=yes
59276 else
59277 echo "$as_me: failed program was:" >&5
59278 sed 's/^/| /' conftest.$ac_ext >&5
59280 has_wchar_minmax=no
59282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59283 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59284 echo "${ECHO_T}$has_wchar_minmax" >&6
59286 # Test wchar.h for WEOF, which is what we use to determine whether
59287 # to specialize for char_traits<wchar_t> or not.
59288 echo "$as_me:$LINENO: checking for WEOF" >&5
59289 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59290 cat >conftest.$ac_ext <<_ACEOF
59291 /* confdefs.h. */
59292 _ACEOF
59293 cat confdefs.h >>conftest.$ac_ext
59294 cat >>conftest.$ac_ext <<_ACEOF
59295 /* end confdefs.h. */
59297 #include <wchar.h>
59298 #include <stddef.h>
59300 main ()
59302 wint_t i = WEOF;
59304 return 0;
59306 _ACEOF
59307 rm -f conftest.$ac_objext
59308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59309 (eval $ac_compile) 2>conftest.er1
59310 ac_status=$?
59311 grep -v '^ *+' conftest.er1 >conftest.err
59312 rm -f conftest.er1
59313 cat conftest.err >&5
59314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59315 (exit $ac_status); } &&
59316 { ac_try='test -z "$ac_c_werror_flag"
59317 || test ! -s conftest.err'
59318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59319 (eval $ac_try) 2>&5
59320 ac_status=$?
59321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59322 (exit $ac_status); }; } &&
59323 { ac_try='test -s conftest.$ac_objext'
59324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59325 (eval $ac_try) 2>&5
59326 ac_status=$?
59327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59328 (exit $ac_status); }; }; then
59329 has_weof=yes
59330 else
59331 echo "$as_me: failed program was:" >&5
59332 sed 's/^/| /' conftest.$ac_ext >&5
59334 has_weof=no
59336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59337 echo "$as_me:$LINENO: result: $has_weof" >&5
59338 echo "${ECHO_T}$has_weof" >&6
59340 # Tests for wide character functions used in char_traits<wchar_t>.
59341 ac_wfuncs=yes
59348 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59351 echo "$as_me:$LINENO: checking for $ac_func" >&5
59352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59353 if eval "test \"\${$as_ac_var+set}\" = set"; then
59354 echo $ECHO_N "(cached) $ECHO_C" >&6
59355 else
59356 if test x$gcc_no_link = xyes; then
59357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59359 { (exit 1); exit 1; }; }
59361 cat >conftest.$ac_ext <<_ACEOF
59362 /* confdefs.h. */
59363 _ACEOF
59364 cat confdefs.h >>conftest.$ac_ext
59365 cat >>conftest.$ac_ext <<_ACEOF
59366 /* end confdefs.h. */
59367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59369 #define $ac_func innocuous_$ac_func
59371 /* System header to define __stub macros and hopefully few prototypes,
59372 which can conflict with char $ac_func (); below.
59373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59374 <limits.h> exists even on freestanding compilers. */
59376 #ifdef __STDC__
59377 # include <limits.h>
59378 #else
59379 # include <assert.h>
59380 #endif
59382 #undef $ac_func
59384 /* Override any gcc2 internal prototype to avoid an error. */
59385 #ifdef __cplusplus
59386 extern "C"
59388 #endif
59389 /* We use char because int might match the return type of a gcc2
59390 builtin and then its argument prototype would still apply. */
59391 char $ac_func ();
59392 /* The GNU C library defines this for functions which it implements
59393 to always fail with ENOSYS. Some functions are actually named
59394 something starting with __ and the normal name is an alias. */
59395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59396 choke me
59397 #else
59398 char (*f) () = $ac_func;
59399 #endif
59400 #ifdef __cplusplus
59402 #endif
59405 main ()
59407 return f != $ac_func;
59409 return 0;
59411 _ACEOF
59412 rm -f conftest.$ac_objext conftest$ac_exeext
59413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59414 (eval $ac_link) 2>conftest.er1
59415 ac_status=$?
59416 grep -v '^ *+' conftest.er1 >conftest.err
59417 rm -f conftest.er1
59418 cat conftest.err >&5
59419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59420 (exit $ac_status); } &&
59421 { ac_try='test -z "$ac_c_werror_flag"
59422 || test ! -s conftest.err'
59423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59424 (eval $ac_try) 2>&5
59425 ac_status=$?
59426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59427 (exit $ac_status); }; } &&
59428 { ac_try='test -s conftest$ac_exeext'
59429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59430 (eval $ac_try) 2>&5
59431 ac_status=$?
59432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59433 (exit $ac_status); }; }; then
59434 eval "$as_ac_var=yes"
59435 else
59436 echo "$as_me: failed program was:" >&5
59437 sed 's/^/| /' conftest.$ac_ext >&5
59439 eval "$as_ac_var=no"
59441 rm -f conftest.err conftest.$ac_objext \
59442 conftest$ac_exeext conftest.$ac_ext
59444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59446 if test `eval echo '${'$as_ac_var'}'` = yes; then
59447 cat >>confdefs.h <<_ACEOF
59448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59449 _ACEOF
59451 else
59452 ac_wfuncs=no
59454 done
59457 # Checks for names injected into std:: by the c_std headers.
59504 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59505 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59506 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59507 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59508 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59509 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59512 echo "$as_me:$LINENO: checking for $ac_func" >&5
59513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59514 if eval "test \"\${$as_ac_var+set}\" = set"; then
59515 echo $ECHO_N "(cached) $ECHO_C" >&6
59516 else
59517 if test x$gcc_no_link = xyes; then
59518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59520 { (exit 1); exit 1; }; }
59522 cat >conftest.$ac_ext <<_ACEOF
59523 /* confdefs.h. */
59524 _ACEOF
59525 cat confdefs.h >>conftest.$ac_ext
59526 cat >>conftest.$ac_ext <<_ACEOF
59527 /* end confdefs.h. */
59528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59530 #define $ac_func innocuous_$ac_func
59532 /* System header to define __stub macros and hopefully few prototypes,
59533 which can conflict with char $ac_func (); below.
59534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59535 <limits.h> exists even on freestanding compilers. */
59537 #ifdef __STDC__
59538 # include <limits.h>
59539 #else
59540 # include <assert.h>
59541 #endif
59543 #undef $ac_func
59545 /* Override any gcc2 internal prototype to avoid an error. */
59546 #ifdef __cplusplus
59547 extern "C"
59549 #endif
59550 /* We use char because int might match the return type of a gcc2
59551 builtin and then its argument prototype would still apply. */
59552 char $ac_func ();
59553 /* The GNU C library defines this for functions which it implements
59554 to always fail with ENOSYS. Some functions are actually named
59555 something starting with __ and the normal name is an alias. */
59556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59557 choke me
59558 #else
59559 char (*f) () = $ac_func;
59560 #endif
59561 #ifdef __cplusplus
59563 #endif
59566 main ()
59568 return f != $ac_func;
59570 return 0;
59572 _ACEOF
59573 rm -f conftest.$ac_objext conftest$ac_exeext
59574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59575 (eval $ac_link) 2>conftest.er1
59576 ac_status=$?
59577 grep -v '^ *+' conftest.er1 >conftest.err
59578 rm -f conftest.er1
59579 cat conftest.err >&5
59580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59581 (exit $ac_status); } &&
59582 { ac_try='test -z "$ac_c_werror_flag"
59583 || test ! -s conftest.err'
59584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59585 (eval $ac_try) 2>&5
59586 ac_status=$?
59587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59588 (exit $ac_status); }; } &&
59589 { ac_try='test -s conftest$ac_exeext'
59590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59591 (eval $ac_try) 2>&5
59592 ac_status=$?
59593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59594 (exit $ac_status); }; }; then
59595 eval "$as_ac_var=yes"
59596 else
59597 echo "$as_me: failed program was:" >&5
59598 sed 's/^/| /' conftest.$ac_ext >&5
59600 eval "$as_ac_var=no"
59602 rm -f conftest.err conftest.$ac_objext \
59603 conftest$ac_exeext conftest.$ac_ext
59605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59607 if test `eval echo '${'$as_ac_var'}'` = yes; then
59608 cat >>confdefs.h <<_ACEOF
59609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59610 _ACEOF
59612 else
59613 ac_wfuncs=no
59615 done
59618 # Checks for wide character functions that are not required
59619 # for basic wchar_t support. Don't disable support if they are missing.
59620 # Injection of these is wrapped with guard macros.
59626 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59629 echo "$as_me:$LINENO: checking for $ac_func" >&5
59630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59631 if eval "test \"\${$as_ac_var+set}\" = set"; then
59632 echo $ECHO_N "(cached) $ECHO_C" >&6
59633 else
59634 if test x$gcc_no_link = xyes; then
59635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59637 { (exit 1); exit 1; }; }
59639 cat >conftest.$ac_ext <<_ACEOF
59640 /* confdefs.h. */
59641 _ACEOF
59642 cat confdefs.h >>conftest.$ac_ext
59643 cat >>conftest.$ac_ext <<_ACEOF
59644 /* end confdefs.h. */
59645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59647 #define $ac_func innocuous_$ac_func
59649 /* System header to define __stub macros and hopefully few prototypes,
59650 which can conflict with char $ac_func (); below.
59651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59652 <limits.h> exists even on freestanding compilers. */
59654 #ifdef __STDC__
59655 # include <limits.h>
59656 #else
59657 # include <assert.h>
59658 #endif
59660 #undef $ac_func
59662 /* Override any gcc2 internal prototype to avoid an error. */
59663 #ifdef __cplusplus
59664 extern "C"
59666 #endif
59667 /* We use char because int might match the return type of a gcc2
59668 builtin and then its argument prototype would still apply. */
59669 char $ac_func ();
59670 /* The GNU C library defines this for functions which it implements
59671 to always fail with ENOSYS. Some functions are actually named
59672 something starting with __ and the normal name is an alias. */
59673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59674 choke me
59675 #else
59676 char (*f) () = $ac_func;
59677 #endif
59678 #ifdef __cplusplus
59680 #endif
59683 main ()
59685 return f != $ac_func;
59687 return 0;
59689 _ACEOF
59690 rm -f conftest.$ac_objext conftest$ac_exeext
59691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59692 (eval $ac_link) 2>conftest.er1
59693 ac_status=$?
59694 grep -v '^ *+' conftest.er1 >conftest.err
59695 rm -f conftest.er1
59696 cat conftest.err >&5
59697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59698 (exit $ac_status); } &&
59699 { ac_try='test -z "$ac_c_werror_flag"
59700 || test ! -s conftest.err'
59701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59702 (eval $ac_try) 2>&5
59703 ac_status=$?
59704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59705 (exit $ac_status); }; } &&
59706 { ac_try='test -s conftest$ac_exeext'
59707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59708 (eval $ac_try) 2>&5
59709 ac_status=$?
59710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59711 (exit $ac_status); }; }; then
59712 eval "$as_ac_var=yes"
59713 else
59714 echo "$as_me: failed program was:" >&5
59715 sed 's/^/| /' conftest.$ac_ext >&5
59717 eval "$as_ac_var=no"
59719 rm -f conftest.err conftest.$ac_objext \
59720 conftest$ac_exeext conftest.$ac_ext
59722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59724 if test `eval echo '${'$as_ac_var'}'` = yes; then
59725 cat >>confdefs.h <<_ACEOF
59726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59727 _ACEOF
59730 done
59733 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59734 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59735 if test x"$has_weof" = xyes &&
59736 test x"$has_wchar_minmax" = xyes &&
59737 test x"$ac_wfuncs" = xyes;
59738 then
59739 ac_isoC99_wchar_t=yes
59740 else
59741 ac_isoC99_wchar_t=no
59743 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59744 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59746 # Use iconv for wchar_t to char conversions. As such, check for
59747 # X/Open Portability Guide, version 2 features (XPG2).
59748 if test "${ac_cv_header_iconv_h+set}" = set; then
59749 echo "$as_me:$LINENO: checking for iconv.h" >&5
59750 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59751 if test "${ac_cv_header_iconv_h+set}" = set; then
59752 echo $ECHO_N "(cached) $ECHO_C" >&6
59754 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59755 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59756 else
59757 # Is the header compilable?
59758 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59759 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59760 cat >conftest.$ac_ext <<_ACEOF
59761 /* confdefs.h. */
59762 _ACEOF
59763 cat confdefs.h >>conftest.$ac_ext
59764 cat >>conftest.$ac_ext <<_ACEOF
59765 /* end confdefs.h. */
59766 $ac_includes_default
59767 #include <iconv.h>
59768 _ACEOF
59769 rm -f conftest.$ac_objext
59770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59771 (eval $ac_compile) 2>conftest.er1
59772 ac_status=$?
59773 grep -v '^ *+' conftest.er1 >conftest.err
59774 rm -f conftest.er1
59775 cat conftest.err >&5
59776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59777 (exit $ac_status); } &&
59778 { ac_try='test -z "$ac_c_werror_flag"
59779 || test ! -s conftest.err'
59780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59781 (eval $ac_try) 2>&5
59782 ac_status=$?
59783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59784 (exit $ac_status); }; } &&
59785 { ac_try='test -s conftest.$ac_objext'
59786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59787 (eval $ac_try) 2>&5
59788 ac_status=$?
59789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59790 (exit $ac_status); }; }; then
59791 ac_header_compiler=yes
59792 else
59793 echo "$as_me: failed program was:" >&5
59794 sed 's/^/| /' conftest.$ac_ext >&5
59796 ac_header_compiler=no
59798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59800 echo "${ECHO_T}$ac_header_compiler" >&6
59802 # Is the header present?
59803 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59804 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59805 cat >conftest.$ac_ext <<_ACEOF
59806 /* confdefs.h. */
59807 _ACEOF
59808 cat confdefs.h >>conftest.$ac_ext
59809 cat >>conftest.$ac_ext <<_ACEOF
59810 /* end confdefs.h. */
59811 #include <iconv.h>
59812 _ACEOF
59813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59815 ac_status=$?
59816 grep -v '^ *+' conftest.er1 >conftest.err
59817 rm -f conftest.er1
59818 cat conftest.err >&5
59819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59820 (exit $ac_status); } >/dev/null; then
59821 if test -s conftest.err; then
59822 ac_cpp_err=$ac_c_preproc_warn_flag
59823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59824 else
59825 ac_cpp_err=
59827 else
59828 ac_cpp_err=yes
59830 if test -z "$ac_cpp_err"; then
59831 ac_header_preproc=yes
59832 else
59833 echo "$as_me: failed program was:" >&5
59834 sed 's/^/| /' conftest.$ac_ext >&5
59836 ac_header_preproc=no
59838 rm -f conftest.err conftest.$ac_ext
59839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59840 echo "${ECHO_T}$ac_header_preproc" >&6
59842 # So? What about this header?
59843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59844 yes:no: )
59845 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59846 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59847 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59848 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59849 ac_header_preproc=yes
59851 no:yes:* )
59852 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59853 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59854 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59855 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59856 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59857 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59858 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59859 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59860 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59861 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59862 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59863 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59865 cat <<\_ASBOX
59866 ## ----------------------------------------- ##
59867 ## Report this to the package-unused lists. ##
59868 ## ----------------------------------------- ##
59869 _ASBOX
59871 sed "s/^/$as_me: WARNING: /" >&2
59873 esac
59874 echo "$as_me:$LINENO: checking for iconv.h" >&5
59875 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59876 if test "${ac_cv_header_iconv_h+set}" = set; then
59877 echo $ECHO_N "(cached) $ECHO_C" >&6
59878 else
59879 ac_cv_header_iconv_h=$ac_header_preproc
59881 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59882 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59885 if test $ac_cv_header_iconv_h = yes; then
59886 ac_has_iconv_h=yes
59887 else
59888 ac_has_iconv_h=no
59892 if test "${ac_cv_header_langinfo_h+set}" = set; then
59893 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59894 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59895 if test "${ac_cv_header_langinfo_h+set}" = set; then
59896 echo $ECHO_N "(cached) $ECHO_C" >&6
59898 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59899 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59900 else
59901 # Is the header compilable?
59902 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59903 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59904 cat >conftest.$ac_ext <<_ACEOF
59905 /* confdefs.h. */
59906 _ACEOF
59907 cat confdefs.h >>conftest.$ac_ext
59908 cat >>conftest.$ac_ext <<_ACEOF
59909 /* end confdefs.h. */
59910 $ac_includes_default
59911 #include <langinfo.h>
59912 _ACEOF
59913 rm -f conftest.$ac_objext
59914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59915 (eval $ac_compile) 2>conftest.er1
59916 ac_status=$?
59917 grep -v '^ *+' conftest.er1 >conftest.err
59918 rm -f conftest.er1
59919 cat conftest.err >&5
59920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59921 (exit $ac_status); } &&
59922 { ac_try='test -z "$ac_c_werror_flag"
59923 || test ! -s conftest.err'
59924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59925 (eval $ac_try) 2>&5
59926 ac_status=$?
59927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59928 (exit $ac_status); }; } &&
59929 { ac_try='test -s conftest.$ac_objext'
59930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59931 (eval $ac_try) 2>&5
59932 ac_status=$?
59933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59934 (exit $ac_status); }; }; then
59935 ac_header_compiler=yes
59936 else
59937 echo "$as_me: failed program was:" >&5
59938 sed 's/^/| /' conftest.$ac_ext >&5
59940 ac_header_compiler=no
59942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59944 echo "${ECHO_T}$ac_header_compiler" >&6
59946 # Is the header present?
59947 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59948 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59949 cat >conftest.$ac_ext <<_ACEOF
59950 /* confdefs.h. */
59951 _ACEOF
59952 cat confdefs.h >>conftest.$ac_ext
59953 cat >>conftest.$ac_ext <<_ACEOF
59954 /* end confdefs.h. */
59955 #include <langinfo.h>
59956 _ACEOF
59957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59959 ac_status=$?
59960 grep -v '^ *+' conftest.er1 >conftest.err
59961 rm -f conftest.er1
59962 cat conftest.err >&5
59963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59964 (exit $ac_status); } >/dev/null; then
59965 if test -s conftest.err; then
59966 ac_cpp_err=$ac_c_preproc_warn_flag
59967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59968 else
59969 ac_cpp_err=
59971 else
59972 ac_cpp_err=yes
59974 if test -z "$ac_cpp_err"; then
59975 ac_header_preproc=yes
59976 else
59977 echo "$as_me: failed program was:" >&5
59978 sed 's/^/| /' conftest.$ac_ext >&5
59980 ac_header_preproc=no
59982 rm -f conftest.err conftest.$ac_ext
59983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59984 echo "${ECHO_T}$ac_header_preproc" >&6
59986 # So? What about this header?
59987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59988 yes:no: )
59989 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59990 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59991 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59992 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59993 ac_header_preproc=yes
59995 no:yes:* )
59996 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59997 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59998 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
59999 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
60000 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
60001 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
60002 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
60003 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
60004 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60005 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60006 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
60007 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
60009 cat <<\_ASBOX
60010 ## ----------------------------------------- ##
60011 ## Report this to the package-unused lists. ##
60012 ## ----------------------------------------- ##
60013 _ASBOX
60015 sed "s/^/$as_me: WARNING: /" >&2
60017 esac
60018 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60019 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60020 if test "${ac_cv_header_langinfo_h+set}" = set; then
60021 echo $ECHO_N "(cached) $ECHO_C" >&6
60022 else
60023 ac_cv_header_langinfo_h=$ac_header_preproc
60025 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60026 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60029 if test $ac_cv_header_langinfo_h = yes; then
60030 ac_has_langinfo_h=yes
60031 else
60032 ac_has_langinfo_h=no
60037 # Check for existence of libiconv.a providing XPG2 wchar_t support.
60038 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60039 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60040 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60041 echo $ECHO_N "(cached) $ECHO_C" >&6
60042 else
60043 ac_check_lib_save_LIBS=$LIBS
60044 LIBS="-liconv $LIBS"
60045 if test x$gcc_no_link = xyes; then
60046 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60048 { (exit 1); exit 1; }; }
60050 cat >conftest.$ac_ext <<_ACEOF
60051 /* confdefs.h. */
60052 _ACEOF
60053 cat confdefs.h >>conftest.$ac_ext
60054 cat >>conftest.$ac_ext <<_ACEOF
60055 /* end confdefs.h. */
60057 /* Override any gcc2 internal prototype to avoid an error. */
60058 #ifdef __cplusplus
60059 extern "C"
60060 #endif
60061 /* We use char because int might match the return type of a gcc2
60062 builtin and then its argument prototype would still apply. */
60063 char iconv ();
60065 main ()
60067 iconv ();
60069 return 0;
60071 _ACEOF
60072 rm -f conftest.$ac_objext conftest$ac_exeext
60073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60074 (eval $ac_link) 2>conftest.er1
60075 ac_status=$?
60076 grep -v '^ *+' conftest.er1 >conftest.err
60077 rm -f conftest.er1
60078 cat conftest.err >&5
60079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60080 (exit $ac_status); } &&
60081 { ac_try='test -z "$ac_c_werror_flag"
60082 || test ! -s conftest.err'
60083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60084 (eval $ac_try) 2>&5
60085 ac_status=$?
60086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60087 (exit $ac_status); }; } &&
60088 { ac_try='test -s conftest$ac_exeext'
60089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60090 (eval $ac_try) 2>&5
60091 ac_status=$?
60092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60093 (exit $ac_status); }; }; then
60094 ac_cv_lib_iconv_iconv=yes
60095 else
60096 echo "$as_me: failed program was:" >&5
60097 sed 's/^/| /' conftest.$ac_ext >&5
60099 ac_cv_lib_iconv_iconv=no
60101 rm -f conftest.err conftest.$ac_objext \
60102 conftest$ac_exeext conftest.$ac_ext
60103 LIBS=$ac_check_lib_save_LIBS
60105 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60106 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60107 if test $ac_cv_lib_iconv_iconv = yes; then
60108 LIBICONV="-liconv"
60111 ac_save_LIBS="$LIBS"
60112 LIBS="$LIBS $LIBICONV"
60119 for ac_func in iconv_open iconv_close iconv nl_langinfo
60121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60122 echo "$as_me:$LINENO: checking for $ac_func" >&5
60123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60124 if eval "test \"\${$as_ac_var+set}\" = set"; then
60125 echo $ECHO_N "(cached) $ECHO_C" >&6
60126 else
60127 if test x$gcc_no_link = xyes; then
60128 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60129 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60130 { (exit 1); exit 1; }; }
60132 cat >conftest.$ac_ext <<_ACEOF
60133 /* confdefs.h. */
60134 _ACEOF
60135 cat confdefs.h >>conftest.$ac_ext
60136 cat >>conftest.$ac_ext <<_ACEOF
60137 /* end confdefs.h. */
60138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60140 #define $ac_func innocuous_$ac_func
60142 /* System header to define __stub macros and hopefully few prototypes,
60143 which can conflict with char $ac_func (); below.
60144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60145 <limits.h> exists even on freestanding compilers. */
60147 #ifdef __STDC__
60148 # include <limits.h>
60149 #else
60150 # include <assert.h>
60151 #endif
60153 #undef $ac_func
60155 /* Override any gcc2 internal prototype to avoid an error. */
60156 #ifdef __cplusplus
60157 extern "C"
60159 #endif
60160 /* We use char because int might match the return type of a gcc2
60161 builtin and then its argument prototype would still apply. */
60162 char $ac_func ();
60163 /* The GNU C library defines this for functions which it implements
60164 to always fail with ENOSYS. Some functions are actually named
60165 something starting with __ and the normal name is an alias. */
60166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60167 choke me
60168 #else
60169 char (*f) () = $ac_func;
60170 #endif
60171 #ifdef __cplusplus
60173 #endif
60176 main ()
60178 return f != $ac_func;
60180 return 0;
60182 _ACEOF
60183 rm -f conftest.$ac_objext conftest$ac_exeext
60184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60185 (eval $ac_link) 2>conftest.er1
60186 ac_status=$?
60187 grep -v '^ *+' conftest.er1 >conftest.err
60188 rm -f conftest.er1
60189 cat conftest.err >&5
60190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60191 (exit $ac_status); } &&
60192 { ac_try='test -z "$ac_c_werror_flag"
60193 || test ! -s conftest.err'
60194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60195 (eval $ac_try) 2>&5
60196 ac_status=$?
60197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60198 (exit $ac_status); }; } &&
60199 { ac_try='test -s conftest$ac_exeext'
60200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60201 (eval $ac_try) 2>&5
60202 ac_status=$?
60203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60204 (exit $ac_status); }; }; then
60205 eval "$as_ac_var=yes"
60206 else
60207 echo "$as_me: failed program was:" >&5
60208 sed 's/^/| /' conftest.$ac_ext >&5
60210 eval "$as_ac_var=no"
60212 rm -f conftest.err conftest.$ac_objext \
60213 conftest$ac_exeext conftest.$ac_ext
60215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60217 if test `eval echo '${'$as_ac_var'}'` = yes; then
60218 cat >>confdefs.h <<_ACEOF
60219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60220 _ACEOF
60221 ac_XPG2funcs=yes
60222 else
60223 ac_XPG2funcs=no
60225 done
60228 LIBS="$ac_save_LIBS"
60230 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60231 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60232 if test x"$ac_has_iconv_h" = xyes &&
60233 test x"$ac_has_langinfo_h" = xyes &&
60234 test x"$ac_XPG2funcs" = xyes;
60235 then
60236 ac_XPG2_wchar_t=yes
60237 else
60238 ac_XPG2_wchar_t=no
60240 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60241 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60243 # At the moment, only enable wchar_t specializations if all the
60244 # above support is present.
60245 if test x"$ac_isoC99_wchar_t" = xyes &&
60246 test x"$ac_XPG2_wchar_t" = xyes;
60247 then
60248 cat >>confdefs.h <<\_ACEOF
60249 #define _GLIBCXX_USE_WCHAR_T 1
60250 _ACEOF
60252 enable_wchar_t=yes
60255 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60256 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60257 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60258 echo "${ECHO_T}$enable_wchar_t" >&6
60261 # For LFS.
60262 cat >>confdefs.h <<\_ACEOF
60263 #define HAVE_INT64_T 1
60264 _ACEOF
60266 case "$target" in
60267 *-uclinux*)
60268 # Don't enable LFS with uClibc
60271 cat >>confdefs.h <<\_ACEOF
60272 #define _GLIBCXX_USE_LFS 1
60273 _ACEOF
60275 esac
60277 # For showmanyc_helper().
60280 for ac_header in sys/ioctl.h sys/filio.h
60282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60284 echo "$as_me:$LINENO: checking for $ac_header" >&5
60285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60287 echo $ECHO_N "(cached) $ECHO_C" >&6
60289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60291 else
60292 # Is the header compilable?
60293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60295 cat >conftest.$ac_ext <<_ACEOF
60296 /* confdefs.h. */
60297 _ACEOF
60298 cat confdefs.h >>conftest.$ac_ext
60299 cat >>conftest.$ac_ext <<_ACEOF
60300 /* end confdefs.h. */
60301 $ac_includes_default
60302 #include <$ac_header>
60303 _ACEOF
60304 rm -f conftest.$ac_objext
60305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60306 (eval $ac_compile) 2>conftest.er1
60307 ac_status=$?
60308 grep -v '^ *+' conftest.er1 >conftest.err
60309 rm -f conftest.er1
60310 cat conftest.err >&5
60311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60312 (exit $ac_status); } &&
60313 { ac_try='test -z "$ac_c_werror_flag"
60314 || test ! -s conftest.err'
60315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60316 (eval $ac_try) 2>&5
60317 ac_status=$?
60318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60319 (exit $ac_status); }; } &&
60320 { ac_try='test -s conftest.$ac_objext'
60321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60322 (eval $ac_try) 2>&5
60323 ac_status=$?
60324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60325 (exit $ac_status); }; }; then
60326 ac_header_compiler=yes
60327 else
60328 echo "$as_me: failed program was:" >&5
60329 sed 's/^/| /' conftest.$ac_ext >&5
60331 ac_header_compiler=no
60333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60335 echo "${ECHO_T}$ac_header_compiler" >&6
60337 # Is the header present?
60338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60340 cat >conftest.$ac_ext <<_ACEOF
60341 /* confdefs.h. */
60342 _ACEOF
60343 cat confdefs.h >>conftest.$ac_ext
60344 cat >>conftest.$ac_ext <<_ACEOF
60345 /* end confdefs.h. */
60346 #include <$ac_header>
60347 _ACEOF
60348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60350 ac_status=$?
60351 grep -v '^ *+' conftest.er1 >conftest.err
60352 rm -f conftest.er1
60353 cat conftest.err >&5
60354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60355 (exit $ac_status); } >/dev/null; then
60356 if test -s conftest.err; then
60357 ac_cpp_err=$ac_c_preproc_warn_flag
60358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60359 else
60360 ac_cpp_err=
60362 else
60363 ac_cpp_err=yes
60365 if test -z "$ac_cpp_err"; then
60366 ac_header_preproc=yes
60367 else
60368 echo "$as_me: failed program was:" >&5
60369 sed 's/^/| /' conftest.$ac_ext >&5
60371 ac_header_preproc=no
60373 rm -f conftest.err conftest.$ac_ext
60374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60375 echo "${ECHO_T}$ac_header_preproc" >&6
60377 # So? What about this header?
60378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60379 yes:no: )
60380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60384 ac_header_preproc=yes
60386 no:yes:* )
60387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60400 cat <<\_ASBOX
60401 ## ----------------------------------------- ##
60402 ## Report this to the package-unused lists. ##
60403 ## ----------------------------------------- ##
60404 _ASBOX
60406 sed "s/^/$as_me: WARNING: /" >&2
60408 esac
60409 echo "$as_me:$LINENO: checking for $ac_header" >&5
60410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60412 echo $ECHO_N "(cached) $ECHO_C" >&6
60413 else
60414 eval "$as_ac_Header=\$ac_header_preproc"
60416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60421 cat >>confdefs.h <<_ACEOF
60422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60423 _ACEOF
60427 done
60430 if test "${glibcxx_cv_POLL+set}" = set; then
60431 echo $ECHO_N "(cached) $ECHO_C" >&6
60432 else
60434 if test x$gcc_no_link = xyes; then
60435 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60436 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60437 { (exit 1); exit 1; }; }
60439 cat >conftest.$ac_ext <<_ACEOF
60440 /* confdefs.h. */
60441 _ACEOF
60442 cat confdefs.h >>conftest.$ac_ext
60443 cat >>conftest.$ac_ext <<_ACEOF
60444 /* end confdefs.h. */
60445 #include <poll.h>
60447 main ()
60449 struct pollfd pfd[1];
60450 pfd[0].events = POLLIN;
60451 poll(pfd, 1, 0);
60453 return 0;
60455 _ACEOF
60456 rm -f conftest.$ac_objext conftest$ac_exeext
60457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60458 (eval $ac_link) 2>conftest.er1
60459 ac_status=$?
60460 grep -v '^ *+' conftest.er1 >conftest.err
60461 rm -f conftest.er1
60462 cat conftest.err >&5
60463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60464 (exit $ac_status); } &&
60465 { ac_try='test -z "$ac_c_werror_flag"
60466 || test ! -s conftest.err'
60467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60468 (eval $ac_try) 2>&5
60469 ac_status=$?
60470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60471 (exit $ac_status); }; } &&
60472 { ac_try='test -s conftest$ac_exeext'
60473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60474 (eval $ac_try) 2>&5
60475 ac_status=$?
60476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60477 (exit $ac_status); }; }; then
60478 glibcxx_cv_POLL=yes
60479 else
60480 echo "$as_me: failed program was:" >&5
60481 sed 's/^/| /' conftest.$ac_ext >&5
60483 glibcxx_cv_POLL=no
60485 rm -f conftest.err conftest.$ac_objext \
60486 conftest$ac_exeext conftest.$ac_ext
60490 if test $glibcxx_cv_POLL = yes; then
60491 cat >>confdefs.h <<\_ACEOF
60492 #define HAVE_POLL 1
60493 _ACEOF
60498 if test "${glibcxx_cv_S_ISREG+set}" = set; then
60499 echo $ECHO_N "(cached) $ECHO_C" >&6
60500 else
60502 if test x$gcc_no_link = xyes; then
60503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60505 { (exit 1); exit 1; }; }
60507 cat >conftest.$ac_ext <<_ACEOF
60508 /* confdefs.h. */
60509 _ACEOF
60510 cat confdefs.h >>conftest.$ac_ext
60511 cat >>conftest.$ac_ext <<_ACEOF
60512 /* end confdefs.h. */
60513 #include <sys/stat.h>
60515 main ()
60517 struct stat buffer;
60518 fstat(0, &buffer);
60519 S_ISREG(buffer.st_mode);
60521 return 0;
60523 _ACEOF
60524 rm -f conftest.$ac_objext conftest$ac_exeext
60525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60526 (eval $ac_link) 2>conftest.er1
60527 ac_status=$?
60528 grep -v '^ *+' conftest.er1 >conftest.err
60529 rm -f conftest.er1
60530 cat conftest.err >&5
60531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60532 (exit $ac_status); } &&
60533 { ac_try='test -z "$ac_c_werror_flag"
60534 || test ! -s conftest.err'
60535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60536 (eval $ac_try) 2>&5
60537 ac_status=$?
60538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60539 (exit $ac_status); }; } &&
60540 { ac_try='test -s conftest$ac_exeext'
60541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60542 (eval $ac_try) 2>&5
60543 ac_status=$?
60544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60545 (exit $ac_status); }; }; then
60546 glibcxx_cv_S_ISREG=yes
60547 else
60548 echo "$as_me: failed program was:" >&5
60549 sed 's/^/| /' conftest.$ac_ext >&5
60551 glibcxx_cv_S_ISREG=no
60553 rm -f conftest.err conftest.$ac_objext \
60554 conftest$ac_exeext conftest.$ac_ext
60558 if test "${glibcxx_cv_S_IFREG+set}" = set; then
60559 echo $ECHO_N "(cached) $ECHO_C" >&6
60560 else
60562 if test x$gcc_no_link = xyes; then
60563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60565 { (exit 1); exit 1; }; }
60567 cat >conftest.$ac_ext <<_ACEOF
60568 /* confdefs.h. */
60569 _ACEOF
60570 cat confdefs.h >>conftest.$ac_ext
60571 cat >>conftest.$ac_ext <<_ACEOF
60572 /* end confdefs.h. */
60573 #include <sys/stat.h>
60575 main ()
60577 struct stat buffer;
60578 fstat(0, &buffer);
60579 S_IFREG & buffer.st_mode;
60581 return 0;
60583 _ACEOF
60584 rm -f conftest.$ac_objext conftest$ac_exeext
60585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60586 (eval $ac_link) 2>conftest.er1
60587 ac_status=$?
60588 grep -v '^ *+' conftest.er1 >conftest.err
60589 rm -f conftest.er1
60590 cat conftest.err >&5
60591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60592 (exit $ac_status); } &&
60593 { ac_try='test -z "$ac_c_werror_flag"
60594 || test ! -s conftest.err'
60595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60596 (eval $ac_try) 2>&5
60597 ac_status=$?
60598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60599 (exit $ac_status); }; } &&
60600 { ac_try='test -s conftest$ac_exeext'
60601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60602 (eval $ac_try) 2>&5
60603 ac_status=$?
60604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60605 (exit $ac_status); }; }; then
60606 glibcxx_cv_S_IFREG=yes
60607 else
60608 echo "$as_me: failed program was:" >&5
60609 sed 's/^/| /' conftest.$ac_ext >&5
60611 glibcxx_cv_S_IFREG=no
60613 rm -f conftest.err conftest.$ac_objext \
60614 conftest$ac_exeext conftest.$ac_ext
60618 if test $glibcxx_cv_S_ISREG = yes; then
60619 cat >>confdefs.h <<\_ACEOF
60620 #define HAVE_S_ISREG 1
60621 _ACEOF
60623 elif test $glibcxx_cv_S_IFREG = yes; then
60624 cat >>confdefs.h <<\_ACEOF
60625 #define HAVE_S_IFREG 1
60626 _ACEOF
60631 # For xsputn_2().
60633 for ac_header in sys/uio.h
60635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60637 echo "$as_me:$LINENO: checking for $ac_header" >&5
60638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60640 echo $ECHO_N "(cached) $ECHO_C" >&6
60642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60644 else
60645 # Is the header compilable?
60646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60648 cat >conftest.$ac_ext <<_ACEOF
60649 /* confdefs.h. */
60650 _ACEOF
60651 cat confdefs.h >>conftest.$ac_ext
60652 cat >>conftest.$ac_ext <<_ACEOF
60653 /* end confdefs.h. */
60654 $ac_includes_default
60655 #include <$ac_header>
60656 _ACEOF
60657 rm -f conftest.$ac_objext
60658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60659 (eval $ac_compile) 2>conftest.er1
60660 ac_status=$?
60661 grep -v '^ *+' conftest.er1 >conftest.err
60662 rm -f conftest.er1
60663 cat conftest.err >&5
60664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60665 (exit $ac_status); } &&
60666 { ac_try='test -z "$ac_c_werror_flag"
60667 || test ! -s conftest.err'
60668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60669 (eval $ac_try) 2>&5
60670 ac_status=$?
60671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60672 (exit $ac_status); }; } &&
60673 { ac_try='test -s conftest.$ac_objext'
60674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60675 (eval $ac_try) 2>&5
60676 ac_status=$?
60677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60678 (exit $ac_status); }; }; then
60679 ac_header_compiler=yes
60680 else
60681 echo "$as_me: failed program was:" >&5
60682 sed 's/^/| /' conftest.$ac_ext >&5
60684 ac_header_compiler=no
60686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60688 echo "${ECHO_T}$ac_header_compiler" >&6
60690 # Is the header present?
60691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60693 cat >conftest.$ac_ext <<_ACEOF
60694 /* confdefs.h. */
60695 _ACEOF
60696 cat confdefs.h >>conftest.$ac_ext
60697 cat >>conftest.$ac_ext <<_ACEOF
60698 /* end confdefs.h. */
60699 #include <$ac_header>
60700 _ACEOF
60701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60703 ac_status=$?
60704 grep -v '^ *+' conftest.er1 >conftest.err
60705 rm -f conftest.er1
60706 cat conftest.err >&5
60707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60708 (exit $ac_status); } >/dev/null; then
60709 if test -s conftest.err; then
60710 ac_cpp_err=$ac_c_preproc_warn_flag
60711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60712 else
60713 ac_cpp_err=
60715 else
60716 ac_cpp_err=yes
60718 if test -z "$ac_cpp_err"; then
60719 ac_header_preproc=yes
60720 else
60721 echo "$as_me: failed program was:" >&5
60722 sed 's/^/| /' conftest.$ac_ext >&5
60724 ac_header_preproc=no
60726 rm -f conftest.err conftest.$ac_ext
60727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60728 echo "${ECHO_T}$ac_header_preproc" >&6
60730 # So? What about this header?
60731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60732 yes:no: )
60733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60737 ac_header_preproc=yes
60739 no:yes:* )
60740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60753 cat <<\_ASBOX
60754 ## ----------------------------------------- ##
60755 ## Report this to the package-unused lists. ##
60756 ## ----------------------------------------- ##
60757 _ASBOX
60759 sed "s/^/$as_me: WARNING: /" >&2
60761 esac
60762 echo "$as_me:$LINENO: checking for $ac_header" >&5
60763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60765 echo $ECHO_N "(cached) $ECHO_C" >&6
60766 else
60767 eval "$as_ac_Header=\$ac_header_preproc"
60769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60774 cat >>confdefs.h <<_ACEOF
60775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60776 _ACEOF
60780 done
60783 if test "${glibcxx_cv_WRITEV+set}" = set; then
60784 echo $ECHO_N "(cached) $ECHO_C" >&6
60785 else
60787 if test x$gcc_no_link = xyes; then
60788 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60790 { (exit 1); exit 1; }; }
60792 cat >conftest.$ac_ext <<_ACEOF
60793 /* confdefs.h. */
60794 _ACEOF
60795 cat confdefs.h >>conftest.$ac_ext
60796 cat >>conftest.$ac_ext <<_ACEOF
60797 /* end confdefs.h. */
60798 #include <sys/uio.h>
60800 main ()
60802 struct iovec iov[2];
60803 writev(0, iov, 0);
60805 return 0;
60807 _ACEOF
60808 rm -f conftest.$ac_objext conftest$ac_exeext
60809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60810 (eval $ac_link) 2>conftest.er1
60811 ac_status=$?
60812 grep -v '^ *+' conftest.er1 >conftest.err
60813 rm -f conftest.er1
60814 cat conftest.err >&5
60815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60816 (exit $ac_status); } &&
60817 { ac_try='test -z "$ac_c_werror_flag"
60818 || test ! -s conftest.err'
60819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60820 (eval $ac_try) 2>&5
60821 ac_status=$?
60822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60823 (exit $ac_status); }; } &&
60824 { ac_try='test -s conftest$ac_exeext'
60825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60826 (eval $ac_try) 2>&5
60827 ac_status=$?
60828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60829 (exit $ac_status); }; }; then
60830 glibcxx_cv_WRITEV=yes
60831 else
60832 echo "$as_me: failed program was:" >&5
60833 sed 's/^/| /' conftest.$ac_ext >&5
60835 glibcxx_cv_WRITEV=no
60837 rm -f conftest.err conftest.$ac_objext \
60838 conftest$ac_exeext conftest.$ac_ext
60842 if test $glibcxx_cv_WRITEV = yes; then
60843 cat >>confdefs.h <<\_ACEOF
60844 #define HAVE_WRITEV 1
60845 _ACEOF
60850 cat >>confdefs.h <<\_ACEOF
60851 #define HAVE_COPYSIGN 1
60852 _ACEOF
60854 cat >>confdefs.h <<\_ACEOF
60855 #define HAVE_COPYSIGNF 1
60856 _ACEOF
60858 cat >>confdefs.h <<\_ACEOF
60859 #define HAVE_FINITE 1
60860 _ACEOF
60862 cat >>confdefs.h <<\_ACEOF
60863 #define HAVE_FINITEF 1
60864 _ACEOF
60866 cat >>confdefs.h <<\_ACEOF
60867 #define HAVE_FREXPF 1
60868 _ACEOF
60870 cat >>confdefs.h <<\_ACEOF
60871 #define HAVE_HYPOTF 1
60872 _ACEOF
60874 cat >>confdefs.h <<\_ACEOF
60875 #define HAVE_ISINF 1
60876 _ACEOF
60878 cat >>confdefs.h <<\_ACEOF
60879 #define HAVE_ISINFF 1
60880 _ACEOF
60882 cat >>confdefs.h <<\_ACEOF
60883 #define HAVE_ISNAN 1
60884 _ACEOF
60886 cat >>confdefs.h <<\_ACEOF
60887 #define HAVE_ISNANF 1
60888 _ACEOF
60890 cat >>confdefs.h <<\_ACEOF
60891 #define HAVE_SINCOS 1
60892 _ACEOF
60894 cat >>confdefs.h <<\_ACEOF
60895 #define HAVE_SINCOSF 1
60896 _ACEOF
60898 if test x"long_double_math_on_this_cpu" = x"yes"; then
60899 cat >>confdefs.h <<\_ACEOF
60900 #define HAVE_FINITEL 1
60901 _ACEOF
60903 cat >>confdefs.h <<\_ACEOF
60904 #define HAVE_HYPOTL 1
60905 _ACEOF
60907 cat >>confdefs.h <<\_ACEOF
60908 #define HAVE_ISINFL 1
60909 _ACEOF
60911 cat >>confdefs.h <<\_ACEOF
60912 #define HAVE_ISNANL 1
60913 _ACEOF
60917 *-mingw32*)
60921 for ac_header in sys/types.h locale.h float.h
60923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60925 echo "$as_me:$LINENO: checking for $ac_header" >&5
60926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60928 echo $ECHO_N "(cached) $ECHO_C" >&6
60930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60932 else
60933 # Is the header compilable?
60934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60936 cat >conftest.$ac_ext <<_ACEOF
60937 /* confdefs.h. */
60938 _ACEOF
60939 cat confdefs.h >>conftest.$ac_ext
60940 cat >>conftest.$ac_ext <<_ACEOF
60941 /* end confdefs.h. */
60942 $ac_includes_default
60943 #include <$ac_header>
60944 _ACEOF
60945 rm -f conftest.$ac_objext
60946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60947 (eval $ac_compile) 2>conftest.er1
60948 ac_status=$?
60949 grep -v '^ *+' conftest.er1 >conftest.err
60950 rm -f conftest.er1
60951 cat conftest.err >&5
60952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60953 (exit $ac_status); } &&
60954 { ac_try='test -z "$ac_c_werror_flag"
60955 || test ! -s conftest.err'
60956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60957 (eval $ac_try) 2>&5
60958 ac_status=$?
60959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60960 (exit $ac_status); }; } &&
60961 { ac_try='test -s conftest.$ac_objext'
60962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60963 (eval $ac_try) 2>&5
60964 ac_status=$?
60965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60966 (exit $ac_status); }; }; then
60967 ac_header_compiler=yes
60968 else
60969 echo "$as_me: failed program was:" >&5
60970 sed 's/^/| /' conftest.$ac_ext >&5
60972 ac_header_compiler=no
60974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60976 echo "${ECHO_T}$ac_header_compiler" >&6
60978 # Is the header present?
60979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60981 cat >conftest.$ac_ext <<_ACEOF
60982 /* confdefs.h. */
60983 _ACEOF
60984 cat confdefs.h >>conftest.$ac_ext
60985 cat >>conftest.$ac_ext <<_ACEOF
60986 /* end confdefs.h. */
60987 #include <$ac_header>
60988 _ACEOF
60989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60991 ac_status=$?
60992 grep -v '^ *+' conftest.er1 >conftest.err
60993 rm -f conftest.er1
60994 cat conftest.err >&5
60995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60996 (exit $ac_status); } >/dev/null; then
60997 if test -s conftest.err; then
60998 ac_cpp_err=$ac_c_preproc_warn_flag
60999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61000 else
61001 ac_cpp_err=
61003 else
61004 ac_cpp_err=yes
61006 if test -z "$ac_cpp_err"; then
61007 ac_header_preproc=yes
61008 else
61009 echo "$as_me: failed program was:" >&5
61010 sed 's/^/| /' conftest.$ac_ext >&5
61012 ac_header_preproc=no
61014 rm -f conftest.err conftest.$ac_ext
61015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61016 echo "${ECHO_T}$ac_header_preproc" >&6
61018 # So? What about this header?
61019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61020 yes:no: )
61021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61025 ac_header_preproc=yes
61027 no:yes:* )
61028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61041 cat <<\_ASBOX
61042 ## ----------------------------------------- ##
61043 ## Report this to the package-unused lists. ##
61044 ## ----------------------------------------- ##
61045 _ASBOX
61047 sed "s/^/$as_me: WARNING: /" >&2
61049 esac
61050 echo "$as_me:$LINENO: checking for $ac_header" >&5
61051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61053 echo $ECHO_N "(cached) $ECHO_C" >&6
61054 else
61055 eval "$as_ac_Header=\$ac_header_preproc"
61057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61062 cat >>confdefs.h <<_ACEOF
61063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61064 _ACEOF
61068 done
61071 # If we're not using GNU ld, then there's no point in even trying these
61072 # tests. Check for that first. We should have already tested for gld
61073 # by now (in libtool), but require it now just to be safe...
61074 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61075 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61079 # The name set by libtool depends on the version of libtool. Shame on us
61080 # for depending on an impl detail, but c'est la vie. Older versions used
61081 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61082 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61083 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61084 # set (hence we're using an older libtool), then set it.
61085 if test x${with_gnu_ld+set} != xset; then
61086 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61087 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61088 with_gnu_ld=no
61089 else
61090 with_gnu_ld=$ac_cv_prog_gnu_ld
61094 # Start by getting the version number. I think the libtool test already
61095 # does some of this, but throws away the result.
61097 ldver=`$LD --version 2>/dev/null | head -1 | \
61098 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61100 glibcxx_gnu_ld_version=`echo $ldver | \
61101 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61103 # Set --gc-sections.
61104 if test "$with_gnu_ld" = "notbroken"; then
61105 # GNU ld it is! Joy and bunny rabbits!
61107 # All these tests are for C++; save the language and the compiler flags.
61108 # Need to do this so that g++ won't try to link in libstdc++
61109 ac_test_CFLAGS="${CFLAGS+set}"
61110 ac_save_CFLAGS="$CFLAGS"
61111 CFLAGS='-x c++ -Wl,--gc-sections'
61113 # Check for -Wl,--gc-sections
61114 # XXX This test is broken at the moment, as symbols required for linking
61115 # are now in libsupc++ (not built yet). In addition, this test has
61116 # cored on solaris in the past. In addition, --gc-sections doesn't
61117 # really work at the moment (keeps on discarding used sections, first
61118 # .eh_frame and now some of the glibc sections for iconv).
61119 # Bzzzzt. Thanks for playing, maybe next time.
61120 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61121 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61122 if test "$cross_compiling" = yes; then
61123 ac_sectionLDflags=yes
61124 else
61125 cat >conftest.$ac_ext <<_ACEOF
61126 /* confdefs.h. */
61127 _ACEOF
61128 cat confdefs.h >>conftest.$ac_ext
61129 cat >>conftest.$ac_ext <<_ACEOF
61130 /* end confdefs.h. */
61132 int main(void)
61134 try { throw 1; }
61135 catch (...) { };
61136 return 0;
61139 _ACEOF
61140 rm -f conftest$ac_exeext
61141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61142 (eval $ac_link) 2>&5
61143 ac_status=$?
61144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61147 (eval $ac_try) 2>&5
61148 ac_status=$?
61149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61150 (exit $ac_status); }; }; then
61151 ac_sectionLDflags=yes
61152 else
61153 echo "$as_me: program exited with status $ac_status" >&5
61154 echo "$as_me: failed program was:" >&5
61155 sed 's/^/| /' conftest.$ac_ext >&5
61157 ( exit $ac_status )
61158 ac_sectionLDflags=no
61160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61162 if test "$ac_test_CFLAGS" = set; then
61163 CFLAGS="$ac_save_CFLAGS"
61164 else
61165 # this is the suspicious part
61166 CFLAGS=''
61168 if test "$ac_sectionLDflags" = "yes"; then
61169 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61171 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61172 echo "${ECHO_T}$ac_sectionLDflags" >&6
61175 # Set linker optimization flags.
61176 if test x"$with_gnu_ld" = x"yes"; then
61177 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61185 echo "$as_me:$LINENO: checking for main in -lm" >&5
61186 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61187 if test "${ac_cv_lib_m_main+set}" = set; then
61188 echo $ECHO_N "(cached) $ECHO_C" >&6
61189 else
61190 ac_check_lib_save_LIBS=$LIBS
61191 LIBS="-lm $LIBS"
61192 if test x$gcc_no_link = xyes; then
61193 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61194 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61195 { (exit 1); exit 1; }; }
61197 cat >conftest.$ac_ext <<_ACEOF
61198 /* confdefs.h. */
61199 _ACEOF
61200 cat confdefs.h >>conftest.$ac_ext
61201 cat >>conftest.$ac_ext <<_ACEOF
61202 /* end confdefs.h. */
61206 main ()
61208 main ();
61210 return 0;
61212 _ACEOF
61213 rm -f conftest.$ac_objext conftest$ac_exeext
61214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61215 (eval $ac_link) 2>conftest.er1
61216 ac_status=$?
61217 grep -v '^ *+' conftest.er1 >conftest.err
61218 rm -f conftest.er1
61219 cat conftest.err >&5
61220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61221 (exit $ac_status); } &&
61222 { ac_try='test -z "$ac_c_werror_flag"
61223 || test ! -s conftest.err'
61224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61225 (eval $ac_try) 2>&5
61226 ac_status=$?
61227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61228 (exit $ac_status); }; } &&
61229 { ac_try='test -s conftest$ac_exeext'
61230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61231 (eval $ac_try) 2>&5
61232 ac_status=$?
61233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61234 (exit $ac_status); }; }; then
61235 ac_cv_lib_m_main=yes
61236 else
61237 echo "$as_me: failed program was:" >&5
61238 sed 's/^/| /' conftest.$ac_ext >&5
61240 ac_cv_lib_m_main=no
61242 rm -f conftest.err conftest.$ac_objext \
61243 conftest$ac_exeext conftest.$ac_ext
61244 LIBS=$ac_check_lib_save_LIBS
61246 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61247 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61248 if test $ac_cv_lib_m_main = yes; then
61249 cat >>confdefs.h <<_ACEOF
61250 #define HAVE_LIBM 1
61251 _ACEOF
61253 LIBS="-lm $LIBS"
61258 for ac_func in copysignf
61260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61261 echo "$as_me:$LINENO: checking for $ac_func" >&5
61262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61263 if eval "test \"\${$as_ac_var+set}\" = set"; then
61264 echo $ECHO_N "(cached) $ECHO_C" >&6
61265 else
61266 if test x$gcc_no_link = xyes; then
61267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61269 { (exit 1); exit 1; }; }
61271 cat >conftest.$ac_ext <<_ACEOF
61272 /* confdefs.h. */
61273 _ACEOF
61274 cat confdefs.h >>conftest.$ac_ext
61275 cat >>conftest.$ac_ext <<_ACEOF
61276 /* end confdefs.h. */
61277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61279 #define $ac_func innocuous_$ac_func
61281 /* System header to define __stub macros and hopefully few prototypes,
61282 which can conflict with char $ac_func (); below.
61283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61284 <limits.h> exists even on freestanding compilers. */
61286 #ifdef __STDC__
61287 # include <limits.h>
61288 #else
61289 # include <assert.h>
61290 #endif
61292 #undef $ac_func
61294 /* Override any gcc2 internal prototype to avoid an error. */
61295 #ifdef __cplusplus
61296 extern "C"
61298 #endif
61299 /* We use char because int might match the return type of a gcc2
61300 builtin and then its argument prototype would still apply. */
61301 char $ac_func ();
61302 /* The GNU C library defines this for functions which it implements
61303 to always fail with ENOSYS. Some functions are actually named
61304 something starting with __ and the normal name is an alias. */
61305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61306 choke me
61307 #else
61308 char (*f) () = $ac_func;
61309 #endif
61310 #ifdef __cplusplus
61312 #endif
61315 main ()
61317 return f != $ac_func;
61319 return 0;
61321 _ACEOF
61322 rm -f conftest.$ac_objext conftest$ac_exeext
61323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61324 (eval $ac_link) 2>conftest.er1
61325 ac_status=$?
61326 grep -v '^ *+' conftest.er1 >conftest.err
61327 rm -f conftest.er1
61328 cat conftest.err >&5
61329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61330 (exit $ac_status); } &&
61331 { ac_try='test -z "$ac_c_werror_flag"
61332 || test ! -s conftest.err'
61333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61334 (eval $ac_try) 2>&5
61335 ac_status=$?
61336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61337 (exit $ac_status); }; } &&
61338 { ac_try='test -s conftest$ac_exeext'
61339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61340 (eval $ac_try) 2>&5
61341 ac_status=$?
61342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61343 (exit $ac_status); }; }; then
61344 eval "$as_ac_var=yes"
61345 else
61346 echo "$as_me: failed program was:" >&5
61347 sed 's/^/| /' conftest.$ac_ext >&5
61349 eval "$as_ac_var=no"
61351 rm -f conftest.err conftest.$ac_objext \
61352 conftest$ac_exeext conftest.$ac_ext
61354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61356 if test `eval echo '${'$as_ac_var'}'` = yes; then
61357 cat >>confdefs.h <<_ACEOF
61358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61359 _ACEOF
61361 else
61362 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61364 done
61368 for ac_func in __signbit
61370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61371 echo "$as_me:$LINENO: checking for $ac_func" >&5
61372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61373 if eval "test \"\${$as_ac_var+set}\" = set"; then
61374 echo $ECHO_N "(cached) $ECHO_C" >&6
61375 else
61376 if test x$gcc_no_link = xyes; then
61377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61379 { (exit 1); exit 1; }; }
61381 cat >conftest.$ac_ext <<_ACEOF
61382 /* confdefs.h. */
61383 _ACEOF
61384 cat confdefs.h >>conftest.$ac_ext
61385 cat >>conftest.$ac_ext <<_ACEOF
61386 /* end confdefs.h. */
61387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61389 #define $ac_func innocuous_$ac_func
61391 /* System header to define __stub macros and hopefully few prototypes,
61392 which can conflict with char $ac_func (); below.
61393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61394 <limits.h> exists even on freestanding compilers. */
61396 #ifdef __STDC__
61397 # include <limits.h>
61398 #else
61399 # include <assert.h>
61400 #endif
61402 #undef $ac_func
61404 /* Override any gcc2 internal prototype to avoid an error. */
61405 #ifdef __cplusplus
61406 extern "C"
61408 #endif
61409 /* We use char because int might match the return type of a gcc2
61410 builtin and then its argument prototype would still apply. */
61411 char $ac_func ();
61412 /* The GNU C library defines this for functions which it implements
61413 to always fail with ENOSYS. Some functions are actually named
61414 something starting with __ and the normal name is an alias. */
61415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61416 choke me
61417 #else
61418 char (*f) () = $ac_func;
61419 #endif
61420 #ifdef __cplusplus
61422 #endif
61425 main ()
61427 return f != $ac_func;
61429 return 0;
61431 _ACEOF
61432 rm -f conftest.$ac_objext conftest$ac_exeext
61433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61434 (eval $ac_link) 2>conftest.er1
61435 ac_status=$?
61436 grep -v '^ *+' conftest.er1 >conftest.err
61437 rm -f conftest.er1
61438 cat conftest.err >&5
61439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61440 (exit $ac_status); } &&
61441 { ac_try='test -z "$ac_c_werror_flag"
61442 || test ! -s conftest.err'
61443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61444 (eval $ac_try) 2>&5
61445 ac_status=$?
61446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61447 (exit $ac_status); }; } &&
61448 { ac_try='test -s conftest$ac_exeext'
61449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61450 (eval $ac_try) 2>&5
61451 ac_status=$?
61452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61453 (exit $ac_status); }; }; then
61454 eval "$as_ac_var=yes"
61455 else
61456 echo "$as_me: failed program was:" >&5
61457 sed 's/^/| /' conftest.$ac_ext >&5
61459 eval "$as_ac_var=no"
61461 rm -f conftest.err conftest.$ac_objext \
61462 conftest$ac_exeext conftest.$ac_ext
61464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61466 if test `eval echo '${'$as_ac_var'}'` = yes; then
61467 cat >>confdefs.h <<_ACEOF
61468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61469 _ACEOF
61471 else
61472 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61474 done
61477 for ac_func in __signbitf
61479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61480 echo "$as_me:$LINENO: checking for $ac_func" >&5
61481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61482 if eval "test \"\${$as_ac_var+set}\" = set"; then
61483 echo $ECHO_N "(cached) $ECHO_C" >&6
61484 else
61485 if test x$gcc_no_link = xyes; then
61486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61488 { (exit 1); exit 1; }; }
61490 cat >conftest.$ac_ext <<_ACEOF
61491 /* confdefs.h. */
61492 _ACEOF
61493 cat confdefs.h >>conftest.$ac_ext
61494 cat >>conftest.$ac_ext <<_ACEOF
61495 /* end confdefs.h. */
61496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61498 #define $ac_func innocuous_$ac_func
61500 /* System header to define __stub macros and hopefully few prototypes,
61501 which can conflict with char $ac_func (); below.
61502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61503 <limits.h> exists even on freestanding compilers. */
61505 #ifdef __STDC__
61506 # include <limits.h>
61507 #else
61508 # include <assert.h>
61509 #endif
61511 #undef $ac_func
61513 /* Override any gcc2 internal prototype to avoid an error. */
61514 #ifdef __cplusplus
61515 extern "C"
61517 #endif
61518 /* We use char because int might match the return type of a gcc2
61519 builtin and then its argument prototype would still apply. */
61520 char $ac_func ();
61521 /* The GNU C library defines this for functions which it implements
61522 to always fail with ENOSYS. Some functions are actually named
61523 something starting with __ and the normal name is an alias. */
61524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61525 choke me
61526 #else
61527 char (*f) () = $ac_func;
61528 #endif
61529 #ifdef __cplusplus
61531 #endif
61534 main ()
61536 return f != $ac_func;
61538 return 0;
61540 _ACEOF
61541 rm -f conftest.$ac_objext conftest$ac_exeext
61542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61543 (eval $ac_link) 2>conftest.er1
61544 ac_status=$?
61545 grep -v '^ *+' conftest.er1 >conftest.err
61546 rm -f conftest.er1
61547 cat conftest.err >&5
61548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61549 (exit $ac_status); } &&
61550 { ac_try='test -z "$ac_c_werror_flag"
61551 || test ! -s conftest.err'
61552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61553 (eval $ac_try) 2>&5
61554 ac_status=$?
61555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61556 (exit $ac_status); }; } &&
61557 { ac_try='test -s conftest$ac_exeext'
61558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61559 (eval $ac_try) 2>&5
61560 ac_status=$?
61561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61562 (exit $ac_status); }; }; then
61563 eval "$as_ac_var=yes"
61564 else
61565 echo "$as_me: failed program was:" >&5
61566 sed 's/^/| /' conftest.$ac_ext >&5
61568 eval "$as_ac_var=no"
61570 rm -f conftest.err conftest.$ac_objext \
61571 conftest$ac_exeext conftest.$ac_ext
61573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61575 if test `eval echo '${'$as_ac_var'}'` = yes; then
61576 cat >>confdefs.h <<_ACEOF
61577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61578 _ACEOF
61580 else
61581 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61583 done
61586 if test x$ac_cv_func_copysignl = x"yes"; then
61588 for ac_func in __signbitl
61590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61591 echo "$as_me:$LINENO: checking for $ac_func" >&5
61592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61593 if eval "test \"\${$as_ac_var+set}\" = set"; then
61594 echo $ECHO_N "(cached) $ECHO_C" >&6
61595 else
61596 if test x$gcc_no_link = xyes; then
61597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61599 { (exit 1); exit 1; }; }
61601 cat >conftest.$ac_ext <<_ACEOF
61602 /* confdefs.h. */
61603 _ACEOF
61604 cat confdefs.h >>conftest.$ac_ext
61605 cat >>conftest.$ac_ext <<_ACEOF
61606 /* end confdefs.h. */
61607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61609 #define $ac_func innocuous_$ac_func
61611 /* System header to define __stub macros and hopefully few prototypes,
61612 which can conflict with char $ac_func (); below.
61613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61614 <limits.h> exists even on freestanding compilers. */
61616 #ifdef __STDC__
61617 # include <limits.h>
61618 #else
61619 # include <assert.h>
61620 #endif
61622 #undef $ac_func
61624 /* Override any gcc2 internal prototype to avoid an error. */
61625 #ifdef __cplusplus
61626 extern "C"
61628 #endif
61629 /* We use char because int might match the return type of a gcc2
61630 builtin and then its argument prototype would still apply. */
61631 char $ac_func ();
61632 /* The GNU C library defines this for functions which it implements
61633 to always fail with ENOSYS. Some functions are actually named
61634 something starting with __ and the normal name is an alias. */
61635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61636 choke me
61637 #else
61638 char (*f) () = $ac_func;
61639 #endif
61640 #ifdef __cplusplus
61642 #endif
61645 main ()
61647 return f != $ac_func;
61649 return 0;
61651 _ACEOF
61652 rm -f conftest.$ac_objext conftest$ac_exeext
61653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61654 (eval $ac_link) 2>conftest.er1
61655 ac_status=$?
61656 grep -v '^ *+' conftest.er1 >conftest.err
61657 rm -f conftest.er1
61658 cat conftest.err >&5
61659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61660 (exit $ac_status); } &&
61661 { ac_try='test -z "$ac_c_werror_flag"
61662 || test ! -s conftest.err'
61663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61664 (eval $ac_try) 2>&5
61665 ac_status=$?
61666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61667 (exit $ac_status); }; } &&
61668 { ac_try='test -s conftest$ac_exeext'
61669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61670 (eval $ac_try) 2>&5
61671 ac_status=$?
61672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61673 (exit $ac_status); }; }; then
61674 eval "$as_ac_var=yes"
61675 else
61676 echo "$as_me: failed program was:" >&5
61677 sed 's/^/| /' conftest.$ac_ext >&5
61679 eval "$as_ac_var=no"
61681 rm -f conftest.err conftest.$ac_objext \
61682 conftest$ac_exeext conftest.$ac_ext
61684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61686 if test `eval echo '${'$as_ac_var'}'` = yes; then
61687 cat >>confdefs.h <<_ACEOF
61688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61689 _ACEOF
61691 else
61692 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61694 done
61698 # XXX Review this. Nothing uses it.
61699 if test -n "$LIBMATHOBJS"; then
61700 need_libmath=yes
61705 # Test wchar.h for mbstate_t, which is needed for char_traits and
61706 # others even if wchar_t support is not on.
61707 echo "$as_me:$LINENO: checking for mbstate_t" >&5
61708 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61709 cat >conftest.$ac_ext <<_ACEOF
61710 /* confdefs.h. */
61711 _ACEOF
61712 cat confdefs.h >>conftest.$ac_ext
61713 cat >>conftest.$ac_ext <<_ACEOF
61714 /* end confdefs.h. */
61715 #include <wchar.h>
61717 main ()
61719 mbstate_t teststate;
61721 return 0;
61723 _ACEOF
61724 rm -f conftest.$ac_objext
61725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61726 (eval $ac_compile) 2>conftest.er1
61727 ac_status=$?
61728 grep -v '^ *+' conftest.er1 >conftest.err
61729 rm -f conftest.er1
61730 cat conftest.err >&5
61731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61732 (exit $ac_status); } &&
61733 { ac_try='test -z "$ac_c_werror_flag"
61734 || test ! -s conftest.err'
61735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61736 (eval $ac_try) 2>&5
61737 ac_status=$?
61738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61739 (exit $ac_status); }; } &&
61740 { ac_try='test -s conftest.$ac_objext'
61741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61742 (eval $ac_try) 2>&5
61743 ac_status=$?
61744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61745 (exit $ac_status); }; }; then
61746 have_mbstate_t=yes
61747 else
61748 echo "$as_me: failed program was:" >&5
61749 sed 's/^/| /' conftest.$ac_ext >&5
61751 have_mbstate_t=no
61753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61754 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61755 echo "${ECHO_T}$have_mbstate_t" >&6
61756 if test x"$have_mbstate_t" = xyes; then
61757 cat >>confdefs.h <<\_ACEOF
61758 #define HAVE_MBSTATE_T 1
61759 _ACEOF
61763 # Sanity check for existence of ISO C99 headers for extended encoding.
61765 for ac_header in wchar.h
61767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61769 echo "$as_me:$LINENO: checking for $ac_header" >&5
61770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61772 echo $ECHO_N "(cached) $ECHO_C" >&6
61774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61776 else
61777 # Is the header compilable?
61778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61780 cat >conftest.$ac_ext <<_ACEOF
61781 /* confdefs.h. */
61782 _ACEOF
61783 cat confdefs.h >>conftest.$ac_ext
61784 cat >>conftest.$ac_ext <<_ACEOF
61785 /* end confdefs.h. */
61786 $ac_includes_default
61787 #include <$ac_header>
61788 _ACEOF
61789 rm -f conftest.$ac_objext
61790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61791 (eval $ac_compile) 2>conftest.er1
61792 ac_status=$?
61793 grep -v '^ *+' conftest.er1 >conftest.err
61794 rm -f conftest.er1
61795 cat conftest.err >&5
61796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61797 (exit $ac_status); } &&
61798 { ac_try='test -z "$ac_c_werror_flag"
61799 || test ! -s conftest.err'
61800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61801 (eval $ac_try) 2>&5
61802 ac_status=$?
61803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61804 (exit $ac_status); }; } &&
61805 { ac_try='test -s conftest.$ac_objext'
61806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61807 (eval $ac_try) 2>&5
61808 ac_status=$?
61809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61810 (exit $ac_status); }; }; then
61811 ac_header_compiler=yes
61812 else
61813 echo "$as_me: failed program was:" >&5
61814 sed 's/^/| /' conftest.$ac_ext >&5
61816 ac_header_compiler=no
61818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61820 echo "${ECHO_T}$ac_header_compiler" >&6
61822 # Is the header present?
61823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61825 cat >conftest.$ac_ext <<_ACEOF
61826 /* confdefs.h. */
61827 _ACEOF
61828 cat confdefs.h >>conftest.$ac_ext
61829 cat >>conftest.$ac_ext <<_ACEOF
61830 /* end confdefs.h. */
61831 #include <$ac_header>
61832 _ACEOF
61833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61835 ac_status=$?
61836 grep -v '^ *+' conftest.er1 >conftest.err
61837 rm -f conftest.er1
61838 cat conftest.err >&5
61839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61840 (exit $ac_status); } >/dev/null; then
61841 if test -s conftest.err; then
61842 ac_cpp_err=$ac_c_preproc_warn_flag
61843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61844 else
61845 ac_cpp_err=
61847 else
61848 ac_cpp_err=yes
61850 if test -z "$ac_cpp_err"; then
61851 ac_header_preproc=yes
61852 else
61853 echo "$as_me: failed program was:" >&5
61854 sed 's/^/| /' conftest.$ac_ext >&5
61856 ac_header_preproc=no
61858 rm -f conftest.err conftest.$ac_ext
61859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61860 echo "${ECHO_T}$ac_header_preproc" >&6
61862 # So? What about this header?
61863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61864 yes:no: )
61865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61869 ac_header_preproc=yes
61871 no:yes:* )
61872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61885 cat <<\_ASBOX
61886 ## ----------------------------------------- ##
61887 ## Report this to the package-unused lists. ##
61888 ## ----------------------------------------- ##
61889 _ASBOX
61891 sed "s/^/$as_me: WARNING: /" >&2
61893 esac
61894 echo "$as_me:$LINENO: checking for $ac_header" >&5
61895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61897 echo $ECHO_N "(cached) $ECHO_C" >&6
61898 else
61899 eval "$as_ac_Header=\$ac_header_preproc"
61901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61906 cat >>confdefs.h <<_ACEOF
61907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61908 _ACEOF
61909 ac_has_wchar_h=yes
61910 else
61911 ac_has_wchar_h=no
61914 done
61917 for ac_header in wctype.h
61919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61921 echo "$as_me:$LINENO: checking for $ac_header" >&5
61922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61924 echo $ECHO_N "(cached) $ECHO_C" >&6
61926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61928 else
61929 # Is the header compilable?
61930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61932 cat >conftest.$ac_ext <<_ACEOF
61933 /* confdefs.h. */
61934 _ACEOF
61935 cat confdefs.h >>conftest.$ac_ext
61936 cat >>conftest.$ac_ext <<_ACEOF
61937 /* end confdefs.h. */
61938 $ac_includes_default
61939 #include <$ac_header>
61940 _ACEOF
61941 rm -f conftest.$ac_objext
61942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61943 (eval $ac_compile) 2>conftest.er1
61944 ac_status=$?
61945 grep -v '^ *+' conftest.er1 >conftest.err
61946 rm -f conftest.er1
61947 cat conftest.err >&5
61948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61949 (exit $ac_status); } &&
61950 { ac_try='test -z "$ac_c_werror_flag"
61951 || test ! -s conftest.err'
61952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61953 (eval $ac_try) 2>&5
61954 ac_status=$?
61955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61956 (exit $ac_status); }; } &&
61957 { ac_try='test -s conftest.$ac_objext'
61958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61959 (eval $ac_try) 2>&5
61960 ac_status=$?
61961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61962 (exit $ac_status); }; }; then
61963 ac_header_compiler=yes
61964 else
61965 echo "$as_me: failed program was:" >&5
61966 sed 's/^/| /' conftest.$ac_ext >&5
61968 ac_header_compiler=no
61970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61972 echo "${ECHO_T}$ac_header_compiler" >&6
61974 # Is the header present?
61975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61977 cat >conftest.$ac_ext <<_ACEOF
61978 /* confdefs.h. */
61979 _ACEOF
61980 cat confdefs.h >>conftest.$ac_ext
61981 cat >>conftest.$ac_ext <<_ACEOF
61982 /* end confdefs.h. */
61983 #include <$ac_header>
61984 _ACEOF
61985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61987 ac_status=$?
61988 grep -v '^ *+' conftest.er1 >conftest.err
61989 rm -f conftest.er1
61990 cat conftest.err >&5
61991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61992 (exit $ac_status); } >/dev/null; then
61993 if test -s conftest.err; then
61994 ac_cpp_err=$ac_c_preproc_warn_flag
61995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61996 else
61997 ac_cpp_err=
61999 else
62000 ac_cpp_err=yes
62002 if test -z "$ac_cpp_err"; then
62003 ac_header_preproc=yes
62004 else
62005 echo "$as_me: failed program was:" >&5
62006 sed 's/^/| /' conftest.$ac_ext >&5
62008 ac_header_preproc=no
62010 rm -f conftest.err conftest.$ac_ext
62011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62012 echo "${ECHO_T}$ac_header_preproc" >&6
62014 # So? What about this header?
62015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62016 yes:no: )
62017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62021 ac_header_preproc=yes
62023 no:yes:* )
62024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62037 cat <<\_ASBOX
62038 ## ----------------------------------------- ##
62039 ## Report this to the package-unused lists. ##
62040 ## ----------------------------------------- ##
62041 _ASBOX
62043 sed "s/^/$as_me: WARNING: /" >&2
62045 esac
62046 echo "$as_me:$LINENO: checking for $ac_header" >&5
62047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62049 echo $ECHO_N "(cached) $ECHO_C" >&6
62050 else
62051 eval "$as_ac_Header=\$ac_header_preproc"
62053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62058 cat >>confdefs.h <<_ACEOF
62059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62060 _ACEOF
62061 ac_has_wctype_h=yes
62062 else
62063 ac_has_wctype_h=no
62066 done
62069 # Only continue checking if the ISO C99 headers exist and support is on.
62070 if test x"$ac_has_wchar_h" = xyes &&
62071 test x"$ac_has_wctype_h" = xyes &&
62072 test x"$enable_c_mbchar" != xno; then
62074 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62075 # numeric_limits can instantiate type_traits<wchar_t>
62076 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62077 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62078 cat >conftest.$ac_ext <<_ACEOF
62079 /* confdefs.h. */
62080 _ACEOF
62081 cat confdefs.h >>conftest.$ac_ext
62082 cat >>conftest.$ac_ext <<_ACEOF
62083 /* end confdefs.h. */
62084 #include <wchar.h>
62086 main ()
62088 int i = WCHAR_MIN; int j = WCHAR_MAX;
62090 return 0;
62092 _ACEOF
62093 rm -f conftest.$ac_objext
62094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62095 (eval $ac_compile) 2>conftest.er1
62096 ac_status=$?
62097 grep -v '^ *+' conftest.er1 >conftest.err
62098 rm -f conftest.er1
62099 cat conftest.err >&5
62100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62101 (exit $ac_status); } &&
62102 { ac_try='test -z "$ac_c_werror_flag"
62103 || test ! -s conftest.err'
62104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62105 (eval $ac_try) 2>&5
62106 ac_status=$?
62107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62108 (exit $ac_status); }; } &&
62109 { ac_try='test -s conftest.$ac_objext'
62110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62111 (eval $ac_try) 2>&5
62112 ac_status=$?
62113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62114 (exit $ac_status); }; }; then
62115 has_wchar_minmax=yes
62116 else
62117 echo "$as_me: failed program was:" >&5
62118 sed 's/^/| /' conftest.$ac_ext >&5
62120 has_wchar_minmax=no
62122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62123 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62124 echo "${ECHO_T}$has_wchar_minmax" >&6
62126 # Test wchar.h for WEOF, which is what we use to determine whether
62127 # to specialize for char_traits<wchar_t> or not.
62128 echo "$as_me:$LINENO: checking for WEOF" >&5
62129 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62130 cat >conftest.$ac_ext <<_ACEOF
62131 /* confdefs.h. */
62132 _ACEOF
62133 cat confdefs.h >>conftest.$ac_ext
62134 cat >>conftest.$ac_ext <<_ACEOF
62135 /* end confdefs.h. */
62137 #include <wchar.h>
62138 #include <stddef.h>
62140 main ()
62142 wint_t i = WEOF;
62144 return 0;
62146 _ACEOF
62147 rm -f conftest.$ac_objext
62148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62149 (eval $ac_compile) 2>conftest.er1
62150 ac_status=$?
62151 grep -v '^ *+' conftest.er1 >conftest.err
62152 rm -f conftest.er1
62153 cat conftest.err >&5
62154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62155 (exit $ac_status); } &&
62156 { ac_try='test -z "$ac_c_werror_flag"
62157 || test ! -s conftest.err'
62158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62159 (eval $ac_try) 2>&5
62160 ac_status=$?
62161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62162 (exit $ac_status); }; } &&
62163 { ac_try='test -s conftest.$ac_objext'
62164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62165 (eval $ac_try) 2>&5
62166 ac_status=$?
62167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62168 (exit $ac_status); }; }; then
62169 has_weof=yes
62170 else
62171 echo "$as_me: failed program was:" >&5
62172 sed 's/^/| /' conftest.$ac_ext >&5
62174 has_weof=no
62176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62177 echo "$as_me:$LINENO: result: $has_weof" >&5
62178 echo "${ECHO_T}$has_weof" >&6
62180 # Tests for wide character functions used in char_traits<wchar_t>.
62181 ac_wfuncs=yes
62188 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62191 echo "$as_me:$LINENO: checking for $ac_func" >&5
62192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62193 if eval "test \"\${$as_ac_var+set}\" = set"; then
62194 echo $ECHO_N "(cached) $ECHO_C" >&6
62195 else
62196 if test x$gcc_no_link = xyes; then
62197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62199 { (exit 1); exit 1; }; }
62201 cat >conftest.$ac_ext <<_ACEOF
62202 /* confdefs.h. */
62203 _ACEOF
62204 cat confdefs.h >>conftest.$ac_ext
62205 cat >>conftest.$ac_ext <<_ACEOF
62206 /* end confdefs.h. */
62207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62209 #define $ac_func innocuous_$ac_func
62211 /* System header to define __stub macros and hopefully few prototypes,
62212 which can conflict with char $ac_func (); below.
62213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62214 <limits.h> exists even on freestanding compilers. */
62216 #ifdef __STDC__
62217 # include <limits.h>
62218 #else
62219 # include <assert.h>
62220 #endif
62222 #undef $ac_func
62224 /* Override any gcc2 internal prototype to avoid an error. */
62225 #ifdef __cplusplus
62226 extern "C"
62228 #endif
62229 /* We use char because int might match the return type of a gcc2
62230 builtin and then its argument prototype would still apply. */
62231 char $ac_func ();
62232 /* The GNU C library defines this for functions which it implements
62233 to always fail with ENOSYS. Some functions are actually named
62234 something starting with __ and the normal name is an alias. */
62235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62236 choke me
62237 #else
62238 char (*f) () = $ac_func;
62239 #endif
62240 #ifdef __cplusplus
62242 #endif
62245 main ()
62247 return f != $ac_func;
62249 return 0;
62251 _ACEOF
62252 rm -f conftest.$ac_objext conftest$ac_exeext
62253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62254 (eval $ac_link) 2>conftest.er1
62255 ac_status=$?
62256 grep -v '^ *+' conftest.er1 >conftest.err
62257 rm -f conftest.er1
62258 cat conftest.err >&5
62259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62260 (exit $ac_status); } &&
62261 { ac_try='test -z "$ac_c_werror_flag"
62262 || test ! -s conftest.err'
62263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62264 (eval $ac_try) 2>&5
62265 ac_status=$?
62266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62267 (exit $ac_status); }; } &&
62268 { ac_try='test -s conftest$ac_exeext'
62269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62270 (eval $ac_try) 2>&5
62271 ac_status=$?
62272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62273 (exit $ac_status); }; }; then
62274 eval "$as_ac_var=yes"
62275 else
62276 echo "$as_me: failed program was:" >&5
62277 sed 's/^/| /' conftest.$ac_ext >&5
62279 eval "$as_ac_var=no"
62281 rm -f conftest.err conftest.$ac_objext \
62282 conftest$ac_exeext conftest.$ac_ext
62284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62286 if test `eval echo '${'$as_ac_var'}'` = yes; then
62287 cat >>confdefs.h <<_ACEOF
62288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62289 _ACEOF
62291 else
62292 ac_wfuncs=no
62294 done
62297 # Checks for names injected into std:: by the c_std headers.
62344 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62345 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62346 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62347 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62348 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62349 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62352 echo "$as_me:$LINENO: checking for $ac_func" >&5
62353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62354 if eval "test \"\${$as_ac_var+set}\" = set"; then
62355 echo $ECHO_N "(cached) $ECHO_C" >&6
62356 else
62357 if test x$gcc_no_link = xyes; then
62358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62360 { (exit 1); exit 1; }; }
62362 cat >conftest.$ac_ext <<_ACEOF
62363 /* confdefs.h. */
62364 _ACEOF
62365 cat confdefs.h >>conftest.$ac_ext
62366 cat >>conftest.$ac_ext <<_ACEOF
62367 /* end confdefs.h. */
62368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62370 #define $ac_func innocuous_$ac_func
62372 /* System header to define __stub macros and hopefully few prototypes,
62373 which can conflict with char $ac_func (); below.
62374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62375 <limits.h> exists even on freestanding compilers. */
62377 #ifdef __STDC__
62378 # include <limits.h>
62379 #else
62380 # include <assert.h>
62381 #endif
62383 #undef $ac_func
62385 /* Override any gcc2 internal prototype to avoid an error. */
62386 #ifdef __cplusplus
62387 extern "C"
62389 #endif
62390 /* We use char because int might match the return type of a gcc2
62391 builtin and then its argument prototype would still apply. */
62392 char $ac_func ();
62393 /* The GNU C library defines this for functions which it implements
62394 to always fail with ENOSYS. Some functions are actually named
62395 something starting with __ and the normal name is an alias. */
62396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62397 choke me
62398 #else
62399 char (*f) () = $ac_func;
62400 #endif
62401 #ifdef __cplusplus
62403 #endif
62406 main ()
62408 return f != $ac_func;
62410 return 0;
62412 _ACEOF
62413 rm -f conftest.$ac_objext conftest$ac_exeext
62414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62415 (eval $ac_link) 2>conftest.er1
62416 ac_status=$?
62417 grep -v '^ *+' conftest.er1 >conftest.err
62418 rm -f conftest.er1
62419 cat conftest.err >&5
62420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62421 (exit $ac_status); } &&
62422 { ac_try='test -z "$ac_c_werror_flag"
62423 || test ! -s conftest.err'
62424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62425 (eval $ac_try) 2>&5
62426 ac_status=$?
62427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62428 (exit $ac_status); }; } &&
62429 { ac_try='test -s conftest$ac_exeext'
62430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62431 (eval $ac_try) 2>&5
62432 ac_status=$?
62433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62434 (exit $ac_status); }; }; then
62435 eval "$as_ac_var=yes"
62436 else
62437 echo "$as_me: failed program was:" >&5
62438 sed 's/^/| /' conftest.$ac_ext >&5
62440 eval "$as_ac_var=no"
62442 rm -f conftest.err conftest.$ac_objext \
62443 conftest$ac_exeext conftest.$ac_ext
62445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62447 if test `eval echo '${'$as_ac_var'}'` = yes; then
62448 cat >>confdefs.h <<_ACEOF
62449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62450 _ACEOF
62452 else
62453 ac_wfuncs=no
62455 done
62458 # Checks for wide character functions that are not required
62459 # for basic wchar_t support. Don't disable support if they are missing.
62460 # Injection of these is wrapped with guard macros.
62466 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62469 echo "$as_me:$LINENO: checking for $ac_func" >&5
62470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62471 if eval "test \"\${$as_ac_var+set}\" = set"; then
62472 echo $ECHO_N "(cached) $ECHO_C" >&6
62473 else
62474 if test x$gcc_no_link = xyes; then
62475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62477 { (exit 1); exit 1; }; }
62479 cat >conftest.$ac_ext <<_ACEOF
62480 /* confdefs.h. */
62481 _ACEOF
62482 cat confdefs.h >>conftest.$ac_ext
62483 cat >>conftest.$ac_ext <<_ACEOF
62484 /* end confdefs.h. */
62485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62487 #define $ac_func innocuous_$ac_func
62489 /* System header to define __stub macros and hopefully few prototypes,
62490 which can conflict with char $ac_func (); below.
62491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62492 <limits.h> exists even on freestanding compilers. */
62494 #ifdef __STDC__
62495 # include <limits.h>
62496 #else
62497 # include <assert.h>
62498 #endif
62500 #undef $ac_func
62502 /* Override any gcc2 internal prototype to avoid an error. */
62503 #ifdef __cplusplus
62504 extern "C"
62506 #endif
62507 /* We use char because int might match the return type of a gcc2
62508 builtin and then its argument prototype would still apply. */
62509 char $ac_func ();
62510 /* The GNU C library defines this for functions which it implements
62511 to always fail with ENOSYS. Some functions are actually named
62512 something starting with __ and the normal name is an alias. */
62513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62514 choke me
62515 #else
62516 char (*f) () = $ac_func;
62517 #endif
62518 #ifdef __cplusplus
62520 #endif
62523 main ()
62525 return f != $ac_func;
62527 return 0;
62529 _ACEOF
62530 rm -f conftest.$ac_objext conftest$ac_exeext
62531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62532 (eval $ac_link) 2>conftest.er1
62533 ac_status=$?
62534 grep -v '^ *+' conftest.er1 >conftest.err
62535 rm -f conftest.er1
62536 cat conftest.err >&5
62537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62538 (exit $ac_status); } &&
62539 { ac_try='test -z "$ac_c_werror_flag"
62540 || test ! -s conftest.err'
62541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62542 (eval $ac_try) 2>&5
62543 ac_status=$?
62544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62545 (exit $ac_status); }; } &&
62546 { ac_try='test -s conftest$ac_exeext'
62547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62548 (eval $ac_try) 2>&5
62549 ac_status=$?
62550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62551 (exit $ac_status); }; }; then
62552 eval "$as_ac_var=yes"
62553 else
62554 echo "$as_me: failed program was:" >&5
62555 sed 's/^/| /' conftest.$ac_ext >&5
62557 eval "$as_ac_var=no"
62559 rm -f conftest.err conftest.$ac_objext \
62560 conftest$ac_exeext conftest.$ac_ext
62562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62564 if test `eval echo '${'$as_ac_var'}'` = yes; then
62565 cat >>confdefs.h <<_ACEOF
62566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62567 _ACEOF
62570 done
62573 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62574 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62575 if test x"$has_weof" = xyes &&
62576 test x"$has_wchar_minmax" = xyes &&
62577 test x"$ac_wfuncs" = xyes;
62578 then
62579 ac_isoC99_wchar_t=yes
62580 else
62581 ac_isoC99_wchar_t=no
62583 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62584 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62586 # Use iconv for wchar_t to char conversions. As such, check for
62587 # X/Open Portability Guide, version 2 features (XPG2).
62588 if test "${ac_cv_header_iconv_h+set}" = set; then
62589 echo "$as_me:$LINENO: checking for iconv.h" >&5
62590 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62591 if test "${ac_cv_header_iconv_h+set}" = set; then
62592 echo $ECHO_N "(cached) $ECHO_C" >&6
62594 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62595 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62596 else
62597 # Is the header compilable?
62598 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62599 echo $ECHO_N "checking iconv.h usability... $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 $ac_includes_default
62607 #include <iconv.h>
62608 _ACEOF
62609 rm -f conftest.$ac_objext
62610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62611 (eval $ac_compile) 2>conftest.er1
62612 ac_status=$?
62613 grep -v '^ *+' conftest.er1 >conftest.err
62614 rm -f conftest.er1
62615 cat conftest.err >&5
62616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62617 (exit $ac_status); } &&
62618 { ac_try='test -z "$ac_c_werror_flag"
62619 || test ! -s conftest.err'
62620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62621 (eval $ac_try) 2>&5
62622 ac_status=$?
62623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62624 (exit $ac_status); }; } &&
62625 { ac_try='test -s conftest.$ac_objext'
62626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62627 (eval $ac_try) 2>&5
62628 ac_status=$?
62629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62630 (exit $ac_status); }; }; then
62631 ac_header_compiler=yes
62632 else
62633 echo "$as_me: failed program was:" >&5
62634 sed 's/^/| /' conftest.$ac_ext >&5
62636 ac_header_compiler=no
62638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62640 echo "${ECHO_T}$ac_header_compiler" >&6
62642 # Is the header present?
62643 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62644 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62645 cat >conftest.$ac_ext <<_ACEOF
62646 /* confdefs.h. */
62647 _ACEOF
62648 cat confdefs.h >>conftest.$ac_ext
62649 cat >>conftest.$ac_ext <<_ACEOF
62650 /* end confdefs.h. */
62651 #include <iconv.h>
62652 _ACEOF
62653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62655 ac_status=$?
62656 grep -v '^ *+' conftest.er1 >conftest.err
62657 rm -f conftest.er1
62658 cat conftest.err >&5
62659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62660 (exit $ac_status); } >/dev/null; then
62661 if test -s conftest.err; then
62662 ac_cpp_err=$ac_c_preproc_warn_flag
62663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62664 else
62665 ac_cpp_err=
62667 else
62668 ac_cpp_err=yes
62670 if test -z "$ac_cpp_err"; then
62671 ac_header_preproc=yes
62672 else
62673 echo "$as_me: failed program was:" >&5
62674 sed 's/^/| /' conftest.$ac_ext >&5
62676 ac_header_preproc=no
62678 rm -f conftest.err conftest.$ac_ext
62679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62680 echo "${ECHO_T}$ac_header_preproc" >&6
62682 # So? What about this header?
62683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62684 yes:no: )
62685 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62686 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62687 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62688 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62689 ac_header_preproc=yes
62691 no:yes:* )
62692 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62693 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62694 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62695 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62696 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62697 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62698 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
62699 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
62700 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62701 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62702 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62703 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62705 cat <<\_ASBOX
62706 ## ----------------------------------------- ##
62707 ## Report this to the package-unused lists. ##
62708 ## ----------------------------------------- ##
62709 _ASBOX
62711 sed "s/^/$as_me: WARNING: /" >&2
62713 esac
62714 echo "$as_me:$LINENO: checking for iconv.h" >&5
62715 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62716 if test "${ac_cv_header_iconv_h+set}" = set; then
62717 echo $ECHO_N "(cached) $ECHO_C" >&6
62718 else
62719 ac_cv_header_iconv_h=$ac_header_preproc
62721 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62722 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62725 if test $ac_cv_header_iconv_h = yes; then
62726 ac_has_iconv_h=yes
62727 else
62728 ac_has_iconv_h=no
62732 if test "${ac_cv_header_langinfo_h+set}" = set; then
62733 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62734 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62735 if test "${ac_cv_header_langinfo_h+set}" = set; then
62736 echo $ECHO_N "(cached) $ECHO_C" >&6
62738 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62739 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62740 else
62741 # Is the header compilable?
62742 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62743 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62744 cat >conftest.$ac_ext <<_ACEOF
62745 /* confdefs.h. */
62746 _ACEOF
62747 cat confdefs.h >>conftest.$ac_ext
62748 cat >>conftest.$ac_ext <<_ACEOF
62749 /* end confdefs.h. */
62750 $ac_includes_default
62751 #include <langinfo.h>
62752 _ACEOF
62753 rm -f conftest.$ac_objext
62754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62755 (eval $ac_compile) 2>conftest.er1
62756 ac_status=$?
62757 grep -v '^ *+' conftest.er1 >conftest.err
62758 rm -f conftest.er1
62759 cat conftest.err >&5
62760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62761 (exit $ac_status); } &&
62762 { ac_try='test -z "$ac_c_werror_flag"
62763 || test ! -s conftest.err'
62764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62765 (eval $ac_try) 2>&5
62766 ac_status=$?
62767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62768 (exit $ac_status); }; } &&
62769 { ac_try='test -s conftest.$ac_objext'
62770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62771 (eval $ac_try) 2>&5
62772 ac_status=$?
62773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62774 (exit $ac_status); }; }; then
62775 ac_header_compiler=yes
62776 else
62777 echo "$as_me: failed program was:" >&5
62778 sed 's/^/| /' conftest.$ac_ext >&5
62780 ac_header_compiler=no
62782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62784 echo "${ECHO_T}$ac_header_compiler" >&6
62786 # Is the header present?
62787 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62788 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62789 cat >conftest.$ac_ext <<_ACEOF
62790 /* confdefs.h. */
62791 _ACEOF
62792 cat confdefs.h >>conftest.$ac_ext
62793 cat >>conftest.$ac_ext <<_ACEOF
62794 /* end confdefs.h. */
62795 #include <langinfo.h>
62796 _ACEOF
62797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62799 ac_status=$?
62800 grep -v '^ *+' conftest.er1 >conftest.err
62801 rm -f conftest.er1
62802 cat conftest.err >&5
62803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62804 (exit $ac_status); } >/dev/null; then
62805 if test -s conftest.err; then
62806 ac_cpp_err=$ac_c_preproc_warn_flag
62807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62808 else
62809 ac_cpp_err=
62811 else
62812 ac_cpp_err=yes
62814 if test -z "$ac_cpp_err"; then
62815 ac_header_preproc=yes
62816 else
62817 echo "$as_me: failed program was:" >&5
62818 sed 's/^/| /' conftest.$ac_ext >&5
62820 ac_header_preproc=no
62822 rm -f conftest.err conftest.$ac_ext
62823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62824 echo "${ECHO_T}$ac_header_preproc" >&6
62826 # So? What about this header?
62827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62828 yes:no: )
62829 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62830 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62831 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
62832 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
62833 ac_header_preproc=yes
62835 no:yes:* )
62836 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62837 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62838 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
62839 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
62840 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
62841 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
62842 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
62843 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
62844 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62845 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62846 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
62847 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
62849 cat <<\_ASBOX
62850 ## ----------------------------------------- ##
62851 ## Report this to the package-unused lists. ##
62852 ## ----------------------------------------- ##
62853 _ASBOX
62855 sed "s/^/$as_me: WARNING: /" >&2
62857 esac
62858 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62859 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62860 if test "${ac_cv_header_langinfo_h+set}" = set; then
62861 echo $ECHO_N "(cached) $ECHO_C" >&6
62862 else
62863 ac_cv_header_langinfo_h=$ac_header_preproc
62865 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62866 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62869 if test $ac_cv_header_langinfo_h = yes; then
62870 ac_has_langinfo_h=yes
62871 else
62872 ac_has_langinfo_h=no
62877 # Check for existence of libiconv.a providing XPG2 wchar_t support.
62878 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62879 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62880 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62881 echo $ECHO_N "(cached) $ECHO_C" >&6
62882 else
62883 ac_check_lib_save_LIBS=$LIBS
62884 LIBS="-liconv $LIBS"
62885 if test x$gcc_no_link = xyes; then
62886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62888 { (exit 1); exit 1; }; }
62890 cat >conftest.$ac_ext <<_ACEOF
62891 /* confdefs.h. */
62892 _ACEOF
62893 cat confdefs.h >>conftest.$ac_ext
62894 cat >>conftest.$ac_ext <<_ACEOF
62895 /* end confdefs.h. */
62897 /* Override any gcc2 internal prototype to avoid an error. */
62898 #ifdef __cplusplus
62899 extern "C"
62900 #endif
62901 /* We use char because int might match the return type of a gcc2
62902 builtin and then its argument prototype would still apply. */
62903 char iconv ();
62905 main ()
62907 iconv ();
62909 return 0;
62911 _ACEOF
62912 rm -f conftest.$ac_objext conftest$ac_exeext
62913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62914 (eval $ac_link) 2>conftest.er1
62915 ac_status=$?
62916 grep -v '^ *+' conftest.er1 >conftest.err
62917 rm -f conftest.er1
62918 cat conftest.err >&5
62919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62920 (exit $ac_status); } &&
62921 { ac_try='test -z "$ac_c_werror_flag"
62922 || test ! -s conftest.err'
62923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62924 (eval $ac_try) 2>&5
62925 ac_status=$?
62926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62927 (exit $ac_status); }; } &&
62928 { ac_try='test -s conftest$ac_exeext'
62929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62930 (eval $ac_try) 2>&5
62931 ac_status=$?
62932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62933 (exit $ac_status); }; }; then
62934 ac_cv_lib_iconv_iconv=yes
62935 else
62936 echo "$as_me: failed program was:" >&5
62937 sed 's/^/| /' conftest.$ac_ext >&5
62939 ac_cv_lib_iconv_iconv=no
62941 rm -f conftest.err conftest.$ac_objext \
62942 conftest$ac_exeext conftest.$ac_ext
62943 LIBS=$ac_check_lib_save_LIBS
62945 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62946 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62947 if test $ac_cv_lib_iconv_iconv = yes; then
62948 LIBICONV="-liconv"
62951 ac_save_LIBS="$LIBS"
62952 LIBS="$LIBS $LIBICONV"
62959 for ac_func in iconv_open iconv_close iconv nl_langinfo
62961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62962 echo "$as_me:$LINENO: checking for $ac_func" >&5
62963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62964 if eval "test \"\${$as_ac_var+set}\" = set"; then
62965 echo $ECHO_N "(cached) $ECHO_C" >&6
62966 else
62967 if test x$gcc_no_link = xyes; then
62968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62970 { (exit 1); exit 1; }; }
62972 cat >conftest.$ac_ext <<_ACEOF
62973 /* confdefs.h. */
62974 _ACEOF
62975 cat confdefs.h >>conftest.$ac_ext
62976 cat >>conftest.$ac_ext <<_ACEOF
62977 /* end confdefs.h. */
62978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62980 #define $ac_func innocuous_$ac_func
62982 /* System header to define __stub macros and hopefully few prototypes,
62983 which can conflict with char $ac_func (); below.
62984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62985 <limits.h> exists even on freestanding compilers. */
62987 #ifdef __STDC__
62988 # include <limits.h>
62989 #else
62990 # include <assert.h>
62991 #endif
62993 #undef $ac_func
62995 /* Override any gcc2 internal prototype to avoid an error. */
62996 #ifdef __cplusplus
62997 extern "C"
62999 #endif
63000 /* We use char because int might match the return type of a gcc2
63001 builtin and then its argument prototype would still apply. */
63002 char $ac_func ();
63003 /* The GNU C library defines this for functions which it implements
63004 to always fail with ENOSYS. Some functions are actually named
63005 something starting with __ and the normal name is an alias. */
63006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63007 choke me
63008 #else
63009 char (*f) () = $ac_func;
63010 #endif
63011 #ifdef __cplusplus
63013 #endif
63016 main ()
63018 return f != $ac_func;
63020 return 0;
63022 _ACEOF
63023 rm -f conftest.$ac_objext conftest$ac_exeext
63024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63025 (eval $ac_link) 2>conftest.er1
63026 ac_status=$?
63027 grep -v '^ *+' conftest.er1 >conftest.err
63028 rm -f conftest.er1
63029 cat conftest.err >&5
63030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63031 (exit $ac_status); } &&
63032 { ac_try='test -z "$ac_c_werror_flag"
63033 || test ! -s conftest.err'
63034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63035 (eval $ac_try) 2>&5
63036 ac_status=$?
63037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63038 (exit $ac_status); }; } &&
63039 { ac_try='test -s conftest$ac_exeext'
63040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63041 (eval $ac_try) 2>&5
63042 ac_status=$?
63043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63044 (exit $ac_status); }; }; then
63045 eval "$as_ac_var=yes"
63046 else
63047 echo "$as_me: failed program was:" >&5
63048 sed 's/^/| /' conftest.$ac_ext >&5
63050 eval "$as_ac_var=no"
63052 rm -f conftest.err conftest.$ac_objext \
63053 conftest$ac_exeext conftest.$ac_ext
63055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63057 if test `eval echo '${'$as_ac_var'}'` = yes; then
63058 cat >>confdefs.h <<_ACEOF
63059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63060 _ACEOF
63061 ac_XPG2funcs=yes
63062 else
63063 ac_XPG2funcs=no
63065 done
63068 LIBS="$ac_save_LIBS"
63070 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63071 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63072 if test x"$ac_has_iconv_h" = xyes &&
63073 test x"$ac_has_langinfo_h" = xyes &&
63074 test x"$ac_XPG2funcs" = xyes;
63075 then
63076 ac_XPG2_wchar_t=yes
63077 else
63078 ac_XPG2_wchar_t=no
63080 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63081 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63083 # At the moment, only enable wchar_t specializations if all the
63084 # above support is present.
63085 if test x"$ac_isoC99_wchar_t" = xyes &&
63086 test x"$ac_XPG2_wchar_t" = xyes;
63087 then
63088 cat >>confdefs.h <<\_ACEOF
63089 #define _GLIBCXX_USE_WCHAR_T 1
63090 _ACEOF
63092 enable_wchar_t=yes
63095 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63096 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63097 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63098 echo "${ECHO_T}$enable_wchar_t" >&6
63101 *-netbsd*)
63114 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63115 machine/endian.h machine/param.h sys/machine.h sys/types.h \
63116 fp.h locale.h float.h inttypes.h
63118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63120 echo "$as_me:$LINENO: checking for $ac_header" >&5
63121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63123 echo $ECHO_N "(cached) $ECHO_C" >&6
63125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63127 else
63128 # Is the header compilable?
63129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63131 cat >conftest.$ac_ext <<_ACEOF
63132 /* confdefs.h. */
63133 _ACEOF
63134 cat confdefs.h >>conftest.$ac_ext
63135 cat >>conftest.$ac_ext <<_ACEOF
63136 /* end confdefs.h. */
63137 $ac_includes_default
63138 #include <$ac_header>
63139 _ACEOF
63140 rm -f conftest.$ac_objext
63141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63142 (eval $ac_compile) 2>conftest.er1
63143 ac_status=$?
63144 grep -v '^ *+' conftest.er1 >conftest.err
63145 rm -f conftest.er1
63146 cat conftest.err >&5
63147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63148 (exit $ac_status); } &&
63149 { ac_try='test -z "$ac_c_werror_flag"
63150 || test ! -s conftest.err'
63151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63152 (eval $ac_try) 2>&5
63153 ac_status=$?
63154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63155 (exit $ac_status); }; } &&
63156 { ac_try='test -s conftest.$ac_objext'
63157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63158 (eval $ac_try) 2>&5
63159 ac_status=$?
63160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63161 (exit $ac_status); }; }; then
63162 ac_header_compiler=yes
63163 else
63164 echo "$as_me: failed program was:" >&5
63165 sed 's/^/| /' conftest.$ac_ext >&5
63167 ac_header_compiler=no
63169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63171 echo "${ECHO_T}$ac_header_compiler" >&6
63173 # Is the header present?
63174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63176 cat >conftest.$ac_ext <<_ACEOF
63177 /* confdefs.h. */
63178 _ACEOF
63179 cat confdefs.h >>conftest.$ac_ext
63180 cat >>conftest.$ac_ext <<_ACEOF
63181 /* end confdefs.h. */
63182 #include <$ac_header>
63183 _ACEOF
63184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63186 ac_status=$?
63187 grep -v '^ *+' conftest.er1 >conftest.err
63188 rm -f conftest.er1
63189 cat conftest.err >&5
63190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63191 (exit $ac_status); } >/dev/null; then
63192 if test -s conftest.err; then
63193 ac_cpp_err=$ac_c_preproc_warn_flag
63194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63195 else
63196 ac_cpp_err=
63198 else
63199 ac_cpp_err=yes
63201 if test -z "$ac_cpp_err"; then
63202 ac_header_preproc=yes
63203 else
63204 echo "$as_me: failed program was:" >&5
63205 sed 's/^/| /' conftest.$ac_ext >&5
63207 ac_header_preproc=no
63209 rm -f conftest.err conftest.$ac_ext
63210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63211 echo "${ECHO_T}$ac_header_preproc" >&6
63213 # So? What about this header?
63214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63215 yes:no: )
63216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63220 ac_header_preproc=yes
63222 no:yes:* )
63223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
63231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63236 cat <<\_ASBOX
63237 ## ----------------------------------------- ##
63238 ## Report this to the package-unused lists. ##
63239 ## ----------------------------------------- ##
63240 _ASBOX
63242 sed "s/^/$as_me: WARNING: /" >&2
63244 esac
63245 echo "$as_me:$LINENO: checking for $ac_header" >&5
63246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63248 echo $ECHO_N "(cached) $ECHO_C" >&6
63249 else
63250 eval "$as_ac_Header=\$ac_header_preproc"
63252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63257 cat >>confdefs.h <<_ACEOF
63258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63259 _ACEOF
63263 done
63265 SECTION_FLAGS='-ffunction-sections -fdata-sections'
63268 # If we're not using GNU ld, then there's no point in even trying these
63269 # tests. Check for that first. We should have already tested for gld
63270 # by now (in libtool), but require it now just to be safe...
63271 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63272 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63276 # The name set by libtool depends on the version of libtool. Shame on us
63277 # for depending on an impl detail, but c'est la vie. Older versions used
63278 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63279 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63280 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
63281 # set (hence we're using an older libtool), then set it.
63282 if test x${with_gnu_ld+set} != xset; then
63283 if test x${ac_cv_prog_gnu_ld+set} != xset; then
63284 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
63285 with_gnu_ld=no
63286 else
63287 with_gnu_ld=$ac_cv_prog_gnu_ld
63291 # Start by getting the version number. I think the libtool test already
63292 # does some of this, but throws away the result.
63294 ldver=`$LD --version 2>/dev/null | head -1 | \
63295 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63297 glibcxx_gnu_ld_version=`echo $ldver | \
63298 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63300 # Set --gc-sections.
63301 if test "$with_gnu_ld" = "notbroken"; then
63302 # GNU ld it is! Joy and bunny rabbits!
63304 # All these tests are for C++; save the language and the compiler flags.
63305 # Need to do this so that g++ won't try to link in libstdc++
63306 ac_test_CFLAGS="${CFLAGS+set}"
63307 ac_save_CFLAGS="$CFLAGS"
63308 CFLAGS='-x c++ -Wl,--gc-sections'
63310 # Check for -Wl,--gc-sections
63311 # XXX This test is broken at the moment, as symbols required for linking
63312 # are now in libsupc++ (not built yet). In addition, this test has
63313 # cored on solaris in the past. In addition, --gc-sections doesn't
63314 # really work at the moment (keeps on discarding used sections, first
63315 # .eh_frame and now some of the glibc sections for iconv).
63316 # Bzzzzt. Thanks for playing, maybe next time.
63317 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63318 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63319 if test "$cross_compiling" = yes; then
63320 ac_sectionLDflags=yes
63321 else
63322 cat >conftest.$ac_ext <<_ACEOF
63323 /* confdefs.h. */
63324 _ACEOF
63325 cat confdefs.h >>conftest.$ac_ext
63326 cat >>conftest.$ac_ext <<_ACEOF
63327 /* end confdefs.h. */
63329 int main(void)
63331 try { throw 1; }
63332 catch (...) { };
63333 return 0;
63336 _ACEOF
63337 rm -f conftest$ac_exeext
63338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63339 (eval $ac_link) 2>&5
63340 ac_status=$?
63341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63344 (eval $ac_try) 2>&5
63345 ac_status=$?
63346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63347 (exit $ac_status); }; }; then
63348 ac_sectionLDflags=yes
63349 else
63350 echo "$as_me: program exited with status $ac_status" >&5
63351 echo "$as_me: failed program was:" >&5
63352 sed 's/^/| /' conftest.$ac_ext >&5
63354 ( exit $ac_status )
63355 ac_sectionLDflags=no
63357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63359 if test "$ac_test_CFLAGS" = set; then
63360 CFLAGS="$ac_save_CFLAGS"
63361 else
63362 # this is the suspicious part
63363 CFLAGS=''
63365 if test "$ac_sectionLDflags" = "yes"; then
63366 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63368 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63369 echo "${ECHO_T}$ac_sectionLDflags" >&6
63372 # Set linker optimization flags.
63373 if test x"$with_gnu_ld" = x"yes"; then
63374 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63382 echo "$as_me:$LINENO: checking for main in -lm" >&5
63383 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63384 if test "${ac_cv_lib_m_main+set}" = set; then
63385 echo $ECHO_N "(cached) $ECHO_C" >&6
63386 else
63387 ac_check_lib_save_LIBS=$LIBS
63388 LIBS="-lm $LIBS"
63389 if test x$gcc_no_link = xyes; then
63390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63392 { (exit 1); exit 1; }; }
63394 cat >conftest.$ac_ext <<_ACEOF
63395 /* confdefs.h. */
63396 _ACEOF
63397 cat confdefs.h >>conftest.$ac_ext
63398 cat >>conftest.$ac_ext <<_ACEOF
63399 /* end confdefs.h. */
63403 main ()
63405 main ();
63407 return 0;
63409 _ACEOF
63410 rm -f conftest.$ac_objext conftest$ac_exeext
63411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63412 (eval $ac_link) 2>conftest.er1
63413 ac_status=$?
63414 grep -v '^ *+' conftest.er1 >conftest.err
63415 rm -f conftest.er1
63416 cat conftest.err >&5
63417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63418 (exit $ac_status); } &&
63419 { ac_try='test -z "$ac_c_werror_flag"
63420 || test ! -s conftest.err'
63421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63422 (eval $ac_try) 2>&5
63423 ac_status=$?
63424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63425 (exit $ac_status); }; } &&
63426 { ac_try='test -s conftest$ac_exeext'
63427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63428 (eval $ac_try) 2>&5
63429 ac_status=$?
63430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63431 (exit $ac_status); }; }; then
63432 ac_cv_lib_m_main=yes
63433 else
63434 echo "$as_me: failed program was:" >&5
63435 sed 's/^/| /' conftest.$ac_ext >&5
63437 ac_cv_lib_m_main=no
63439 rm -f conftest.err conftest.$ac_objext \
63440 conftest$ac_exeext conftest.$ac_ext
63441 LIBS=$ac_check_lib_save_LIBS
63443 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63444 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63445 if test $ac_cv_lib_m_main = yes; then
63446 cat >>confdefs.h <<_ACEOF
63447 #define HAVE_LIBM 1
63448 _ACEOF
63450 LIBS="-lm $LIBS"
63455 for ac_func in copysignf
63457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63458 echo "$as_me:$LINENO: checking for $ac_func" >&5
63459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63460 if eval "test \"\${$as_ac_var+set}\" = set"; then
63461 echo $ECHO_N "(cached) $ECHO_C" >&6
63462 else
63463 if test x$gcc_no_link = xyes; then
63464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63466 { (exit 1); exit 1; }; }
63468 cat >conftest.$ac_ext <<_ACEOF
63469 /* confdefs.h. */
63470 _ACEOF
63471 cat confdefs.h >>conftest.$ac_ext
63472 cat >>conftest.$ac_ext <<_ACEOF
63473 /* end confdefs.h. */
63474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63476 #define $ac_func innocuous_$ac_func
63478 /* System header to define __stub macros and hopefully few prototypes,
63479 which can conflict with char $ac_func (); below.
63480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63481 <limits.h> exists even on freestanding compilers. */
63483 #ifdef __STDC__
63484 # include <limits.h>
63485 #else
63486 # include <assert.h>
63487 #endif
63489 #undef $ac_func
63491 /* Override any gcc2 internal prototype to avoid an error. */
63492 #ifdef __cplusplus
63493 extern "C"
63495 #endif
63496 /* We use char because int might match the return type of a gcc2
63497 builtin and then its argument prototype would still apply. */
63498 char $ac_func ();
63499 /* The GNU C library defines this for functions which it implements
63500 to always fail with ENOSYS. Some functions are actually named
63501 something starting with __ and the normal name is an alias. */
63502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63503 choke me
63504 #else
63505 char (*f) () = $ac_func;
63506 #endif
63507 #ifdef __cplusplus
63509 #endif
63512 main ()
63514 return f != $ac_func;
63516 return 0;
63518 _ACEOF
63519 rm -f conftest.$ac_objext conftest$ac_exeext
63520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63521 (eval $ac_link) 2>conftest.er1
63522 ac_status=$?
63523 grep -v '^ *+' conftest.er1 >conftest.err
63524 rm -f conftest.er1
63525 cat conftest.err >&5
63526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63527 (exit $ac_status); } &&
63528 { ac_try='test -z "$ac_c_werror_flag"
63529 || test ! -s conftest.err'
63530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63531 (eval $ac_try) 2>&5
63532 ac_status=$?
63533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63534 (exit $ac_status); }; } &&
63535 { ac_try='test -s conftest$ac_exeext'
63536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63537 (eval $ac_try) 2>&5
63538 ac_status=$?
63539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63540 (exit $ac_status); }; }; then
63541 eval "$as_ac_var=yes"
63542 else
63543 echo "$as_me: failed program was:" >&5
63544 sed 's/^/| /' conftest.$ac_ext >&5
63546 eval "$as_ac_var=no"
63548 rm -f conftest.err conftest.$ac_objext \
63549 conftest$ac_exeext conftest.$ac_ext
63551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63553 if test `eval echo '${'$as_ac_var'}'` = yes; then
63554 cat >>confdefs.h <<_ACEOF
63555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63556 _ACEOF
63558 else
63559 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63561 done
63565 for ac_func in __signbit
63567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63568 echo "$as_me:$LINENO: checking for $ac_func" >&5
63569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63570 if eval "test \"\${$as_ac_var+set}\" = set"; then
63571 echo $ECHO_N "(cached) $ECHO_C" >&6
63572 else
63573 if test x$gcc_no_link = xyes; then
63574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63576 { (exit 1); exit 1; }; }
63578 cat >conftest.$ac_ext <<_ACEOF
63579 /* confdefs.h. */
63580 _ACEOF
63581 cat confdefs.h >>conftest.$ac_ext
63582 cat >>conftest.$ac_ext <<_ACEOF
63583 /* end confdefs.h. */
63584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63586 #define $ac_func innocuous_$ac_func
63588 /* System header to define __stub macros and hopefully few prototypes,
63589 which can conflict with char $ac_func (); below.
63590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63591 <limits.h> exists even on freestanding compilers. */
63593 #ifdef __STDC__
63594 # include <limits.h>
63595 #else
63596 # include <assert.h>
63597 #endif
63599 #undef $ac_func
63601 /* Override any gcc2 internal prototype to avoid an error. */
63602 #ifdef __cplusplus
63603 extern "C"
63605 #endif
63606 /* We use char because int might match the return type of a gcc2
63607 builtin and then its argument prototype would still apply. */
63608 char $ac_func ();
63609 /* The GNU C library defines this for functions which it implements
63610 to always fail with ENOSYS. Some functions are actually named
63611 something starting with __ and the normal name is an alias. */
63612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63613 choke me
63614 #else
63615 char (*f) () = $ac_func;
63616 #endif
63617 #ifdef __cplusplus
63619 #endif
63622 main ()
63624 return f != $ac_func;
63626 return 0;
63628 _ACEOF
63629 rm -f conftest.$ac_objext conftest$ac_exeext
63630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63631 (eval $ac_link) 2>conftest.er1
63632 ac_status=$?
63633 grep -v '^ *+' conftest.er1 >conftest.err
63634 rm -f conftest.er1
63635 cat conftest.err >&5
63636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63637 (exit $ac_status); } &&
63638 { ac_try='test -z "$ac_c_werror_flag"
63639 || test ! -s conftest.err'
63640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63641 (eval $ac_try) 2>&5
63642 ac_status=$?
63643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63644 (exit $ac_status); }; } &&
63645 { ac_try='test -s conftest$ac_exeext'
63646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63647 (eval $ac_try) 2>&5
63648 ac_status=$?
63649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63650 (exit $ac_status); }; }; then
63651 eval "$as_ac_var=yes"
63652 else
63653 echo "$as_me: failed program was:" >&5
63654 sed 's/^/| /' conftest.$ac_ext >&5
63656 eval "$as_ac_var=no"
63658 rm -f conftest.err conftest.$ac_objext \
63659 conftest$ac_exeext conftest.$ac_ext
63661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63663 if test `eval echo '${'$as_ac_var'}'` = yes; then
63664 cat >>confdefs.h <<_ACEOF
63665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63666 _ACEOF
63668 else
63669 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63671 done
63674 for ac_func in __signbitf
63676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63677 echo "$as_me:$LINENO: checking for $ac_func" >&5
63678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63679 if eval "test \"\${$as_ac_var+set}\" = set"; then
63680 echo $ECHO_N "(cached) $ECHO_C" >&6
63681 else
63682 if test x$gcc_no_link = xyes; then
63683 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63685 { (exit 1); exit 1; }; }
63687 cat >conftest.$ac_ext <<_ACEOF
63688 /* confdefs.h. */
63689 _ACEOF
63690 cat confdefs.h >>conftest.$ac_ext
63691 cat >>conftest.$ac_ext <<_ACEOF
63692 /* end confdefs.h. */
63693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63695 #define $ac_func innocuous_$ac_func
63697 /* System header to define __stub macros and hopefully few prototypes,
63698 which can conflict with char $ac_func (); below.
63699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63700 <limits.h> exists even on freestanding compilers. */
63702 #ifdef __STDC__
63703 # include <limits.h>
63704 #else
63705 # include <assert.h>
63706 #endif
63708 #undef $ac_func
63710 /* Override any gcc2 internal prototype to avoid an error. */
63711 #ifdef __cplusplus
63712 extern "C"
63714 #endif
63715 /* We use char because int might match the return type of a gcc2
63716 builtin and then its argument prototype would still apply. */
63717 char $ac_func ();
63718 /* The GNU C library defines this for functions which it implements
63719 to always fail with ENOSYS. Some functions are actually named
63720 something starting with __ and the normal name is an alias. */
63721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63722 choke me
63723 #else
63724 char (*f) () = $ac_func;
63725 #endif
63726 #ifdef __cplusplus
63728 #endif
63731 main ()
63733 return f != $ac_func;
63735 return 0;
63737 _ACEOF
63738 rm -f conftest.$ac_objext conftest$ac_exeext
63739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63740 (eval $ac_link) 2>conftest.er1
63741 ac_status=$?
63742 grep -v '^ *+' conftest.er1 >conftest.err
63743 rm -f conftest.er1
63744 cat conftest.err >&5
63745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63746 (exit $ac_status); } &&
63747 { ac_try='test -z "$ac_c_werror_flag"
63748 || test ! -s conftest.err'
63749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63750 (eval $ac_try) 2>&5
63751 ac_status=$?
63752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63753 (exit $ac_status); }; } &&
63754 { ac_try='test -s conftest$ac_exeext'
63755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63756 (eval $ac_try) 2>&5
63757 ac_status=$?
63758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63759 (exit $ac_status); }; }; then
63760 eval "$as_ac_var=yes"
63761 else
63762 echo "$as_me: failed program was:" >&5
63763 sed 's/^/| /' conftest.$ac_ext >&5
63765 eval "$as_ac_var=no"
63767 rm -f conftest.err conftest.$ac_objext \
63768 conftest$ac_exeext conftest.$ac_ext
63770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63772 if test `eval echo '${'$as_ac_var'}'` = yes; then
63773 cat >>confdefs.h <<_ACEOF
63774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63775 _ACEOF
63777 else
63778 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
63780 done
63783 if test x$ac_cv_func_copysignl = x"yes"; then
63785 for ac_func in __signbitl
63787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63788 echo "$as_me:$LINENO: checking for $ac_func" >&5
63789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63790 if eval "test \"\${$as_ac_var+set}\" = set"; then
63791 echo $ECHO_N "(cached) $ECHO_C" >&6
63792 else
63793 if test x$gcc_no_link = xyes; then
63794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63796 { (exit 1); exit 1; }; }
63798 cat >conftest.$ac_ext <<_ACEOF
63799 /* confdefs.h. */
63800 _ACEOF
63801 cat confdefs.h >>conftest.$ac_ext
63802 cat >>conftest.$ac_ext <<_ACEOF
63803 /* end confdefs.h. */
63804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63806 #define $ac_func innocuous_$ac_func
63808 /* System header to define __stub macros and hopefully few prototypes,
63809 which can conflict with char $ac_func (); below.
63810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63811 <limits.h> exists even on freestanding compilers. */
63813 #ifdef __STDC__
63814 # include <limits.h>
63815 #else
63816 # include <assert.h>
63817 #endif
63819 #undef $ac_func
63821 /* Override any gcc2 internal prototype to avoid an error. */
63822 #ifdef __cplusplus
63823 extern "C"
63825 #endif
63826 /* We use char because int might match the return type of a gcc2
63827 builtin and then its argument prototype would still apply. */
63828 char $ac_func ();
63829 /* The GNU C library defines this for functions which it implements
63830 to always fail with ENOSYS. Some functions are actually named
63831 something starting with __ and the normal name is an alias. */
63832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63833 choke me
63834 #else
63835 char (*f) () = $ac_func;
63836 #endif
63837 #ifdef __cplusplus
63839 #endif
63842 main ()
63844 return f != $ac_func;
63846 return 0;
63848 _ACEOF
63849 rm -f conftest.$ac_objext conftest$ac_exeext
63850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63851 (eval $ac_link) 2>conftest.er1
63852 ac_status=$?
63853 grep -v '^ *+' conftest.er1 >conftest.err
63854 rm -f conftest.er1
63855 cat conftest.err >&5
63856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63857 (exit $ac_status); } &&
63858 { ac_try='test -z "$ac_c_werror_flag"
63859 || test ! -s conftest.err'
63860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63861 (eval $ac_try) 2>&5
63862 ac_status=$?
63863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63864 (exit $ac_status); }; } &&
63865 { ac_try='test -s conftest$ac_exeext'
63866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63867 (eval $ac_try) 2>&5
63868 ac_status=$?
63869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63870 (exit $ac_status); }; }; then
63871 eval "$as_ac_var=yes"
63872 else
63873 echo "$as_me: failed program was:" >&5
63874 sed 's/^/| /' conftest.$ac_ext >&5
63876 eval "$as_ac_var=no"
63878 rm -f conftest.err conftest.$ac_objext \
63879 conftest$ac_exeext conftest.$ac_ext
63881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63883 if test `eval echo '${'$as_ac_var'}'` = yes; then
63884 cat >>confdefs.h <<_ACEOF
63885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63886 _ACEOF
63888 else
63889 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
63891 done
63895 # XXX Review this. Nothing uses it.
63896 if test -n "$LIBMATHOBJS"; then
63897 need_libmath=yes
63902 # Test wchar.h for mbstate_t, which is needed for char_traits and
63903 # others even if wchar_t support is not on.
63904 echo "$as_me:$LINENO: checking for mbstate_t" >&5
63905 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
63906 cat >conftest.$ac_ext <<_ACEOF
63907 /* confdefs.h. */
63908 _ACEOF
63909 cat confdefs.h >>conftest.$ac_ext
63910 cat >>conftest.$ac_ext <<_ACEOF
63911 /* end confdefs.h. */
63912 #include <wchar.h>
63914 main ()
63916 mbstate_t teststate;
63918 return 0;
63920 _ACEOF
63921 rm -f conftest.$ac_objext
63922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63923 (eval $ac_compile) 2>conftest.er1
63924 ac_status=$?
63925 grep -v '^ *+' conftest.er1 >conftest.err
63926 rm -f conftest.er1
63927 cat conftest.err >&5
63928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63929 (exit $ac_status); } &&
63930 { ac_try='test -z "$ac_c_werror_flag"
63931 || test ! -s conftest.err'
63932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63933 (eval $ac_try) 2>&5
63934 ac_status=$?
63935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63936 (exit $ac_status); }; } &&
63937 { ac_try='test -s conftest.$ac_objext'
63938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63939 (eval $ac_try) 2>&5
63940 ac_status=$?
63941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63942 (exit $ac_status); }; }; then
63943 have_mbstate_t=yes
63944 else
63945 echo "$as_me: failed program was:" >&5
63946 sed 's/^/| /' conftest.$ac_ext >&5
63948 have_mbstate_t=no
63950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63951 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
63952 echo "${ECHO_T}$have_mbstate_t" >&6
63953 if test x"$have_mbstate_t" = xyes; then
63954 cat >>confdefs.h <<\_ACEOF
63955 #define HAVE_MBSTATE_T 1
63956 _ACEOF
63960 # Sanity check for existence of ISO C99 headers for extended encoding.
63962 for ac_header in wchar.h
63964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63966 echo "$as_me:$LINENO: checking for $ac_header" >&5
63967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63969 echo $ECHO_N "(cached) $ECHO_C" >&6
63971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63973 else
63974 # Is the header compilable?
63975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63977 cat >conftest.$ac_ext <<_ACEOF
63978 /* confdefs.h. */
63979 _ACEOF
63980 cat confdefs.h >>conftest.$ac_ext
63981 cat >>conftest.$ac_ext <<_ACEOF
63982 /* end confdefs.h. */
63983 $ac_includes_default
63984 #include <$ac_header>
63985 _ACEOF
63986 rm -f conftest.$ac_objext
63987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63988 (eval $ac_compile) 2>conftest.er1
63989 ac_status=$?
63990 grep -v '^ *+' conftest.er1 >conftest.err
63991 rm -f conftest.er1
63992 cat conftest.err >&5
63993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63994 (exit $ac_status); } &&
63995 { ac_try='test -z "$ac_c_werror_flag"
63996 || test ! -s conftest.err'
63997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63998 (eval $ac_try) 2>&5
63999 ac_status=$?
64000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64001 (exit $ac_status); }; } &&
64002 { ac_try='test -s conftest.$ac_objext'
64003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64004 (eval $ac_try) 2>&5
64005 ac_status=$?
64006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64007 (exit $ac_status); }; }; then
64008 ac_header_compiler=yes
64009 else
64010 echo "$as_me: failed program was:" >&5
64011 sed 's/^/| /' conftest.$ac_ext >&5
64013 ac_header_compiler=no
64015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64017 echo "${ECHO_T}$ac_header_compiler" >&6
64019 # Is the header present?
64020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64022 cat >conftest.$ac_ext <<_ACEOF
64023 /* confdefs.h. */
64024 _ACEOF
64025 cat confdefs.h >>conftest.$ac_ext
64026 cat >>conftest.$ac_ext <<_ACEOF
64027 /* end confdefs.h. */
64028 #include <$ac_header>
64029 _ACEOF
64030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64032 ac_status=$?
64033 grep -v '^ *+' conftest.er1 >conftest.err
64034 rm -f conftest.er1
64035 cat conftest.err >&5
64036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64037 (exit $ac_status); } >/dev/null; then
64038 if test -s conftest.err; then
64039 ac_cpp_err=$ac_c_preproc_warn_flag
64040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64041 else
64042 ac_cpp_err=
64044 else
64045 ac_cpp_err=yes
64047 if test -z "$ac_cpp_err"; then
64048 ac_header_preproc=yes
64049 else
64050 echo "$as_me: failed program was:" >&5
64051 sed 's/^/| /' conftest.$ac_ext >&5
64053 ac_header_preproc=no
64055 rm -f conftest.err conftest.$ac_ext
64056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64057 echo "${ECHO_T}$ac_header_preproc" >&6
64059 # So? What about this header?
64060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64061 yes:no: )
64062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64066 ac_header_preproc=yes
64068 no:yes:* )
64069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64082 cat <<\_ASBOX
64083 ## ----------------------------------------- ##
64084 ## Report this to the package-unused lists. ##
64085 ## ----------------------------------------- ##
64086 _ASBOX
64088 sed "s/^/$as_me: WARNING: /" >&2
64090 esac
64091 echo "$as_me:$LINENO: checking for $ac_header" >&5
64092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64094 echo $ECHO_N "(cached) $ECHO_C" >&6
64095 else
64096 eval "$as_ac_Header=\$ac_header_preproc"
64098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64103 cat >>confdefs.h <<_ACEOF
64104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64105 _ACEOF
64106 ac_has_wchar_h=yes
64107 else
64108 ac_has_wchar_h=no
64111 done
64114 for ac_header in wctype.h
64116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64118 echo "$as_me:$LINENO: checking for $ac_header" >&5
64119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64121 echo $ECHO_N "(cached) $ECHO_C" >&6
64123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64125 else
64126 # Is the header compilable?
64127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64129 cat >conftest.$ac_ext <<_ACEOF
64130 /* confdefs.h. */
64131 _ACEOF
64132 cat confdefs.h >>conftest.$ac_ext
64133 cat >>conftest.$ac_ext <<_ACEOF
64134 /* end confdefs.h. */
64135 $ac_includes_default
64136 #include <$ac_header>
64137 _ACEOF
64138 rm -f conftest.$ac_objext
64139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64140 (eval $ac_compile) 2>conftest.er1
64141 ac_status=$?
64142 grep -v '^ *+' conftest.er1 >conftest.err
64143 rm -f conftest.er1
64144 cat conftest.err >&5
64145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64146 (exit $ac_status); } &&
64147 { ac_try='test -z "$ac_c_werror_flag"
64148 || test ! -s conftest.err'
64149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64150 (eval $ac_try) 2>&5
64151 ac_status=$?
64152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64153 (exit $ac_status); }; } &&
64154 { ac_try='test -s conftest.$ac_objext'
64155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64156 (eval $ac_try) 2>&5
64157 ac_status=$?
64158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64159 (exit $ac_status); }; }; then
64160 ac_header_compiler=yes
64161 else
64162 echo "$as_me: failed program was:" >&5
64163 sed 's/^/| /' conftest.$ac_ext >&5
64165 ac_header_compiler=no
64167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64169 echo "${ECHO_T}$ac_header_compiler" >&6
64171 # Is the header present?
64172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64174 cat >conftest.$ac_ext <<_ACEOF
64175 /* confdefs.h. */
64176 _ACEOF
64177 cat confdefs.h >>conftest.$ac_ext
64178 cat >>conftest.$ac_ext <<_ACEOF
64179 /* end confdefs.h. */
64180 #include <$ac_header>
64181 _ACEOF
64182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64184 ac_status=$?
64185 grep -v '^ *+' conftest.er1 >conftest.err
64186 rm -f conftest.er1
64187 cat conftest.err >&5
64188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64189 (exit $ac_status); } >/dev/null; then
64190 if test -s conftest.err; then
64191 ac_cpp_err=$ac_c_preproc_warn_flag
64192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64193 else
64194 ac_cpp_err=
64196 else
64197 ac_cpp_err=yes
64199 if test -z "$ac_cpp_err"; then
64200 ac_header_preproc=yes
64201 else
64202 echo "$as_me: failed program was:" >&5
64203 sed 's/^/| /' conftest.$ac_ext >&5
64205 ac_header_preproc=no
64207 rm -f conftest.err conftest.$ac_ext
64208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64209 echo "${ECHO_T}$ac_header_preproc" >&6
64211 # So? What about this header?
64212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64213 yes:no: )
64214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64218 ac_header_preproc=yes
64220 no:yes:* )
64221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64234 cat <<\_ASBOX
64235 ## ----------------------------------------- ##
64236 ## Report this to the package-unused lists. ##
64237 ## ----------------------------------------- ##
64238 _ASBOX
64240 sed "s/^/$as_me: WARNING: /" >&2
64242 esac
64243 echo "$as_me:$LINENO: checking for $ac_header" >&5
64244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64246 echo $ECHO_N "(cached) $ECHO_C" >&6
64247 else
64248 eval "$as_ac_Header=\$ac_header_preproc"
64250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64255 cat >>confdefs.h <<_ACEOF
64256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64257 _ACEOF
64258 ac_has_wctype_h=yes
64259 else
64260 ac_has_wctype_h=no
64263 done
64266 # Only continue checking if the ISO C99 headers exist and support is on.
64267 if test x"$ac_has_wchar_h" = xyes &&
64268 test x"$ac_has_wctype_h" = xyes &&
64269 test x"$enable_c_mbchar" != xno; then
64271 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64272 # numeric_limits can instantiate type_traits<wchar_t>
64273 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64274 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64275 cat >conftest.$ac_ext <<_ACEOF
64276 /* confdefs.h. */
64277 _ACEOF
64278 cat confdefs.h >>conftest.$ac_ext
64279 cat >>conftest.$ac_ext <<_ACEOF
64280 /* end confdefs.h. */
64281 #include <wchar.h>
64283 main ()
64285 int i = WCHAR_MIN; int j = WCHAR_MAX;
64287 return 0;
64289 _ACEOF
64290 rm -f conftest.$ac_objext
64291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64292 (eval $ac_compile) 2>conftest.er1
64293 ac_status=$?
64294 grep -v '^ *+' conftest.er1 >conftest.err
64295 rm -f conftest.er1
64296 cat conftest.err >&5
64297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64298 (exit $ac_status); } &&
64299 { ac_try='test -z "$ac_c_werror_flag"
64300 || test ! -s conftest.err'
64301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64302 (eval $ac_try) 2>&5
64303 ac_status=$?
64304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64305 (exit $ac_status); }; } &&
64306 { ac_try='test -s conftest.$ac_objext'
64307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64308 (eval $ac_try) 2>&5
64309 ac_status=$?
64310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64311 (exit $ac_status); }; }; then
64312 has_wchar_minmax=yes
64313 else
64314 echo "$as_me: failed program was:" >&5
64315 sed 's/^/| /' conftest.$ac_ext >&5
64317 has_wchar_minmax=no
64319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64320 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64321 echo "${ECHO_T}$has_wchar_minmax" >&6
64323 # Test wchar.h for WEOF, which is what we use to determine whether
64324 # to specialize for char_traits<wchar_t> or not.
64325 echo "$as_me:$LINENO: checking for WEOF" >&5
64326 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64327 cat >conftest.$ac_ext <<_ACEOF
64328 /* confdefs.h. */
64329 _ACEOF
64330 cat confdefs.h >>conftest.$ac_ext
64331 cat >>conftest.$ac_ext <<_ACEOF
64332 /* end confdefs.h. */
64334 #include <wchar.h>
64335 #include <stddef.h>
64337 main ()
64339 wint_t i = WEOF;
64341 return 0;
64343 _ACEOF
64344 rm -f conftest.$ac_objext
64345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64346 (eval $ac_compile) 2>conftest.er1
64347 ac_status=$?
64348 grep -v '^ *+' conftest.er1 >conftest.err
64349 rm -f conftest.er1
64350 cat conftest.err >&5
64351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64352 (exit $ac_status); } &&
64353 { ac_try='test -z "$ac_c_werror_flag"
64354 || test ! -s conftest.err'
64355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64356 (eval $ac_try) 2>&5
64357 ac_status=$?
64358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64359 (exit $ac_status); }; } &&
64360 { ac_try='test -s conftest.$ac_objext'
64361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64362 (eval $ac_try) 2>&5
64363 ac_status=$?
64364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64365 (exit $ac_status); }; }; then
64366 has_weof=yes
64367 else
64368 echo "$as_me: failed program was:" >&5
64369 sed 's/^/| /' conftest.$ac_ext >&5
64371 has_weof=no
64373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64374 echo "$as_me:$LINENO: result: $has_weof" >&5
64375 echo "${ECHO_T}$has_weof" >&6
64377 # Tests for wide character functions used in char_traits<wchar_t>.
64378 ac_wfuncs=yes
64385 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64388 echo "$as_me:$LINENO: checking for $ac_func" >&5
64389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64390 if eval "test \"\${$as_ac_var+set}\" = set"; then
64391 echo $ECHO_N "(cached) $ECHO_C" >&6
64392 else
64393 if test x$gcc_no_link = xyes; then
64394 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64396 { (exit 1); exit 1; }; }
64398 cat >conftest.$ac_ext <<_ACEOF
64399 /* confdefs.h. */
64400 _ACEOF
64401 cat confdefs.h >>conftest.$ac_ext
64402 cat >>conftest.$ac_ext <<_ACEOF
64403 /* end confdefs.h. */
64404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64406 #define $ac_func innocuous_$ac_func
64408 /* System header to define __stub macros and hopefully few prototypes,
64409 which can conflict with char $ac_func (); below.
64410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64411 <limits.h> exists even on freestanding compilers. */
64413 #ifdef __STDC__
64414 # include <limits.h>
64415 #else
64416 # include <assert.h>
64417 #endif
64419 #undef $ac_func
64421 /* Override any gcc2 internal prototype to avoid an error. */
64422 #ifdef __cplusplus
64423 extern "C"
64425 #endif
64426 /* We use char because int might match the return type of a gcc2
64427 builtin and then its argument prototype would still apply. */
64428 char $ac_func ();
64429 /* The GNU C library defines this for functions which it implements
64430 to always fail with ENOSYS. Some functions are actually named
64431 something starting with __ and the normal name is an alias. */
64432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64433 choke me
64434 #else
64435 char (*f) () = $ac_func;
64436 #endif
64437 #ifdef __cplusplus
64439 #endif
64442 main ()
64444 return f != $ac_func;
64446 return 0;
64448 _ACEOF
64449 rm -f conftest.$ac_objext conftest$ac_exeext
64450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64451 (eval $ac_link) 2>conftest.er1
64452 ac_status=$?
64453 grep -v '^ *+' conftest.er1 >conftest.err
64454 rm -f conftest.er1
64455 cat conftest.err >&5
64456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64457 (exit $ac_status); } &&
64458 { ac_try='test -z "$ac_c_werror_flag"
64459 || test ! -s conftest.err'
64460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64461 (eval $ac_try) 2>&5
64462 ac_status=$?
64463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64464 (exit $ac_status); }; } &&
64465 { ac_try='test -s conftest$ac_exeext'
64466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64467 (eval $ac_try) 2>&5
64468 ac_status=$?
64469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64470 (exit $ac_status); }; }; then
64471 eval "$as_ac_var=yes"
64472 else
64473 echo "$as_me: failed program was:" >&5
64474 sed 's/^/| /' conftest.$ac_ext >&5
64476 eval "$as_ac_var=no"
64478 rm -f conftest.err conftest.$ac_objext \
64479 conftest$ac_exeext conftest.$ac_ext
64481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64483 if test `eval echo '${'$as_ac_var'}'` = yes; then
64484 cat >>confdefs.h <<_ACEOF
64485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64486 _ACEOF
64488 else
64489 ac_wfuncs=no
64491 done
64494 # Checks for names injected into std:: by the c_std headers.
64541 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64542 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64543 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64544 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64545 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64546 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64549 echo "$as_me:$LINENO: checking for $ac_func" >&5
64550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64551 if eval "test \"\${$as_ac_var+set}\" = set"; then
64552 echo $ECHO_N "(cached) $ECHO_C" >&6
64553 else
64554 if test x$gcc_no_link = xyes; then
64555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64557 { (exit 1); exit 1; }; }
64559 cat >conftest.$ac_ext <<_ACEOF
64560 /* confdefs.h. */
64561 _ACEOF
64562 cat confdefs.h >>conftest.$ac_ext
64563 cat >>conftest.$ac_ext <<_ACEOF
64564 /* end confdefs.h. */
64565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64567 #define $ac_func innocuous_$ac_func
64569 /* System header to define __stub macros and hopefully few prototypes,
64570 which can conflict with char $ac_func (); below.
64571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64572 <limits.h> exists even on freestanding compilers. */
64574 #ifdef __STDC__
64575 # include <limits.h>
64576 #else
64577 # include <assert.h>
64578 #endif
64580 #undef $ac_func
64582 /* Override any gcc2 internal prototype to avoid an error. */
64583 #ifdef __cplusplus
64584 extern "C"
64586 #endif
64587 /* We use char because int might match the return type of a gcc2
64588 builtin and then its argument prototype would still apply. */
64589 char $ac_func ();
64590 /* The GNU C library defines this for functions which it implements
64591 to always fail with ENOSYS. Some functions are actually named
64592 something starting with __ and the normal name is an alias. */
64593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64594 choke me
64595 #else
64596 char (*f) () = $ac_func;
64597 #endif
64598 #ifdef __cplusplus
64600 #endif
64603 main ()
64605 return f != $ac_func;
64607 return 0;
64609 _ACEOF
64610 rm -f conftest.$ac_objext conftest$ac_exeext
64611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64612 (eval $ac_link) 2>conftest.er1
64613 ac_status=$?
64614 grep -v '^ *+' conftest.er1 >conftest.err
64615 rm -f conftest.er1
64616 cat conftest.err >&5
64617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64618 (exit $ac_status); } &&
64619 { ac_try='test -z "$ac_c_werror_flag"
64620 || test ! -s conftest.err'
64621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64622 (eval $ac_try) 2>&5
64623 ac_status=$?
64624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64625 (exit $ac_status); }; } &&
64626 { ac_try='test -s conftest$ac_exeext'
64627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64628 (eval $ac_try) 2>&5
64629 ac_status=$?
64630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64631 (exit $ac_status); }; }; then
64632 eval "$as_ac_var=yes"
64633 else
64634 echo "$as_me: failed program was:" >&5
64635 sed 's/^/| /' conftest.$ac_ext >&5
64637 eval "$as_ac_var=no"
64639 rm -f conftest.err conftest.$ac_objext \
64640 conftest$ac_exeext conftest.$ac_ext
64642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64644 if test `eval echo '${'$as_ac_var'}'` = yes; then
64645 cat >>confdefs.h <<_ACEOF
64646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64647 _ACEOF
64649 else
64650 ac_wfuncs=no
64652 done
64655 # Checks for wide character functions that are not required
64656 # for basic wchar_t support. Don't disable support if they are missing.
64657 # Injection of these is wrapped with guard macros.
64663 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64666 echo "$as_me:$LINENO: checking for $ac_func" >&5
64667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64668 if eval "test \"\${$as_ac_var+set}\" = set"; then
64669 echo $ECHO_N "(cached) $ECHO_C" >&6
64670 else
64671 if test x$gcc_no_link = xyes; then
64672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64674 { (exit 1); exit 1; }; }
64676 cat >conftest.$ac_ext <<_ACEOF
64677 /* confdefs.h. */
64678 _ACEOF
64679 cat confdefs.h >>conftest.$ac_ext
64680 cat >>conftest.$ac_ext <<_ACEOF
64681 /* end confdefs.h. */
64682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64684 #define $ac_func innocuous_$ac_func
64686 /* System header to define __stub macros and hopefully few prototypes,
64687 which can conflict with char $ac_func (); below.
64688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64689 <limits.h> exists even on freestanding compilers. */
64691 #ifdef __STDC__
64692 # include <limits.h>
64693 #else
64694 # include <assert.h>
64695 #endif
64697 #undef $ac_func
64699 /* Override any gcc2 internal prototype to avoid an error. */
64700 #ifdef __cplusplus
64701 extern "C"
64703 #endif
64704 /* We use char because int might match the return type of a gcc2
64705 builtin and then its argument prototype would still apply. */
64706 char $ac_func ();
64707 /* The GNU C library defines this for functions which it implements
64708 to always fail with ENOSYS. Some functions are actually named
64709 something starting with __ and the normal name is an alias. */
64710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64711 choke me
64712 #else
64713 char (*f) () = $ac_func;
64714 #endif
64715 #ifdef __cplusplus
64717 #endif
64720 main ()
64722 return f != $ac_func;
64724 return 0;
64726 _ACEOF
64727 rm -f conftest.$ac_objext conftest$ac_exeext
64728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64729 (eval $ac_link) 2>conftest.er1
64730 ac_status=$?
64731 grep -v '^ *+' conftest.er1 >conftest.err
64732 rm -f conftest.er1
64733 cat conftest.err >&5
64734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64735 (exit $ac_status); } &&
64736 { ac_try='test -z "$ac_c_werror_flag"
64737 || test ! -s conftest.err'
64738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64739 (eval $ac_try) 2>&5
64740 ac_status=$?
64741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64742 (exit $ac_status); }; } &&
64743 { ac_try='test -s conftest$ac_exeext'
64744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64745 (eval $ac_try) 2>&5
64746 ac_status=$?
64747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64748 (exit $ac_status); }; }; then
64749 eval "$as_ac_var=yes"
64750 else
64751 echo "$as_me: failed program was:" >&5
64752 sed 's/^/| /' conftest.$ac_ext >&5
64754 eval "$as_ac_var=no"
64756 rm -f conftest.err conftest.$ac_objext \
64757 conftest$ac_exeext conftest.$ac_ext
64759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64761 if test `eval echo '${'$as_ac_var'}'` = yes; then
64762 cat >>confdefs.h <<_ACEOF
64763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64764 _ACEOF
64767 done
64770 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
64771 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
64772 if test x"$has_weof" = xyes &&
64773 test x"$has_wchar_minmax" = xyes &&
64774 test x"$ac_wfuncs" = xyes;
64775 then
64776 ac_isoC99_wchar_t=yes
64777 else
64778 ac_isoC99_wchar_t=no
64780 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
64781 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
64783 # Use iconv for wchar_t to char conversions. As such, check for
64784 # X/Open Portability Guide, version 2 features (XPG2).
64785 if test "${ac_cv_header_iconv_h+set}" = set; then
64786 echo "$as_me:$LINENO: checking for iconv.h" >&5
64787 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64788 if test "${ac_cv_header_iconv_h+set}" = set; then
64789 echo $ECHO_N "(cached) $ECHO_C" >&6
64791 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64792 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64793 else
64794 # Is the header compilable?
64795 echo "$as_me:$LINENO: checking iconv.h usability" >&5
64796 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
64797 cat >conftest.$ac_ext <<_ACEOF
64798 /* confdefs.h. */
64799 _ACEOF
64800 cat confdefs.h >>conftest.$ac_ext
64801 cat >>conftest.$ac_ext <<_ACEOF
64802 /* end confdefs.h. */
64803 $ac_includes_default
64804 #include <iconv.h>
64805 _ACEOF
64806 rm -f conftest.$ac_objext
64807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64808 (eval $ac_compile) 2>conftest.er1
64809 ac_status=$?
64810 grep -v '^ *+' conftest.er1 >conftest.err
64811 rm -f conftest.er1
64812 cat conftest.err >&5
64813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64814 (exit $ac_status); } &&
64815 { ac_try='test -z "$ac_c_werror_flag"
64816 || test ! -s conftest.err'
64817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64818 (eval $ac_try) 2>&5
64819 ac_status=$?
64820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64821 (exit $ac_status); }; } &&
64822 { ac_try='test -s conftest.$ac_objext'
64823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64824 (eval $ac_try) 2>&5
64825 ac_status=$?
64826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64827 (exit $ac_status); }; }; then
64828 ac_header_compiler=yes
64829 else
64830 echo "$as_me: failed program was:" >&5
64831 sed 's/^/| /' conftest.$ac_ext >&5
64833 ac_header_compiler=no
64835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64837 echo "${ECHO_T}$ac_header_compiler" >&6
64839 # Is the header present?
64840 echo "$as_me:$LINENO: checking iconv.h presence" >&5
64841 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
64842 cat >conftest.$ac_ext <<_ACEOF
64843 /* confdefs.h. */
64844 _ACEOF
64845 cat confdefs.h >>conftest.$ac_ext
64846 cat >>conftest.$ac_ext <<_ACEOF
64847 /* end confdefs.h. */
64848 #include <iconv.h>
64849 _ACEOF
64850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64852 ac_status=$?
64853 grep -v '^ *+' conftest.er1 >conftest.err
64854 rm -f conftest.er1
64855 cat conftest.err >&5
64856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64857 (exit $ac_status); } >/dev/null; then
64858 if test -s conftest.err; then
64859 ac_cpp_err=$ac_c_preproc_warn_flag
64860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64861 else
64862 ac_cpp_err=
64864 else
64865 ac_cpp_err=yes
64867 if test -z "$ac_cpp_err"; then
64868 ac_header_preproc=yes
64869 else
64870 echo "$as_me: failed program was:" >&5
64871 sed 's/^/| /' conftest.$ac_ext >&5
64873 ac_header_preproc=no
64875 rm -f conftest.err conftest.$ac_ext
64876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64877 echo "${ECHO_T}$ac_header_preproc" >&6
64879 # So? What about this header?
64880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64881 yes:no: )
64882 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
64883 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64884 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
64885 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
64886 ac_header_preproc=yes
64888 no:yes:* )
64889 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
64890 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
64891 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
64892 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
64893 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
64894 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
64895 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
64896 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
64897 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
64898 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
64899 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
64900 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
64902 cat <<\_ASBOX
64903 ## ----------------------------------------- ##
64904 ## Report this to the package-unused lists. ##
64905 ## ----------------------------------------- ##
64906 _ASBOX
64908 sed "s/^/$as_me: WARNING: /" >&2
64910 esac
64911 echo "$as_me:$LINENO: checking for iconv.h" >&5
64912 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64913 if test "${ac_cv_header_iconv_h+set}" = set; then
64914 echo $ECHO_N "(cached) $ECHO_C" >&6
64915 else
64916 ac_cv_header_iconv_h=$ac_header_preproc
64918 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64919 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64922 if test $ac_cv_header_iconv_h = yes; then
64923 ac_has_iconv_h=yes
64924 else
64925 ac_has_iconv_h=no
64929 if test "${ac_cv_header_langinfo_h+set}" = set; then
64930 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64931 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64932 if test "${ac_cv_header_langinfo_h+set}" = set; then
64933 echo $ECHO_N "(cached) $ECHO_C" >&6
64935 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64936 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64937 else
64938 # Is the header compilable?
64939 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
64940 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
64941 cat >conftest.$ac_ext <<_ACEOF
64942 /* confdefs.h. */
64943 _ACEOF
64944 cat confdefs.h >>conftest.$ac_ext
64945 cat >>conftest.$ac_ext <<_ACEOF
64946 /* end confdefs.h. */
64947 $ac_includes_default
64948 #include <langinfo.h>
64949 _ACEOF
64950 rm -f conftest.$ac_objext
64951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64952 (eval $ac_compile) 2>conftest.er1
64953 ac_status=$?
64954 grep -v '^ *+' conftest.er1 >conftest.err
64955 rm -f conftest.er1
64956 cat conftest.err >&5
64957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64958 (exit $ac_status); } &&
64959 { ac_try='test -z "$ac_c_werror_flag"
64960 || test ! -s conftest.err'
64961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64962 (eval $ac_try) 2>&5
64963 ac_status=$?
64964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64965 (exit $ac_status); }; } &&
64966 { ac_try='test -s conftest.$ac_objext'
64967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64968 (eval $ac_try) 2>&5
64969 ac_status=$?
64970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64971 (exit $ac_status); }; }; then
64972 ac_header_compiler=yes
64973 else
64974 echo "$as_me: failed program was:" >&5
64975 sed 's/^/| /' conftest.$ac_ext >&5
64977 ac_header_compiler=no
64979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64981 echo "${ECHO_T}$ac_header_compiler" >&6
64983 # Is the header present?
64984 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
64985 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
64986 cat >conftest.$ac_ext <<_ACEOF
64987 /* confdefs.h. */
64988 _ACEOF
64989 cat confdefs.h >>conftest.$ac_ext
64990 cat >>conftest.$ac_ext <<_ACEOF
64991 /* end confdefs.h. */
64992 #include <langinfo.h>
64993 _ACEOF
64994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64996 ac_status=$?
64997 grep -v '^ *+' conftest.er1 >conftest.err
64998 rm -f conftest.er1
64999 cat conftest.err >&5
65000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65001 (exit $ac_status); } >/dev/null; then
65002 if test -s conftest.err; then
65003 ac_cpp_err=$ac_c_preproc_warn_flag
65004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65005 else
65006 ac_cpp_err=
65008 else
65009 ac_cpp_err=yes
65011 if test -z "$ac_cpp_err"; then
65012 ac_header_preproc=yes
65013 else
65014 echo "$as_me: failed program was:" >&5
65015 sed 's/^/| /' conftest.$ac_ext >&5
65017 ac_header_preproc=no
65019 rm -f conftest.err conftest.$ac_ext
65020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65021 echo "${ECHO_T}$ac_header_preproc" >&6
65023 # So? What about this header?
65024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65025 yes:no: )
65026 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65027 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65028 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65029 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65030 ac_header_preproc=yes
65032 no:yes:* )
65033 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65034 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65035 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
65036 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
65037 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65038 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65039 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
65040 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
65041 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65042 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65043 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65044 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65046 cat <<\_ASBOX
65047 ## ----------------------------------------- ##
65048 ## Report this to the package-unused lists. ##
65049 ## ----------------------------------------- ##
65050 _ASBOX
65052 sed "s/^/$as_me: WARNING: /" >&2
65054 esac
65055 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65056 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65057 if test "${ac_cv_header_langinfo_h+set}" = set; then
65058 echo $ECHO_N "(cached) $ECHO_C" >&6
65059 else
65060 ac_cv_header_langinfo_h=$ac_header_preproc
65062 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65063 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65066 if test $ac_cv_header_langinfo_h = yes; then
65067 ac_has_langinfo_h=yes
65068 else
65069 ac_has_langinfo_h=no
65074 # Check for existence of libiconv.a providing XPG2 wchar_t support.
65075 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65076 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65077 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65078 echo $ECHO_N "(cached) $ECHO_C" >&6
65079 else
65080 ac_check_lib_save_LIBS=$LIBS
65081 LIBS="-liconv $LIBS"
65082 if test x$gcc_no_link = xyes; then
65083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65085 { (exit 1); exit 1; }; }
65087 cat >conftest.$ac_ext <<_ACEOF
65088 /* confdefs.h. */
65089 _ACEOF
65090 cat confdefs.h >>conftest.$ac_ext
65091 cat >>conftest.$ac_ext <<_ACEOF
65092 /* end confdefs.h. */
65094 /* Override any gcc2 internal prototype to avoid an error. */
65095 #ifdef __cplusplus
65096 extern "C"
65097 #endif
65098 /* We use char because int might match the return type of a gcc2
65099 builtin and then its argument prototype would still apply. */
65100 char iconv ();
65102 main ()
65104 iconv ();
65106 return 0;
65108 _ACEOF
65109 rm -f conftest.$ac_objext conftest$ac_exeext
65110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65111 (eval $ac_link) 2>conftest.er1
65112 ac_status=$?
65113 grep -v '^ *+' conftest.er1 >conftest.err
65114 rm -f conftest.er1
65115 cat conftest.err >&5
65116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65117 (exit $ac_status); } &&
65118 { ac_try='test -z "$ac_c_werror_flag"
65119 || test ! -s conftest.err'
65120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65121 (eval $ac_try) 2>&5
65122 ac_status=$?
65123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65124 (exit $ac_status); }; } &&
65125 { ac_try='test -s conftest$ac_exeext'
65126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65127 (eval $ac_try) 2>&5
65128 ac_status=$?
65129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65130 (exit $ac_status); }; }; then
65131 ac_cv_lib_iconv_iconv=yes
65132 else
65133 echo "$as_me: failed program was:" >&5
65134 sed 's/^/| /' conftest.$ac_ext >&5
65136 ac_cv_lib_iconv_iconv=no
65138 rm -f conftest.err conftest.$ac_objext \
65139 conftest$ac_exeext conftest.$ac_ext
65140 LIBS=$ac_check_lib_save_LIBS
65142 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65143 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65144 if test $ac_cv_lib_iconv_iconv = yes; then
65145 LIBICONV="-liconv"
65148 ac_save_LIBS="$LIBS"
65149 LIBS="$LIBS $LIBICONV"
65156 for ac_func in iconv_open iconv_close iconv nl_langinfo
65158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65159 echo "$as_me:$LINENO: checking for $ac_func" >&5
65160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65161 if eval "test \"\${$as_ac_var+set}\" = set"; then
65162 echo $ECHO_N "(cached) $ECHO_C" >&6
65163 else
65164 if test x$gcc_no_link = xyes; then
65165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65167 { (exit 1); exit 1; }; }
65169 cat >conftest.$ac_ext <<_ACEOF
65170 /* confdefs.h. */
65171 _ACEOF
65172 cat confdefs.h >>conftest.$ac_ext
65173 cat >>conftest.$ac_ext <<_ACEOF
65174 /* end confdefs.h. */
65175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65177 #define $ac_func innocuous_$ac_func
65179 /* System header to define __stub macros and hopefully few prototypes,
65180 which can conflict with char $ac_func (); below.
65181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65182 <limits.h> exists even on freestanding compilers. */
65184 #ifdef __STDC__
65185 # include <limits.h>
65186 #else
65187 # include <assert.h>
65188 #endif
65190 #undef $ac_func
65192 /* Override any gcc2 internal prototype to avoid an error. */
65193 #ifdef __cplusplus
65194 extern "C"
65196 #endif
65197 /* We use char because int might match the return type of a gcc2
65198 builtin and then its argument prototype would still apply. */
65199 char $ac_func ();
65200 /* The GNU C library defines this for functions which it implements
65201 to always fail with ENOSYS. Some functions are actually named
65202 something starting with __ and the normal name is an alias. */
65203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65204 choke me
65205 #else
65206 char (*f) () = $ac_func;
65207 #endif
65208 #ifdef __cplusplus
65210 #endif
65213 main ()
65215 return f != $ac_func;
65217 return 0;
65219 _ACEOF
65220 rm -f conftest.$ac_objext conftest$ac_exeext
65221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65222 (eval $ac_link) 2>conftest.er1
65223 ac_status=$?
65224 grep -v '^ *+' conftest.er1 >conftest.err
65225 rm -f conftest.er1
65226 cat conftest.err >&5
65227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65228 (exit $ac_status); } &&
65229 { ac_try='test -z "$ac_c_werror_flag"
65230 || test ! -s conftest.err'
65231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65232 (eval $ac_try) 2>&5
65233 ac_status=$?
65234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65235 (exit $ac_status); }; } &&
65236 { ac_try='test -s conftest$ac_exeext'
65237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65238 (eval $ac_try) 2>&5
65239 ac_status=$?
65240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65241 (exit $ac_status); }; }; then
65242 eval "$as_ac_var=yes"
65243 else
65244 echo "$as_me: failed program was:" >&5
65245 sed 's/^/| /' conftest.$ac_ext >&5
65247 eval "$as_ac_var=no"
65249 rm -f conftest.err conftest.$ac_objext \
65250 conftest$ac_exeext conftest.$ac_ext
65252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65254 if test `eval echo '${'$as_ac_var'}'` = yes; then
65255 cat >>confdefs.h <<_ACEOF
65256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65257 _ACEOF
65258 ac_XPG2funcs=yes
65259 else
65260 ac_XPG2funcs=no
65262 done
65265 LIBS="$ac_save_LIBS"
65267 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65268 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65269 if test x"$ac_has_iconv_h" = xyes &&
65270 test x"$ac_has_langinfo_h" = xyes &&
65271 test x"$ac_XPG2funcs" = xyes;
65272 then
65273 ac_XPG2_wchar_t=yes
65274 else
65275 ac_XPG2_wchar_t=no
65277 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65278 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65280 # At the moment, only enable wchar_t specializations if all the
65281 # above support is present.
65282 if test x"$ac_isoC99_wchar_t" = xyes &&
65283 test x"$ac_XPG2_wchar_t" = xyes;
65284 then
65285 cat >>confdefs.h <<\_ACEOF
65286 #define _GLIBCXX_USE_WCHAR_T 1
65287 _ACEOF
65289 enable_wchar_t=yes
65292 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65293 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65294 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65295 echo "${ECHO_T}$enable_wchar_t" >&6
65297 cat >>confdefs.h <<\_ACEOF
65298 #define HAVE_COPYSIGN 1
65299 _ACEOF
65301 cat >>confdefs.h <<\_ACEOF
65302 #define HAVE_COPYSIGNF 1
65303 _ACEOF
65305 cat >>confdefs.h <<\_ACEOF
65306 #define HAVE_FINITEF 1
65307 _ACEOF
65309 cat >>confdefs.h <<\_ACEOF
65310 #define HAVE_FINITE 1
65311 _ACEOF
65313 cat >>confdefs.h <<\_ACEOF
65314 #define HAVE_FREXPF 1
65315 _ACEOF
65317 cat >>confdefs.h <<\_ACEOF
65318 #define HAVE_HYPOTF 1
65319 _ACEOF
65321 cat >>confdefs.h <<\_ACEOF
65322 #define HAVE_ISINF 1
65323 _ACEOF
65325 cat >>confdefs.h <<\_ACEOF
65326 #define HAVE_ISINFF 1
65327 _ACEOF
65329 cat >>confdefs.h <<\_ACEOF
65330 #define HAVE_ISNAN 1
65331 _ACEOF
65333 cat >>confdefs.h <<\_ACEOF
65334 #define HAVE_ISNANF 1
65335 _ACEOF
65337 if test x"long_double_math_on_this_cpu" = x"yes"; then
65338 cat >>confdefs.h <<\_ACEOF
65339 #define HAVE_FINITEL 1
65340 _ACEOF
65342 cat >>confdefs.h <<\_ACEOF
65343 #define HAVE_ISINFL 1
65344 _ACEOF
65346 cat >>confdefs.h <<\_ACEOF
65347 #define HAVE_ISNANL 1
65348 _ACEOF
65352 *-qnx6.1* | *-qnx6.2*)
65353 SECTION_FLAGS='-ffunction-sections -fdata-sections'
65356 # If we're not using GNU ld, then there's no point in even trying these
65357 # tests. Check for that first. We should have already tested for gld
65358 # by now (in libtool), but require it now just to be safe...
65359 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65360 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65364 # The name set by libtool depends on the version of libtool. Shame on us
65365 # for depending on an impl detail, but c'est la vie. Older versions used
65366 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65367 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65368 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
65369 # set (hence we're using an older libtool), then set it.
65370 if test x${with_gnu_ld+set} != xset; then
65371 if test x${ac_cv_prog_gnu_ld+set} != xset; then
65372 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
65373 with_gnu_ld=no
65374 else
65375 with_gnu_ld=$ac_cv_prog_gnu_ld
65379 # Start by getting the version number. I think the libtool test already
65380 # does some of this, but throws away the result.
65382 ldver=`$LD --version 2>/dev/null | head -1 | \
65383 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65385 glibcxx_gnu_ld_version=`echo $ldver | \
65386 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65388 # Set --gc-sections.
65389 if test "$with_gnu_ld" = "notbroken"; then
65390 # GNU ld it is! Joy and bunny rabbits!
65392 # All these tests are for C++; save the language and the compiler flags.
65393 # Need to do this so that g++ won't try to link in libstdc++
65394 ac_test_CFLAGS="${CFLAGS+set}"
65395 ac_save_CFLAGS="$CFLAGS"
65396 CFLAGS='-x c++ -Wl,--gc-sections'
65398 # Check for -Wl,--gc-sections
65399 # XXX This test is broken at the moment, as symbols required for linking
65400 # are now in libsupc++ (not built yet). In addition, this test has
65401 # cored on solaris in the past. In addition, --gc-sections doesn't
65402 # really work at the moment (keeps on discarding used sections, first
65403 # .eh_frame and now some of the glibc sections for iconv).
65404 # Bzzzzt. Thanks for playing, maybe next time.
65405 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65406 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65407 if test "$cross_compiling" = yes; then
65408 ac_sectionLDflags=yes
65409 else
65410 cat >conftest.$ac_ext <<_ACEOF
65411 /* confdefs.h. */
65412 _ACEOF
65413 cat confdefs.h >>conftest.$ac_ext
65414 cat >>conftest.$ac_ext <<_ACEOF
65415 /* end confdefs.h. */
65417 int main(void)
65419 try { throw 1; }
65420 catch (...) { };
65421 return 0;
65424 _ACEOF
65425 rm -f conftest$ac_exeext
65426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65427 (eval $ac_link) 2>&5
65428 ac_status=$?
65429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65432 (eval $ac_try) 2>&5
65433 ac_status=$?
65434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65435 (exit $ac_status); }; }; then
65436 ac_sectionLDflags=yes
65437 else
65438 echo "$as_me: program exited with status $ac_status" >&5
65439 echo "$as_me: failed program was:" >&5
65440 sed 's/^/| /' conftest.$ac_ext >&5
65442 ( exit $ac_status )
65443 ac_sectionLDflags=no
65445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65447 if test "$ac_test_CFLAGS" = set; then
65448 CFLAGS="$ac_save_CFLAGS"
65449 else
65450 # this is the suspicious part
65451 CFLAGS=''
65453 if test "$ac_sectionLDflags" = "yes"; then
65454 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65456 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65457 echo "${ECHO_T}$ac_sectionLDflags" >&6
65460 # Set linker optimization flags.
65461 if test x"$with_gnu_ld" = x"yes"; then
65462 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65470 echo "$as_me:$LINENO: checking for main in -lm" >&5
65471 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65472 if test "${ac_cv_lib_m_main+set}" = set; then
65473 echo $ECHO_N "(cached) $ECHO_C" >&6
65474 else
65475 ac_check_lib_save_LIBS=$LIBS
65476 LIBS="-lm $LIBS"
65477 if test x$gcc_no_link = xyes; then
65478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65480 { (exit 1); exit 1; }; }
65482 cat >conftest.$ac_ext <<_ACEOF
65483 /* confdefs.h. */
65484 _ACEOF
65485 cat confdefs.h >>conftest.$ac_ext
65486 cat >>conftest.$ac_ext <<_ACEOF
65487 /* end confdefs.h. */
65491 main ()
65493 main ();
65495 return 0;
65497 _ACEOF
65498 rm -f conftest.$ac_objext conftest$ac_exeext
65499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65500 (eval $ac_link) 2>conftest.er1
65501 ac_status=$?
65502 grep -v '^ *+' conftest.er1 >conftest.err
65503 rm -f conftest.er1
65504 cat conftest.err >&5
65505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65506 (exit $ac_status); } &&
65507 { ac_try='test -z "$ac_c_werror_flag"
65508 || test ! -s conftest.err'
65509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65510 (eval $ac_try) 2>&5
65511 ac_status=$?
65512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65513 (exit $ac_status); }; } &&
65514 { ac_try='test -s conftest$ac_exeext'
65515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65516 (eval $ac_try) 2>&5
65517 ac_status=$?
65518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65519 (exit $ac_status); }; }; then
65520 ac_cv_lib_m_main=yes
65521 else
65522 echo "$as_me: failed program was:" >&5
65523 sed 's/^/| /' conftest.$ac_ext >&5
65525 ac_cv_lib_m_main=no
65527 rm -f conftest.err conftest.$ac_objext \
65528 conftest$ac_exeext conftest.$ac_ext
65529 LIBS=$ac_check_lib_save_LIBS
65531 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65532 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65533 if test $ac_cv_lib_m_main = yes; then
65534 cat >>confdefs.h <<_ACEOF
65535 #define HAVE_LIBM 1
65536 _ACEOF
65538 LIBS="-lm $LIBS"
65543 for ac_func in copysignf
65545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65546 echo "$as_me:$LINENO: checking for $ac_func" >&5
65547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65548 if eval "test \"\${$as_ac_var+set}\" = set"; then
65549 echo $ECHO_N "(cached) $ECHO_C" >&6
65550 else
65551 if test x$gcc_no_link = xyes; then
65552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65554 { (exit 1); exit 1; }; }
65556 cat >conftest.$ac_ext <<_ACEOF
65557 /* confdefs.h. */
65558 _ACEOF
65559 cat confdefs.h >>conftest.$ac_ext
65560 cat >>conftest.$ac_ext <<_ACEOF
65561 /* end confdefs.h. */
65562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65564 #define $ac_func innocuous_$ac_func
65566 /* System header to define __stub macros and hopefully few prototypes,
65567 which can conflict with char $ac_func (); below.
65568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65569 <limits.h> exists even on freestanding compilers. */
65571 #ifdef __STDC__
65572 # include <limits.h>
65573 #else
65574 # include <assert.h>
65575 #endif
65577 #undef $ac_func
65579 /* Override any gcc2 internal prototype to avoid an error. */
65580 #ifdef __cplusplus
65581 extern "C"
65583 #endif
65584 /* We use char because int might match the return type of a gcc2
65585 builtin and then its argument prototype would still apply. */
65586 char $ac_func ();
65587 /* The GNU C library defines this for functions which it implements
65588 to always fail with ENOSYS. Some functions are actually named
65589 something starting with __ and the normal name is an alias. */
65590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65591 choke me
65592 #else
65593 char (*f) () = $ac_func;
65594 #endif
65595 #ifdef __cplusplus
65597 #endif
65600 main ()
65602 return f != $ac_func;
65604 return 0;
65606 _ACEOF
65607 rm -f conftest.$ac_objext conftest$ac_exeext
65608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65609 (eval $ac_link) 2>conftest.er1
65610 ac_status=$?
65611 grep -v '^ *+' conftest.er1 >conftest.err
65612 rm -f conftest.er1
65613 cat conftest.err >&5
65614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65615 (exit $ac_status); } &&
65616 { ac_try='test -z "$ac_c_werror_flag"
65617 || test ! -s conftest.err'
65618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65619 (eval $ac_try) 2>&5
65620 ac_status=$?
65621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65622 (exit $ac_status); }; } &&
65623 { ac_try='test -s conftest$ac_exeext'
65624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65625 (eval $ac_try) 2>&5
65626 ac_status=$?
65627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65628 (exit $ac_status); }; }; then
65629 eval "$as_ac_var=yes"
65630 else
65631 echo "$as_me: failed program was:" >&5
65632 sed 's/^/| /' conftest.$ac_ext >&5
65634 eval "$as_ac_var=no"
65636 rm -f conftest.err conftest.$ac_objext \
65637 conftest$ac_exeext conftest.$ac_ext
65639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65641 if test `eval echo '${'$as_ac_var'}'` = yes; then
65642 cat >>confdefs.h <<_ACEOF
65643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65644 _ACEOF
65646 else
65647 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65649 done
65653 for ac_func in __signbit
65655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65656 echo "$as_me:$LINENO: checking for $ac_func" >&5
65657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65658 if eval "test \"\${$as_ac_var+set}\" = set"; then
65659 echo $ECHO_N "(cached) $ECHO_C" >&6
65660 else
65661 if test x$gcc_no_link = xyes; then
65662 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65664 { (exit 1); exit 1; }; }
65666 cat >conftest.$ac_ext <<_ACEOF
65667 /* confdefs.h. */
65668 _ACEOF
65669 cat confdefs.h >>conftest.$ac_ext
65670 cat >>conftest.$ac_ext <<_ACEOF
65671 /* end confdefs.h. */
65672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65674 #define $ac_func innocuous_$ac_func
65676 /* System header to define __stub macros and hopefully few prototypes,
65677 which can conflict with char $ac_func (); below.
65678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65679 <limits.h> exists even on freestanding compilers. */
65681 #ifdef __STDC__
65682 # include <limits.h>
65683 #else
65684 # include <assert.h>
65685 #endif
65687 #undef $ac_func
65689 /* Override any gcc2 internal prototype to avoid an error. */
65690 #ifdef __cplusplus
65691 extern "C"
65693 #endif
65694 /* We use char because int might match the return type of a gcc2
65695 builtin and then its argument prototype would still apply. */
65696 char $ac_func ();
65697 /* The GNU C library defines this for functions which it implements
65698 to always fail with ENOSYS. Some functions are actually named
65699 something starting with __ and the normal name is an alias. */
65700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65701 choke me
65702 #else
65703 char (*f) () = $ac_func;
65704 #endif
65705 #ifdef __cplusplus
65707 #endif
65710 main ()
65712 return f != $ac_func;
65714 return 0;
65716 _ACEOF
65717 rm -f conftest.$ac_objext conftest$ac_exeext
65718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65719 (eval $ac_link) 2>conftest.er1
65720 ac_status=$?
65721 grep -v '^ *+' conftest.er1 >conftest.err
65722 rm -f conftest.er1
65723 cat conftest.err >&5
65724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65725 (exit $ac_status); } &&
65726 { ac_try='test -z "$ac_c_werror_flag"
65727 || test ! -s conftest.err'
65728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65729 (eval $ac_try) 2>&5
65730 ac_status=$?
65731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65732 (exit $ac_status); }; } &&
65733 { ac_try='test -s conftest$ac_exeext'
65734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65735 (eval $ac_try) 2>&5
65736 ac_status=$?
65737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65738 (exit $ac_status); }; }; then
65739 eval "$as_ac_var=yes"
65740 else
65741 echo "$as_me: failed program was:" >&5
65742 sed 's/^/| /' conftest.$ac_ext >&5
65744 eval "$as_ac_var=no"
65746 rm -f conftest.err conftest.$ac_objext \
65747 conftest$ac_exeext conftest.$ac_ext
65749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65751 if test `eval echo '${'$as_ac_var'}'` = yes; then
65752 cat >>confdefs.h <<_ACEOF
65753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65754 _ACEOF
65756 else
65757 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65759 done
65762 for ac_func in __signbitf
65764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65765 echo "$as_me:$LINENO: checking for $ac_func" >&5
65766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65767 if eval "test \"\${$as_ac_var+set}\" = set"; then
65768 echo $ECHO_N "(cached) $ECHO_C" >&6
65769 else
65770 if test x$gcc_no_link = xyes; then
65771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65773 { (exit 1); exit 1; }; }
65775 cat >conftest.$ac_ext <<_ACEOF
65776 /* confdefs.h. */
65777 _ACEOF
65778 cat confdefs.h >>conftest.$ac_ext
65779 cat >>conftest.$ac_ext <<_ACEOF
65780 /* end confdefs.h. */
65781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65783 #define $ac_func innocuous_$ac_func
65785 /* System header to define __stub macros and hopefully few prototypes,
65786 which can conflict with char $ac_func (); below.
65787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65788 <limits.h> exists even on freestanding compilers. */
65790 #ifdef __STDC__
65791 # include <limits.h>
65792 #else
65793 # include <assert.h>
65794 #endif
65796 #undef $ac_func
65798 /* Override any gcc2 internal prototype to avoid an error. */
65799 #ifdef __cplusplus
65800 extern "C"
65802 #endif
65803 /* We use char because int might match the return type of a gcc2
65804 builtin and then its argument prototype would still apply. */
65805 char $ac_func ();
65806 /* The GNU C library defines this for functions which it implements
65807 to always fail with ENOSYS. Some functions are actually named
65808 something starting with __ and the normal name is an alias. */
65809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65810 choke me
65811 #else
65812 char (*f) () = $ac_func;
65813 #endif
65814 #ifdef __cplusplus
65816 #endif
65819 main ()
65821 return f != $ac_func;
65823 return 0;
65825 _ACEOF
65826 rm -f conftest.$ac_objext conftest$ac_exeext
65827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65828 (eval $ac_link) 2>conftest.er1
65829 ac_status=$?
65830 grep -v '^ *+' conftest.er1 >conftest.err
65831 rm -f conftest.er1
65832 cat conftest.err >&5
65833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65834 (exit $ac_status); } &&
65835 { ac_try='test -z "$ac_c_werror_flag"
65836 || test ! -s conftest.err'
65837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65838 (eval $ac_try) 2>&5
65839 ac_status=$?
65840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65841 (exit $ac_status); }; } &&
65842 { ac_try='test -s conftest$ac_exeext'
65843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65844 (eval $ac_try) 2>&5
65845 ac_status=$?
65846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65847 (exit $ac_status); }; }; then
65848 eval "$as_ac_var=yes"
65849 else
65850 echo "$as_me: failed program was:" >&5
65851 sed 's/^/| /' conftest.$ac_ext >&5
65853 eval "$as_ac_var=no"
65855 rm -f conftest.err conftest.$ac_objext \
65856 conftest$ac_exeext conftest.$ac_ext
65858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65860 if test `eval echo '${'$as_ac_var'}'` = yes; then
65861 cat >>confdefs.h <<_ACEOF
65862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65863 _ACEOF
65865 else
65866 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
65868 done
65871 if test x$ac_cv_func_copysignl = x"yes"; then
65873 for ac_func in __signbitl
65875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65876 echo "$as_me:$LINENO: checking for $ac_func" >&5
65877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65878 if eval "test \"\${$as_ac_var+set}\" = set"; then
65879 echo $ECHO_N "(cached) $ECHO_C" >&6
65880 else
65881 if test x$gcc_no_link = xyes; then
65882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65884 { (exit 1); exit 1; }; }
65886 cat >conftest.$ac_ext <<_ACEOF
65887 /* confdefs.h. */
65888 _ACEOF
65889 cat confdefs.h >>conftest.$ac_ext
65890 cat >>conftest.$ac_ext <<_ACEOF
65891 /* end confdefs.h. */
65892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65894 #define $ac_func innocuous_$ac_func
65896 /* System header to define __stub macros and hopefully few prototypes,
65897 which can conflict with char $ac_func (); below.
65898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65899 <limits.h> exists even on freestanding compilers. */
65901 #ifdef __STDC__
65902 # include <limits.h>
65903 #else
65904 # include <assert.h>
65905 #endif
65907 #undef $ac_func
65909 /* Override any gcc2 internal prototype to avoid an error. */
65910 #ifdef __cplusplus
65911 extern "C"
65913 #endif
65914 /* We use char because int might match the return type of a gcc2
65915 builtin and then its argument prototype would still apply. */
65916 char $ac_func ();
65917 /* The GNU C library defines this for functions which it implements
65918 to always fail with ENOSYS. Some functions are actually named
65919 something starting with __ and the normal name is an alias. */
65920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65921 choke me
65922 #else
65923 char (*f) () = $ac_func;
65924 #endif
65925 #ifdef __cplusplus
65927 #endif
65930 main ()
65932 return f != $ac_func;
65934 return 0;
65936 _ACEOF
65937 rm -f conftest.$ac_objext conftest$ac_exeext
65938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65939 (eval $ac_link) 2>conftest.er1
65940 ac_status=$?
65941 grep -v '^ *+' conftest.er1 >conftest.err
65942 rm -f conftest.er1
65943 cat conftest.err >&5
65944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65945 (exit $ac_status); } &&
65946 { ac_try='test -z "$ac_c_werror_flag"
65947 || test ! -s conftest.err'
65948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65949 (eval $ac_try) 2>&5
65950 ac_status=$?
65951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65952 (exit $ac_status); }; } &&
65953 { ac_try='test -s conftest$ac_exeext'
65954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65955 (eval $ac_try) 2>&5
65956 ac_status=$?
65957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65958 (exit $ac_status); }; }; then
65959 eval "$as_ac_var=yes"
65960 else
65961 echo "$as_me: failed program was:" >&5
65962 sed 's/^/| /' conftest.$ac_ext >&5
65964 eval "$as_ac_var=no"
65966 rm -f conftest.err conftest.$ac_objext \
65967 conftest$ac_exeext conftest.$ac_ext
65969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65971 if test `eval echo '${'$as_ac_var'}'` = yes; then
65972 cat >>confdefs.h <<_ACEOF
65973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65974 _ACEOF
65976 else
65977 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
65979 done
65983 # XXX Review this. Nothing uses it.
65984 if test -n "$LIBMATHOBJS"; then
65985 need_libmath=yes
65990 # Test wchar.h for mbstate_t, which is needed for char_traits and
65991 # others even if wchar_t support is not on.
65992 echo "$as_me:$LINENO: checking for mbstate_t" >&5
65993 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
65994 cat >conftest.$ac_ext <<_ACEOF
65995 /* confdefs.h. */
65996 _ACEOF
65997 cat confdefs.h >>conftest.$ac_ext
65998 cat >>conftest.$ac_ext <<_ACEOF
65999 /* end confdefs.h. */
66000 #include <wchar.h>
66002 main ()
66004 mbstate_t teststate;
66006 return 0;
66008 _ACEOF
66009 rm -f conftest.$ac_objext
66010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66011 (eval $ac_compile) 2>conftest.er1
66012 ac_status=$?
66013 grep -v '^ *+' conftest.er1 >conftest.err
66014 rm -f conftest.er1
66015 cat conftest.err >&5
66016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66017 (exit $ac_status); } &&
66018 { ac_try='test -z "$ac_c_werror_flag"
66019 || test ! -s conftest.err'
66020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66021 (eval $ac_try) 2>&5
66022 ac_status=$?
66023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66024 (exit $ac_status); }; } &&
66025 { ac_try='test -s conftest.$ac_objext'
66026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66027 (eval $ac_try) 2>&5
66028 ac_status=$?
66029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66030 (exit $ac_status); }; }; then
66031 have_mbstate_t=yes
66032 else
66033 echo "$as_me: failed program was:" >&5
66034 sed 's/^/| /' conftest.$ac_ext >&5
66036 have_mbstate_t=no
66038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66039 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66040 echo "${ECHO_T}$have_mbstate_t" >&6
66041 if test x"$have_mbstate_t" = xyes; then
66042 cat >>confdefs.h <<\_ACEOF
66043 #define HAVE_MBSTATE_T 1
66044 _ACEOF
66048 # Sanity check for existence of ISO C99 headers for extended encoding.
66050 for ac_header in wchar.h
66052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66054 echo "$as_me:$LINENO: checking for $ac_header" >&5
66055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66057 echo $ECHO_N "(cached) $ECHO_C" >&6
66059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66061 else
66062 # Is the header compilable?
66063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66065 cat >conftest.$ac_ext <<_ACEOF
66066 /* confdefs.h. */
66067 _ACEOF
66068 cat confdefs.h >>conftest.$ac_ext
66069 cat >>conftest.$ac_ext <<_ACEOF
66070 /* end confdefs.h. */
66071 $ac_includes_default
66072 #include <$ac_header>
66073 _ACEOF
66074 rm -f conftest.$ac_objext
66075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66076 (eval $ac_compile) 2>conftest.er1
66077 ac_status=$?
66078 grep -v '^ *+' conftest.er1 >conftest.err
66079 rm -f conftest.er1
66080 cat conftest.err >&5
66081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66082 (exit $ac_status); } &&
66083 { ac_try='test -z "$ac_c_werror_flag"
66084 || test ! -s conftest.err'
66085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66086 (eval $ac_try) 2>&5
66087 ac_status=$?
66088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66089 (exit $ac_status); }; } &&
66090 { ac_try='test -s conftest.$ac_objext'
66091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66092 (eval $ac_try) 2>&5
66093 ac_status=$?
66094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66095 (exit $ac_status); }; }; then
66096 ac_header_compiler=yes
66097 else
66098 echo "$as_me: failed program was:" >&5
66099 sed 's/^/| /' conftest.$ac_ext >&5
66101 ac_header_compiler=no
66103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66105 echo "${ECHO_T}$ac_header_compiler" >&6
66107 # Is the header present?
66108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66110 cat >conftest.$ac_ext <<_ACEOF
66111 /* confdefs.h. */
66112 _ACEOF
66113 cat confdefs.h >>conftest.$ac_ext
66114 cat >>conftest.$ac_ext <<_ACEOF
66115 /* end confdefs.h. */
66116 #include <$ac_header>
66117 _ACEOF
66118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66120 ac_status=$?
66121 grep -v '^ *+' conftest.er1 >conftest.err
66122 rm -f conftest.er1
66123 cat conftest.err >&5
66124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66125 (exit $ac_status); } >/dev/null; then
66126 if test -s conftest.err; then
66127 ac_cpp_err=$ac_c_preproc_warn_flag
66128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66129 else
66130 ac_cpp_err=
66132 else
66133 ac_cpp_err=yes
66135 if test -z "$ac_cpp_err"; then
66136 ac_header_preproc=yes
66137 else
66138 echo "$as_me: failed program was:" >&5
66139 sed 's/^/| /' conftest.$ac_ext >&5
66141 ac_header_preproc=no
66143 rm -f conftest.err conftest.$ac_ext
66144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66145 echo "${ECHO_T}$ac_header_preproc" >&6
66147 # So? What about this header?
66148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66149 yes:no: )
66150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66154 ac_header_preproc=yes
66156 no:yes:* )
66157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66170 cat <<\_ASBOX
66171 ## ----------------------------------------- ##
66172 ## Report this to the package-unused lists. ##
66173 ## ----------------------------------------- ##
66174 _ASBOX
66176 sed "s/^/$as_me: WARNING: /" >&2
66178 esac
66179 echo "$as_me:$LINENO: checking for $ac_header" >&5
66180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66182 echo $ECHO_N "(cached) $ECHO_C" >&6
66183 else
66184 eval "$as_ac_Header=\$ac_header_preproc"
66186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66191 cat >>confdefs.h <<_ACEOF
66192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66193 _ACEOF
66194 ac_has_wchar_h=yes
66195 else
66196 ac_has_wchar_h=no
66199 done
66202 for ac_header in wctype.h
66204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66206 echo "$as_me:$LINENO: checking for $ac_header" >&5
66207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66209 echo $ECHO_N "(cached) $ECHO_C" >&6
66211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66213 else
66214 # Is the header compilable?
66215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66217 cat >conftest.$ac_ext <<_ACEOF
66218 /* confdefs.h. */
66219 _ACEOF
66220 cat confdefs.h >>conftest.$ac_ext
66221 cat >>conftest.$ac_ext <<_ACEOF
66222 /* end confdefs.h. */
66223 $ac_includes_default
66224 #include <$ac_header>
66225 _ACEOF
66226 rm -f conftest.$ac_objext
66227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66228 (eval $ac_compile) 2>conftest.er1
66229 ac_status=$?
66230 grep -v '^ *+' conftest.er1 >conftest.err
66231 rm -f conftest.er1
66232 cat conftest.err >&5
66233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66234 (exit $ac_status); } &&
66235 { ac_try='test -z "$ac_c_werror_flag"
66236 || test ! -s conftest.err'
66237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66238 (eval $ac_try) 2>&5
66239 ac_status=$?
66240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66241 (exit $ac_status); }; } &&
66242 { ac_try='test -s conftest.$ac_objext'
66243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66244 (eval $ac_try) 2>&5
66245 ac_status=$?
66246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66247 (exit $ac_status); }; }; then
66248 ac_header_compiler=yes
66249 else
66250 echo "$as_me: failed program was:" >&5
66251 sed 's/^/| /' conftest.$ac_ext >&5
66253 ac_header_compiler=no
66255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66257 echo "${ECHO_T}$ac_header_compiler" >&6
66259 # Is the header present?
66260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66262 cat >conftest.$ac_ext <<_ACEOF
66263 /* confdefs.h. */
66264 _ACEOF
66265 cat confdefs.h >>conftest.$ac_ext
66266 cat >>conftest.$ac_ext <<_ACEOF
66267 /* end confdefs.h. */
66268 #include <$ac_header>
66269 _ACEOF
66270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66272 ac_status=$?
66273 grep -v '^ *+' conftest.er1 >conftest.err
66274 rm -f conftest.er1
66275 cat conftest.err >&5
66276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66277 (exit $ac_status); } >/dev/null; then
66278 if test -s conftest.err; then
66279 ac_cpp_err=$ac_c_preproc_warn_flag
66280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66281 else
66282 ac_cpp_err=
66284 else
66285 ac_cpp_err=yes
66287 if test -z "$ac_cpp_err"; then
66288 ac_header_preproc=yes
66289 else
66290 echo "$as_me: failed program was:" >&5
66291 sed 's/^/| /' conftest.$ac_ext >&5
66293 ac_header_preproc=no
66295 rm -f conftest.err conftest.$ac_ext
66296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66297 echo "${ECHO_T}$ac_header_preproc" >&6
66299 # So? What about this header?
66300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66301 yes:no: )
66302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66306 ac_header_preproc=yes
66308 no:yes:* )
66309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66322 cat <<\_ASBOX
66323 ## ----------------------------------------- ##
66324 ## Report this to the package-unused lists. ##
66325 ## ----------------------------------------- ##
66326 _ASBOX
66328 sed "s/^/$as_me: WARNING: /" >&2
66330 esac
66331 echo "$as_me:$LINENO: checking for $ac_header" >&5
66332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66334 echo $ECHO_N "(cached) $ECHO_C" >&6
66335 else
66336 eval "$as_ac_Header=\$ac_header_preproc"
66338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66343 cat >>confdefs.h <<_ACEOF
66344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66345 _ACEOF
66346 ac_has_wctype_h=yes
66347 else
66348 ac_has_wctype_h=no
66351 done
66354 # Only continue checking if the ISO C99 headers exist and support is on.
66355 if test x"$ac_has_wchar_h" = xyes &&
66356 test x"$ac_has_wctype_h" = xyes &&
66357 test x"$enable_c_mbchar" != xno; then
66359 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66360 # numeric_limits can instantiate type_traits<wchar_t>
66361 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66362 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66363 cat >conftest.$ac_ext <<_ACEOF
66364 /* confdefs.h. */
66365 _ACEOF
66366 cat confdefs.h >>conftest.$ac_ext
66367 cat >>conftest.$ac_ext <<_ACEOF
66368 /* end confdefs.h. */
66369 #include <wchar.h>
66371 main ()
66373 int i = WCHAR_MIN; int j = WCHAR_MAX;
66375 return 0;
66377 _ACEOF
66378 rm -f conftest.$ac_objext
66379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66380 (eval $ac_compile) 2>conftest.er1
66381 ac_status=$?
66382 grep -v '^ *+' conftest.er1 >conftest.err
66383 rm -f conftest.er1
66384 cat conftest.err >&5
66385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66386 (exit $ac_status); } &&
66387 { ac_try='test -z "$ac_c_werror_flag"
66388 || test ! -s conftest.err'
66389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66390 (eval $ac_try) 2>&5
66391 ac_status=$?
66392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66393 (exit $ac_status); }; } &&
66394 { ac_try='test -s conftest.$ac_objext'
66395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66396 (eval $ac_try) 2>&5
66397 ac_status=$?
66398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66399 (exit $ac_status); }; }; then
66400 has_wchar_minmax=yes
66401 else
66402 echo "$as_me: failed program was:" >&5
66403 sed 's/^/| /' conftest.$ac_ext >&5
66405 has_wchar_minmax=no
66407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66408 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66409 echo "${ECHO_T}$has_wchar_minmax" >&6
66411 # Test wchar.h for WEOF, which is what we use to determine whether
66412 # to specialize for char_traits<wchar_t> or not.
66413 echo "$as_me:$LINENO: checking for WEOF" >&5
66414 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66415 cat >conftest.$ac_ext <<_ACEOF
66416 /* confdefs.h. */
66417 _ACEOF
66418 cat confdefs.h >>conftest.$ac_ext
66419 cat >>conftest.$ac_ext <<_ACEOF
66420 /* end confdefs.h. */
66422 #include <wchar.h>
66423 #include <stddef.h>
66425 main ()
66427 wint_t i = WEOF;
66429 return 0;
66431 _ACEOF
66432 rm -f conftest.$ac_objext
66433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66434 (eval $ac_compile) 2>conftest.er1
66435 ac_status=$?
66436 grep -v '^ *+' conftest.er1 >conftest.err
66437 rm -f conftest.er1
66438 cat conftest.err >&5
66439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66440 (exit $ac_status); } &&
66441 { ac_try='test -z "$ac_c_werror_flag"
66442 || test ! -s conftest.err'
66443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66444 (eval $ac_try) 2>&5
66445 ac_status=$?
66446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66447 (exit $ac_status); }; } &&
66448 { ac_try='test -s conftest.$ac_objext'
66449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66450 (eval $ac_try) 2>&5
66451 ac_status=$?
66452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66453 (exit $ac_status); }; }; then
66454 has_weof=yes
66455 else
66456 echo "$as_me: failed program was:" >&5
66457 sed 's/^/| /' conftest.$ac_ext >&5
66459 has_weof=no
66461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66462 echo "$as_me:$LINENO: result: $has_weof" >&5
66463 echo "${ECHO_T}$has_weof" >&6
66465 # Tests for wide character functions used in char_traits<wchar_t>.
66466 ac_wfuncs=yes
66473 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66476 echo "$as_me:$LINENO: checking for $ac_func" >&5
66477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66478 if eval "test \"\${$as_ac_var+set}\" = set"; then
66479 echo $ECHO_N "(cached) $ECHO_C" >&6
66480 else
66481 if test x$gcc_no_link = xyes; then
66482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66484 { (exit 1); exit 1; }; }
66486 cat >conftest.$ac_ext <<_ACEOF
66487 /* confdefs.h. */
66488 _ACEOF
66489 cat confdefs.h >>conftest.$ac_ext
66490 cat >>conftest.$ac_ext <<_ACEOF
66491 /* end confdefs.h. */
66492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66494 #define $ac_func innocuous_$ac_func
66496 /* System header to define __stub macros and hopefully few prototypes,
66497 which can conflict with char $ac_func (); below.
66498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66499 <limits.h> exists even on freestanding compilers. */
66501 #ifdef __STDC__
66502 # include <limits.h>
66503 #else
66504 # include <assert.h>
66505 #endif
66507 #undef $ac_func
66509 /* Override any gcc2 internal prototype to avoid an error. */
66510 #ifdef __cplusplus
66511 extern "C"
66513 #endif
66514 /* We use char because int might match the return type of a gcc2
66515 builtin and then its argument prototype would still apply. */
66516 char $ac_func ();
66517 /* The GNU C library defines this for functions which it implements
66518 to always fail with ENOSYS. Some functions are actually named
66519 something starting with __ and the normal name is an alias. */
66520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66521 choke me
66522 #else
66523 char (*f) () = $ac_func;
66524 #endif
66525 #ifdef __cplusplus
66527 #endif
66530 main ()
66532 return f != $ac_func;
66534 return 0;
66536 _ACEOF
66537 rm -f conftest.$ac_objext conftest$ac_exeext
66538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66539 (eval $ac_link) 2>conftest.er1
66540 ac_status=$?
66541 grep -v '^ *+' conftest.er1 >conftest.err
66542 rm -f conftest.er1
66543 cat conftest.err >&5
66544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66545 (exit $ac_status); } &&
66546 { ac_try='test -z "$ac_c_werror_flag"
66547 || test ! -s conftest.err'
66548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66549 (eval $ac_try) 2>&5
66550 ac_status=$?
66551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66552 (exit $ac_status); }; } &&
66553 { ac_try='test -s conftest$ac_exeext'
66554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66555 (eval $ac_try) 2>&5
66556 ac_status=$?
66557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66558 (exit $ac_status); }; }; then
66559 eval "$as_ac_var=yes"
66560 else
66561 echo "$as_me: failed program was:" >&5
66562 sed 's/^/| /' conftest.$ac_ext >&5
66564 eval "$as_ac_var=no"
66566 rm -f conftest.err conftest.$ac_objext \
66567 conftest$ac_exeext conftest.$ac_ext
66569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66571 if test `eval echo '${'$as_ac_var'}'` = yes; then
66572 cat >>confdefs.h <<_ACEOF
66573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66574 _ACEOF
66576 else
66577 ac_wfuncs=no
66579 done
66582 # Checks for names injected into std:: by the c_std headers.
66629 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66630 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66631 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66632 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66633 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66634 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66637 echo "$as_me:$LINENO: checking for $ac_func" >&5
66638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66639 if eval "test \"\${$as_ac_var+set}\" = set"; then
66640 echo $ECHO_N "(cached) $ECHO_C" >&6
66641 else
66642 if test x$gcc_no_link = xyes; then
66643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66645 { (exit 1); exit 1; }; }
66647 cat >conftest.$ac_ext <<_ACEOF
66648 /* confdefs.h. */
66649 _ACEOF
66650 cat confdefs.h >>conftest.$ac_ext
66651 cat >>conftest.$ac_ext <<_ACEOF
66652 /* end confdefs.h. */
66653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66655 #define $ac_func innocuous_$ac_func
66657 /* System header to define __stub macros and hopefully few prototypes,
66658 which can conflict with char $ac_func (); below.
66659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66660 <limits.h> exists even on freestanding compilers. */
66662 #ifdef __STDC__
66663 # include <limits.h>
66664 #else
66665 # include <assert.h>
66666 #endif
66668 #undef $ac_func
66670 /* Override any gcc2 internal prototype to avoid an error. */
66671 #ifdef __cplusplus
66672 extern "C"
66674 #endif
66675 /* We use char because int might match the return type of a gcc2
66676 builtin and then its argument prototype would still apply. */
66677 char $ac_func ();
66678 /* The GNU C library defines this for functions which it implements
66679 to always fail with ENOSYS. Some functions are actually named
66680 something starting with __ and the normal name is an alias. */
66681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66682 choke me
66683 #else
66684 char (*f) () = $ac_func;
66685 #endif
66686 #ifdef __cplusplus
66688 #endif
66691 main ()
66693 return f != $ac_func;
66695 return 0;
66697 _ACEOF
66698 rm -f conftest.$ac_objext conftest$ac_exeext
66699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66700 (eval $ac_link) 2>conftest.er1
66701 ac_status=$?
66702 grep -v '^ *+' conftest.er1 >conftest.err
66703 rm -f conftest.er1
66704 cat conftest.err >&5
66705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66706 (exit $ac_status); } &&
66707 { ac_try='test -z "$ac_c_werror_flag"
66708 || test ! -s conftest.err'
66709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66710 (eval $ac_try) 2>&5
66711 ac_status=$?
66712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66713 (exit $ac_status); }; } &&
66714 { ac_try='test -s conftest$ac_exeext'
66715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66716 (eval $ac_try) 2>&5
66717 ac_status=$?
66718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66719 (exit $ac_status); }; }; then
66720 eval "$as_ac_var=yes"
66721 else
66722 echo "$as_me: failed program was:" >&5
66723 sed 's/^/| /' conftest.$ac_ext >&5
66725 eval "$as_ac_var=no"
66727 rm -f conftest.err conftest.$ac_objext \
66728 conftest$ac_exeext conftest.$ac_ext
66730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66732 if test `eval echo '${'$as_ac_var'}'` = yes; then
66733 cat >>confdefs.h <<_ACEOF
66734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66735 _ACEOF
66737 else
66738 ac_wfuncs=no
66740 done
66743 # Checks for wide character functions that are not required
66744 # for basic wchar_t support. Don't disable support if they are missing.
66745 # Injection of these is wrapped with guard macros.
66751 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66754 echo "$as_me:$LINENO: checking for $ac_func" >&5
66755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66756 if eval "test \"\${$as_ac_var+set}\" = set"; then
66757 echo $ECHO_N "(cached) $ECHO_C" >&6
66758 else
66759 if test x$gcc_no_link = xyes; then
66760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66762 { (exit 1); exit 1; }; }
66764 cat >conftest.$ac_ext <<_ACEOF
66765 /* confdefs.h. */
66766 _ACEOF
66767 cat confdefs.h >>conftest.$ac_ext
66768 cat >>conftest.$ac_ext <<_ACEOF
66769 /* end confdefs.h. */
66770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66772 #define $ac_func innocuous_$ac_func
66774 /* System header to define __stub macros and hopefully few prototypes,
66775 which can conflict with char $ac_func (); below.
66776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66777 <limits.h> exists even on freestanding compilers. */
66779 #ifdef __STDC__
66780 # include <limits.h>
66781 #else
66782 # include <assert.h>
66783 #endif
66785 #undef $ac_func
66787 /* Override any gcc2 internal prototype to avoid an error. */
66788 #ifdef __cplusplus
66789 extern "C"
66791 #endif
66792 /* We use char because int might match the return type of a gcc2
66793 builtin and then its argument prototype would still apply. */
66794 char $ac_func ();
66795 /* The GNU C library defines this for functions which it implements
66796 to always fail with ENOSYS. Some functions are actually named
66797 something starting with __ and the normal name is an alias. */
66798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66799 choke me
66800 #else
66801 char (*f) () = $ac_func;
66802 #endif
66803 #ifdef __cplusplus
66805 #endif
66808 main ()
66810 return f != $ac_func;
66812 return 0;
66814 _ACEOF
66815 rm -f conftest.$ac_objext conftest$ac_exeext
66816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66817 (eval $ac_link) 2>conftest.er1
66818 ac_status=$?
66819 grep -v '^ *+' conftest.er1 >conftest.err
66820 rm -f conftest.er1
66821 cat conftest.err >&5
66822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66823 (exit $ac_status); } &&
66824 { ac_try='test -z "$ac_c_werror_flag"
66825 || test ! -s conftest.err'
66826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66827 (eval $ac_try) 2>&5
66828 ac_status=$?
66829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66830 (exit $ac_status); }; } &&
66831 { ac_try='test -s conftest$ac_exeext'
66832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66833 (eval $ac_try) 2>&5
66834 ac_status=$?
66835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66836 (exit $ac_status); }; }; then
66837 eval "$as_ac_var=yes"
66838 else
66839 echo "$as_me: failed program was:" >&5
66840 sed 's/^/| /' conftest.$ac_ext >&5
66842 eval "$as_ac_var=no"
66844 rm -f conftest.err conftest.$ac_objext \
66845 conftest$ac_exeext conftest.$ac_ext
66847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66849 if test `eval echo '${'$as_ac_var'}'` = yes; then
66850 cat >>confdefs.h <<_ACEOF
66851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66852 _ACEOF
66855 done
66858 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
66859 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
66860 if test x"$has_weof" = xyes &&
66861 test x"$has_wchar_minmax" = xyes &&
66862 test x"$ac_wfuncs" = xyes;
66863 then
66864 ac_isoC99_wchar_t=yes
66865 else
66866 ac_isoC99_wchar_t=no
66868 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
66869 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
66871 # Use iconv for wchar_t to char conversions. As such, check for
66872 # X/Open Portability Guide, version 2 features (XPG2).
66873 if test "${ac_cv_header_iconv_h+set}" = set; then
66874 echo "$as_me:$LINENO: checking for iconv.h" >&5
66875 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66876 if test "${ac_cv_header_iconv_h+set}" = set; then
66877 echo $ECHO_N "(cached) $ECHO_C" >&6
66879 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66880 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66881 else
66882 # Is the header compilable?
66883 echo "$as_me:$LINENO: checking iconv.h usability" >&5
66884 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
66885 cat >conftest.$ac_ext <<_ACEOF
66886 /* confdefs.h. */
66887 _ACEOF
66888 cat confdefs.h >>conftest.$ac_ext
66889 cat >>conftest.$ac_ext <<_ACEOF
66890 /* end confdefs.h. */
66891 $ac_includes_default
66892 #include <iconv.h>
66893 _ACEOF
66894 rm -f conftest.$ac_objext
66895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66896 (eval $ac_compile) 2>conftest.er1
66897 ac_status=$?
66898 grep -v '^ *+' conftest.er1 >conftest.err
66899 rm -f conftest.er1
66900 cat conftest.err >&5
66901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66902 (exit $ac_status); } &&
66903 { ac_try='test -z "$ac_c_werror_flag"
66904 || test ! -s conftest.err'
66905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66906 (eval $ac_try) 2>&5
66907 ac_status=$?
66908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66909 (exit $ac_status); }; } &&
66910 { ac_try='test -s conftest.$ac_objext'
66911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66912 (eval $ac_try) 2>&5
66913 ac_status=$?
66914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66915 (exit $ac_status); }; }; then
66916 ac_header_compiler=yes
66917 else
66918 echo "$as_me: failed program was:" >&5
66919 sed 's/^/| /' conftest.$ac_ext >&5
66921 ac_header_compiler=no
66923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66925 echo "${ECHO_T}$ac_header_compiler" >&6
66927 # Is the header present?
66928 echo "$as_me:$LINENO: checking iconv.h presence" >&5
66929 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
66930 cat >conftest.$ac_ext <<_ACEOF
66931 /* confdefs.h. */
66932 _ACEOF
66933 cat confdefs.h >>conftest.$ac_ext
66934 cat >>conftest.$ac_ext <<_ACEOF
66935 /* end confdefs.h. */
66936 #include <iconv.h>
66937 _ACEOF
66938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66940 ac_status=$?
66941 grep -v '^ *+' conftest.er1 >conftest.err
66942 rm -f conftest.er1
66943 cat conftest.err >&5
66944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66945 (exit $ac_status); } >/dev/null; then
66946 if test -s conftest.err; then
66947 ac_cpp_err=$ac_c_preproc_warn_flag
66948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66949 else
66950 ac_cpp_err=
66952 else
66953 ac_cpp_err=yes
66955 if test -z "$ac_cpp_err"; then
66956 ac_header_preproc=yes
66957 else
66958 echo "$as_me: failed program was:" >&5
66959 sed 's/^/| /' conftest.$ac_ext >&5
66961 ac_header_preproc=no
66963 rm -f conftest.err conftest.$ac_ext
66964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66965 echo "${ECHO_T}$ac_header_preproc" >&6
66967 # So? What about this header?
66968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66969 yes:no: )
66970 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
66971 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
66972 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
66973 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
66974 ac_header_preproc=yes
66976 no:yes:* )
66977 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
66978 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
66979 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
66980 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
66981 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
66982 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
66983 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
66984 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
66985 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
66986 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
66987 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
66988 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
66990 cat <<\_ASBOX
66991 ## ----------------------------------------- ##
66992 ## Report this to the package-unused lists. ##
66993 ## ----------------------------------------- ##
66994 _ASBOX
66996 sed "s/^/$as_me: WARNING: /" >&2
66998 esac
66999 echo "$as_me:$LINENO: checking for iconv.h" >&5
67000 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67001 if test "${ac_cv_header_iconv_h+set}" = set; then
67002 echo $ECHO_N "(cached) $ECHO_C" >&6
67003 else
67004 ac_cv_header_iconv_h=$ac_header_preproc
67006 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67007 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67010 if test $ac_cv_header_iconv_h = yes; then
67011 ac_has_iconv_h=yes
67012 else
67013 ac_has_iconv_h=no
67017 if test "${ac_cv_header_langinfo_h+set}" = set; then
67018 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67019 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67020 if test "${ac_cv_header_langinfo_h+set}" = set; then
67021 echo $ECHO_N "(cached) $ECHO_C" >&6
67023 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67024 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67025 else
67026 # Is the header compilable?
67027 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67028 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67029 cat >conftest.$ac_ext <<_ACEOF
67030 /* confdefs.h. */
67031 _ACEOF
67032 cat confdefs.h >>conftest.$ac_ext
67033 cat >>conftest.$ac_ext <<_ACEOF
67034 /* end confdefs.h. */
67035 $ac_includes_default
67036 #include <langinfo.h>
67037 _ACEOF
67038 rm -f conftest.$ac_objext
67039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67040 (eval $ac_compile) 2>conftest.er1
67041 ac_status=$?
67042 grep -v '^ *+' conftest.er1 >conftest.err
67043 rm -f conftest.er1
67044 cat conftest.err >&5
67045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67046 (exit $ac_status); } &&
67047 { ac_try='test -z "$ac_c_werror_flag"
67048 || test ! -s conftest.err'
67049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67050 (eval $ac_try) 2>&5
67051 ac_status=$?
67052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67053 (exit $ac_status); }; } &&
67054 { ac_try='test -s conftest.$ac_objext'
67055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67056 (eval $ac_try) 2>&5
67057 ac_status=$?
67058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67059 (exit $ac_status); }; }; then
67060 ac_header_compiler=yes
67061 else
67062 echo "$as_me: failed program was:" >&5
67063 sed 's/^/| /' conftest.$ac_ext >&5
67065 ac_header_compiler=no
67067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67069 echo "${ECHO_T}$ac_header_compiler" >&6
67071 # Is the header present?
67072 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67073 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67074 cat >conftest.$ac_ext <<_ACEOF
67075 /* confdefs.h. */
67076 _ACEOF
67077 cat confdefs.h >>conftest.$ac_ext
67078 cat >>conftest.$ac_ext <<_ACEOF
67079 /* end confdefs.h. */
67080 #include <langinfo.h>
67081 _ACEOF
67082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67084 ac_status=$?
67085 grep -v '^ *+' conftest.er1 >conftest.err
67086 rm -f conftest.er1
67087 cat conftest.err >&5
67088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67089 (exit $ac_status); } >/dev/null; then
67090 if test -s conftest.err; then
67091 ac_cpp_err=$ac_c_preproc_warn_flag
67092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67093 else
67094 ac_cpp_err=
67096 else
67097 ac_cpp_err=yes
67099 if test -z "$ac_cpp_err"; then
67100 ac_header_preproc=yes
67101 else
67102 echo "$as_me: failed program was:" >&5
67103 sed 's/^/| /' conftest.$ac_ext >&5
67105 ac_header_preproc=no
67107 rm -f conftest.err conftest.$ac_ext
67108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67109 echo "${ECHO_T}$ac_header_preproc" >&6
67111 # So? What about this header?
67112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67113 yes:no: )
67114 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67115 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67116 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67117 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67118 ac_header_preproc=yes
67120 no:yes:* )
67121 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67122 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67123 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67124 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67125 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67126 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67127 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67128 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67129 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67130 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67131 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67132 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67134 cat <<\_ASBOX
67135 ## ----------------------------------------- ##
67136 ## Report this to the package-unused lists. ##
67137 ## ----------------------------------------- ##
67138 _ASBOX
67140 sed "s/^/$as_me: WARNING: /" >&2
67142 esac
67143 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67144 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67145 if test "${ac_cv_header_langinfo_h+set}" = set; then
67146 echo $ECHO_N "(cached) $ECHO_C" >&6
67147 else
67148 ac_cv_header_langinfo_h=$ac_header_preproc
67150 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67151 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67154 if test $ac_cv_header_langinfo_h = yes; then
67155 ac_has_langinfo_h=yes
67156 else
67157 ac_has_langinfo_h=no
67162 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67163 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67164 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67165 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67166 echo $ECHO_N "(cached) $ECHO_C" >&6
67167 else
67168 ac_check_lib_save_LIBS=$LIBS
67169 LIBS="-liconv $LIBS"
67170 if test x$gcc_no_link = xyes; then
67171 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67172 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67173 { (exit 1); exit 1; }; }
67175 cat >conftest.$ac_ext <<_ACEOF
67176 /* confdefs.h. */
67177 _ACEOF
67178 cat confdefs.h >>conftest.$ac_ext
67179 cat >>conftest.$ac_ext <<_ACEOF
67180 /* end confdefs.h. */
67182 /* Override any gcc2 internal prototype to avoid an error. */
67183 #ifdef __cplusplus
67184 extern "C"
67185 #endif
67186 /* We use char because int might match the return type of a gcc2
67187 builtin and then its argument prototype would still apply. */
67188 char iconv ();
67190 main ()
67192 iconv ();
67194 return 0;
67196 _ACEOF
67197 rm -f conftest.$ac_objext conftest$ac_exeext
67198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67199 (eval $ac_link) 2>conftest.er1
67200 ac_status=$?
67201 grep -v '^ *+' conftest.er1 >conftest.err
67202 rm -f conftest.er1
67203 cat conftest.err >&5
67204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67205 (exit $ac_status); } &&
67206 { ac_try='test -z "$ac_c_werror_flag"
67207 || test ! -s conftest.err'
67208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67209 (eval $ac_try) 2>&5
67210 ac_status=$?
67211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67212 (exit $ac_status); }; } &&
67213 { ac_try='test -s conftest$ac_exeext'
67214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67215 (eval $ac_try) 2>&5
67216 ac_status=$?
67217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67218 (exit $ac_status); }; }; then
67219 ac_cv_lib_iconv_iconv=yes
67220 else
67221 echo "$as_me: failed program was:" >&5
67222 sed 's/^/| /' conftest.$ac_ext >&5
67224 ac_cv_lib_iconv_iconv=no
67226 rm -f conftest.err conftest.$ac_objext \
67227 conftest$ac_exeext conftest.$ac_ext
67228 LIBS=$ac_check_lib_save_LIBS
67230 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67231 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67232 if test $ac_cv_lib_iconv_iconv = yes; then
67233 LIBICONV="-liconv"
67236 ac_save_LIBS="$LIBS"
67237 LIBS="$LIBS $LIBICONV"
67244 for ac_func in iconv_open iconv_close iconv nl_langinfo
67246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67247 echo "$as_me:$LINENO: checking for $ac_func" >&5
67248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67249 if eval "test \"\${$as_ac_var+set}\" = set"; then
67250 echo $ECHO_N "(cached) $ECHO_C" >&6
67251 else
67252 if test x$gcc_no_link = xyes; then
67253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67255 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67265 #define $ac_func innocuous_$ac_func
67267 /* System header to define __stub macros and hopefully few prototypes,
67268 which can conflict with char $ac_func (); below.
67269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67270 <limits.h> exists even on freestanding compilers. */
67272 #ifdef __STDC__
67273 # include <limits.h>
67274 #else
67275 # include <assert.h>
67276 #endif
67278 #undef $ac_func
67280 /* Override any gcc2 internal prototype to avoid an error. */
67281 #ifdef __cplusplus
67282 extern "C"
67284 #endif
67285 /* We use char because int might match the return type of a gcc2
67286 builtin and then its argument prototype would still apply. */
67287 char $ac_func ();
67288 /* The GNU C library defines this for functions which it implements
67289 to always fail with ENOSYS. Some functions are actually named
67290 something starting with __ and the normal name is an alias. */
67291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67292 choke me
67293 #else
67294 char (*f) () = $ac_func;
67295 #endif
67296 #ifdef __cplusplus
67298 #endif
67301 main ()
67303 return f != $ac_func;
67305 return 0;
67307 _ACEOF
67308 rm -f conftest.$ac_objext conftest$ac_exeext
67309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67310 (eval $ac_link) 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); } &&
67317 { ac_try='test -z "$ac_c_werror_flag"
67318 || test ! -s conftest.err'
67319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67320 (eval $ac_try) 2>&5
67321 ac_status=$?
67322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67323 (exit $ac_status); }; } &&
67324 { ac_try='test -s conftest$ac_exeext'
67325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67326 (eval $ac_try) 2>&5
67327 ac_status=$?
67328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67329 (exit $ac_status); }; }; then
67330 eval "$as_ac_var=yes"
67331 else
67332 echo "$as_me: failed program was:" >&5
67333 sed 's/^/| /' conftest.$ac_ext >&5
67335 eval "$as_ac_var=no"
67337 rm -f conftest.err conftest.$ac_objext \
67338 conftest$ac_exeext conftest.$ac_ext
67340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67342 if test `eval echo '${'$as_ac_var'}'` = yes; then
67343 cat >>confdefs.h <<_ACEOF
67344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67345 _ACEOF
67346 ac_XPG2funcs=yes
67347 else
67348 ac_XPG2funcs=no
67350 done
67353 LIBS="$ac_save_LIBS"
67355 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67356 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67357 if test x"$ac_has_iconv_h" = xyes &&
67358 test x"$ac_has_langinfo_h" = xyes &&
67359 test x"$ac_XPG2funcs" = xyes;
67360 then
67361 ac_XPG2_wchar_t=yes
67362 else
67363 ac_XPG2_wchar_t=no
67365 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67366 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67368 # At the moment, only enable wchar_t specializations if all the
67369 # above support is present.
67370 if test x"$ac_isoC99_wchar_t" = xyes &&
67371 test x"$ac_XPG2_wchar_t" = xyes;
67372 then
67373 cat >>confdefs.h <<\_ACEOF
67374 #define _GLIBCXX_USE_WCHAR_T 1
67375 _ACEOF
67377 enable_wchar_t=yes
67380 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67381 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67382 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67383 echo "${ECHO_T}$enable_wchar_t" >&6
67385 cat >>confdefs.h <<\_ACEOF
67386 #define HAVE_COSF 1
67387 _ACEOF
67389 cat >>confdefs.h <<\_ACEOF
67390 #define HAVE_COSL 1
67391 _ACEOF
67393 cat >>confdefs.h <<\_ACEOF
67394 #define HAVE_COSHF 1
67395 _ACEOF
67397 cat >>confdefs.h <<\_ACEOF
67398 #define HAVE_COSHL 1
67399 _ACEOF
67401 cat >>confdefs.h <<\_ACEOF
67402 #define HAVE_LOGF 1
67403 _ACEOF
67405 cat >>confdefs.h <<\_ACEOF
67406 #define HAVE_LOGL 1
67407 _ACEOF
67409 cat >>confdefs.h <<\_ACEOF
67410 #define HAVE_LOG10F 1
67411 _ACEOF
67413 cat >>confdefs.h <<\_ACEOF
67414 #define HAVE_LOG10L 1
67415 _ACEOF
67417 cat >>confdefs.h <<\_ACEOF
67418 #define HAVE_SINF 1
67419 _ACEOF
67421 cat >>confdefs.h <<\_ACEOF
67422 #define HAVE_SINL 1
67423 _ACEOF
67425 cat >>confdefs.h <<\_ACEOF
67426 #define HAVE_SINHF 1
67427 _ACEOF
67429 cat >>confdefs.h <<\_ACEOF
67430 #define HAVE_SINHL 1
67431 _ACEOF
67434 *-solaris*)
67435 case "$target" in
67436 # *-solaris2.5)
67437 # os_include_dir="os/solaris/solaris2.5"
67438 # ;;
67439 # *-solaris2.6)
67440 # os_include_dir="os/solaris/solaris2.6"
67441 # ;;
67442 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67443 cat >>confdefs.h <<\_ACEOF
67444 #define HAVE_GETPAGESIZE 1
67445 _ACEOF
67447 cat >>confdefs.h <<\_ACEOF
67448 #define HAVE_SIGSETJMP 1
67449 _ACEOF
67451 cat >>confdefs.h <<\_ACEOF
67452 #define HAVE_MBSTATE_T 1
67453 _ACEOF
67455 cat >>confdefs.h <<\_ACEOF
67456 #define HAVE_POLL 1
67457 _ACEOF
67459 cat >>confdefs.h <<\_ACEOF
67460 #define HAVE_S_ISREG 1
67461 _ACEOF
67463 cat >>confdefs.h <<\_ACEOF
67464 #define HAVE_LC_MESSAGES 1
67465 _ACEOF
67467 cat >>confdefs.h <<\_ACEOF
67468 #define HAVE_BTOWC 1
67469 _ACEOF
67471 cat >>confdefs.h <<\_ACEOF
67472 #define HAVE_FGETWC 1
67473 _ACEOF
67475 cat >>confdefs.h <<\_ACEOF
67476 #define HAVE_FGETWS 1
67477 _ACEOF
67479 cat >>confdefs.h <<\_ACEOF
67480 #define HAVE_FINITE 1
67481 _ACEOF
67483 cat >>confdefs.h <<\_ACEOF
67484 #define HAVE_FPCLASS 1
67485 _ACEOF
67487 cat >>confdefs.h <<\_ACEOF
67488 #define HAVE_FPUTWC 1
67489 _ACEOF
67491 cat >>confdefs.h <<\_ACEOF
67492 #define HAVE_FPUTWS 1
67493 _ACEOF
67495 cat >>confdefs.h <<\_ACEOF
67496 #define HAVE_FWIDE 1
67497 _ACEOF
67499 cat >>confdefs.h <<\_ACEOF
67500 #define HAVE_FWPRINTF 1
67501 _ACEOF
67503 cat >>confdefs.h <<\_ACEOF
67504 #define HAVE_FWSCANF 1
67505 _ACEOF
67507 cat >>confdefs.h <<\_ACEOF
67508 #define HAVE_GETPAGESIZE 1
67509 _ACEOF
67511 cat >>confdefs.h <<\_ACEOF
67512 #define HAVE_GETWC 1
67513 _ACEOF
67515 cat >>confdefs.h <<\_ACEOF
67516 #define HAVE_GETWCHAR 1
67517 _ACEOF
67519 cat >>confdefs.h <<\_ACEOF
67520 #define HAVE_MBRLEN 1
67521 _ACEOF
67523 cat >>confdefs.h <<\_ACEOF
67524 #define HAVE_MBRTOWC 1
67525 _ACEOF
67527 cat >>confdefs.h <<\_ACEOF
67528 #define HAVE_MBSINIT 1
67529 _ACEOF
67531 cat >>confdefs.h <<\_ACEOF
67532 #define HAVE_MBSRTOWCS 1
67533 _ACEOF
67535 cat >>confdefs.h <<\_ACEOF
67536 #define HAVE_NL_LANGINFO 1
67537 _ACEOF
67539 cat >>confdefs.h <<\_ACEOF
67540 #define HAVE_PUTWC 1
67541 _ACEOF
67543 cat >>confdefs.h <<\_ACEOF
67544 #define HAVE_PUTWCHAR 1
67545 _ACEOF
67547 cat >>confdefs.h <<\_ACEOF
67548 #define HAVE_SWPRINTF 1
67549 _ACEOF
67551 cat >>confdefs.h <<\_ACEOF
67552 #define HAVE_SWSCANF 1
67553 _ACEOF
67555 cat >>confdefs.h <<\_ACEOF
67556 #define HAVE_UNGETWC 1
67557 _ACEOF
67559 cat >>confdefs.h <<\_ACEOF
67560 #define HAVE_VFWPRINTF 1
67561 _ACEOF
67563 cat >>confdefs.h <<\_ACEOF
67564 #define HAVE_VSWPRINTF 1
67565 _ACEOF
67567 cat >>confdefs.h <<\_ACEOF
67568 #define HAVE_VWPRINTF 1
67569 _ACEOF
67571 cat >>confdefs.h <<\_ACEOF
67572 #define HAVE_WCRTOMB 1
67573 _ACEOF
67575 cat >>confdefs.h <<\_ACEOF
67576 #define HAVE_WCSCAT 1
67577 _ACEOF
67579 cat >>confdefs.h <<\_ACEOF
67580 #define HAVE_WCSCHR 1
67581 _ACEOF
67583 cat >>confdefs.h <<\_ACEOF
67584 #define HAVE_WCSCMP 1
67585 _ACEOF
67587 cat >>confdefs.h <<\_ACEOF
67588 #define HAVE_WCSCOLL 1
67589 _ACEOF
67591 cat >>confdefs.h <<\_ACEOF
67592 #define HAVE_WCSCPY 1
67593 _ACEOF
67595 cat >>confdefs.h <<\_ACEOF
67596 #define HAVE_WCSCSPN 1
67597 _ACEOF
67599 cat >>confdefs.h <<\_ACEOF
67600 #define HAVE_WCSFTIME 1
67601 _ACEOF
67603 cat >>confdefs.h <<\_ACEOF
67604 #define HAVE_WCSLEN 1
67605 _ACEOF
67607 cat >>confdefs.h <<\_ACEOF
67608 #define HAVE_WCSNCAT 1
67609 _ACEOF
67611 cat >>confdefs.h <<\_ACEOF
67612 #define HAVE_WCSNCMP 1
67613 _ACEOF
67615 cat >>confdefs.h <<\_ACEOF
67616 #define HAVE_WCSNCPY 1
67617 _ACEOF
67619 cat >>confdefs.h <<\_ACEOF
67620 #define HAVE_WCSPBRK 1
67621 _ACEOF
67623 cat >>confdefs.h <<\_ACEOF
67624 #define HAVE_WCSRCHR 1
67625 _ACEOF
67627 cat >>confdefs.h <<\_ACEOF
67628 #define HAVE_WCSRTOMBS 1
67629 _ACEOF
67631 cat >>confdefs.h <<\_ACEOF
67632 #define HAVE_WCSSPN 1
67633 _ACEOF
67635 cat >>confdefs.h <<\_ACEOF
67636 #define HAVE_WCSSTR 1
67637 _ACEOF
67639 cat >>confdefs.h <<\_ACEOF
67640 #define HAVE_WCSTOD 1
67641 _ACEOF
67643 cat >>confdefs.h <<\_ACEOF
67644 #define HAVE_WCSTOK 1
67645 _ACEOF
67647 cat >>confdefs.h <<\_ACEOF
67648 #define HAVE_WCSTOL 1
67649 _ACEOF
67651 cat >>confdefs.h <<\_ACEOF
67652 #define HAVE_WCSTOUL 1
67653 _ACEOF
67655 cat >>confdefs.h <<\_ACEOF
67656 #define HAVE_WCSXFRM 1
67657 _ACEOF
67659 cat >>confdefs.h <<\_ACEOF
67660 #define HAVE_WCTOB 1
67661 _ACEOF
67663 cat >>confdefs.h <<\_ACEOF
67664 #define HAVE_WMEMCHR 1
67665 _ACEOF
67667 cat >>confdefs.h <<\_ACEOF
67668 #define HAVE_WMEMCMP 1
67669 _ACEOF
67671 cat >>confdefs.h <<\_ACEOF
67672 #define HAVE_WMEMCPY 1
67673 _ACEOF
67675 cat >>confdefs.h <<\_ACEOF
67676 #define HAVE_WMEMMOVE 1
67677 _ACEOF
67679 cat >>confdefs.h <<\_ACEOF
67680 #define HAVE_WMEMSET 1
67681 _ACEOF
67683 cat >>confdefs.h <<\_ACEOF
67684 #define HAVE_WPRINTF 1
67685 _ACEOF
67687 cat >>confdefs.h <<\_ACEOF
67688 #define HAVE_WSCANF 1
67689 _ACEOF
67691 cat >>confdefs.h <<\_ACEOF
67692 #define HAVE_ICONV 1
67693 _ACEOF
67695 cat >>confdefs.h <<\_ACEOF
67696 #define HAVE_ICONV_CLOSE 1
67697 _ACEOF
67699 cat >>confdefs.h <<\_ACEOF
67700 #define HAVE_ICONV_OPEN 1
67701 _ACEOF
67703 # Look for the pieces required for wchar_t support in order to
67704 # get all the right HAVE_* macros defined.
67706 # Test wchar.h for mbstate_t, which is needed for char_traits and
67707 # others even if wchar_t support is not on.
67708 echo "$as_me:$LINENO: checking for mbstate_t" >&5
67709 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67710 cat >conftest.$ac_ext <<_ACEOF
67711 /* confdefs.h. */
67712 _ACEOF
67713 cat confdefs.h >>conftest.$ac_ext
67714 cat >>conftest.$ac_ext <<_ACEOF
67715 /* end confdefs.h. */
67716 #include <wchar.h>
67718 main ()
67720 mbstate_t teststate;
67722 return 0;
67724 _ACEOF
67725 rm -f conftest.$ac_objext
67726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67727 (eval $ac_compile) 2>conftest.er1
67728 ac_status=$?
67729 grep -v '^ *+' conftest.er1 >conftest.err
67730 rm -f conftest.er1
67731 cat conftest.err >&5
67732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67733 (exit $ac_status); } &&
67734 { ac_try='test -z "$ac_c_werror_flag"
67735 || test ! -s conftest.err'
67736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67737 (eval $ac_try) 2>&5
67738 ac_status=$?
67739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67740 (exit $ac_status); }; } &&
67741 { ac_try='test -s conftest.$ac_objext'
67742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67743 (eval $ac_try) 2>&5
67744 ac_status=$?
67745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67746 (exit $ac_status); }; }; then
67747 have_mbstate_t=yes
67748 else
67749 echo "$as_me: failed program was:" >&5
67750 sed 's/^/| /' conftest.$ac_ext >&5
67752 have_mbstate_t=no
67754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67755 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67756 echo "${ECHO_T}$have_mbstate_t" >&6
67757 if test x"$have_mbstate_t" = xyes; then
67758 cat >>confdefs.h <<\_ACEOF
67759 #define HAVE_MBSTATE_T 1
67760 _ACEOF
67764 # Sanity check for existence of ISO C99 headers for extended encoding.
67766 for ac_header in wchar.h
67768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67770 echo "$as_me:$LINENO: checking for $ac_header" >&5
67771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67773 echo $ECHO_N "(cached) $ECHO_C" >&6
67775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67777 else
67778 # Is the header compilable?
67779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67781 cat >conftest.$ac_ext <<_ACEOF
67782 /* confdefs.h. */
67783 _ACEOF
67784 cat confdefs.h >>conftest.$ac_ext
67785 cat >>conftest.$ac_ext <<_ACEOF
67786 /* end confdefs.h. */
67787 $ac_includes_default
67788 #include <$ac_header>
67789 _ACEOF
67790 rm -f conftest.$ac_objext
67791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67792 (eval $ac_compile) 2>conftest.er1
67793 ac_status=$?
67794 grep -v '^ *+' conftest.er1 >conftest.err
67795 rm -f conftest.er1
67796 cat conftest.err >&5
67797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67798 (exit $ac_status); } &&
67799 { ac_try='test -z "$ac_c_werror_flag"
67800 || test ! -s conftest.err'
67801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67802 (eval $ac_try) 2>&5
67803 ac_status=$?
67804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67805 (exit $ac_status); }; } &&
67806 { ac_try='test -s conftest.$ac_objext'
67807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67808 (eval $ac_try) 2>&5
67809 ac_status=$?
67810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67811 (exit $ac_status); }; }; then
67812 ac_header_compiler=yes
67813 else
67814 echo "$as_me: failed program was:" >&5
67815 sed 's/^/| /' conftest.$ac_ext >&5
67817 ac_header_compiler=no
67819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67821 echo "${ECHO_T}$ac_header_compiler" >&6
67823 # Is the header present?
67824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67826 cat >conftest.$ac_ext <<_ACEOF
67827 /* confdefs.h. */
67828 _ACEOF
67829 cat confdefs.h >>conftest.$ac_ext
67830 cat >>conftest.$ac_ext <<_ACEOF
67831 /* end confdefs.h. */
67832 #include <$ac_header>
67833 _ACEOF
67834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67836 ac_status=$?
67837 grep -v '^ *+' conftest.er1 >conftest.err
67838 rm -f conftest.er1
67839 cat conftest.err >&5
67840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67841 (exit $ac_status); } >/dev/null; then
67842 if test -s conftest.err; then
67843 ac_cpp_err=$ac_c_preproc_warn_flag
67844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67845 else
67846 ac_cpp_err=
67848 else
67849 ac_cpp_err=yes
67851 if test -z "$ac_cpp_err"; then
67852 ac_header_preproc=yes
67853 else
67854 echo "$as_me: failed program was:" >&5
67855 sed 's/^/| /' conftest.$ac_ext >&5
67857 ac_header_preproc=no
67859 rm -f conftest.err conftest.$ac_ext
67860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67861 echo "${ECHO_T}$ac_header_preproc" >&6
67863 # So? What about this header?
67864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67865 yes:no: )
67866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67870 ac_header_preproc=yes
67872 no:yes:* )
67873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67886 cat <<\_ASBOX
67887 ## ----------------------------------------- ##
67888 ## Report this to the package-unused lists. ##
67889 ## ----------------------------------------- ##
67890 _ASBOX
67892 sed "s/^/$as_me: WARNING: /" >&2
67894 esac
67895 echo "$as_me:$LINENO: checking for $ac_header" >&5
67896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67898 echo $ECHO_N "(cached) $ECHO_C" >&6
67899 else
67900 eval "$as_ac_Header=\$ac_header_preproc"
67902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67907 cat >>confdefs.h <<_ACEOF
67908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67909 _ACEOF
67910 ac_has_wchar_h=yes
67911 else
67912 ac_has_wchar_h=no
67915 done
67918 for ac_header in wctype.h
67920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67922 echo "$as_me:$LINENO: checking for $ac_header" >&5
67923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67925 echo $ECHO_N "(cached) $ECHO_C" >&6
67927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67929 else
67930 # Is the header compilable?
67931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67933 cat >conftest.$ac_ext <<_ACEOF
67934 /* confdefs.h. */
67935 _ACEOF
67936 cat confdefs.h >>conftest.$ac_ext
67937 cat >>conftest.$ac_ext <<_ACEOF
67938 /* end confdefs.h. */
67939 $ac_includes_default
67940 #include <$ac_header>
67941 _ACEOF
67942 rm -f conftest.$ac_objext
67943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67944 (eval $ac_compile) 2>conftest.er1
67945 ac_status=$?
67946 grep -v '^ *+' conftest.er1 >conftest.err
67947 rm -f conftest.er1
67948 cat conftest.err >&5
67949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67950 (exit $ac_status); } &&
67951 { ac_try='test -z "$ac_c_werror_flag"
67952 || test ! -s conftest.err'
67953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67954 (eval $ac_try) 2>&5
67955 ac_status=$?
67956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67957 (exit $ac_status); }; } &&
67958 { ac_try='test -s conftest.$ac_objext'
67959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67960 (eval $ac_try) 2>&5
67961 ac_status=$?
67962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67963 (exit $ac_status); }; }; then
67964 ac_header_compiler=yes
67965 else
67966 echo "$as_me: failed program was:" >&5
67967 sed 's/^/| /' conftest.$ac_ext >&5
67969 ac_header_compiler=no
67971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67973 echo "${ECHO_T}$ac_header_compiler" >&6
67975 # Is the header present?
67976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67978 cat >conftest.$ac_ext <<_ACEOF
67979 /* confdefs.h. */
67980 _ACEOF
67981 cat confdefs.h >>conftest.$ac_ext
67982 cat >>conftest.$ac_ext <<_ACEOF
67983 /* end confdefs.h. */
67984 #include <$ac_header>
67985 _ACEOF
67986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67988 ac_status=$?
67989 grep -v '^ *+' conftest.er1 >conftest.err
67990 rm -f conftest.er1
67991 cat conftest.err >&5
67992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67993 (exit $ac_status); } >/dev/null; then
67994 if test -s conftest.err; then
67995 ac_cpp_err=$ac_c_preproc_warn_flag
67996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67997 else
67998 ac_cpp_err=
68000 else
68001 ac_cpp_err=yes
68003 if test -z "$ac_cpp_err"; then
68004 ac_header_preproc=yes
68005 else
68006 echo "$as_me: failed program was:" >&5
68007 sed 's/^/| /' conftest.$ac_ext >&5
68009 ac_header_preproc=no
68011 rm -f conftest.err conftest.$ac_ext
68012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68013 echo "${ECHO_T}$ac_header_preproc" >&6
68015 # So? What about this header?
68016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68017 yes:no: )
68018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68022 ac_header_preproc=yes
68024 no:yes:* )
68025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68038 cat <<\_ASBOX
68039 ## ----------------------------------------- ##
68040 ## Report this to the package-unused lists. ##
68041 ## ----------------------------------------- ##
68042 _ASBOX
68044 sed "s/^/$as_me: WARNING: /" >&2
68046 esac
68047 echo "$as_me:$LINENO: checking for $ac_header" >&5
68048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68050 echo $ECHO_N "(cached) $ECHO_C" >&6
68051 else
68052 eval "$as_ac_Header=\$ac_header_preproc"
68054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68059 cat >>confdefs.h <<_ACEOF
68060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68061 _ACEOF
68062 ac_has_wctype_h=yes
68063 else
68064 ac_has_wctype_h=no
68067 done
68070 # Only continue checking if the ISO C99 headers exist and support is on.
68071 if test x"$ac_has_wchar_h" = xyes &&
68072 test x"$ac_has_wctype_h" = xyes &&
68073 test x"$enable_c_mbchar" != xno; then
68075 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68076 # numeric_limits can instantiate type_traits<wchar_t>
68077 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68078 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68079 cat >conftest.$ac_ext <<_ACEOF
68080 /* confdefs.h. */
68081 _ACEOF
68082 cat confdefs.h >>conftest.$ac_ext
68083 cat >>conftest.$ac_ext <<_ACEOF
68084 /* end confdefs.h. */
68085 #include <wchar.h>
68087 main ()
68089 int i = WCHAR_MIN; int j = WCHAR_MAX;
68091 return 0;
68093 _ACEOF
68094 rm -f conftest.$ac_objext
68095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68096 (eval $ac_compile) 2>conftest.er1
68097 ac_status=$?
68098 grep -v '^ *+' conftest.er1 >conftest.err
68099 rm -f conftest.er1
68100 cat conftest.err >&5
68101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68102 (exit $ac_status); } &&
68103 { ac_try='test -z "$ac_c_werror_flag"
68104 || test ! -s conftest.err'
68105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68106 (eval $ac_try) 2>&5
68107 ac_status=$?
68108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68109 (exit $ac_status); }; } &&
68110 { ac_try='test -s conftest.$ac_objext'
68111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68112 (eval $ac_try) 2>&5
68113 ac_status=$?
68114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68115 (exit $ac_status); }; }; then
68116 has_wchar_minmax=yes
68117 else
68118 echo "$as_me: failed program was:" >&5
68119 sed 's/^/| /' conftest.$ac_ext >&5
68121 has_wchar_minmax=no
68123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68124 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68125 echo "${ECHO_T}$has_wchar_minmax" >&6
68127 # Test wchar.h for WEOF, which is what we use to determine whether
68128 # to specialize for char_traits<wchar_t> or not.
68129 echo "$as_me:$LINENO: checking for WEOF" >&5
68130 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68131 cat >conftest.$ac_ext <<_ACEOF
68132 /* confdefs.h. */
68133 _ACEOF
68134 cat confdefs.h >>conftest.$ac_ext
68135 cat >>conftest.$ac_ext <<_ACEOF
68136 /* end confdefs.h. */
68138 #include <wchar.h>
68139 #include <stddef.h>
68141 main ()
68143 wint_t i = WEOF;
68145 return 0;
68147 _ACEOF
68148 rm -f conftest.$ac_objext
68149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68150 (eval $ac_compile) 2>conftest.er1
68151 ac_status=$?
68152 grep -v '^ *+' conftest.er1 >conftest.err
68153 rm -f conftest.er1
68154 cat conftest.err >&5
68155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68156 (exit $ac_status); } &&
68157 { ac_try='test -z "$ac_c_werror_flag"
68158 || test ! -s conftest.err'
68159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68160 (eval $ac_try) 2>&5
68161 ac_status=$?
68162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68163 (exit $ac_status); }; } &&
68164 { ac_try='test -s conftest.$ac_objext'
68165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68166 (eval $ac_try) 2>&5
68167 ac_status=$?
68168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68169 (exit $ac_status); }; }; then
68170 has_weof=yes
68171 else
68172 echo "$as_me: failed program was:" >&5
68173 sed 's/^/| /' conftest.$ac_ext >&5
68175 has_weof=no
68177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68178 echo "$as_me:$LINENO: result: $has_weof" >&5
68179 echo "${ECHO_T}$has_weof" >&6
68181 # Tests for wide character functions used in char_traits<wchar_t>.
68182 ac_wfuncs=yes
68189 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68192 echo "$as_me:$LINENO: checking for $ac_func" >&5
68193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68194 if eval "test \"\${$as_ac_var+set}\" = set"; then
68195 echo $ECHO_N "(cached) $ECHO_C" >&6
68196 else
68197 if test x$gcc_no_link = xyes; then
68198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68200 { (exit 1); exit 1; }; }
68202 cat >conftest.$ac_ext <<_ACEOF
68203 /* confdefs.h. */
68204 _ACEOF
68205 cat confdefs.h >>conftest.$ac_ext
68206 cat >>conftest.$ac_ext <<_ACEOF
68207 /* end confdefs.h. */
68208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68210 #define $ac_func innocuous_$ac_func
68212 /* System header to define __stub macros and hopefully few prototypes,
68213 which can conflict with char $ac_func (); below.
68214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68215 <limits.h> exists even on freestanding compilers. */
68217 #ifdef __STDC__
68218 # include <limits.h>
68219 #else
68220 # include <assert.h>
68221 #endif
68223 #undef $ac_func
68225 /* Override any gcc2 internal prototype to avoid an error. */
68226 #ifdef __cplusplus
68227 extern "C"
68229 #endif
68230 /* We use char because int might match the return type of a gcc2
68231 builtin and then its argument prototype would still apply. */
68232 char $ac_func ();
68233 /* The GNU C library defines this for functions which it implements
68234 to always fail with ENOSYS. Some functions are actually named
68235 something starting with __ and the normal name is an alias. */
68236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68237 choke me
68238 #else
68239 char (*f) () = $ac_func;
68240 #endif
68241 #ifdef __cplusplus
68243 #endif
68246 main ()
68248 return f != $ac_func;
68250 return 0;
68252 _ACEOF
68253 rm -f conftest.$ac_objext conftest$ac_exeext
68254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68255 (eval $ac_link) 2>conftest.er1
68256 ac_status=$?
68257 grep -v '^ *+' conftest.er1 >conftest.err
68258 rm -f conftest.er1
68259 cat conftest.err >&5
68260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68261 (exit $ac_status); } &&
68262 { ac_try='test -z "$ac_c_werror_flag"
68263 || test ! -s conftest.err'
68264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68265 (eval $ac_try) 2>&5
68266 ac_status=$?
68267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68268 (exit $ac_status); }; } &&
68269 { ac_try='test -s conftest$ac_exeext'
68270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68271 (eval $ac_try) 2>&5
68272 ac_status=$?
68273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68274 (exit $ac_status); }; }; then
68275 eval "$as_ac_var=yes"
68276 else
68277 echo "$as_me: failed program was:" >&5
68278 sed 's/^/| /' conftest.$ac_ext >&5
68280 eval "$as_ac_var=no"
68282 rm -f conftest.err conftest.$ac_objext \
68283 conftest$ac_exeext conftest.$ac_ext
68285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68287 if test `eval echo '${'$as_ac_var'}'` = yes; then
68288 cat >>confdefs.h <<_ACEOF
68289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68290 _ACEOF
68292 else
68293 ac_wfuncs=no
68295 done
68298 # Checks for names injected into std:: by the c_std headers.
68345 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68346 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68347 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68348 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68349 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68350 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68353 echo "$as_me:$LINENO: checking for $ac_func" >&5
68354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68355 if eval "test \"\${$as_ac_var+set}\" = set"; then
68356 echo $ECHO_N "(cached) $ECHO_C" >&6
68357 else
68358 if test x$gcc_no_link = xyes; then
68359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68361 { (exit 1); exit 1; }; }
68363 cat >conftest.$ac_ext <<_ACEOF
68364 /* confdefs.h. */
68365 _ACEOF
68366 cat confdefs.h >>conftest.$ac_ext
68367 cat >>conftest.$ac_ext <<_ACEOF
68368 /* end confdefs.h. */
68369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68371 #define $ac_func innocuous_$ac_func
68373 /* System header to define __stub macros and hopefully few prototypes,
68374 which can conflict with char $ac_func (); below.
68375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68376 <limits.h> exists even on freestanding compilers. */
68378 #ifdef __STDC__
68379 # include <limits.h>
68380 #else
68381 # include <assert.h>
68382 #endif
68384 #undef $ac_func
68386 /* Override any gcc2 internal prototype to avoid an error. */
68387 #ifdef __cplusplus
68388 extern "C"
68390 #endif
68391 /* We use char because int might match the return type of a gcc2
68392 builtin and then its argument prototype would still apply. */
68393 char $ac_func ();
68394 /* The GNU C library defines this for functions which it implements
68395 to always fail with ENOSYS. Some functions are actually named
68396 something starting with __ and the normal name is an alias. */
68397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68398 choke me
68399 #else
68400 char (*f) () = $ac_func;
68401 #endif
68402 #ifdef __cplusplus
68404 #endif
68407 main ()
68409 return f != $ac_func;
68411 return 0;
68413 _ACEOF
68414 rm -f conftest.$ac_objext conftest$ac_exeext
68415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68416 (eval $ac_link) 2>conftest.er1
68417 ac_status=$?
68418 grep -v '^ *+' conftest.er1 >conftest.err
68419 rm -f conftest.er1
68420 cat conftest.err >&5
68421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68422 (exit $ac_status); } &&
68423 { ac_try='test -z "$ac_c_werror_flag"
68424 || test ! -s conftest.err'
68425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68426 (eval $ac_try) 2>&5
68427 ac_status=$?
68428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68429 (exit $ac_status); }; } &&
68430 { ac_try='test -s conftest$ac_exeext'
68431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68432 (eval $ac_try) 2>&5
68433 ac_status=$?
68434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68435 (exit $ac_status); }; }; then
68436 eval "$as_ac_var=yes"
68437 else
68438 echo "$as_me: failed program was:" >&5
68439 sed 's/^/| /' conftest.$ac_ext >&5
68441 eval "$as_ac_var=no"
68443 rm -f conftest.err conftest.$ac_objext \
68444 conftest$ac_exeext conftest.$ac_ext
68446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68448 if test `eval echo '${'$as_ac_var'}'` = yes; then
68449 cat >>confdefs.h <<_ACEOF
68450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68451 _ACEOF
68453 else
68454 ac_wfuncs=no
68456 done
68459 # Checks for wide character functions that are not required
68460 # for basic wchar_t support. Don't disable support if they are missing.
68461 # Injection of these is wrapped with guard macros.
68467 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68470 echo "$as_me:$LINENO: checking for $ac_func" >&5
68471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68472 if eval "test \"\${$as_ac_var+set}\" = set"; then
68473 echo $ECHO_N "(cached) $ECHO_C" >&6
68474 else
68475 if test x$gcc_no_link = xyes; then
68476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68478 { (exit 1); exit 1; }; }
68480 cat >conftest.$ac_ext <<_ACEOF
68481 /* confdefs.h. */
68482 _ACEOF
68483 cat confdefs.h >>conftest.$ac_ext
68484 cat >>conftest.$ac_ext <<_ACEOF
68485 /* end confdefs.h. */
68486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68488 #define $ac_func innocuous_$ac_func
68490 /* System header to define __stub macros and hopefully few prototypes,
68491 which can conflict with char $ac_func (); below.
68492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68493 <limits.h> exists even on freestanding compilers. */
68495 #ifdef __STDC__
68496 # include <limits.h>
68497 #else
68498 # include <assert.h>
68499 #endif
68501 #undef $ac_func
68503 /* Override any gcc2 internal prototype to avoid an error. */
68504 #ifdef __cplusplus
68505 extern "C"
68507 #endif
68508 /* We use char because int might match the return type of a gcc2
68509 builtin and then its argument prototype would still apply. */
68510 char $ac_func ();
68511 /* The GNU C library defines this for functions which it implements
68512 to always fail with ENOSYS. Some functions are actually named
68513 something starting with __ and the normal name is an alias. */
68514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68515 choke me
68516 #else
68517 char (*f) () = $ac_func;
68518 #endif
68519 #ifdef __cplusplus
68521 #endif
68524 main ()
68526 return f != $ac_func;
68528 return 0;
68530 _ACEOF
68531 rm -f conftest.$ac_objext conftest$ac_exeext
68532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68533 (eval $ac_link) 2>conftest.er1
68534 ac_status=$?
68535 grep -v '^ *+' conftest.er1 >conftest.err
68536 rm -f conftest.er1
68537 cat conftest.err >&5
68538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68539 (exit $ac_status); } &&
68540 { ac_try='test -z "$ac_c_werror_flag"
68541 || test ! -s conftest.err'
68542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68543 (eval $ac_try) 2>&5
68544 ac_status=$?
68545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68546 (exit $ac_status); }; } &&
68547 { ac_try='test -s conftest$ac_exeext'
68548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68549 (eval $ac_try) 2>&5
68550 ac_status=$?
68551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68552 (exit $ac_status); }; }; then
68553 eval "$as_ac_var=yes"
68554 else
68555 echo "$as_me: failed program was:" >&5
68556 sed 's/^/| /' conftest.$ac_ext >&5
68558 eval "$as_ac_var=no"
68560 rm -f conftest.err conftest.$ac_objext \
68561 conftest$ac_exeext conftest.$ac_ext
68563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68565 if test `eval echo '${'$as_ac_var'}'` = yes; then
68566 cat >>confdefs.h <<_ACEOF
68567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68568 _ACEOF
68571 done
68574 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68575 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68576 if test x"$has_weof" = xyes &&
68577 test x"$has_wchar_minmax" = xyes &&
68578 test x"$ac_wfuncs" = xyes;
68579 then
68580 ac_isoC99_wchar_t=yes
68581 else
68582 ac_isoC99_wchar_t=no
68584 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68585 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68587 # Use iconv for wchar_t to char conversions. As such, check for
68588 # X/Open Portability Guide, version 2 features (XPG2).
68589 if test "${ac_cv_header_iconv_h+set}" = set; then
68590 echo "$as_me:$LINENO: checking for iconv.h" >&5
68591 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68592 if test "${ac_cv_header_iconv_h+set}" = set; then
68593 echo $ECHO_N "(cached) $ECHO_C" >&6
68595 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68596 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68597 else
68598 # Is the header compilable?
68599 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68600 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68601 cat >conftest.$ac_ext <<_ACEOF
68602 /* confdefs.h. */
68603 _ACEOF
68604 cat confdefs.h >>conftest.$ac_ext
68605 cat >>conftest.$ac_ext <<_ACEOF
68606 /* end confdefs.h. */
68607 $ac_includes_default
68608 #include <iconv.h>
68609 _ACEOF
68610 rm -f conftest.$ac_objext
68611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68612 (eval $ac_compile) 2>conftest.er1
68613 ac_status=$?
68614 grep -v '^ *+' conftest.er1 >conftest.err
68615 rm -f conftest.er1
68616 cat conftest.err >&5
68617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68618 (exit $ac_status); } &&
68619 { ac_try='test -z "$ac_c_werror_flag"
68620 || test ! -s conftest.err'
68621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68622 (eval $ac_try) 2>&5
68623 ac_status=$?
68624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68625 (exit $ac_status); }; } &&
68626 { ac_try='test -s conftest.$ac_objext'
68627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68628 (eval $ac_try) 2>&5
68629 ac_status=$?
68630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68631 (exit $ac_status); }; }; then
68632 ac_header_compiler=yes
68633 else
68634 echo "$as_me: failed program was:" >&5
68635 sed 's/^/| /' conftest.$ac_ext >&5
68637 ac_header_compiler=no
68639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68641 echo "${ECHO_T}$ac_header_compiler" >&6
68643 # Is the header present?
68644 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68645 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68646 cat >conftest.$ac_ext <<_ACEOF
68647 /* confdefs.h. */
68648 _ACEOF
68649 cat confdefs.h >>conftest.$ac_ext
68650 cat >>conftest.$ac_ext <<_ACEOF
68651 /* end confdefs.h. */
68652 #include <iconv.h>
68653 _ACEOF
68654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68656 ac_status=$?
68657 grep -v '^ *+' conftest.er1 >conftest.err
68658 rm -f conftest.er1
68659 cat conftest.err >&5
68660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68661 (exit $ac_status); } >/dev/null; then
68662 if test -s conftest.err; then
68663 ac_cpp_err=$ac_c_preproc_warn_flag
68664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68665 else
68666 ac_cpp_err=
68668 else
68669 ac_cpp_err=yes
68671 if test -z "$ac_cpp_err"; then
68672 ac_header_preproc=yes
68673 else
68674 echo "$as_me: failed program was:" >&5
68675 sed 's/^/| /' conftest.$ac_ext >&5
68677 ac_header_preproc=no
68679 rm -f conftest.err conftest.$ac_ext
68680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68681 echo "${ECHO_T}$ac_header_preproc" >&6
68683 # So? What about this header?
68684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68685 yes:no: )
68686 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68687 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68688 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68689 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68690 ac_header_preproc=yes
68692 no:yes:* )
68693 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68694 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68695 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
68696 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
68697 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68698 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68699 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
68700 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
68701 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68702 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68703 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68704 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68706 cat <<\_ASBOX
68707 ## ----------------------------------------- ##
68708 ## Report this to the package-unused lists. ##
68709 ## ----------------------------------------- ##
68710 _ASBOX
68712 sed "s/^/$as_me: WARNING: /" >&2
68714 esac
68715 echo "$as_me:$LINENO: checking for iconv.h" >&5
68716 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68717 if test "${ac_cv_header_iconv_h+set}" = set; then
68718 echo $ECHO_N "(cached) $ECHO_C" >&6
68719 else
68720 ac_cv_header_iconv_h=$ac_header_preproc
68722 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68723 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68726 if test $ac_cv_header_iconv_h = yes; then
68727 ac_has_iconv_h=yes
68728 else
68729 ac_has_iconv_h=no
68733 if test "${ac_cv_header_langinfo_h+set}" = set; then
68734 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68735 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68736 if test "${ac_cv_header_langinfo_h+set}" = set; then
68737 echo $ECHO_N "(cached) $ECHO_C" >&6
68739 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68740 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68741 else
68742 # Is the header compilable?
68743 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68744 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68745 cat >conftest.$ac_ext <<_ACEOF
68746 /* confdefs.h. */
68747 _ACEOF
68748 cat confdefs.h >>conftest.$ac_ext
68749 cat >>conftest.$ac_ext <<_ACEOF
68750 /* end confdefs.h. */
68751 $ac_includes_default
68752 #include <langinfo.h>
68753 _ACEOF
68754 rm -f conftest.$ac_objext
68755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68756 (eval $ac_compile) 2>conftest.er1
68757 ac_status=$?
68758 grep -v '^ *+' conftest.er1 >conftest.err
68759 rm -f conftest.er1
68760 cat conftest.err >&5
68761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68762 (exit $ac_status); } &&
68763 { ac_try='test -z "$ac_c_werror_flag"
68764 || test ! -s conftest.err'
68765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68766 (eval $ac_try) 2>&5
68767 ac_status=$?
68768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68769 (exit $ac_status); }; } &&
68770 { ac_try='test -s conftest.$ac_objext'
68771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68772 (eval $ac_try) 2>&5
68773 ac_status=$?
68774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68775 (exit $ac_status); }; }; then
68776 ac_header_compiler=yes
68777 else
68778 echo "$as_me: failed program was:" >&5
68779 sed 's/^/| /' conftest.$ac_ext >&5
68781 ac_header_compiler=no
68783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68785 echo "${ECHO_T}$ac_header_compiler" >&6
68787 # Is the header present?
68788 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
68789 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
68790 cat >conftest.$ac_ext <<_ACEOF
68791 /* confdefs.h. */
68792 _ACEOF
68793 cat confdefs.h >>conftest.$ac_ext
68794 cat >>conftest.$ac_ext <<_ACEOF
68795 /* end confdefs.h. */
68796 #include <langinfo.h>
68797 _ACEOF
68798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68800 ac_status=$?
68801 grep -v '^ *+' conftest.er1 >conftest.err
68802 rm -f conftest.er1
68803 cat conftest.err >&5
68804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68805 (exit $ac_status); } >/dev/null; then
68806 if test -s conftest.err; then
68807 ac_cpp_err=$ac_c_preproc_warn_flag
68808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68809 else
68810 ac_cpp_err=
68812 else
68813 ac_cpp_err=yes
68815 if test -z "$ac_cpp_err"; then
68816 ac_header_preproc=yes
68817 else
68818 echo "$as_me: failed program was:" >&5
68819 sed 's/^/| /' conftest.$ac_ext >&5
68821 ac_header_preproc=no
68823 rm -f conftest.err conftest.$ac_ext
68824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68825 echo "${ECHO_T}$ac_header_preproc" >&6
68827 # So? What about this header?
68828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68829 yes:no: )
68830 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
68831 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68832 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
68833 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
68834 ac_header_preproc=yes
68836 no:yes:* )
68837 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
68838 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
68839 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
68840 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
68841 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
68842 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
68843 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
68844 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
68845 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
68846 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
68847 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
68848 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
68850 cat <<\_ASBOX
68851 ## ----------------------------------------- ##
68852 ## Report this to the package-unused lists. ##
68853 ## ----------------------------------------- ##
68854 _ASBOX
68856 sed "s/^/$as_me: WARNING: /" >&2
68858 esac
68859 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68860 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68861 if test "${ac_cv_header_langinfo_h+set}" = set; then
68862 echo $ECHO_N "(cached) $ECHO_C" >&6
68863 else
68864 ac_cv_header_langinfo_h=$ac_header_preproc
68866 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68867 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68870 if test $ac_cv_header_langinfo_h = yes; then
68871 ac_has_langinfo_h=yes
68872 else
68873 ac_has_langinfo_h=no
68878 # Check for existence of libiconv.a providing XPG2 wchar_t support.
68879 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
68880 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
68881 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
68882 echo $ECHO_N "(cached) $ECHO_C" >&6
68883 else
68884 ac_check_lib_save_LIBS=$LIBS
68885 LIBS="-liconv $LIBS"
68886 if test x$gcc_no_link = xyes; then
68887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68889 { (exit 1); exit 1; }; }
68891 cat >conftest.$ac_ext <<_ACEOF
68892 /* confdefs.h. */
68893 _ACEOF
68894 cat confdefs.h >>conftest.$ac_ext
68895 cat >>conftest.$ac_ext <<_ACEOF
68896 /* end confdefs.h. */
68898 /* Override any gcc2 internal prototype to avoid an error. */
68899 #ifdef __cplusplus
68900 extern "C"
68901 #endif
68902 /* We use char because int might match the return type of a gcc2
68903 builtin and then its argument prototype would still apply. */
68904 char iconv ();
68906 main ()
68908 iconv ();
68910 return 0;
68912 _ACEOF
68913 rm -f conftest.$ac_objext conftest$ac_exeext
68914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68915 (eval $ac_link) 2>conftest.er1
68916 ac_status=$?
68917 grep -v '^ *+' conftest.er1 >conftest.err
68918 rm -f conftest.er1
68919 cat conftest.err >&5
68920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68921 (exit $ac_status); } &&
68922 { ac_try='test -z "$ac_c_werror_flag"
68923 || test ! -s conftest.err'
68924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68925 (eval $ac_try) 2>&5
68926 ac_status=$?
68927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68928 (exit $ac_status); }; } &&
68929 { ac_try='test -s conftest$ac_exeext'
68930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68931 (eval $ac_try) 2>&5
68932 ac_status=$?
68933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68934 (exit $ac_status); }; }; then
68935 ac_cv_lib_iconv_iconv=yes
68936 else
68937 echo "$as_me: failed program was:" >&5
68938 sed 's/^/| /' conftest.$ac_ext >&5
68940 ac_cv_lib_iconv_iconv=no
68942 rm -f conftest.err conftest.$ac_objext \
68943 conftest$ac_exeext conftest.$ac_ext
68944 LIBS=$ac_check_lib_save_LIBS
68946 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
68947 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
68948 if test $ac_cv_lib_iconv_iconv = yes; then
68949 LIBICONV="-liconv"
68952 ac_save_LIBS="$LIBS"
68953 LIBS="$LIBS $LIBICONV"
68960 for ac_func in iconv_open iconv_close iconv nl_langinfo
68962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68963 echo "$as_me:$LINENO: checking for $ac_func" >&5
68964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68965 if eval "test \"\${$as_ac_var+set}\" = set"; then
68966 echo $ECHO_N "(cached) $ECHO_C" >&6
68967 else
68968 if test x$gcc_no_link = xyes; then
68969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68971 { (exit 1); exit 1; }; }
68973 cat >conftest.$ac_ext <<_ACEOF
68974 /* confdefs.h. */
68975 _ACEOF
68976 cat confdefs.h >>conftest.$ac_ext
68977 cat >>conftest.$ac_ext <<_ACEOF
68978 /* end confdefs.h. */
68979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68981 #define $ac_func innocuous_$ac_func
68983 /* System header to define __stub macros and hopefully few prototypes,
68984 which can conflict with char $ac_func (); below.
68985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68986 <limits.h> exists even on freestanding compilers. */
68988 #ifdef __STDC__
68989 # include <limits.h>
68990 #else
68991 # include <assert.h>
68992 #endif
68994 #undef $ac_func
68996 /* Override any gcc2 internal prototype to avoid an error. */
68997 #ifdef __cplusplus
68998 extern "C"
69000 #endif
69001 /* We use char because int might match the return type of a gcc2
69002 builtin and then its argument prototype would still apply. */
69003 char $ac_func ();
69004 /* The GNU C library defines this for functions which it implements
69005 to always fail with ENOSYS. Some functions are actually named
69006 something starting with __ and the normal name is an alias. */
69007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69008 choke me
69009 #else
69010 char (*f) () = $ac_func;
69011 #endif
69012 #ifdef __cplusplus
69014 #endif
69017 main ()
69019 return f != $ac_func;
69021 return 0;
69023 _ACEOF
69024 rm -f conftest.$ac_objext conftest$ac_exeext
69025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69026 (eval $ac_link) 2>conftest.er1
69027 ac_status=$?
69028 grep -v '^ *+' conftest.er1 >conftest.err
69029 rm -f conftest.er1
69030 cat conftest.err >&5
69031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69032 (exit $ac_status); } &&
69033 { ac_try='test -z "$ac_c_werror_flag"
69034 || test ! -s conftest.err'
69035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69036 (eval $ac_try) 2>&5
69037 ac_status=$?
69038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69039 (exit $ac_status); }; } &&
69040 { ac_try='test -s conftest$ac_exeext'
69041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69042 (eval $ac_try) 2>&5
69043 ac_status=$?
69044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69045 (exit $ac_status); }; }; then
69046 eval "$as_ac_var=yes"
69047 else
69048 echo "$as_me: failed program was:" >&5
69049 sed 's/^/| /' conftest.$ac_ext >&5
69051 eval "$as_ac_var=no"
69053 rm -f conftest.err conftest.$ac_objext \
69054 conftest$ac_exeext conftest.$ac_ext
69056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69058 if test `eval echo '${'$as_ac_var'}'` = yes; then
69059 cat >>confdefs.h <<_ACEOF
69060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69061 _ACEOF
69062 ac_XPG2funcs=yes
69063 else
69064 ac_XPG2funcs=no
69066 done
69069 LIBS="$ac_save_LIBS"
69071 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69072 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69073 if test x"$ac_has_iconv_h" = xyes &&
69074 test x"$ac_has_langinfo_h" = xyes &&
69075 test x"$ac_XPG2funcs" = xyes;
69076 then
69077 ac_XPG2_wchar_t=yes
69078 else
69079 ac_XPG2_wchar_t=no
69081 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69082 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69084 # At the moment, only enable wchar_t specializations if all the
69085 # above support is present.
69086 if test x"$ac_isoC99_wchar_t" = xyes &&
69087 test x"$ac_XPG2_wchar_t" = xyes;
69088 then
69089 cat >>confdefs.h <<\_ACEOF
69090 #define _GLIBCXX_USE_WCHAR_T 1
69091 _ACEOF
69093 enable_wchar_t=yes
69096 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69097 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69098 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69099 echo "${ECHO_T}$enable_wchar_t" >&6
69101 # All of the dependencies for wide character support are here, so
69102 # turn it on. This requires some syncronization with the
69103 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69104 cat >>confdefs.h <<\_ACEOF
69105 #define _GLIBCXX_USE_WCHAR_T 1
69106 _ACEOF
69108 # Are these tested for even when cross?
69109 cat >>confdefs.h <<\_ACEOF
69110 #define HAVE_FLOAT_H 1
69111 _ACEOF
69113 cat >>confdefs.h <<\_ACEOF
69114 #define HAVE_IEEEFP_H 1
69115 _ACEOF
69117 cat >>confdefs.h <<\_ACEOF
69118 #define HAVE_INTTYPES_H 1
69119 _ACEOF
69121 cat >>confdefs.h <<\_ACEOF
69122 #define HAVE_LOCALE_H 1
69123 _ACEOF
69125 cat >>confdefs.h <<\_ACEOF
69126 #define HAVE_NAN_H 1
69127 _ACEOF
69129 cat >>confdefs.h <<\_ACEOF
69130 #define HAVE_SYS_FILIO_H 1
69131 _ACEOF
69133 cat >>confdefs.h <<\_ACEOF
69134 #define HAVE_SYS_IOCTL_H 1
69135 _ACEOF
69137 cat >>confdefs.h <<\_ACEOF
69138 #define HAVE_SYS_ISA_DEFS_H 1
69139 _ACEOF
69141 cat >>confdefs.h <<\_ACEOF
69142 #define HAVE_SYS_RESOURCE_H 1
69143 _ACEOF
69145 cat >>confdefs.h <<\_ACEOF
69146 #define HAVE_SYS_TIME_H 1
69147 _ACEOF
69149 cat >>confdefs.h <<\_ACEOF
69150 #define HAVE_SYS_TYPES_H 1
69151 _ACEOF
69153 cat >>confdefs.h <<\_ACEOF
69154 #define HAVE_UNISTD_H 1
69155 _ACEOF
69157 cat >>confdefs.h <<\_ACEOF
69158 #define HAVE_WCHAR_H 1
69159 _ACEOF
69161 cat >>confdefs.h <<\_ACEOF
69162 #define HAVE_WCTYPE_H 1
69163 _ACEOF
69165 cat >>confdefs.h <<\_ACEOF
69166 #define HAVE_LIBM 1
69167 _ACEOF
69170 esac
69171 case "$target" in
69172 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69173 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69174 cat >>confdefs.h <<\_ACEOF
69175 #define HAVE___BUILTIN_ABS 1
69176 _ACEOF
69178 cat >>confdefs.h <<\_ACEOF
69179 #define HAVE___BUILTIN_LABS 1
69180 _ACEOF
69182 cat >>confdefs.h <<\_ACEOF
69183 #define HAVE___BUILTIN_FABS 1
69184 _ACEOF
69186 cat >>confdefs.h <<\_ACEOF
69187 #define HAVE___BUILTIN_FABSF 1
69188 _ACEOF
69190 cat >>confdefs.h <<\_ACEOF
69191 #define HAVE___BUILTIN_FABSL 1
69192 _ACEOF
69194 cat >>confdefs.h <<\_ACEOF
69195 #define HAVE___BUILTIN_COS 1
69196 _ACEOF
69198 cat >>confdefs.h <<\_ACEOF
69199 #define HAVE___BUILTIN_COSF 1
69200 _ACEOF
69202 cat >>confdefs.h <<\_ACEOF
69203 #define HAVE___BUILTIN_SIN 1
69204 _ACEOF
69206 cat >>confdefs.h <<\_ACEOF
69207 #define HAVE___BUILTIN_SINF 1
69208 _ACEOF
69211 esac
69212 cat >>confdefs.h <<\_ACEOF
69213 #define HAVE_STRTOF 1
69214 _ACEOF
69216 cat >>confdefs.h <<\_ACEOF
69217 #define HAVE_STRTOLD 1
69218 _ACEOF
69220 cat >>confdefs.h <<\_ACEOF
69221 #define HAVE_MMAP 1
69222 _ACEOF
69224 cat >>confdefs.h <<\_ACEOF
69225 #define HAVE_COPYSIGN 1
69226 _ACEOF
69228 cat >>confdefs.h <<\_ACEOF
69229 #define HAVE_ISNAN 1
69230 _ACEOF
69232 cat >>confdefs.h <<\_ACEOF
69233 #define HAVE_ISNANF 1
69234 _ACEOF
69236 cat >>confdefs.h <<\_ACEOF
69237 #define HAVE_MODFF 1
69238 _ACEOF
69240 cat >>confdefs.h <<\_ACEOF
69241 #define HAVE_HYPOT 1
69242 _ACEOF
69245 *-tpf)
69254 for ac_header in nan.h endian.h machine/endian.h \
69255 sys/param.h sys/types.h locale.h float.h inttypes.h
69257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69259 echo "$as_me:$LINENO: checking for $ac_header" >&5
69260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69262 echo $ECHO_N "(cached) $ECHO_C" >&6
69264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69266 else
69267 # Is the header compilable?
69268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69270 cat >conftest.$ac_ext <<_ACEOF
69271 /* confdefs.h. */
69272 _ACEOF
69273 cat confdefs.h >>conftest.$ac_ext
69274 cat >>conftest.$ac_ext <<_ACEOF
69275 /* end confdefs.h. */
69276 $ac_includes_default
69277 #include <$ac_header>
69278 _ACEOF
69279 rm -f conftest.$ac_objext
69280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69281 (eval $ac_compile) 2>conftest.er1
69282 ac_status=$?
69283 grep -v '^ *+' conftest.er1 >conftest.err
69284 rm -f conftest.er1
69285 cat conftest.err >&5
69286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69287 (exit $ac_status); } &&
69288 { ac_try='test -z "$ac_c_werror_flag"
69289 || test ! -s conftest.err'
69290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69291 (eval $ac_try) 2>&5
69292 ac_status=$?
69293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69294 (exit $ac_status); }; } &&
69295 { ac_try='test -s conftest.$ac_objext'
69296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69297 (eval $ac_try) 2>&5
69298 ac_status=$?
69299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69300 (exit $ac_status); }; }; then
69301 ac_header_compiler=yes
69302 else
69303 echo "$as_me: failed program was:" >&5
69304 sed 's/^/| /' conftest.$ac_ext >&5
69306 ac_header_compiler=no
69308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69310 echo "${ECHO_T}$ac_header_compiler" >&6
69312 # Is the header present?
69313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69315 cat >conftest.$ac_ext <<_ACEOF
69316 /* confdefs.h. */
69317 _ACEOF
69318 cat confdefs.h >>conftest.$ac_ext
69319 cat >>conftest.$ac_ext <<_ACEOF
69320 /* end confdefs.h. */
69321 #include <$ac_header>
69322 _ACEOF
69323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69325 ac_status=$?
69326 grep -v '^ *+' conftest.er1 >conftest.err
69327 rm -f conftest.er1
69328 cat conftest.err >&5
69329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69330 (exit $ac_status); } >/dev/null; then
69331 if test -s conftest.err; then
69332 ac_cpp_err=$ac_c_preproc_warn_flag
69333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69334 else
69335 ac_cpp_err=
69337 else
69338 ac_cpp_err=yes
69340 if test -z "$ac_cpp_err"; then
69341 ac_header_preproc=yes
69342 else
69343 echo "$as_me: failed program was:" >&5
69344 sed 's/^/| /' conftest.$ac_ext >&5
69346 ac_header_preproc=no
69348 rm -f conftest.err conftest.$ac_ext
69349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69350 echo "${ECHO_T}$ac_header_preproc" >&6
69352 # So? What about this header?
69353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69354 yes:no: )
69355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69359 ac_header_preproc=yes
69361 no:yes:* )
69362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
69365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
69366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
69369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
69370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69375 cat <<\_ASBOX
69376 ## ----------------------------------------- ##
69377 ## Report this to the package-unused lists. ##
69378 ## ----------------------------------------- ##
69379 _ASBOX
69381 sed "s/^/$as_me: WARNING: /" >&2
69383 esac
69384 echo "$as_me:$LINENO: checking for $ac_header" >&5
69385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69387 echo $ECHO_N "(cached) $ECHO_C" >&6
69388 else
69389 eval "$as_ac_Header=\$ac_header_preproc"
69391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69396 cat >>confdefs.h <<_ACEOF
69397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69398 _ACEOF
69402 done
69404 SECTION_FLAGS='-ffunction-sections -fdata-sections'
69407 # If we're not using GNU ld, then there's no point in even trying these
69408 # tests. Check for that first. We should have already tested for gld
69409 # by now (in libtool), but require it now just to be safe...
69410 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69411 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69415 # The name set by libtool depends on the version of libtool. Shame on us
69416 # for depending on an impl detail, but c'est la vie. Older versions used
69417 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69418 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69419 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
69420 # set (hence we're using an older libtool), then set it.
69421 if test x${with_gnu_ld+set} != xset; then
69422 if test x${ac_cv_prog_gnu_ld+set} != xset; then
69423 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
69424 with_gnu_ld=no
69425 else
69426 with_gnu_ld=$ac_cv_prog_gnu_ld
69430 # Start by getting the version number. I think the libtool test already
69431 # does some of this, but throws away the result.
69433 ldver=`$LD --version 2>/dev/null | head -1 | \
69434 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69436 glibcxx_gnu_ld_version=`echo $ldver | \
69437 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69439 # Set --gc-sections.
69440 if test "$with_gnu_ld" = "notbroken"; then
69441 # GNU ld it is! Joy and bunny rabbits!
69443 # All these tests are for C++; save the language and the compiler flags.
69444 # Need to do this so that g++ won't try to link in libstdc++
69445 ac_test_CFLAGS="${CFLAGS+set}"
69446 ac_save_CFLAGS="$CFLAGS"
69447 CFLAGS='-x c++ -Wl,--gc-sections'
69449 # Check for -Wl,--gc-sections
69450 # XXX This test is broken at the moment, as symbols required for linking
69451 # are now in libsupc++ (not built yet). In addition, this test has
69452 # cored on solaris in the past. In addition, --gc-sections doesn't
69453 # really work at the moment (keeps on discarding used sections, first
69454 # .eh_frame and now some of the glibc sections for iconv).
69455 # Bzzzzt. Thanks for playing, maybe next time.
69456 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69457 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69458 if test "$cross_compiling" = yes; then
69459 ac_sectionLDflags=yes
69460 else
69461 cat >conftest.$ac_ext <<_ACEOF
69462 /* confdefs.h. */
69463 _ACEOF
69464 cat confdefs.h >>conftest.$ac_ext
69465 cat >>conftest.$ac_ext <<_ACEOF
69466 /* end confdefs.h. */
69468 int main(void)
69470 try { throw 1; }
69471 catch (...) { };
69472 return 0;
69475 _ACEOF
69476 rm -f conftest$ac_exeext
69477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69478 (eval $ac_link) 2>&5
69479 ac_status=$?
69480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69483 (eval $ac_try) 2>&5
69484 ac_status=$?
69485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69486 (exit $ac_status); }; }; then
69487 ac_sectionLDflags=yes
69488 else
69489 echo "$as_me: program exited with status $ac_status" >&5
69490 echo "$as_me: failed program was:" >&5
69491 sed 's/^/| /' conftest.$ac_ext >&5
69493 ( exit $ac_status )
69494 ac_sectionLDflags=no
69496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69498 if test "$ac_test_CFLAGS" = set; then
69499 CFLAGS="$ac_save_CFLAGS"
69500 else
69501 # this is the suspicious part
69502 CFLAGS=''
69504 if test "$ac_sectionLDflags" = "yes"; then
69505 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69507 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69508 echo "${ECHO_T}$ac_sectionLDflags" >&6
69511 # Set linker optimization flags.
69512 if test x"$with_gnu_ld" = x"yes"; then
69513 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69521 echo "$as_me:$LINENO: checking for main in -lm" >&5
69522 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69523 if test "${ac_cv_lib_m_main+set}" = set; then
69524 echo $ECHO_N "(cached) $ECHO_C" >&6
69525 else
69526 ac_check_lib_save_LIBS=$LIBS
69527 LIBS="-lm $LIBS"
69528 if test x$gcc_no_link = xyes; then
69529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69531 { (exit 1); exit 1; }; }
69533 cat >conftest.$ac_ext <<_ACEOF
69534 /* confdefs.h. */
69535 _ACEOF
69536 cat confdefs.h >>conftest.$ac_ext
69537 cat >>conftest.$ac_ext <<_ACEOF
69538 /* end confdefs.h. */
69542 main ()
69544 main ();
69546 return 0;
69548 _ACEOF
69549 rm -f conftest.$ac_objext conftest$ac_exeext
69550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69551 (eval $ac_link) 2>conftest.er1
69552 ac_status=$?
69553 grep -v '^ *+' conftest.er1 >conftest.err
69554 rm -f conftest.er1
69555 cat conftest.err >&5
69556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69557 (exit $ac_status); } &&
69558 { ac_try='test -z "$ac_c_werror_flag"
69559 || test ! -s conftest.err'
69560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69561 (eval $ac_try) 2>&5
69562 ac_status=$?
69563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69564 (exit $ac_status); }; } &&
69565 { ac_try='test -s conftest$ac_exeext'
69566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69567 (eval $ac_try) 2>&5
69568 ac_status=$?
69569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69570 (exit $ac_status); }; }; then
69571 ac_cv_lib_m_main=yes
69572 else
69573 echo "$as_me: failed program was:" >&5
69574 sed 's/^/| /' conftest.$ac_ext >&5
69576 ac_cv_lib_m_main=no
69578 rm -f conftest.err conftest.$ac_objext \
69579 conftest$ac_exeext conftest.$ac_ext
69580 LIBS=$ac_check_lib_save_LIBS
69582 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69583 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69584 if test $ac_cv_lib_m_main = yes; then
69585 cat >>confdefs.h <<_ACEOF
69586 #define HAVE_LIBM 1
69587 _ACEOF
69589 LIBS="-lm $LIBS"
69594 for ac_func in copysignf
69596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69597 echo "$as_me:$LINENO: checking for $ac_func" >&5
69598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69599 if eval "test \"\${$as_ac_var+set}\" = set"; then
69600 echo $ECHO_N "(cached) $ECHO_C" >&6
69601 else
69602 if test x$gcc_no_link = xyes; then
69603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69605 { (exit 1); exit 1; }; }
69607 cat >conftest.$ac_ext <<_ACEOF
69608 /* confdefs.h. */
69609 _ACEOF
69610 cat confdefs.h >>conftest.$ac_ext
69611 cat >>conftest.$ac_ext <<_ACEOF
69612 /* end confdefs.h. */
69613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69615 #define $ac_func innocuous_$ac_func
69617 /* System header to define __stub macros and hopefully few prototypes,
69618 which can conflict with char $ac_func (); below.
69619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69620 <limits.h> exists even on freestanding compilers. */
69622 #ifdef __STDC__
69623 # include <limits.h>
69624 #else
69625 # include <assert.h>
69626 #endif
69628 #undef $ac_func
69630 /* Override any gcc2 internal prototype to avoid an error. */
69631 #ifdef __cplusplus
69632 extern "C"
69634 #endif
69635 /* We use char because int might match the return type of a gcc2
69636 builtin and then its argument prototype would still apply. */
69637 char $ac_func ();
69638 /* The GNU C library defines this for functions which it implements
69639 to always fail with ENOSYS. Some functions are actually named
69640 something starting with __ and the normal name is an alias. */
69641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69642 choke me
69643 #else
69644 char (*f) () = $ac_func;
69645 #endif
69646 #ifdef __cplusplus
69648 #endif
69651 main ()
69653 return f != $ac_func;
69655 return 0;
69657 _ACEOF
69658 rm -f conftest.$ac_objext conftest$ac_exeext
69659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69660 (eval $ac_link) 2>conftest.er1
69661 ac_status=$?
69662 grep -v '^ *+' conftest.er1 >conftest.err
69663 rm -f conftest.er1
69664 cat conftest.err >&5
69665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69666 (exit $ac_status); } &&
69667 { ac_try='test -z "$ac_c_werror_flag"
69668 || test ! -s conftest.err'
69669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69670 (eval $ac_try) 2>&5
69671 ac_status=$?
69672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69673 (exit $ac_status); }; } &&
69674 { ac_try='test -s conftest$ac_exeext'
69675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69676 (eval $ac_try) 2>&5
69677 ac_status=$?
69678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69679 (exit $ac_status); }; }; then
69680 eval "$as_ac_var=yes"
69681 else
69682 echo "$as_me: failed program was:" >&5
69683 sed 's/^/| /' conftest.$ac_ext >&5
69685 eval "$as_ac_var=no"
69687 rm -f conftest.err conftest.$ac_objext \
69688 conftest$ac_exeext conftest.$ac_ext
69690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69692 if test `eval echo '${'$as_ac_var'}'` = yes; then
69693 cat >>confdefs.h <<_ACEOF
69694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69695 _ACEOF
69697 else
69698 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69700 done
69704 for ac_func in __signbit
69706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69707 echo "$as_me:$LINENO: checking for $ac_func" >&5
69708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69709 if eval "test \"\${$as_ac_var+set}\" = set"; then
69710 echo $ECHO_N "(cached) $ECHO_C" >&6
69711 else
69712 if test x$gcc_no_link = xyes; then
69713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69715 { (exit 1); exit 1; }; }
69717 cat >conftest.$ac_ext <<_ACEOF
69718 /* confdefs.h. */
69719 _ACEOF
69720 cat confdefs.h >>conftest.$ac_ext
69721 cat >>conftest.$ac_ext <<_ACEOF
69722 /* end confdefs.h. */
69723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69725 #define $ac_func innocuous_$ac_func
69727 /* System header to define __stub macros and hopefully few prototypes,
69728 which can conflict with char $ac_func (); below.
69729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69730 <limits.h> exists even on freestanding compilers. */
69732 #ifdef __STDC__
69733 # include <limits.h>
69734 #else
69735 # include <assert.h>
69736 #endif
69738 #undef $ac_func
69740 /* Override any gcc2 internal prototype to avoid an error. */
69741 #ifdef __cplusplus
69742 extern "C"
69744 #endif
69745 /* We use char because int might match the return type of a gcc2
69746 builtin and then its argument prototype would still apply. */
69747 char $ac_func ();
69748 /* The GNU C library defines this for functions which it implements
69749 to always fail with ENOSYS. Some functions are actually named
69750 something starting with __ and the normal name is an alias. */
69751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69752 choke me
69753 #else
69754 char (*f) () = $ac_func;
69755 #endif
69756 #ifdef __cplusplus
69758 #endif
69761 main ()
69763 return f != $ac_func;
69765 return 0;
69767 _ACEOF
69768 rm -f conftest.$ac_objext conftest$ac_exeext
69769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69770 (eval $ac_link) 2>conftest.er1
69771 ac_status=$?
69772 grep -v '^ *+' conftest.er1 >conftest.err
69773 rm -f conftest.er1
69774 cat conftest.err >&5
69775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69776 (exit $ac_status); } &&
69777 { ac_try='test -z "$ac_c_werror_flag"
69778 || test ! -s conftest.err'
69779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69780 (eval $ac_try) 2>&5
69781 ac_status=$?
69782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69783 (exit $ac_status); }; } &&
69784 { ac_try='test -s conftest$ac_exeext'
69785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69786 (eval $ac_try) 2>&5
69787 ac_status=$?
69788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69789 (exit $ac_status); }; }; then
69790 eval "$as_ac_var=yes"
69791 else
69792 echo "$as_me: failed program was:" >&5
69793 sed 's/^/| /' conftest.$ac_ext >&5
69795 eval "$as_ac_var=no"
69797 rm -f conftest.err conftest.$ac_objext \
69798 conftest$ac_exeext conftest.$ac_ext
69800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69802 if test `eval echo '${'$as_ac_var'}'` = yes; then
69803 cat >>confdefs.h <<_ACEOF
69804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69805 _ACEOF
69807 else
69808 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
69810 done
69813 for ac_func in __signbitf
69815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69816 echo "$as_me:$LINENO: checking for $ac_func" >&5
69817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69818 if eval "test \"\${$as_ac_var+set}\" = set"; then
69819 echo $ECHO_N "(cached) $ECHO_C" >&6
69820 else
69821 if test x$gcc_no_link = xyes; then
69822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69824 { (exit 1); exit 1; }; }
69826 cat >conftest.$ac_ext <<_ACEOF
69827 /* confdefs.h. */
69828 _ACEOF
69829 cat confdefs.h >>conftest.$ac_ext
69830 cat >>conftest.$ac_ext <<_ACEOF
69831 /* end confdefs.h. */
69832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69834 #define $ac_func innocuous_$ac_func
69836 /* System header to define __stub macros and hopefully few prototypes,
69837 which can conflict with char $ac_func (); below.
69838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69839 <limits.h> exists even on freestanding compilers. */
69841 #ifdef __STDC__
69842 # include <limits.h>
69843 #else
69844 # include <assert.h>
69845 #endif
69847 #undef $ac_func
69849 /* Override any gcc2 internal prototype to avoid an error. */
69850 #ifdef __cplusplus
69851 extern "C"
69853 #endif
69854 /* We use char because int might match the return type of a gcc2
69855 builtin and then its argument prototype would still apply. */
69856 char $ac_func ();
69857 /* The GNU C library defines this for functions which it implements
69858 to always fail with ENOSYS. Some functions are actually named
69859 something starting with __ and the normal name is an alias. */
69860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69861 choke me
69862 #else
69863 char (*f) () = $ac_func;
69864 #endif
69865 #ifdef __cplusplus
69867 #endif
69870 main ()
69872 return f != $ac_func;
69874 return 0;
69876 _ACEOF
69877 rm -f conftest.$ac_objext conftest$ac_exeext
69878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69879 (eval $ac_link) 2>conftest.er1
69880 ac_status=$?
69881 grep -v '^ *+' conftest.er1 >conftest.err
69882 rm -f conftest.er1
69883 cat conftest.err >&5
69884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69885 (exit $ac_status); } &&
69886 { ac_try='test -z "$ac_c_werror_flag"
69887 || test ! -s conftest.err'
69888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69889 (eval $ac_try) 2>&5
69890 ac_status=$?
69891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69892 (exit $ac_status); }; } &&
69893 { ac_try='test -s conftest$ac_exeext'
69894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69895 (eval $ac_try) 2>&5
69896 ac_status=$?
69897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69898 (exit $ac_status); }; }; then
69899 eval "$as_ac_var=yes"
69900 else
69901 echo "$as_me: failed program was:" >&5
69902 sed 's/^/| /' conftest.$ac_ext >&5
69904 eval "$as_ac_var=no"
69906 rm -f conftest.err conftest.$ac_objext \
69907 conftest$ac_exeext conftest.$ac_ext
69909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69911 if test `eval echo '${'$as_ac_var'}'` = yes; then
69912 cat >>confdefs.h <<_ACEOF
69913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69914 _ACEOF
69916 else
69917 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
69919 done
69922 if test x$ac_cv_func_copysignl = x"yes"; then
69924 for ac_func in __signbitl
69926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69927 echo "$as_me:$LINENO: checking for $ac_func" >&5
69928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69929 if eval "test \"\${$as_ac_var+set}\" = set"; then
69930 echo $ECHO_N "(cached) $ECHO_C" >&6
69931 else
69932 if test x$gcc_no_link = xyes; then
69933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69935 { (exit 1); exit 1; }; }
69937 cat >conftest.$ac_ext <<_ACEOF
69938 /* confdefs.h. */
69939 _ACEOF
69940 cat confdefs.h >>conftest.$ac_ext
69941 cat >>conftest.$ac_ext <<_ACEOF
69942 /* end confdefs.h. */
69943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69945 #define $ac_func innocuous_$ac_func
69947 /* System header to define __stub macros and hopefully few prototypes,
69948 which can conflict with char $ac_func (); below.
69949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69950 <limits.h> exists even on freestanding compilers. */
69952 #ifdef __STDC__
69953 # include <limits.h>
69954 #else
69955 # include <assert.h>
69956 #endif
69958 #undef $ac_func
69960 /* Override any gcc2 internal prototype to avoid an error. */
69961 #ifdef __cplusplus
69962 extern "C"
69964 #endif
69965 /* We use char because int might match the return type of a gcc2
69966 builtin and then its argument prototype would still apply. */
69967 char $ac_func ();
69968 /* The GNU C library defines this for functions which it implements
69969 to always fail with ENOSYS. Some functions are actually named
69970 something starting with __ and the normal name is an alias. */
69971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69972 choke me
69973 #else
69974 char (*f) () = $ac_func;
69975 #endif
69976 #ifdef __cplusplus
69978 #endif
69981 main ()
69983 return f != $ac_func;
69985 return 0;
69987 _ACEOF
69988 rm -f conftest.$ac_objext conftest$ac_exeext
69989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69990 (eval $ac_link) 2>conftest.er1
69991 ac_status=$?
69992 grep -v '^ *+' conftest.er1 >conftest.err
69993 rm -f conftest.er1
69994 cat conftest.err >&5
69995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69996 (exit $ac_status); } &&
69997 { ac_try='test -z "$ac_c_werror_flag"
69998 || test ! -s conftest.err'
69999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70000 (eval $ac_try) 2>&5
70001 ac_status=$?
70002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70003 (exit $ac_status); }; } &&
70004 { ac_try='test -s conftest$ac_exeext'
70005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70006 (eval $ac_try) 2>&5
70007 ac_status=$?
70008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70009 (exit $ac_status); }; }; then
70010 eval "$as_ac_var=yes"
70011 else
70012 echo "$as_me: failed program was:" >&5
70013 sed 's/^/| /' conftest.$ac_ext >&5
70015 eval "$as_ac_var=no"
70017 rm -f conftest.err conftest.$ac_objext \
70018 conftest$ac_exeext conftest.$ac_ext
70020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70022 if test `eval echo '${'$as_ac_var'}'` = yes; then
70023 cat >>confdefs.h <<_ACEOF
70024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70025 _ACEOF
70027 else
70028 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
70030 done
70034 # XXX Review this. Nothing uses it.
70035 if test -n "$LIBMATHOBJS"; then
70036 need_libmath=yes
70041 # Test wchar.h for mbstate_t, which is needed for char_traits and
70042 # others even if wchar_t support is not on.
70043 echo "$as_me:$LINENO: checking for mbstate_t" >&5
70044 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
70045 cat >conftest.$ac_ext <<_ACEOF
70046 /* confdefs.h. */
70047 _ACEOF
70048 cat confdefs.h >>conftest.$ac_ext
70049 cat >>conftest.$ac_ext <<_ACEOF
70050 /* end confdefs.h. */
70051 #include <wchar.h>
70053 main ()
70055 mbstate_t teststate;
70057 return 0;
70059 _ACEOF
70060 rm -f conftest.$ac_objext
70061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70062 (eval $ac_compile) 2>conftest.er1
70063 ac_status=$?
70064 grep -v '^ *+' conftest.er1 >conftest.err
70065 rm -f conftest.er1
70066 cat conftest.err >&5
70067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70068 (exit $ac_status); } &&
70069 { ac_try='test -z "$ac_c_werror_flag"
70070 || test ! -s conftest.err'
70071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70072 (eval $ac_try) 2>&5
70073 ac_status=$?
70074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70075 (exit $ac_status); }; } &&
70076 { ac_try='test -s conftest.$ac_objext'
70077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70078 (eval $ac_try) 2>&5
70079 ac_status=$?
70080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70081 (exit $ac_status); }; }; then
70082 have_mbstate_t=yes
70083 else
70084 echo "$as_me: failed program was:" >&5
70085 sed 's/^/| /' conftest.$ac_ext >&5
70087 have_mbstate_t=no
70089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70090 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70091 echo "${ECHO_T}$have_mbstate_t" >&6
70092 if test x"$have_mbstate_t" = xyes; then
70093 cat >>confdefs.h <<\_ACEOF
70094 #define HAVE_MBSTATE_T 1
70095 _ACEOF
70099 # Sanity check for existence of ISO C99 headers for extended encoding.
70101 for ac_header in wchar.h
70103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70105 echo "$as_me:$LINENO: checking for $ac_header" >&5
70106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70108 echo $ECHO_N "(cached) $ECHO_C" >&6
70110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70112 else
70113 # Is the header compilable?
70114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70116 cat >conftest.$ac_ext <<_ACEOF
70117 /* confdefs.h. */
70118 _ACEOF
70119 cat confdefs.h >>conftest.$ac_ext
70120 cat >>conftest.$ac_ext <<_ACEOF
70121 /* end confdefs.h. */
70122 $ac_includes_default
70123 #include <$ac_header>
70124 _ACEOF
70125 rm -f conftest.$ac_objext
70126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70127 (eval $ac_compile) 2>conftest.er1
70128 ac_status=$?
70129 grep -v '^ *+' conftest.er1 >conftest.err
70130 rm -f conftest.er1
70131 cat conftest.err >&5
70132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70133 (exit $ac_status); } &&
70134 { ac_try='test -z "$ac_c_werror_flag"
70135 || test ! -s conftest.err'
70136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70137 (eval $ac_try) 2>&5
70138 ac_status=$?
70139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70140 (exit $ac_status); }; } &&
70141 { ac_try='test -s conftest.$ac_objext'
70142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70143 (eval $ac_try) 2>&5
70144 ac_status=$?
70145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70146 (exit $ac_status); }; }; then
70147 ac_header_compiler=yes
70148 else
70149 echo "$as_me: failed program was:" >&5
70150 sed 's/^/| /' conftest.$ac_ext >&5
70152 ac_header_compiler=no
70154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70156 echo "${ECHO_T}$ac_header_compiler" >&6
70158 # Is the header present?
70159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70161 cat >conftest.$ac_ext <<_ACEOF
70162 /* confdefs.h. */
70163 _ACEOF
70164 cat confdefs.h >>conftest.$ac_ext
70165 cat >>conftest.$ac_ext <<_ACEOF
70166 /* end confdefs.h. */
70167 #include <$ac_header>
70168 _ACEOF
70169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70171 ac_status=$?
70172 grep -v '^ *+' conftest.er1 >conftest.err
70173 rm -f conftest.er1
70174 cat conftest.err >&5
70175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70176 (exit $ac_status); } >/dev/null; then
70177 if test -s conftest.err; then
70178 ac_cpp_err=$ac_c_preproc_warn_flag
70179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70180 else
70181 ac_cpp_err=
70183 else
70184 ac_cpp_err=yes
70186 if test -z "$ac_cpp_err"; then
70187 ac_header_preproc=yes
70188 else
70189 echo "$as_me: failed program was:" >&5
70190 sed 's/^/| /' conftest.$ac_ext >&5
70192 ac_header_preproc=no
70194 rm -f conftest.err conftest.$ac_ext
70195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70196 echo "${ECHO_T}$ac_header_preproc" >&6
70198 # So? What about this header?
70199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70200 yes:no: )
70201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70205 ac_header_preproc=yes
70207 no:yes:* )
70208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70221 cat <<\_ASBOX
70222 ## ----------------------------------------- ##
70223 ## Report this to the package-unused lists. ##
70224 ## ----------------------------------------- ##
70225 _ASBOX
70227 sed "s/^/$as_me: WARNING: /" >&2
70229 esac
70230 echo "$as_me:$LINENO: checking for $ac_header" >&5
70231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70233 echo $ECHO_N "(cached) $ECHO_C" >&6
70234 else
70235 eval "$as_ac_Header=\$ac_header_preproc"
70237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70242 cat >>confdefs.h <<_ACEOF
70243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70244 _ACEOF
70245 ac_has_wchar_h=yes
70246 else
70247 ac_has_wchar_h=no
70250 done
70253 for ac_header in wctype.h
70255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70257 echo "$as_me:$LINENO: checking for $ac_header" >&5
70258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70260 echo $ECHO_N "(cached) $ECHO_C" >&6
70262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70264 else
70265 # Is the header compilable?
70266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70268 cat >conftest.$ac_ext <<_ACEOF
70269 /* confdefs.h. */
70270 _ACEOF
70271 cat confdefs.h >>conftest.$ac_ext
70272 cat >>conftest.$ac_ext <<_ACEOF
70273 /* end confdefs.h. */
70274 $ac_includes_default
70275 #include <$ac_header>
70276 _ACEOF
70277 rm -f conftest.$ac_objext
70278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70279 (eval $ac_compile) 2>conftest.er1
70280 ac_status=$?
70281 grep -v '^ *+' conftest.er1 >conftest.err
70282 rm -f conftest.er1
70283 cat conftest.err >&5
70284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70285 (exit $ac_status); } &&
70286 { ac_try='test -z "$ac_c_werror_flag"
70287 || test ! -s conftest.err'
70288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70289 (eval $ac_try) 2>&5
70290 ac_status=$?
70291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70292 (exit $ac_status); }; } &&
70293 { ac_try='test -s conftest.$ac_objext'
70294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70295 (eval $ac_try) 2>&5
70296 ac_status=$?
70297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70298 (exit $ac_status); }; }; then
70299 ac_header_compiler=yes
70300 else
70301 echo "$as_me: failed program was:" >&5
70302 sed 's/^/| /' conftest.$ac_ext >&5
70304 ac_header_compiler=no
70306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70308 echo "${ECHO_T}$ac_header_compiler" >&6
70310 # Is the header present?
70311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70313 cat >conftest.$ac_ext <<_ACEOF
70314 /* confdefs.h. */
70315 _ACEOF
70316 cat confdefs.h >>conftest.$ac_ext
70317 cat >>conftest.$ac_ext <<_ACEOF
70318 /* end confdefs.h. */
70319 #include <$ac_header>
70320 _ACEOF
70321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70323 ac_status=$?
70324 grep -v '^ *+' conftest.er1 >conftest.err
70325 rm -f conftest.er1
70326 cat conftest.err >&5
70327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70328 (exit $ac_status); } >/dev/null; then
70329 if test -s conftest.err; then
70330 ac_cpp_err=$ac_c_preproc_warn_flag
70331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70332 else
70333 ac_cpp_err=
70335 else
70336 ac_cpp_err=yes
70338 if test -z "$ac_cpp_err"; then
70339 ac_header_preproc=yes
70340 else
70341 echo "$as_me: failed program was:" >&5
70342 sed 's/^/| /' conftest.$ac_ext >&5
70344 ac_header_preproc=no
70346 rm -f conftest.err conftest.$ac_ext
70347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70348 echo "${ECHO_T}$ac_header_preproc" >&6
70350 # So? What about this header?
70351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70352 yes:no: )
70353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70357 ac_header_preproc=yes
70359 no:yes:* )
70360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70373 cat <<\_ASBOX
70374 ## ----------------------------------------- ##
70375 ## Report this to the package-unused lists. ##
70376 ## ----------------------------------------- ##
70377 _ASBOX
70379 sed "s/^/$as_me: WARNING: /" >&2
70381 esac
70382 echo "$as_me:$LINENO: checking for $ac_header" >&5
70383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70385 echo $ECHO_N "(cached) $ECHO_C" >&6
70386 else
70387 eval "$as_ac_Header=\$ac_header_preproc"
70389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70394 cat >>confdefs.h <<_ACEOF
70395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70396 _ACEOF
70397 ac_has_wctype_h=yes
70398 else
70399 ac_has_wctype_h=no
70402 done
70405 # Only continue checking if the ISO C99 headers exist and support is on.
70406 if test x"$ac_has_wchar_h" = xyes &&
70407 test x"$ac_has_wctype_h" = xyes &&
70408 test x"$enable_c_mbchar" != xno; then
70410 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70411 # numeric_limits can instantiate type_traits<wchar_t>
70412 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70413 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70414 cat >conftest.$ac_ext <<_ACEOF
70415 /* confdefs.h. */
70416 _ACEOF
70417 cat confdefs.h >>conftest.$ac_ext
70418 cat >>conftest.$ac_ext <<_ACEOF
70419 /* end confdefs.h. */
70420 #include <wchar.h>
70422 main ()
70424 int i = WCHAR_MIN; int j = WCHAR_MAX;
70426 return 0;
70428 _ACEOF
70429 rm -f conftest.$ac_objext
70430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70431 (eval $ac_compile) 2>conftest.er1
70432 ac_status=$?
70433 grep -v '^ *+' conftest.er1 >conftest.err
70434 rm -f conftest.er1
70435 cat conftest.err >&5
70436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70437 (exit $ac_status); } &&
70438 { ac_try='test -z "$ac_c_werror_flag"
70439 || test ! -s conftest.err'
70440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70441 (eval $ac_try) 2>&5
70442 ac_status=$?
70443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70444 (exit $ac_status); }; } &&
70445 { ac_try='test -s conftest.$ac_objext'
70446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70447 (eval $ac_try) 2>&5
70448 ac_status=$?
70449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70450 (exit $ac_status); }; }; then
70451 has_wchar_minmax=yes
70452 else
70453 echo "$as_me: failed program was:" >&5
70454 sed 's/^/| /' conftest.$ac_ext >&5
70456 has_wchar_minmax=no
70458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70459 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70460 echo "${ECHO_T}$has_wchar_minmax" >&6
70462 # Test wchar.h for WEOF, which is what we use to determine whether
70463 # to specialize for char_traits<wchar_t> or not.
70464 echo "$as_me:$LINENO: checking for WEOF" >&5
70465 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70466 cat >conftest.$ac_ext <<_ACEOF
70467 /* confdefs.h. */
70468 _ACEOF
70469 cat confdefs.h >>conftest.$ac_ext
70470 cat >>conftest.$ac_ext <<_ACEOF
70471 /* end confdefs.h. */
70473 #include <wchar.h>
70474 #include <stddef.h>
70476 main ()
70478 wint_t i = WEOF;
70480 return 0;
70482 _ACEOF
70483 rm -f conftest.$ac_objext
70484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70485 (eval $ac_compile) 2>conftest.er1
70486 ac_status=$?
70487 grep -v '^ *+' conftest.er1 >conftest.err
70488 rm -f conftest.er1
70489 cat conftest.err >&5
70490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70491 (exit $ac_status); } &&
70492 { ac_try='test -z "$ac_c_werror_flag"
70493 || test ! -s conftest.err'
70494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70495 (eval $ac_try) 2>&5
70496 ac_status=$?
70497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70498 (exit $ac_status); }; } &&
70499 { ac_try='test -s conftest.$ac_objext'
70500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70501 (eval $ac_try) 2>&5
70502 ac_status=$?
70503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70504 (exit $ac_status); }; }; then
70505 has_weof=yes
70506 else
70507 echo "$as_me: failed program was:" >&5
70508 sed 's/^/| /' conftest.$ac_ext >&5
70510 has_weof=no
70512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70513 echo "$as_me:$LINENO: result: $has_weof" >&5
70514 echo "${ECHO_T}$has_weof" >&6
70516 # Tests for wide character functions used in char_traits<wchar_t>.
70517 ac_wfuncs=yes
70524 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70527 echo "$as_me:$LINENO: checking for $ac_func" >&5
70528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70529 if eval "test \"\${$as_ac_var+set}\" = set"; then
70530 echo $ECHO_N "(cached) $ECHO_C" >&6
70531 else
70532 if test x$gcc_no_link = xyes; then
70533 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70534 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70535 { (exit 1); exit 1; }; }
70537 cat >conftest.$ac_ext <<_ACEOF
70538 /* confdefs.h. */
70539 _ACEOF
70540 cat confdefs.h >>conftest.$ac_ext
70541 cat >>conftest.$ac_ext <<_ACEOF
70542 /* end confdefs.h. */
70543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70545 #define $ac_func innocuous_$ac_func
70547 /* System header to define __stub macros and hopefully few prototypes,
70548 which can conflict with char $ac_func (); below.
70549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70550 <limits.h> exists even on freestanding compilers. */
70552 #ifdef __STDC__
70553 # include <limits.h>
70554 #else
70555 # include <assert.h>
70556 #endif
70558 #undef $ac_func
70560 /* Override any gcc2 internal prototype to avoid an error. */
70561 #ifdef __cplusplus
70562 extern "C"
70564 #endif
70565 /* We use char because int might match the return type of a gcc2
70566 builtin and then its argument prototype would still apply. */
70567 char $ac_func ();
70568 /* The GNU C library defines this for functions which it implements
70569 to always fail with ENOSYS. Some functions are actually named
70570 something starting with __ and the normal name is an alias. */
70571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70572 choke me
70573 #else
70574 char (*f) () = $ac_func;
70575 #endif
70576 #ifdef __cplusplus
70578 #endif
70581 main ()
70583 return f != $ac_func;
70585 return 0;
70587 _ACEOF
70588 rm -f conftest.$ac_objext conftest$ac_exeext
70589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70590 (eval $ac_link) 2>conftest.er1
70591 ac_status=$?
70592 grep -v '^ *+' conftest.er1 >conftest.err
70593 rm -f conftest.er1
70594 cat conftest.err >&5
70595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70596 (exit $ac_status); } &&
70597 { ac_try='test -z "$ac_c_werror_flag"
70598 || test ! -s conftest.err'
70599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70600 (eval $ac_try) 2>&5
70601 ac_status=$?
70602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70603 (exit $ac_status); }; } &&
70604 { ac_try='test -s conftest$ac_exeext'
70605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70606 (eval $ac_try) 2>&5
70607 ac_status=$?
70608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70609 (exit $ac_status); }; }; then
70610 eval "$as_ac_var=yes"
70611 else
70612 echo "$as_me: failed program was:" >&5
70613 sed 's/^/| /' conftest.$ac_ext >&5
70615 eval "$as_ac_var=no"
70617 rm -f conftest.err conftest.$ac_objext \
70618 conftest$ac_exeext conftest.$ac_ext
70620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70622 if test `eval echo '${'$as_ac_var'}'` = yes; then
70623 cat >>confdefs.h <<_ACEOF
70624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70625 _ACEOF
70627 else
70628 ac_wfuncs=no
70630 done
70633 # Checks for names injected into std:: by the c_std headers.
70680 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70681 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70682 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70683 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70684 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70685 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70688 echo "$as_me:$LINENO: checking for $ac_func" >&5
70689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70690 if eval "test \"\${$as_ac_var+set}\" = set"; then
70691 echo $ECHO_N "(cached) $ECHO_C" >&6
70692 else
70693 if test x$gcc_no_link = xyes; then
70694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70696 { (exit 1); exit 1; }; }
70698 cat >conftest.$ac_ext <<_ACEOF
70699 /* confdefs.h. */
70700 _ACEOF
70701 cat confdefs.h >>conftest.$ac_ext
70702 cat >>conftest.$ac_ext <<_ACEOF
70703 /* end confdefs.h. */
70704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70706 #define $ac_func innocuous_$ac_func
70708 /* System header to define __stub macros and hopefully few prototypes,
70709 which can conflict with char $ac_func (); below.
70710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70711 <limits.h> exists even on freestanding compilers. */
70713 #ifdef __STDC__
70714 # include <limits.h>
70715 #else
70716 # include <assert.h>
70717 #endif
70719 #undef $ac_func
70721 /* Override any gcc2 internal prototype to avoid an error. */
70722 #ifdef __cplusplus
70723 extern "C"
70725 #endif
70726 /* We use char because int might match the return type of a gcc2
70727 builtin and then its argument prototype would still apply. */
70728 char $ac_func ();
70729 /* The GNU C library defines this for functions which it implements
70730 to always fail with ENOSYS. Some functions are actually named
70731 something starting with __ and the normal name is an alias. */
70732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70733 choke me
70734 #else
70735 char (*f) () = $ac_func;
70736 #endif
70737 #ifdef __cplusplus
70739 #endif
70742 main ()
70744 return f != $ac_func;
70746 return 0;
70748 _ACEOF
70749 rm -f conftest.$ac_objext conftest$ac_exeext
70750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70751 (eval $ac_link) 2>conftest.er1
70752 ac_status=$?
70753 grep -v '^ *+' conftest.er1 >conftest.err
70754 rm -f conftest.er1
70755 cat conftest.err >&5
70756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70757 (exit $ac_status); } &&
70758 { ac_try='test -z "$ac_c_werror_flag"
70759 || test ! -s conftest.err'
70760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70761 (eval $ac_try) 2>&5
70762 ac_status=$?
70763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70764 (exit $ac_status); }; } &&
70765 { ac_try='test -s conftest$ac_exeext'
70766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70767 (eval $ac_try) 2>&5
70768 ac_status=$?
70769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70770 (exit $ac_status); }; }; then
70771 eval "$as_ac_var=yes"
70772 else
70773 echo "$as_me: failed program was:" >&5
70774 sed 's/^/| /' conftest.$ac_ext >&5
70776 eval "$as_ac_var=no"
70778 rm -f conftest.err conftest.$ac_objext \
70779 conftest$ac_exeext conftest.$ac_ext
70781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70783 if test `eval echo '${'$as_ac_var'}'` = yes; then
70784 cat >>confdefs.h <<_ACEOF
70785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70786 _ACEOF
70788 else
70789 ac_wfuncs=no
70791 done
70794 # Checks for wide character functions that are not required
70795 # for basic wchar_t support. Don't disable support if they are missing.
70796 # Injection of these is wrapped with guard macros.
70802 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
70804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70805 echo "$as_me:$LINENO: checking for $ac_func" >&5
70806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70807 if eval "test \"\${$as_ac_var+set}\" = set"; then
70808 echo $ECHO_N "(cached) $ECHO_C" >&6
70809 else
70810 if test x$gcc_no_link = xyes; then
70811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70813 { (exit 1); exit 1; }; }
70815 cat >conftest.$ac_ext <<_ACEOF
70816 /* confdefs.h. */
70817 _ACEOF
70818 cat confdefs.h >>conftest.$ac_ext
70819 cat >>conftest.$ac_ext <<_ACEOF
70820 /* end confdefs.h. */
70821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70823 #define $ac_func innocuous_$ac_func
70825 /* System header to define __stub macros and hopefully few prototypes,
70826 which can conflict with char $ac_func (); below.
70827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70828 <limits.h> exists even on freestanding compilers. */
70830 #ifdef __STDC__
70831 # include <limits.h>
70832 #else
70833 # include <assert.h>
70834 #endif
70836 #undef $ac_func
70838 /* Override any gcc2 internal prototype to avoid an error. */
70839 #ifdef __cplusplus
70840 extern "C"
70842 #endif
70843 /* We use char because int might match the return type of a gcc2
70844 builtin and then its argument prototype would still apply. */
70845 char $ac_func ();
70846 /* The GNU C library defines this for functions which it implements
70847 to always fail with ENOSYS. Some functions are actually named
70848 something starting with __ and the normal name is an alias. */
70849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70850 choke me
70851 #else
70852 char (*f) () = $ac_func;
70853 #endif
70854 #ifdef __cplusplus
70856 #endif
70859 main ()
70861 return f != $ac_func;
70863 return 0;
70865 _ACEOF
70866 rm -f conftest.$ac_objext conftest$ac_exeext
70867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70868 (eval $ac_link) 2>conftest.er1
70869 ac_status=$?
70870 grep -v '^ *+' conftest.er1 >conftest.err
70871 rm -f conftest.er1
70872 cat conftest.err >&5
70873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70874 (exit $ac_status); } &&
70875 { ac_try='test -z "$ac_c_werror_flag"
70876 || test ! -s conftest.err'
70877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70878 (eval $ac_try) 2>&5
70879 ac_status=$?
70880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70881 (exit $ac_status); }; } &&
70882 { ac_try='test -s conftest$ac_exeext'
70883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70884 (eval $ac_try) 2>&5
70885 ac_status=$?
70886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70887 (exit $ac_status); }; }; then
70888 eval "$as_ac_var=yes"
70889 else
70890 echo "$as_me: failed program was:" >&5
70891 sed 's/^/| /' conftest.$ac_ext >&5
70893 eval "$as_ac_var=no"
70895 rm -f conftest.err conftest.$ac_objext \
70896 conftest$ac_exeext conftest.$ac_ext
70898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70900 if test `eval echo '${'$as_ac_var'}'` = yes; then
70901 cat >>confdefs.h <<_ACEOF
70902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70903 _ACEOF
70906 done
70909 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
70910 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
70911 if test x"$has_weof" = xyes &&
70912 test x"$has_wchar_minmax" = xyes &&
70913 test x"$ac_wfuncs" = xyes;
70914 then
70915 ac_isoC99_wchar_t=yes
70916 else
70917 ac_isoC99_wchar_t=no
70919 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
70920 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
70922 # Use iconv for wchar_t to char conversions. As such, check for
70923 # X/Open Portability Guide, version 2 features (XPG2).
70924 if test "${ac_cv_header_iconv_h+set}" = set; then
70925 echo "$as_me:$LINENO: checking for iconv.h" >&5
70926 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70927 if test "${ac_cv_header_iconv_h+set}" = set; then
70928 echo $ECHO_N "(cached) $ECHO_C" >&6
70930 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70931 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70932 else
70933 # Is the header compilable?
70934 echo "$as_me:$LINENO: checking iconv.h usability" >&5
70935 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
70936 cat >conftest.$ac_ext <<_ACEOF
70937 /* confdefs.h. */
70938 _ACEOF
70939 cat confdefs.h >>conftest.$ac_ext
70940 cat >>conftest.$ac_ext <<_ACEOF
70941 /* end confdefs.h. */
70942 $ac_includes_default
70943 #include <iconv.h>
70944 _ACEOF
70945 rm -f conftest.$ac_objext
70946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70947 (eval $ac_compile) 2>conftest.er1
70948 ac_status=$?
70949 grep -v '^ *+' conftest.er1 >conftest.err
70950 rm -f conftest.er1
70951 cat conftest.err >&5
70952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70953 (exit $ac_status); } &&
70954 { ac_try='test -z "$ac_c_werror_flag"
70955 || test ! -s conftest.err'
70956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70957 (eval $ac_try) 2>&5
70958 ac_status=$?
70959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70960 (exit $ac_status); }; } &&
70961 { ac_try='test -s conftest.$ac_objext'
70962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70963 (eval $ac_try) 2>&5
70964 ac_status=$?
70965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70966 (exit $ac_status); }; }; then
70967 ac_header_compiler=yes
70968 else
70969 echo "$as_me: failed program was:" >&5
70970 sed 's/^/| /' conftest.$ac_ext >&5
70972 ac_header_compiler=no
70974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70976 echo "${ECHO_T}$ac_header_compiler" >&6
70978 # Is the header present?
70979 echo "$as_me:$LINENO: checking iconv.h presence" >&5
70980 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
70981 cat >conftest.$ac_ext <<_ACEOF
70982 /* confdefs.h. */
70983 _ACEOF
70984 cat confdefs.h >>conftest.$ac_ext
70985 cat >>conftest.$ac_ext <<_ACEOF
70986 /* end confdefs.h. */
70987 #include <iconv.h>
70988 _ACEOF
70989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70991 ac_status=$?
70992 grep -v '^ *+' conftest.er1 >conftest.err
70993 rm -f conftest.er1
70994 cat conftest.err >&5
70995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70996 (exit $ac_status); } >/dev/null; then
70997 if test -s conftest.err; then
70998 ac_cpp_err=$ac_c_preproc_warn_flag
70999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71000 else
71001 ac_cpp_err=
71003 else
71004 ac_cpp_err=yes
71006 if test -z "$ac_cpp_err"; then
71007 ac_header_preproc=yes
71008 else
71009 echo "$as_me: failed program was:" >&5
71010 sed 's/^/| /' conftest.$ac_ext >&5
71012 ac_header_preproc=no
71014 rm -f conftest.err conftest.$ac_ext
71015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71016 echo "${ECHO_T}$ac_header_preproc" >&6
71018 # So? What about this header?
71019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71020 yes:no: )
71021 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
71022 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71023 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
71024 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
71025 ac_header_preproc=yes
71027 no:yes:* )
71028 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
71029 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
71030 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
71031 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
71032 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
71033 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
71034 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
71035 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
71036 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
71037 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
71038 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
71039 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
71041 cat <<\_ASBOX
71042 ## ----------------------------------------- ##
71043 ## Report this to the package-unused lists. ##
71044 ## ----------------------------------------- ##
71045 _ASBOX
71047 sed "s/^/$as_me: WARNING: /" >&2
71049 esac
71050 echo "$as_me:$LINENO: checking for iconv.h" >&5
71051 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71052 if test "${ac_cv_header_iconv_h+set}" = set; then
71053 echo $ECHO_N "(cached) $ECHO_C" >&6
71054 else
71055 ac_cv_header_iconv_h=$ac_header_preproc
71057 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71058 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71061 if test $ac_cv_header_iconv_h = yes; then
71062 ac_has_iconv_h=yes
71063 else
71064 ac_has_iconv_h=no
71068 if test "${ac_cv_header_langinfo_h+set}" = set; then
71069 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71070 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71071 if test "${ac_cv_header_langinfo_h+set}" = set; then
71072 echo $ECHO_N "(cached) $ECHO_C" >&6
71074 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71075 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71076 else
71077 # Is the header compilable?
71078 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71079 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71080 cat >conftest.$ac_ext <<_ACEOF
71081 /* confdefs.h. */
71082 _ACEOF
71083 cat confdefs.h >>conftest.$ac_ext
71084 cat >>conftest.$ac_ext <<_ACEOF
71085 /* end confdefs.h. */
71086 $ac_includes_default
71087 #include <langinfo.h>
71088 _ACEOF
71089 rm -f conftest.$ac_objext
71090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71091 (eval $ac_compile) 2>conftest.er1
71092 ac_status=$?
71093 grep -v '^ *+' conftest.er1 >conftest.err
71094 rm -f conftest.er1
71095 cat conftest.err >&5
71096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71097 (exit $ac_status); } &&
71098 { ac_try='test -z "$ac_c_werror_flag"
71099 || test ! -s conftest.err'
71100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71101 (eval $ac_try) 2>&5
71102 ac_status=$?
71103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71104 (exit $ac_status); }; } &&
71105 { ac_try='test -s conftest.$ac_objext'
71106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71107 (eval $ac_try) 2>&5
71108 ac_status=$?
71109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71110 (exit $ac_status); }; }; then
71111 ac_header_compiler=yes
71112 else
71113 echo "$as_me: failed program was:" >&5
71114 sed 's/^/| /' conftest.$ac_ext >&5
71116 ac_header_compiler=no
71118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71120 echo "${ECHO_T}$ac_header_compiler" >&6
71122 # Is the header present?
71123 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71124 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71125 cat >conftest.$ac_ext <<_ACEOF
71126 /* confdefs.h. */
71127 _ACEOF
71128 cat confdefs.h >>conftest.$ac_ext
71129 cat >>conftest.$ac_ext <<_ACEOF
71130 /* end confdefs.h. */
71131 #include <langinfo.h>
71132 _ACEOF
71133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71135 ac_status=$?
71136 grep -v '^ *+' conftest.er1 >conftest.err
71137 rm -f conftest.er1
71138 cat conftest.err >&5
71139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71140 (exit $ac_status); } >/dev/null; then
71141 if test -s conftest.err; then
71142 ac_cpp_err=$ac_c_preproc_warn_flag
71143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71144 else
71145 ac_cpp_err=
71147 else
71148 ac_cpp_err=yes
71150 if test -z "$ac_cpp_err"; then
71151 ac_header_preproc=yes
71152 else
71153 echo "$as_me: failed program was:" >&5
71154 sed 's/^/| /' conftest.$ac_ext >&5
71156 ac_header_preproc=no
71158 rm -f conftest.err conftest.$ac_ext
71159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71160 echo "${ECHO_T}$ac_header_preproc" >&6
71162 # So? What about this header?
71163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71164 yes:no: )
71165 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71166 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71167 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71168 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71169 ac_header_preproc=yes
71171 no:yes:* )
71172 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71173 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71174 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
71175 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
71176 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71177 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71178 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
71179 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
71180 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71181 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71182 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71183 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71185 cat <<\_ASBOX
71186 ## ----------------------------------------- ##
71187 ## Report this to the package-unused lists. ##
71188 ## ----------------------------------------- ##
71189 _ASBOX
71191 sed "s/^/$as_me: WARNING: /" >&2
71193 esac
71194 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71195 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71196 if test "${ac_cv_header_langinfo_h+set}" = set; then
71197 echo $ECHO_N "(cached) $ECHO_C" >&6
71198 else
71199 ac_cv_header_langinfo_h=$ac_header_preproc
71201 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71202 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71205 if test $ac_cv_header_langinfo_h = yes; then
71206 ac_has_langinfo_h=yes
71207 else
71208 ac_has_langinfo_h=no
71213 # Check for existence of libiconv.a providing XPG2 wchar_t support.
71214 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71215 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71216 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71217 echo $ECHO_N "(cached) $ECHO_C" >&6
71218 else
71219 ac_check_lib_save_LIBS=$LIBS
71220 LIBS="-liconv $LIBS"
71221 if test x$gcc_no_link = xyes; then
71222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71224 { (exit 1); exit 1; }; }
71226 cat >conftest.$ac_ext <<_ACEOF
71227 /* confdefs.h. */
71228 _ACEOF
71229 cat confdefs.h >>conftest.$ac_ext
71230 cat >>conftest.$ac_ext <<_ACEOF
71231 /* end confdefs.h. */
71233 /* Override any gcc2 internal prototype to avoid an error. */
71234 #ifdef __cplusplus
71235 extern "C"
71236 #endif
71237 /* We use char because int might match the return type of a gcc2
71238 builtin and then its argument prototype would still apply. */
71239 char iconv ();
71241 main ()
71243 iconv ();
71245 return 0;
71247 _ACEOF
71248 rm -f conftest.$ac_objext conftest$ac_exeext
71249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71250 (eval $ac_link) 2>conftest.er1
71251 ac_status=$?
71252 grep -v '^ *+' conftest.er1 >conftest.err
71253 rm -f conftest.er1
71254 cat conftest.err >&5
71255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71256 (exit $ac_status); } &&
71257 { ac_try='test -z "$ac_c_werror_flag"
71258 || test ! -s conftest.err'
71259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71260 (eval $ac_try) 2>&5
71261 ac_status=$?
71262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71263 (exit $ac_status); }; } &&
71264 { ac_try='test -s conftest$ac_exeext'
71265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71266 (eval $ac_try) 2>&5
71267 ac_status=$?
71268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71269 (exit $ac_status); }; }; then
71270 ac_cv_lib_iconv_iconv=yes
71271 else
71272 echo "$as_me: failed program was:" >&5
71273 sed 's/^/| /' conftest.$ac_ext >&5
71275 ac_cv_lib_iconv_iconv=no
71277 rm -f conftest.err conftest.$ac_objext \
71278 conftest$ac_exeext conftest.$ac_ext
71279 LIBS=$ac_check_lib_save_LIBS
71281 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71282 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71283 if test $ac_cv_lib_iconv_iconv = yes; then
71284 LIBICONV="-liconv"
71287 ac_save_LIBS="$LIBS"
71288 LIBS="$LIBS $LIBICONV"
71295 for ac_func in iconv_open iconv_close iconv nl_langinfo
71297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71298 echo "$as_me:$LINENO: checking for $ac_func" >&5
71299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71300 if eval "test \"\${$as_ac_var+set}\" = set"; then
71301 echo $ECHO_N "(cached) $ECHO_C" >&6
71302 else
71303 if test x$gcc_no_link = xyes; then
71304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71306 { (exit 1); exit 1; }; }
71308 cat >conftest.$ac_ext <<_ACEOF
71309 /* confdefs.h. */
71310 _ACEOF
71311 cat confdefs.h >>conftest.$ac_ext
71312 cat >>conftest.$ac_ext <<_ACEOF
71313 /* end confdefs.h. */
71314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71316 #define $ac_func innocuous_$ac_func
71318 /* System header to define __stub macros and hopefully few prototypes,
71319 which can conflict with char $ac_func (); below.
71320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71321 <limits.h> exists even on freestanding compilers. */
71323 #ifdef __STDC__
71324 # include <limits.h>
71325 #else
71326 # include <assert.h>
71327 #endif
71329 #undef $ac_func
71331 /* Override any gcc2 internal prototype to avoid an error. */
71332 #ifdef __cplusplus
71333 extern "C"
71335 #endif
71336 /* We use char because int might match the return type of a gcc2
71337 builtin and then its argument prototype would still apply. */
71338 char $ac_func ();
71339 /* The GNU C library defines this for functions which it implements
71340 to always fail with ENOSYS. Some functions are actually named
71341 something starting with __ and the normal name is an alias. */
71342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71343 choke me
71344 #else
71345 char (*f) () = $ac_func;
71346 #endif
71347 #ifdef __cplusplus
71349 #endif
71352 main ()
71354 return f != $ac_func;
71356 return 0;
71358 _ACEOF
71359 rm -f conftest.$ac_objext conftest$ac_exeext
71360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71361 (eval $ac_link) 2>conftest.er1
71362 ac_status=$?
71363 grep -v '^ *+' conftest.er1 >conftest.err
71364 rm -f conftest.er1
71365 cat conftest.err >&5
71366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71367 (exit $ac_status); } &&
71368 { ac_try='test -z "$ac_c_werror_flag"
71369 || test ! -s conftest.err'
71370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71371 (eval $ac_try) 2>&5
71372 ac_status=$?
71373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71374 (exit $ac_status); }; } &&
71375 { ac_try='test -s conftest$ac_exeext'
71376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71377 (eval $ac_try) 2>&5
71378 ac_status=$?
71379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71380 (exit $ac_status); }; }; then
71381 eval "$as_ac_var=yes"
71382 else
71383 echo "$as_me: failed program was:" >&5
71384 sed 's/^/| /' conftest.$ac_ext >&5
71386 eval "$as_ac_var=no"
71388 rm -f conftest.err conftest.$ac_objext \
71389 conftest$ac_exeext conftest.$ac_ext
71391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71393 if test `eval echo '${'$as_ac_var'}'` = yes; then
71394 cat >>confdefs.h <<_ACEOF
71395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71396 _ACEOF
71397 ac_XPG2funcs=yes
71398 else
71399 ac_XPG2funcs=no
71401 done
71404 LIBS="$ac_save_LIBS"
71406 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71407 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71408 if test x"$ac_has_iconv_h" = xyes &&
71409 test x"$ac_has_langinfo_h" = xyes &&
71410 test x"$ac_XPG2funcs" = xyes;
71411 then
71412 ac_XPG2_wchar_t=yes
71413 else
71414 ac_XPG2_wchar_t=no
71416 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71417 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71419 # At the moment, only enable wchar_t specializations if all the
71420 # above support is present.
71421 if test x"$ac_isoC99_wchar_t" = xyes &&
71422 test x"$ac_XPG2_wchar_t" = xyes;
71423 then
71424 cat >>confdefs.h <<\_ACEOF
71425 #define _GLIBCXX_USE_WCHAR_T 1
71426 _ACEOF
71428 enable_wchar_t=yes
71431 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71432 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71433 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71434 echo "${ECHO_T}$enable_wchar_t" >&6
71436 cat >>confdefs.h <<\_ACEOF
71437 #define HAVE_COPYSIGN 1
71438 _ACEOF
71440 cat >>confdefs.h <<\_ACEOF
71441 #define HAVE_COPYSIGNF 1
71442 _ACEOF
71444 cat >>confdefs.h <<\_ACEOF
71445 #define HAVE_FINITE 1
71446 _ACEOF
71448 cat >>confdefs.h <<\_ACEOF
71449 #define HAVE_FINITEF 1
71450 _ACEOF
71452 cat >>confdefs.h <<\_ACEOF
71453 #define HAVE_FREXPF 1
71454 _ACEOF
71456 cat >>confdefs.h <<\_ACEOF
71457 #define HAVE_HYPOTF 1
71458 _ACEOF
71460 cat >>confdefs.h <<\_ACEOF
71461 #define HAVE_ISINF 1
71462 _ACEOF
71464 cat >>confdefs.h <<\_ACEOF
71465 #define HAVE_ISINFF 1
71466 _ACEOF
71468 cat >>confdefs.h <<\_ACEOF
71469 #define HAVE_ISNAN 1
71470 _ACEOF
71472 cat >>confdefs.h <<\_ACEOF
71473 #define HAVE_ISNANF 1
71474 _ACEOF
71476 cat >>confdefs.h <<\_ACEOF
71477 #define HAVE_SINCOS 1
71478 _ACEOF
71480 cat >>confdefs.h <<\_ACEOF
71481 #define HAVE_SINCOSF 1
71482 _ACEOF
71484 if test x"long_double_math_on_this_cpu" = x"yes"; then
71485 cat >>confdefs.h <<\_ACEOF
71486 #define HAVE_FINITEL 1
71487 _ACEOF
71489 cat >>confdefs.h <<\_ACEOF
71490 #define HAVE_HYPOTL 1
71491 _ACEOF
71493 cat >>confdefs.h <<\_ACEOF
71494 #define HAVE_ISINFL 1
71495 _ACEOF
71497 cat >>confdefs.h <<\_ACEOF
71498 #define HAVE_ISNANL 1
71499 _ACEOF
71503 *-vxworks)
71504 cat >>confdefs.h <<\_ACEOF
71505 #define HAVE_MMAP 1
71506 _ACEOF
71508 cat >>confdefs.h <<\_ACEOF
71509 #define HAVE_ACOSF 1
71510 _ACEOF
71512 cat >>confdefs.h <<\_ACEOF
71513 #define HAVE_ASINF 1
71514 _ACEOF
71516 cat >>confdefs.h <<\_ACEOF
71517 #define HAVE_ATAN2F 1
71518 _ACEOF
71520 cat >>confdefs.h <<\_ACEOF
71521 #define HAVE_ATANF 1
71522 _ACEOF
71524 cat >>confdefs.h <<\_ACEOF
71525 #define HAVE_CEILF 1
71526 _ACEOF
71528 cat >>confdefs.h <<\_ACEOF
71529 #define HAVE_COSF 1
71530 _ACEOF
71532 cat >>confdefs.h <<\_ACEOF
71533 #define HAVE_COSHF 1
71534 _ACEOF
71536 cat >>confdefs.h <<\_ACEOF
71537 #define HAVE_EXPF 1
71538 _ACEOF
71540 cat >>confdefs.h <<\_ACEOF
71541 #define HAVE_FABSF 1
71542 _ACEOF
71544 cat >>confdefs.h <<\_ACEOF
71545 #define HAVE_FLOORF 1
71546 _ACEOF
71548 cat >>confdefs.h <<\_ACEOF
71549 #define HAVE_FMODF 1
71550 _ACEOF
71552 cat >>confdefs.h <<\_ACEOF
71553 #define HAVE_HYPOT 1
71554 _ACEOF
71556 cat >>confdefs.h <<\_ACEOF
71557 #define HAVE_LOG10F 1
71558 _ACEOF
71560 cat >>confdefs.h <<\_ACEOF
71561 #define HAVE_LOGF 1
71562 _ACEOF
71564 cat >>confdefs.h <<\_ACEOF
71565 #define HAVE_POWF 1
71566 _ACEOF
71568 cat >>confdefs.h <<\_ACEOF
71569 #define HAVE_SINF 1
71570 _ACEOF
71572 cat >>confdefs.h <<\_ACEOF
71573 #define HAVE_SINHF 1
71574 _ACEOF
71576 cat >>confdefs.h <<\_ACEOF
71577 #define HAVE_SQRTF 1
71578 _ACEOF
71580 cat >>confdefs.h <<\_ACEOF
71581 #define HAVE_TANF 1
71582 _ACEOF
71584 cat >>confdefs.h <<\_ACEOF
71585 #define HAVE_TANHF 1
71586 _ACEOF
71589 *-windiss*)
71590 cat >>confdefs.h <<\_ACEOF
71591 #define HAVE_ACOSF 1
71592 _ACEOF
71594 cat >>confdefs.h <<\_ACEOF
71595 #define HAVE_ACOSL 1
71596 _ACEOF
71598 cat >>confdefs.h <<\_ACEOF
71599 #define HAVE_ASINF 1
71600 _ACEOF
71602 cat >>confdefs.h <<\_ACEOF
71603 #define HAVE_ASINL 1
71604 _ACEOF
71606 cat >>confdefs.h <<\_ACEOF
71607 #define HAVE_ATAN2F 1
71608 _ACEOF
71610 cat >>confdefs.h <<\_ACEOF
71611 #define HAVE_ATAN2L 1
71612 _ACEOF
71614 cat >>confdefs.h <<\_ACEOF
71615 #define HAVE_ATANF 1
71616 _ACEOF
71618 cat >>confdefs.h <<\_ACEOF
71619 #define HAVE_ATANL 1
71620 _ACEOF
71622 cat >>confdefs.h <<\_ACEOF
71623 #define HAVE_CEILF 1
71624 _ACEOF
71626 cat >>confdefs.h <<\_ACEOF
71627 #define HAVE_CEILL 1
71628 _ACEOF
71630 cat >>confdefs.h <<\_ACEOF
71631 #define HAVE_COPYSIGN 1
71632 _ACEOF
71634 cat >>confdefs.h <<\_ACEOF
71635 #define HAVE_COPYSIGNF 1
71636 _ACEOF
71638 cat >>confdefs.h <<\_ACEOF
71639 #define HAVE_COSF 1
71640 _ACEOF
71642 cat >>confdefs.h <<\_ACEOF
71643 #define HAVE_COSL 1
71644 _ACEOF
71646 cat >>confdefs.h <<\_ACEOF
71647 #define HAVE_COSHF 1
71648 _ACEOF
71650 cat >>confdefs.h <<\_ACEOF
71651 #define HAVE_COSHL 1
71652 _ACEOF
71654 cat >>confdefs.h <<\_ACEOF
71655 #define HAVE_EXPF 1
71656 _ACEOF
71658 cat >>confdefs.h <<\_ACEOF
71659 #define HAVE_EXPL 1
71660 _ACEOF
71662 cat >>confdefs.h <<\_ACEOF
71663 #define HAVE_FABSF 1
71664 _ACEOF
71666 cat >>confdefs.h <<\_ACEOF
71667 #define HAVE_FABSL 1
71668 _ACEOF
71670 cat >>confdefs.h <<\_ACEOF
71671 #define HAVE_FLOORF 1
71672 _ACEOF
71674 cat >>confdefs.h <<\_ACEOF
71675 #define HAVE_FLOORL 1
71676 _ACEOF
71678 cat >>confdefs.h <<\_ACEOF
71679 #define HAVE_FMODF 1
71680 _ACEOF
71682 cat >>confdefs.h <<\_ACEOF
71683 #define HAVE_FMODL 1
71684 _ACEOF
71686 cat >>confdefs.h <<\_ACEOF
71687 #define HAVE_FREXPF 1
71688 _ACEOF
71690 cat >>confdefs.h <<\_ACEOF
71691 #define HAVE_FREXPL 1
71692 _ACEOF
71694 cat >>confdefs.h <<\_ACEOF
71695 #define HAVE_LDEXPF 1
71696 _ACEOF
71698 cat >>confdefs.h <<\_ACEOF
71699 #define HAVE_LDEXPL 1
71700 _ACEOF
71702 cat >>confdefs.h <<\_ACEOF
71703 #define HAVE_LOG10F 1
71704 _ACEOF
71706 cat >>confdefs.h <<\_ACEOF
71707 #define HAVE_LOG10L 1
71708 _ACEOF
71710 cat >>confdefs.h <<\_ACEOF
71711 #define HAVE_LOGF 1
71712 _ACEOF
71714 cat >>confdefs.h <<\_ACEOF
71715 #define HAVE_MODFF 1
71716 _ACEOF
71718 cat >>confdefs.h <<\_ACEOF
71719 #define HAVE_MODFL 1
71720 _ACEOF
71722 cat >>confdefs.h <<\_ACEOF
71723 #define HAVE_POWF 1
71724 _ACEOF
71726 cat >>confdefs.h <<\_ACEOF
71727 #define HAVE_POWL 1
71728 _ACEOF
71730 cat >>confdefs.h <<\_ACEOF
71731 #define HAVE_SINF 1
71732 _ACEOF
71734 cat >>confdefs.h <<\_ACEOF
71735 #define HAVE_SINL 1
71736 _ACEOF
71738 cat >>confdefs.h <<\_ACEOF
71739 #define HAVE_SINHF 1
71740 _ACEOF
71742 cat >>confdefs.h <<\_ACEOF
71743 #define HAVE_SINHL 1
71744 _ACEOF
71746 cat >>confdefs.h <<\_ACEOF
71747 #define HAVE_SQRTF 1
71748 _ACEOF
71750 cat >>confdefs.h <<\_ACEOF
71751 #define HAVE_SQRTL 1
71752 _ACEOF
71754 cat >>confdefs.h <<\_ACEOF
71755 #define HAVE_TANF 1
71756 _ACEOF
71758 cat >>confdefs.h <<\_ACEOF
71759 #define HAVE_TANL 1
71760 _ACEOF
71762 cat >>confdefs.h <<\_ACEOF
71763 #define HAVE_TANHF 1
71764 _ACEOF
71766 cat >>confdefs.h <<\_ACEOF
71767 #define HAVE_TANHL 1
71768 _ACEOF
71772 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
71773 echo "$as_me: error: No support for this host/target combination." >&2;}
71774 { (exit 1); exit 1; }; }
71776 esac
71781 # At some point, we should differentiate between architectures
71782 # like x86, which have long double versions, and alpha/powerpc/etc.,
71783 # which don't. For the time being, punt.
71784 if test x"long_double_math_on_this_cpu" = x"yes"; then
71785 cat >>confdefs.h <<\_ACEOF
71786 #define HAVE_ACOSL 1
71787 _ACEOF
71789 cat >>confdefs.h <<\_ACEOF
71790 #define HAVE_ASINL 1
71791 _ACEOF
71793 cat >>confdefs.h <<\_ACEOF
71794 #define HAVE_ATAN2L 1
71795 _ACEOF
71797 cat >>confdefs.h <<\_ACEOF
71798 #define HAVE_ATANL 1
71799 _ACEOF
71801 cat >>confdefs.h <<\_ACEOF
71802 #define HAVE_CEILL 1
71803 _ACEOF
71805 cat >>confdefs.h <<\_ACEOF
71806 #define HAVE_COPYSIGNL 1
71807 _ACEOF
71809 cat >>confdefs.h <<\_ACEOF
71810 #define HAVE_COSL 1
71811 _ACEOF
71813 cat >>confdefs.h <<\_ACEOF
71814 #define HAVE_COSHL 1
71815 _ACEOF
71817 cat >>confdefs.h <<\_ACEOF
71818 #define HAVE_EXPL 1
71819 _ACEOF
71821 cat >>confdefs.h <<\_ACEOF
71822 #define HAVE_FABSL 1
71823 _ACEOF
71825 cat >>confdefs.h <<\_ACEOF
71826 #define HAVE_FLOORL 1
71827 _ACEOF
71829 cat >>confdefs.h <<\_ACEOF
71830 #define HAVE_FMODL 1
71831 _ACEOF
71833 cat >>confdefs.h <<\_ACEOF
71834 #define HAVE_FREXPL 1
71835 _ACEOF
71837 cat >>confdefs.h <<\_ACEOF
71838 #define HAVE_LDEXPL 1
71839 _ACEOF
71841 cat >>confdefs.h <<\_ACEOF
71842 #define HAVE_LOG10L 1
71843 _ACEOF
71845 cat >>confdefs.h <<\_ACEOF
71846 #define HAVE_LOGL 1
71847 _ACEOF
71849 cat >>confdefs.h <<\_ACEOF
71850 #define HAVE_MODFL 1
71851 _ACEOF
71853 cat >>confdefs.h <<\_ACEOF
71854 #define HAVE_POWL 1
71855 _ACEOF
71857 cat >>confdefs.h <<\_ACEOF
71858 #define HAVE_SINCOSL 1
71859 _ACEOF
71861 cat >>confdefs.h <<\_ACEOF
71862 #define HAVE_SINL 1
71863 _ACEOF
71865 cat >>confdefs.h <<\_ACEOF
71866 #define HAVE_SINHL 1
71867 _ACEOF
71869 cat >>confdefs.h <<\_ACEOF
71870 #define HAVE_SQRTL 1
71871 _ACEOF
71873 cat >>confdefs.h <<\_ACEOF
71874 #define HAVE_TANL 1
71875 _ACEOF
71877 cat >>confdefs.h <<\_ACEOF
71878 #define HAVE_TANHL 1
71879 _ACEOF
71885 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
71888 # Check whether --enable-symvers or --disable-symvers was given.
71889 if test "${enable_symvers+set}" = set; then
71890 enableval="$enable_symvers"
71892 case "$enableval" in
71893 yes|no|gnu) ;;
71894 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
71895 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
71896 { (exit 1); exit 1; }; } ;;
71897 esac
71899 else
71900 enable_symvers=yes
71904 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
71905 # don't know enough about $LD to do tricks...
71907 # FIXME The following test is too strict, in theory.
71908 if test $enable_shared = no ||
71909 test "x$LD" = x ||
71910 test x$glibcxx_gnu_ld_version = x; then
71911 enable_symvers=no
71914 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
71915 if test $enable_symvers != no; then
71916 echo "$as_me:$LINENO: checking for shared libgcc" >&5
71917 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
71918 ac_save_CFLAGS="$CFLAGS"
71919 CFLAGS=' -lgcc_s'
71920 if test x$gcc_no_link = xyes; then
71921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71923 { (exit 1); exit 1; }; }
71925 cat >conftest.$ac_ext <<_ACEOF
71926 /* confdefs.h. */
71927 _ACEOF
71928 cat confdefs.h >>conftest.$ac_ext
71929 cat >>conftest.$ac_ext <<_ACEOF
71930 /* end confdefs.h. */
71933 main ()
71935 return 0;
71937 return 0;
71939 _ACEOF
71940 rm -f conftest.$ac_objext conftest$ac_exeext
71941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71942 (eval $ac_link) 2>conftest.er1
71943 ac_status=$?
71944 grep -v '^ *+' conftest.er1 >conftest.err
71945 rm -f conftest.er1
71946 cat conftest.err >&5
71947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71948 (exit $ac_status); } &&
71949 { ac_try='test -z "$ac_c_werror_flag"
71950 || test ! -s conftest.err'
71951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71952 (eval $ac_try) 2>&5
71953 ac_status=$?
71954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71955 (exit $ac_status); }; } &&
71956 { ac_try='test -s conftest$ac_exeext'
71957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71958 (eval $ac_try) 2>&5
71959 ac_status=$?
71960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71961 (exit $ac_status); }; }; then
71962 glibcxx_shared_libgcc=yes
71963 else
71964 echo "$as_me: failed program was:" >&5
71965 sed 's/^/| /' conftest.$ac_ext >&5
71967 glibcxx_shared_libgcc=no
71969 rm -f conftest.err conftest.$ac_objext \
71970 conftest$ac_exeext conftest.$ac_ext
71971 CFLAGS="$ac_save_CFLAGS"
71972 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
71973 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
71976 # For GNU ld, we need at least this version. The format is described in
71977 # GLIBCXX_CHECK_LINKER_FEATURES above.
71978 glibcxx_min_gnu_ld_version=21400
71979 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
71981 # Check to see if unspecified "yes" value can win, given results above.
71982 # Change "yes" into either "no" or a style name.
71983 if test $enable_symvers = yes; then
71984 if test $with_gnu_ld = yes &&
71985 test $glibcxx_shared_libgcc = yes;
71986 then
71987 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
71988 enable_symvers=gnu
71989 else
71990 # The right tools, the right setup, but too old. Fallbacks?
71991 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
71992 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
71993 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
71994 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
71995 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
71996 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
71997 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
71998 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
71999 if test $glibcxx_gnu_ld_version -ge 21200 ; then
72000 # Globbing fix is present, proper block support is not.
72001 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72002 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72003 enable_symvers=no
72004 else
72005 # 2.11 or older.
72006 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72007 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72008 enable_symvers=no
72011 else
72012 # just fail for now
72013 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
72014 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
72015 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
72016 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
72017 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
72018 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
72019 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72020 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72021 enable_symvers=no
72025 # Everything parsed; figure out what file to use.
72026 case $enable_symvers in
72028 SYMVER_MAP=config/linker-map.dummy
72030 gnu)
72031 SYMVER_MAP=config/linker-map.gnu
72032 cat >>confdefs.h <<\_ACEOF
72033 #define _GLIBCXX_SYMVER 1
72034 _ACEOF
72037 esac
72042 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
72043 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
72046 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
72048 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
72049 # Do checks for memory limit functions.
72051 setrlimit_have_headers=yes
72055 for ac_header in unistd.h sys/time.h sys/resource.h
72057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
72058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72059 echo "$as_me:$LINENO: checking for $ac_header" >&5
72060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72062 echo $ECHO_N "(cached) $ECHO_C" >&6
72064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72066 else
72067 # Is the header compilable?
72068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72070 cat >conftest.$ac_ext <<_ACEOF
72071 /* confdefs.h. */
72072 _ACEOF
72073 cat confdefs.h >>conftest.$ac_ext
72074 cat >>conftest.$ac_ext <<_ACEOF
72075 /* end confdefs.h. */
72076 $ac_includes_default
72077 #include <$ac_header>
72078 _ACEOF
72079 rm -f conftest.$ac_objext
72080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72081 (eval $ac_compile) 2>conftest.er1
72082 ac_status=$?
72083 grep -v '^ *+' conftest.er1 >conftest.err
72084 rm -f conftest.er1
72085 cat conftest.err >&5
72086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72087 (exit $ac_status); } &&
72088 { ac_try='test -z "$ac_c_werror_flag"
72089 || test ! -s conftest.err'
72090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72091 (eval $ac_try) 2>&5
72092 ac_status=$?
72093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72094 (exit $ac_status); }; } &&
72095 { ac_try='test -s conftest.$ac_objext'
72096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72097 (eval $ac_try) 2>&5
72098 ac_status=$?
72099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72100 (exit $ac_status); }; }; then
72101 ac_header_compiler=yes
72102 else
72103 echo "$as_me: failed program was:" >&5
72104 sed 's/^/| /' conftest.$ac_ext >&5
72106 ac_header_compiler=no
72108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72110 echo "${ECHO_T}$ac_header_compiler" >&6
72112 # Is the header present?
72113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72115 cat >conftest.$ac_ext <<_ACEOF
72116 /* confdefs.h. */
72117 _ACEOF
72118 cat confdefs.h >>conftest.$ac_ext
72119 cat >>conftest.$ac_ext <<_ACEOF
72120 /* end confdefs.h. */
72121 #include <$ac_header>
72122 _ACEOF
72123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72125 ac_status=$?
72126 grep -v '^ *+' conftest.er1 >conftest.err
72127 rm -f conftest.er1
72128 cat conftest.err >&5
72129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72130 (exit $ac_status); } >/dev/null; then
72131 if test -s conftest.err; then
72132 ac_cpp_err=$ac_c_preproc_warn_flag
72133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72134 else
72135 ac_cpp_err=
72137 else
72138 ac_cpp_err=yes
72140 if test -z "$ac_cpp_err"; then
72141 ac_header_preproc=yes
72142 else
72143 echo "$as_me: failed program was:" >&5
72144 sed 's/^/| /' conftest.$ac_ext >&5
72146 ac_header_preproc=no
72148 rm -f conftest.err conftest.$ac_ext
72149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72150 echo "${ECHO_T}$ac_header_preproc" >&6
72152 # So? What about this header?
72153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72154 yes:no: )
72155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72159 ac_header_preproc=yes
72161 no:yes:* )
72162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
72165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
72166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
72169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
72170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72175 cat <<\_ASBOX
72176 ## ----------------------------------------- ##
72177 ## Report this to the package-unused lists. ##
72178 ## ----------------------------------------- ##
72179 _ASBOX
72181 sed "s/^/$as_me: WARNING: /" >&2
72183 esac
72184 echo "$as_me:$LINENO: checking for $ac_header" >&5
72185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72187 echo $ECHO_N "(cached) $ECHO_C" >&6
72188 else
72189 eval "$as_ac_Header=\$ac_header_preproc"
72191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72196 cat >>confdefs.h <<_ACEOF
72197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72198 _ACEOF
72200 else
72201 setrlimit_have_headers=no
72204 done
72206 # If don't have the headers, then we can't run the tests now, and we
72207 # won't be seeing any of these during testsuite compilation.
72208 if test $setrlimit_have_headers = yes; then
72209 # Can't do these in a loop, else the resulting syntax is wrong.
72211 cat >conftest.$ac_ext <<_ACEOF
72212 /* confdefs.h. */
72213 _ACEOF
72214 cat confdefs.h >>conftest.$ac_ext
72215 cat >>conftest.$ac_ext <<_ACEOF
72216 /* end confdefs.h. */
72217 #include <unistd.h>
72218 #include <sys/time.h>
72219 #include <sys/resource.h>
72222 main ()
72224 int f = RLIMIT_DATA ;
72226 return 0;
72228 _ACEOF
72229 rm -f conftest.$ac_objext
72230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72231 (eval $ac_compile) 2>conftest.er1
72232 ac_status=$?
72233 grep -v '^ *+' conftest.er1 >conftest.err
72234 rm -f conftest.er1
72235 cat conftest.err >&5
72236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72237 (exit $ac_status); } &&
72238 { ac_try='test -z "$ac_c_werror_flag"
72239 || test ! -s conftest.err'
72240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72241 (eval $ac_try) 2>&5
72242 ac_status=$?
72243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72244 (exit $ac_status); }; } &&
72245 { ac_try='test -s conftest.$ac_objext'
72246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72247 (eval $ac_try) 2>&5
72248 ac_status=$?
72249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72250 (exit $ac_status); }; }; then
72251 glibcxx_mresult=1
72252 else
72253 echo "$as_me: failed program was:" >&5
72254 sed 's/^/| /' conftest.$ac_ext >&5
72256 glibcxx_mresult=0
72258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72260 cat >>confdefs.h <<_ACEOF
72261 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
72262 _ACEOF
72266 cat >conftest.$ac_ext <<_ACEOF
72267 /* confdefs.h. */
72268 _ACEOF
72269 cat confdefs.h >>conftest.$ac_ext
72270 cat >>conftest.$ac_ext <<_ACEOF
72271 /* end confdefs.h. */
72272 #include <unistd.h>
72273 #include <sys/time.h>
72274 #include <sys/resource.h>
72277 main ()
72279 int f = RLIMIT_RSS ;
72281 return 0;
72283 _ACEOF
72284 rm -f conftest.$ac_objext
72285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72286 (eval $ac_compile) 2>conftest.er1
72287 ac_status=$?
72288 grep -v '^ *+' conftest.er1 >conftest.err
72289 rm -f conftest.er1
72290 cat conftest.err >&5
72291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72292 (exit $ac_status); } &&
72293 { ac_try='test -z "$ac_c_werror_flag"
72294 || test ! -s conftest.err'
72295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72296 (eval $ac_try) 2>&5
72297 ac_status=$?
72298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72299 (exit $ac_status); }; } &&
72300 { ac_try='test -s conftest.$ac_objext'
72301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72302 (eval $ac_try) 2>&5
72303 ac_status=$?
72304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72305 (exit $ac_status); }; }; then
72306 glibcxx_mresult=1
72307 else
72308 echo "$as_me: failed program was:" >&5
72309 sed 's/^/| /' conftest.$ac_ext >&5
72311 glibcxx_mresult=0
72313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72315 cat >>confdefs.h <<_ACEOF
72316 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
72317 _ACEOF
72321 cat >conftest.$ac_ext <<_ACEOF
72322 /* confdefs.h. */
72323 _ACEOF
72324 cat confdefs.h >>conftest.$ac_ext
72325 cat >>conftest.$ac_ext <<_ACEOF
72326 /* end confdefs.h. */
72327 #include <unistd.h>
72328 #include <sys/time.h>
72329 #include <sys/resource.h>
72332 main ()
72334 int f = RLIMIT_VMEM ;
72336 return 0;
72338 _ACEOF
72339 rm -f conftest.$ac_objext
72340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72341 (eval $ac_compile) 2>conftest.er1
72342 ac_status=$?
72343 grep -v '^ *+' conftest.er1 >conftest.err
72344 rm -f conftest.er1
72345 cat conftest.err >&5
72346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72347 (exit $ac_status); } &&
72348 { ac_try='test -z "$ac_c_werror_flag"
72349 || test ! -s conftest.err'
72350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72351 (eval $ac_try) 2>&5
72352 ac_status=$?
72353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72354 (exit $ac_status); }; } &&
72355 { ac_try='test -s conftest.$ac_objext'
72356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72357 (eval $ac_try) 2>&5
72358 ac_status=$?
72359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72360 (exit $ac_status); }; }; then
72361 glibcxx_mresult=1
72362 else
72363 echo "$as_me: failed program was:" >&5
72364 sed 's/^/| /' conftest.$ac_ext >&5
72366 glibcxx_mresult=0
72368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72370 cat >>confdefs.h <<_ACEOF
72371 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
72372 _ACEOF
72376 cat >conftest.$ac_ext <<_ACEOF
72377 /* confdefs.h. */
72378 _ACEOF
72379 cat confdefs.h >>conftest.$ac_ext
72380 cat >>conftest.$ac_ext <<_ACEOF
72381 /* end confdefs.h. */
72382 #include <unistd.h>
72383 #include <sys/time.h>
72384 #include <sys/resource.h>
72387 main ()
72389 int f = RLIMIT_AS ;
72391 return 0;
72393 _ACEOF
72394 rm -f conftest.$ac_objext
72395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72396 (eval $ac_compile) 2>conftest.er1
72397 ac_status=$?
72398 grep -v '^ *+' conftest.er1 >conftest.err
72399 rm -f conftest.er1
72400 cat conftest.err >&5
72401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72402 (exit $ac_status); } &&
72403 { ac_try='test -z "$ac_c_werror_flag"
72404 || test ! -s conftest.err'
72405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72406 (eval $ac_try) 2>&5
72407 ac_status=$?
72408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72409 (exit $ac_status); }; } &&
72410 { ac_try='test -s conftest.$ac_objext'
72411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72412 (eval $ac_try) 2>&5
72413 ac_status=$?
72414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72415 (exit $ac_status); }; }; then
72416 glibcxx_mresult=1
72417 else
72418 echo "$as_me: failed program was:" >&5
72419 sed 's/^/| /' conftest.$ac_ext >&5
72421 glibcxx_mresult=0
72423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72425 cat >>confdefs.h <<_ACEOF
72426 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
72427 _ACEOF
72431 # Check for rlimit, setrlimit.
72432 if test "${ac_setrlimit+set}" = set; then
72433 echo $ECHO_N "(cached) $ECHO_C" >&6
72434 else
72436 cat >conftest.$ac_ext <<_ACEOF
72437 /* confdefs.h. */
72438 _ACEOF
72439 cat confdefs.h >>conftest.$ac_ext
72440 cat >>conftest.$ac_ext <<_ACEOF
72441 /* end confdefs.h. */
72442 #include <unistd.h>
72443 #include <sys/time.h>
72444 #include <sys/resource.h>
72447 main ()
72449 struct rlimit r;
72450 setrlimit(0, &r);
72452 return 0;
72454 _ACEOF
72455 rm -f conftest.$ac_objext
72456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72457 (eval $ac_compile) 2>conftest.er1
72458 ac_status=$?
72459 grep -v '^ *+' conftest.er1 >conftest.err
72460 rm -f conftest.er1
72461 cat conftest.err >&5
72462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72463 (exit $ac_status); } &&
72464 { ac_try='test -z "$ac_c_werror_flag"
72465 || test ! -s conftest.err'
72466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72467 (eval $ac_try) 2>&5
72468 ac_status=$?
72469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72470 (exit $ac_status); }; } &&
72471 { ac_try='test -s conftest.$ac_objext'
72472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72473 (eval $ac_try) 2>&5
72474 ac_status=$?
72475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72476 (exit $ac_status); }; }; then
72477 ac_setrlimit=yes
72478 else
72479 echo "$as_me: failed program was:" >&5
72480 sed 's/^/| /' conftest.$ac_ext >&5
72482 ac_setrlimit=no
72484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72490 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
72491 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
72492 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72493 ac_mem_limits=yes
72494 cat >>confdefs.h <<\_ACEOF
72495 #define _GLIBCXX_MEM_LIMITS 1
72496 _ACEOF
72498 else
72499 ac_mem_limits=no
72501 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
72502 echo "${ECHO_T}$ac_mem_limits" >&6
72505 # Look for setenv, so that extended locale tests can be performed.
72507 echo "$as_me:$LINENO: checking for setenv declaration" >&5
72508 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72509 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72510 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72511 echo $ECHO_N "(cached) $ECHO_C" >&6
72512 else
72516 ac_ext=cc
72517 ac_cpp='$CXXCPP $CPPFLAGS'
72518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72522 cat >conftest.$ac_ext <<_ACEOF
72523 /* confdefs.h. */
72524 _ACEOF
72525 cat confdefs.h >>conftest.$ac_ext
72526 cat >>conftest.$ac_ext <<_ACEOF
72527 /* end confdefs.h. */
72528 #include <stdlib.h>
72530 main ()
72532 setenv(0, 0, 0);
72534 return 0;
72536 _ACEOF
72537 rm -f conftest.$ac_objext
72538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72539 (eval $ac_compile) 2>conftest.er1
72540 ac_status=$?
72541 grep -v '^ *+' conftest.er1 >conftest.err
72542 rm -f conftest.er1
72543 cat conftest.err >&5
72544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72545 (exit $ac_status); } &&
72546 { ac_try='test -z "$ac_cxx_werror_flag"
72547 || test ! -s conftest.err'
72548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72549 (eval $ac_try) 2>&5
72550 ac_status=$?
72551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72552 (exit $ac_status); }; } &&
72553 { ac_try='test -s conftest.$ac_objext'
72554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72555 (eval $ac_try) 2>&5
72556 ac_status=$?
72557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72558 (exit $ac_status); }; }; then
72559 glibcxx_cv_func_setenv_use=yes
72560 else
72561 echo "$as_me: failed program was:" >&5
72562 sed 's/^/| /' conftest.$ac_ext >&5
72564 glibcxx_cv_func_setenv_use=no
72566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72567 ac_ext=c
72568 ac_cpp='$CPP $CPPFLAGS'
72569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72577 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72578 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72579 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72581 for ac_func in setenv
72583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72584 echo "$as_me:$LINENO: checking for $ac_func" >&5
72585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72586 if eval "test \"\${$as_ac_var+set}\" = set"; then
72587 echo $ECHO_N "(cached) $ECHO_C" >&6
72588 else
72589 if test x$gcc_no_link = xyes; then
72590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72592 { (exit 1); exit 1; }; }
72594 cat >conftest.$ac_ext <<_ACEOF
72595 /* confdefs.h. */
72596 _ACEOF
72597 cat confdefs.h >>conftest.$ac_ext
72598 cat >>conftest.$ac_ext <<_ACEOF
72599 /* end confdefs.h. */
72600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72602 #define $ac_func innocuous_$ac_func
72604 /* System header to define __stub macros and hopefully few prototypes,
72605 which can conflict with char $ac_func (); below.
72606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72607 <limits.h> exists even on freestanding compilers. */
72609 #ifdef __STDC__
72610 # include <limits.h>
72611 #else
72612 # include <assert.h>
72613 #endif
72615 #undef $ac_func
72617 /* Override any gcc2 internal prototype to avoid an error. */
72618 #ifdef __cplusplus
72619 extern "C"
72621 #endif
72622 /* We use char because int might match the return type of a gcc2
72623 builtin and then its argument prototype would still apply. */
72624 char $ac_func ();
72625 /* The GNU C library defines this for functions which it implements
72626 to always fail with ENOSYS. Some functions are actually named
72627 something starting with __ and the normal name is an alias. */
72628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72629 choke me
72630 #else
72631 char (*f) () = $ac_func;
72632 #endif
72633 #ifdef __cplusplus
72635 #endif
72638 main ()
72640 return f != $ac_func;
72642 return 0;
72644 _ACEOF
72645 rm -f conftest.$ac_objext conftest$ac_exeext
72646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72647 (eval $ac_link) 2>conftest.er1
72648 ac_status=$?
72649 grep -v '^ *+' conftest.er1 >conftest.err
72650 rm -f conftest.er1
72651 cat conftest.err >&5
72652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72653 (exit $ac_status); } &&
72654 { ac_try='test -z "$ac_c_werror_flag"
72655 || test ! -s conftest.err'
72656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72657 (eval $ac_try) 2>&5
72658 ac_status=$?
72659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72660 (exit $ac_status); }; } &&
72661 { ac_try='test -s conftest$ac_exeext'
72662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72663 (eval $ac_try) 2>&5
72664 ac_status=$?
72665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72666 (exit $ac_status); }; }; then
72667 eval "$as_ac_var=yes"
72668 else
72669 echo "$as_me: failed program was:" >&5
72670 sed 's/^/| /' conftest.$ac_ext >&5
72672 eval "$as_ac_var=no"
72674 rm -f conftest.err conftest.$ac_objext \
72675 conftest$ac_exeext conftest.$ac_ext
72677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72679 if test `eval echo '${'$as_ac_var'}'` = yes; then
72680 cat >>confdefs.h <<_ACEOF
72681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72682 _ACEOF
72685 done
72690 if test $enable_symvers = no; then
72691 enable_abi_check=no
72692 else
72693 case "$host" in
72694 *-*-cygwin*)
72695 enable_abi_check=no ;;
72697 enable_abi_check=yes ;;
72698 esac
72700 else
72701 # Only build this as native, since automake does not understand
72702 # CXX_FOR_BUILD.
72703 enable_abi_check=no
72706 # Export file names for ABI checking.
72707 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
72714 # Propagate the target-specific source directories through the build chain.
72715 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
72716 # uses it, and it only gets used in this file.)
72717 ATOMICITY_SRCDIR=config/${atomicity_dir}
72718 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
72719 OS_INC_SRCDIR=config/${os_include_dir}
72724 # Determine cross-compile flags and AM_CONDITIONALs.
72725 #AC_SUBST(GLIBCXX_IS_NATIVE)
72726 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
72727 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
72728 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
72731 if test $is_hosted = yes; then
72732 GLIBCXX_HOSTED_TRUE=
72733 GLIBCXX_HOSTED_FALSE='#'
72734 else
72735 GLIBCXX_HOSTED_TRUE='#'
72736 GLIBCXX_HOSTED_FALSE=
72742 if test $enable_libstdcxx_pch = yes; then
72743 GLIBCXX_BUILD_PCH_TRUE=
72744 GLIBCXX_BUILD_PCH_FALSE='#'
72745 else
72746 GLIBCXX_BUILD_PCH_TRUE='#'
72747 GLIBCXX_BUILD_PCH_FALSE=
72753 if test $enable_cheaders = c; then
72754 GLIBCXX_C_HEADERS_C_TRUE=
72755 GLIBCXX_C_HEADERS_C_FALSE='#'
72756 else
72757 GLIBCXX_C_HEADERS_C_TRUE='#'
72758 GLIBCXX_C_HEADERS_C_FALSE=
72764 if test $enable_cheaders = c_std; then
72765 GLIBCXX_C_HEADERS_C_STD_TRUE=
72766 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
72767 else
72768 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
72769 GLIBCXX_C_HEADERS_C_STD_FALSE=
72775 if test $c_compatibility = yes; then
72776 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
72777 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
72778 else
72779 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
72780 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
72786 if test $enable_libstdcxx_debug = yes; then
72787 GLIBCXX_BUILD_DEBUG_TRUE=
72788 GLIBCXX_BUILD_DEBUG_FALSE='#'
72789 else
72790 GLIBCXX_BUILD_DEBUG_TRUE='#'
72791 GLIBCXX_BUILD_DEBUG_FALSE=
72797 if test $enable_symvers != no; then
72798 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
72799 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
72800 else
72801 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
72802 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
72808 if test $enable_wchar_t = yes; then
72809 GLIBCXX_TEST_WCHAR_T_TRUE=
72810 GLIBCXX_TEST_WCHAR_T_FALSE='#'
72811 else
72812 GLIBCXX_TEST_WCHAR_T_TRUE='#'
72813 GLIBCXX_TEST_WCHAR_T_FALSE=
72819 if test $enable_abi_check = yes; then
72820 GLIBCXX_TEST_ABI_TRUE=
72821 GLIBCXX_TEST_ABI_FALSE='#'
72822 else
72823 GLIBCXX_TEST_ABI_TRUE='#'
72824 GLIBCXX_TEST_ABI_FALSE=
72830 cat >confcache <<\_ACEOF
72831 # This file is a shell script that caches the results of configure
72832 # tests run on this system so they can be shared between configure
72833 # scripts and configure runs, see configure's option --config-cache.
72834 # It is not useful on other systems. If it contains results you don't
72835 # want to keep, you may remove or edit it.
72837 # config.status only pays attention to the cache file if you give it
72838 # the --recheck option to rerun configure.
72840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72842 # following values.
72844 _ACEOF
72846 # The following way of writing the cache mishandles newlines in values,
72847 # but we know of no workaround that is simple, portable, and efficient.
72848 # So, don't put newlines in cache variables' values.
72849 # Ultrix sh set writes to stderr and can't be redirected directly,
72850 # and sets the high bit in the cache file unless we assign to the vars.
72852 (set) 2>&1 |
72853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
72854 *ac_space=\ *)
72855 # `set' does not quote correctly, so add quotes (double-quote
72856 # substitution turns \\\\ into \\, and sed turns \\ into \).
72857 sed -n \
72858 "s/'/'\\\\''/g;
72859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72862 # `set' quotes correctly as required by POSIX, so do not add quotes.
72863 sed -n \
72864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72866 esac;
72868 sed '
72869 t clear
72870 : clear
72871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72872 t end
72873 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72874 : end' >>confcache
72875 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72876 if test -w $cache_file; then
72877 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
72878 cat confcache >$cache_file
72879 else
72880 echo "not updating unwritable cache $cache_file"
72883 rm -f confcache
72885 if test ${multilib} = yes; then
72886 multilib_arg="--enable-multilib"
72887 else
72888 multilib_arg=
72891 # Export all the install information.
72893 glibcxx_toolexecdir=no
72894 glibcxx_toolexeclibdir=no
72895 glibcxx_prefixdir=$prefix
72897 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
72898 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
72900 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
72901 if test "${with_gxx_include_dir+set}" = set; then
72902 withval="$with_gxx_include_dir"
72903 case "$withval" in
72904 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
72905 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
72906 { (exit 1); exit 1; }; } ;;
72907 no) gxx_include_dir=no ;;
72908 *) gxx_include_dir=$withval ;;
72909 esac
72910 else
72911 gxx_include_dir=no
72913 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72914 echo "${ECHO_T}$gxx_include_dir" >&6
72916 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
72917 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
72918 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
72919 if test "${enable_version_specific_runtime_libs+set}" = set; then
72920 enableval="$enable_version_specific_runtime_libs"
72921 case "$enableval" in
72922 yes) version_specific_libs=yes ;;
72923 no) version_specific_libs=no ;;
72924 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
72925 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
72926 { (exit 1); exit 1; }; };;
72927 esac
72928 else
72929 version_specific_libs=no
72931 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
72932 echo "${ECHO_T}$version_specific_libs" >&6
72934 # Default case for install directory for include files.
72935 if test $version_specific_libs = no && test $gxx_include_dir = no; then
72936 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
72939 # Version-specific runtime libs processing.
72940 if test $version_specific_libs = yes; then
72941 # Need the gcc compiler version to know where to install libraries
72942 # and header files if --enable-version-specific-runtime-libs option
72943 # is selected. FIXME: these variables are misnamed, there are
72944 # no executables installed in _toolexecdir or _toolexeclibdir.
72945 if test x"$gxx_include_dir" = x"no"; then
72946 gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
72948 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72949 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
72952 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
72953 # Install a library built with a cross compiler in tooldir, not libdir.
72954 if test x"$glibcxx_toolexecdir" = x"no"; then
72955 if test -n "$with_cross_host" &&
72956 test x"$with_cross_host" != x"no"; then
72957 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
72958 glibcxx_toolexeclibdir='${toolexecdir}/lib'
72959 else
72960 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72961 glibcxx_toolexeclibdir='${libdir}'
72963 multi_os_directory=`$CXX -print-multi-os-directory`
72964 case $multi_os_directory in
72965 .) ;; # Avoid trailing /.
72966 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
72967 esac
72970 echo "$as_me:$LINENO: checking for install location" >&5
72971 echo $ECHO_N "checking for install location... $ECHO_C" >&6
72972 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72973 echo "${ECHO_T}$gxx_include_dir" >&6
72981 # Export all the include and flag information to Makefiles.
72983 # Used for every C++ compile we perform.
72984 GLIBCXX_INCLUDES="\
72985 -I$glibcxx_builddir/include/$host_alias \
72986 -I$glibcxx_builddir/include \
72987 -I$glibcxx_srcdir/libsupc++"
72989 # For Canadian crosses, pick this up too.
72990 if test $CANADIAN = yes; then
72991 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
72994 # Stuff in the actual top level. Currently only used by libsupc++ to
72995 # get unwind* headers from the gcc dir.
72996 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
72997 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
72999 # Now, export this to all the little Makefiles....
73004 # Optimization flags that are probably a good idea for thrill-seekers. Just
73005 # uncomment the lines below and make, everything else is ready to go...
73006 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
73007 OPTIMIZE_CXXFLAGS=
73010 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
73014 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73015 grep "enable shared" > /dev/null;
73016 then
73017 LIBSUPCXX_PICFLAGS=-prefer-pic
73018 else
73019 LIBSUPCXX_PICFLAGS=
73023 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73025 ac_config_files="$ac_config_files scripts/check_survey"
73027 ac_config_files="$ac_config_files scripts/testsuite_flags"
73030 ac_config_commands="$ac_config_commands default"
73033 cat >confcache <<\_ACEOF
73034 # This file is a shell script that caches the results of configure
73035 # tests run on this system so they can be shared between configure
73036 # scripts and configure runs, see configure's option --config-cache.
73037 # It is not useful on other systems. If it contains results you don't
73038 # want to keep, you may remove or edit it.
73040 # config.status only pays attention to the cache file if you give it
73041 # the --recheck option to rerun configure.
73043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73045 # following values.
73047 _ACEOF
73049 # The following way of writing the cache mishandles newlines in values,
73050 # but we know of no workaround that is simple, portable, and efficient.
73051 # So, don't put newlines in cache variables' values.
73052 # Ultrix sh set writes to stderr and can't be redirected directly,
73053 # and sets the high bit in the cache file unless we assign to the vars.
73055 (set) 2>&1 |
73056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
73057 *ac_space=\ *)
73058 # `set' does not quote correctly, so add quotes (double-quote
73059 # substitution turns \\\\ into \\, and sed turns \\ into \).
73060 sed -n \
73061 "s/'/'\\\\''/g;
73062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73065 # `set' quotes correctly as required by POSIX, so do not add quotes.
73066 sed -n \
73067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73069 esac;
73071 sed '
73072 t clear
73073 : clear
73074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73075 t end
73076 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73077 : end' >>confcache
73078 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73079 if test -w $cache_file; then
73080 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73081 cat confcache >$cache_file
73082 else
73083 echo "not updating unwritable cache $cache_file"
73086 rm -f confcache
73088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73089 # Let make expand exec_prefix.
73090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73094 # trailing colons and then remove the whole line if VPATH becomes empty
73095 # (actually we leave an empty line to preserve line numbers).
73096 if test "x$srcdir" = x.; then
73097 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73098 s/:*\$(srcdir):*/:/;
73099 s/:*\${srcdir}:*/:/;
73100 s/:*@srcdir@:*/:/;
73101 s/^\([^=]*=[ ]*\):*/\1/;
73102 s/:*$//;
73103 s/^[^=]*=[ ]*$//;
73107 DEFS=-DHAVE_CONFIG_H
73109 ac_libobjs=
73110 ac_ltlibobjs=
73111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73112 # 1. Remove the extension, and $U if already installed.
73113 ac_i=`echo "$ac_i" |
73114 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73115 # 2. Add them.
73116 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73117 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73118 done
73119 LIBOBJS=$ac_libobjs
73121 LTLIBOBJS=$ac_ltlibobjs
73124 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73125 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73126 Usually this means the macro was only invoked conditionally." >&5
73127 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73128 Usually this means the macro was only invoked conditionally." >&2;}
73129 { (exit 1); exit 1; }; }
73131 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73132 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73133 Usually this means the macro was only invoked conditionally." >&5
73134 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73135 Usually this means the macro was only invoked conditionally." >&2;}
73136 { (exit 1); exit 1; }; }
73138 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73139 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73140 Usually this means the macro was only invoked conditionally." >&5
73141 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73142 Usually this means the macro was only invoked conditionally." >&2;}
73143 { (exit 1); exit 1; }; }
73145 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73146 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73147 Usually this means the macro was only invoked conditionally." >&5
73148 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73149 Usually this means the macro was only invoked conditionally." >&2;}
73150 { (exit 1); exit 1; }; }
73152 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73153 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73154 Usually this means the macro was only invoked conditionally." >&5
73155 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73156 Usually this means the macro was only invoked conditionally." >&2;}
73157 { (exit 1); exit 1; }; }
73159 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73160 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73161 Usually this means the macro was only invoked conditionally." >&5
73162 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73163 Usually this means the macro was only invoked conditionally." >&2;}
73164 { (exit 1); exit 1; }; }
73166 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73167 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73168 Usually this means the macro was only invoked conditionally." >&5
73169 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73170 Usually this means the macro was only invoked conditionally." >&2;}
73171 { (exit 1); exit 1; }; }
73173 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73174 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73175 Usually this means the macro was only invoked conditionally." >&5
73176 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73177 Usually this means the macro was only invoked conditionally." >&2;}
73178 { (exit 1); exit 1; }; }
73180 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73181 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73182 Usually this means the macro was only invoked conditionally." >&5
73183 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73184 Usually this means the macro was only invoked conditionally." >&2;}
73185 { (exit 1); exit 1; }; }
73187 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73188 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73189 Usually this means the macro was only invoked conditionally." >&5
73190 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73191 Usually this means the macro was only invoked conditionally." >&2;}
73192 { (exit 1); exit 1; }; }
73195 : ${CONFIG_STATUS=./config.status}
73196 ac_clean_files_save=$ac_clean_files
73197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73198 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73199 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73200 cat >$CONFIG_STATUS <<_ACEOF
73201 #! $SHELL
73202 # Generated by $as_me.
73203 # Run this file to recreate the current configuration.
73204 # Compiler output produced by configure, useful for debugging
73205 # configure, is in config.log if it exists.
73207 debug=false
73208 ac_cs_recheck=false
73209 ac_cs_silent=false
73210 SHELL=\${CONFIG_SHELL-$SHELL}
73211 _ACEOF
73213 cat >>$CONFIG_STATUS <<\_ACEOF
73214 ## --------------------- ##
73215 ## M4sh Initialization. ##
73216 ## --------------------- ##
73218 # Be Bourne compatible
73219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73220 emulate sh
73221 NULLCMD=:
73222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73223 # is contrary to our usage. Disable this feature.
73224 alias -g '${1+"$@"}'='"$@"'
73225 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73226 set -o posix
73228 DUALCASE=1; export DUALCASE # for MKS sh
73230 # Support unset when possible.
73231 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73232 as_unset=unset
73233 else
73234 as_unset=false
73238 # Work around bugs in pre-3.0 UWIN ksh.
73239 $as_unset ENV MAIL MAILPATH
73240 PS1='$ '
73241 PS2='> '
73242 PS4='+ '
73244 # NLS nuisances.
73245 for as_var in \
73246 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73247 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73248 LC_TELEPHONE LC_TIME
73250 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73251 eval $as_var=C; export $as_var
73252 else
73253 $as_unset $as_var
73255 done
73257 # Required to use basename.
73258 if expr a : '\(a\)' >/dev/null 2>&1; then
73259 as_expr=expr
73260 else
73261 as_expr=false
73264 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73265 as_basename=basename
73266 else
73267 as_basename=false
73271 # Name of the executable.
73272 as_me=`$as_basename "$0" ||
73273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73274 X"$0" : 'X\(//\)$' \| \
73275 X"$0" : 'X\(/\)$' \| \
73276 . : '\(.\)' 2>/dev/null ||
73277 echo X/"$0" |
73278 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73279 /^X\/\(\/\/\)$/{ s//\1/; q; }
73280 /^X\/\(\/\).*/{ s//\1/; q; }
73281 s/.*/./; q'`
73284 # PATH needs CR, and LINENO needs CR and PATH.
73285 # Avoid depending upon Character Ranges.
73286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73289 as_cr_digits='0123456789'
73290 as_cr_alnum=$as_cr_Letters$as_cr_digits
73292 # The user is always right.
73293 if test "${PATH_SEPARATOR+set}" != set; then
73294 echo "#! /bin/sh" >conf$$.sh
73295 echo "exit 0" >>conf$$.sh
73296 chmod +x conf$$.sh
73297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73298 PATH_SEPARATOR=';'
73299 else
73300 PATH_SEPARATOR=:
73302 rm -f conf$$.sh
73306 as_lineno_1=$LINENO
73307 as_lineno_2=$LINENO
73308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73309 test "x$as_lineno_1" != "x$as_lineno_2" &&
73310 test "x$as_lineno_3" = "x$as_lineno_2" || {
73311 # Find who we are. Look in the path if we contain no path at all
73312 # relative or not.
73313 case $0 in
73314 *[\\/]* ) as_myself=$0 ;;
73315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73316 for as_dir in $PATH
73318 IFS=$as_save_IFS
73319 test -z "$as_dir" && as_dir=.
73320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73321 done
73324 esac
73325 # We did not find ourselves, most probably we were run as `sh COMMAND'
73326 # in which case we are not to be found in the path.
73327 if test "x$as_myself" = x; then
73328 as_myself=$0
73330 if test ! -f "$as_myself"; then
73331 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73332 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73333 { (exit 1); exit 1; }; }
73335 case $CONFIG_SHELL in
73337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73338 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73340 IFS=$as_save_IFS
73341 test -z "$as_dir" && as_dir=.
73342 for as_base in sh bash ksh sh5; do
73343 case $as_dir in
73345 if ("$as_dir/$as_base" -c '
73346 as_lineno_1=$LINENO
73347 as_lineno_2=$LINENO
73348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73349 test "x$as_lineno_1" != "x$as_lineno_2" &&
73350 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
73351 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73352 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73353 CONFIG_SHELL=$as_dir/$as_base
73354 export CONFIG_SHELL
73355 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73356 fi;;
73357 esac
73358 done
73359 done
73361 esac
73363 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73364 # uniformly replaced by the line number. The first 'sed' inserts a
73365 # line-number line before each line; the second 'sed' does the real
73366 # work. The second script uses 'N' to pair each line-number line
73367 # with the numbered line, and appends trailing '-' during
73368 # substitution so that $LINENO is not a special case at line end.
73369 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73370 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
73371 sed '=' <$as_myself |
73372 sed '
73374 s,$,-,
73375 : loop
73376 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73377 t loop
73378 s,-$,,
73379 s,^['$as_cr_digits']*\n,,
73380 ' >$as_me.lineno &&
73381 chmod +x $as_me.lineno ||
73382 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73383 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73384 { (exit 1); exit 1; }; }
73386 # Don't try to exec as it changes $[0], causing all sort of problems
73387 # (the dirname of $[0] is not the place where we might find the
73388 # original and so on. Autoconf is especially sensible to this).
73389 . ./$as_me.lineno
73390 # Exit status is that of the last command.
73391 exit
73395 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73396 *c*,-n*) ECHO_N= ECHO_C='
73397 ' ECHO_T=' ' ;;
73398 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73399 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
73400 esac
73402 if expr a : '\(a\)' >/dev/null 2>&1; then
73403 as_expr=expr
73404 else
73405 as_expr=false
73408 rm -f conf$$ conf$$.exe conf$$.file
73409 echo >conf$$.file
73410 if ln -s conf$$.file conf$$ 2>/dev/null; then
73411 # We could just check for DJGPP; but this test a) works b) is more generic
73412 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73413 if test -f conf$$.exe; then
73414 # Don't use ln at all; we don't have any links
73415 as_ln_s='cp -p'
73416 else
73417 as_ln_s='ln -s'
73419 elif ln conf$$.file conf$$ 2>/dev/null; then
73420 as_ln_s=ln
73421 else
73422 as_ln_s='cp -p'
73424 rm -f conf$$ conf$$.exe conf$$.file
73426 if mkdir -p . 2>/dev/null; then
73427 as_mkdir_p=:
73428 else
73429 test -d ./-p && rmdir ./-p
73430 as_mkdir_p=false
73433 as_executable_p="test -f"
73435 # Sed expression to map a string onto a valid CPP name.
73436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73438 # Sed expression to map a string onto a valid variable name.
73439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73442 # IFS
73443 # We need space, tab and new line, in precisely that order.
73444 as_nl='
73446 IFS=" $as_nl"
73448 # CDPATH.
73449 $as_unset CDPATH
73451 exec 6>&1
73453 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73454 # report actual input values of CONFIG_FILES etc. instead of their
73455 # values after options handling. Logging --version etc. is OK.
73456 exec 5>>config.log
73458 echo
73459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73460 ## Running $as_me. ##
73461 _ASBOX
73462 } >&5
73463 cat >&5 <<_CSEOF
73465 This file was extended by package-unused $as_me version-unused, which was
73466 generated by GNU Autoconf 2.59. Invocation command line was
73468 CONFIG_FILES = $CONFIG_FILES
73469 CONFIG_HEADERS = $CONFIG_HEADERS
73470 CONFIG_LINKS = $CONFIG_LINKS
73471 CONFIG_COMMANDS = $CONFIG_COMMANDS
73472 $ $0 $@
73474 _CSEOF
73475 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73476 echo >&5
73477 _ACEOF
73479 # Files that config.status was made for.
73480 if test -n "$ac_config_files"; then
73481 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73484 if test -n "$ac_config_headers"; then
73485 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73488 if test -n "$ac_config_links"; then
73489 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73492 if test -n "$ac_config_commands"; then
73493 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73496 cat >>$CONFIG_STATUS <<\_ACEOF
73498 ac_cs_usage="\
73499 \`$as_me' instantiates files from templates according to the
73500 current configuration.
73502 Usage: $0 [OPTIONS] [FILE]...
73504 -h, --help print this help, then exit
73505 -V, --version print version number, then exit
73506 -q, --quiet do not print progress messages
73507 -d, --debug don't remove temporary files
73508 --recheck update $as_me by reconfiguring in the same conditions
73509 --file=FILE[:TEMPLATE]
73510 instantiate the configuration file FILE
73511 --header=FILE[:TEMPLATE]
73512 instantiate the configuration header FILE
73514 Configuration files:
73515 $config_files
73517 Configuration headers:
73518 $config_headers
73520 Configuration commands:
73521 $config_commands
73523 Report bugs to <bug-autoconf@gnu.org>."
73524 _ACEOF
73526 cat >>$CONFIG_STATUS <<_ACEOF
73527 ac_cs_version="\\
73528 package-unused config.status version-unused
73529 configured by $0, generated by GNU Autoconf 2.59,
73530 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73532 Copyright (C) 2003 Free Software Foundation, Inc.
73533 This config.status script is free software; the Free Software Foundation
73534 gives unlimited permission to copy, distribute and modify it."
73535 srcdir=$srcdir
73536 INSTALL="$INSTALL"
73537 _ACEOF
73539 cat >>$CONFIG_STATUS <<\_ACEOF
73540 # If no file are specified by the user, then we need to provide default
73541 # value. By we need to know if files were specified by the user.
73542 ac_need_defaults=:
73543 while test $# != 0
73545 case $1 in
73546 --*=*)
73547 ac_option=`expr "x$1" : 'x\([^=]*\)='`
73548 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73549 ac_shift=:
73552 ac_option=$1
73553 ac_optarg=$2
73554 ac_shift=shift
73556 *) # This is not an option, so the user has probably given explicit
73557 # arguments.
73558 ac_option=$1
73559 ac_need_defaults=false;;
73560 esac
73562 case $ac_option in
73563 # Handling of the options.
73564 _ACEOF
73565 cat >>$CONFIG_STATUS <<\_ACEOF
73566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73567 ac_cs_recheck=: ;;
73568 --version | --vers* | -V )
73569 echo "$ac_cs_version"; exit 0 ;;
73570 --he | --h)
73571 # Conflict between --help and --header
73572 { { echo "$as_me:$LINENO: error: ambiguous option: $1
73573 Try \`$0 --help' for more information." >&5
73574 echo "$as_me: error: ambiguous option: $1
73575 Try \`$0 --help' for more information." >&2;}
73576 { (exit 1); exit 1; }; };;
73577 --help | --hel | -h )
73578 echo "$ac_cs_usage"; exit 0 ;;
73579 --debug | --d* | -d )
73580 debug=: ;;
73581 --file | --fil | --fi | --f )
73582 $ac_shift
73583 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73584 ac_need_defaults=false;;
73585 --header | --heade | --head | --hea )
73586 $ac_shift
73587 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73588 ac_need_defaults=false;;
73589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73590 | -silent | --silent | --silen | --sile | --sil | --si | --s)
73591 ac_cs_silent=: ;;
73593 # This is an error.
73594 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73595 Try \`$0 --help' for more information." >&5
73596 echo "$as_me: error: unrecognized option: $1
73597 Try \`$0 --help' for more information." >&2;}
73598 { (exit 1); exit 1; }; } ;;
73600 *) ac_config_targets="$ac_config_targets $1" ;;
73602 esac
73603 shift
73604 done
73606 ac_configure_extra_args=
73608 if $ac_cs_silent; then
73609 exec 6>/dev/null
73610 ac_configure_extra_args="$ac_configure_extra_args --silent"
73613 _ACEOF
73614 cat >>$CONFIG_STATUS <<_ACEOF
73615 if \$ac_cs_recheck; then
73616 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73617 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73620 _ACEOF
73622 cat >>$CONFIG_STATUS <<_ACEOF
73624 # INIT-COMMANDS section.
73628 srcdir="$srcdir"
73629 host="$host"
73630 target="$target"
73631 with_multisubdir="$with_multisubdir"
73632 with_multisrctop="$with_multisrctop"
73633 with_target_subdir="$with_target_subdir"
73634 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73635 multi_basedir="$multi_basedir"
73636 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73637 CC="$CC"
73639 # Variables needed in config.status (file generation) which aren't already
73640 # passed by autoconf.
73641 SUBDIRS="$SUBDIRS"
73644 _ACEOF
73648 cat >>$CONFIG_STATUS <<\_ACEOF
73649 for ac_config_target in $ac_config_targets
73651 case "$ac_config_target" in
73652 # Handling of arguments.
73653 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73654 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73655 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73656 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73657 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73658 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73659 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73660 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73661 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73662 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73663 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73664 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73665 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73666 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73667 { (exit 1); exit 1; }; };;
73668 esac
73669 done
73671 # If the user did not use the arguments to specify the items to instantiate,
73672 # then the envvar interface is used. Set only those that are not.
73673 # We use the long form for the default assignment because of an extremely
73674 # bizarre bug on SunOS 4.1.3.
73675 if $ac_need_defaults; then
73676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73681 # Have a temporary directory for convenience. Make it in the build tree
73682 # simply because there is no reason to put it here, and in addition,
73683 # creating and moving files from /tmp can sometimes cause problems.
73684 # Create a temporary directory, and hook for its removal unless debugging.
73685 $debug ||
73687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73688 trap '{ (exit 1); exit 1; }' 1 2 13 15
73691 # Create a (secure) tmp directory for tmp files.
73694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73695 test -n "$tmp" && test -d "$tmp"
73696 } ||
73698 tmp=./confstat$$-$RANDOM
73699 (umask 077 && mkdir $tmp)
73700 } ||
73702 echo "$me: cannot create a temporary directory in ." >&2
73703 { (exit 1); exit 1; }
73706 _ACEOF
73708 cat >>$CONFIG_STATUS <<_ACEOF
73711 # CONFIG_FILES section.
73714 # No need to generate the scripts if there are no CONFIG_FILES.
73715 # This happens for instance when ./config.status config.h
73716 if test -n "\$CONFIG_FILES"; then
73717 # Protect against being on the right side of a sed subst in config.status.
73718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
73719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
73720 s,@SHELL@,$SHELL,;t t
73721 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
73722 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
73723 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
73724 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
73725 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
73726 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
73727 s,@exec_prefix@,$exec_prefix,;t t
73728 s,@prefix@,$prefix,;t t
73729 s,@program_transform_name@,$program_transform_name,;t t
73730 s,@bindir@,$bindir,;t t
73731 s,@sbindir@,$sbindir,;t t
73732 s,@libexecdir@,$libexecdir,;t t
73733 s,@datadir@,$datadir,;t t
73734 s,@sysconfdir@,$sysconfdir,;t t
73735 s,@sharedstatedir@,$sharedstatedir,;t t
73736 s,@localstatedir@,$localstatedir,;t t
73737 s,@libdir@,$libdir,;t t
73738 s,@includedir@,$includedir,;t t
73739 s,@oldincludedir@,$oldincludedir,;t t
73740 s,@infodir@,$infodir,;t t
73741 s,@mandir@,$mandir,;t t
73742 s,@build_alias@,$build_alias,;t t
73743 s,@host_alias@,$host_alias,;t t
73744 s,@target_alias@,$target_alias,;t t
73745 s,@DEFS@,$DEFS,;t t
73746 s,@ECHO_C@,$ECHO_C,;t t
73747 s,@ECHO_N@,$ECHO_N,;t t
73748 s,@ECHO_T@,$ECHO_T,;t t
73749 s,@LIBS@,$LIBS,;t t
73750 s,@libtool_VERSION@,$libtool_VERSION,;t t
73751 s,@multi_basedir@,$multi_basedir,;t t
73752 s,@build@,$build,;t t
73753 s,@build_cpu@,$build_cpu,;t t
73754 s,@build_vendor@,$build_vendor,;t t
73755 s,@build_os@,$build_os,;t t
73756 s,@host@,$host,;t t
73757 s,@host_cpu@,$host_cpu,;t t
73758 s,@host_vendor@,$host_vendor,;t t
73759 s,@host_os@,$host_os,;t t
73760 s,@target@,$target,;t t
73761 s,@target_cpu@,$target_cpu,;t t
73762 s,@target_vendor@,$target_vendor,;t t
73763 s,@target_os@,$target_os,;t t
73764 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
73765 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
73766 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
73767 s,@CYGPATH_W@,$CYGPATH_W,;t t
73768 s,@PACKAGE@,$PACKAGE,;t t
73769 s,@VERSION@,$VERSION,;t t
73770 s,@ACLOCAL@,$ACLOCAL,;t t
73771 s,@AUTOCONF@,$AUTOCONF,;t t
73772 s,@AUTOMAKE@,$AUTOMAKE,;t t
73773 s,@AUTOHEADER@,$AUTOHEADER,;t t
73774 s,@MAKEINFO@,$MAKEINFO,;t t
73775 s,@AMTAR@,$AMTAR,;t t
73776 s,@install_sh@,$install_sh,;t t
73777 s,@STRIP@,$STRIP,;t t
73778 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
73779 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
73780 s,@mkdir_p@,$mkdir_p,;t t
73781 s,@AWK@,$AWK,;t t
73782 s,@SET_MAKE@,$SET_MAKE,;t t
73783 s,@am__leading_dot@,$am__leading_dot,;t t
73784 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
73785 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
73786 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
73787 s,@CC@,$CC,;t t
73788 s,@ac_ct_CC@,$ac_ct_CC,;t t
73789 s,@EXEEXT@,$EXEEXT,;t t
73790 s,@OBJEXT@,$OBJEXT,;t t
73791 s,@CXX@,$CXX,;t t
73792 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
73793 s,@CFLAGS@,$CFLAGS,;t t
73794 s,@CXXFLAGS@,$CXXFLAGS,;t t
73795 s,@LN_S@,$LN_S,;t t
73796 s,@AS@,$AS,;t t
73797 s,@ac_ct_AS@,$ac_ct_AS,;t t
73798 s,@AR@,$AR,;t t
73799 s,@ac_ct_AR@,$ac_ct_AR,;t t
73800 s,@RANLIB@,$RANLIB,;t t
73801 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
73802 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
73803 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
73804 s,@MAINT@,$MAINT,;t t
73805 s,@LIBTOOL@,$LIBTOOL,;t t
73806 s,@CXXCPP@,$CXXCPP,;t t
73807 s,@CPPFLAGS@,$CPPFLAGS,;t t
73808 s,@enable_shared@,$enable_shared,;t t
73809 s,@enable_static@,$enable_static,;t t
73810 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
73811 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
73812 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
73813 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
73814 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
73815 s,@CSTDIO_H@,$CSTDIO_H,;t t
73816 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
73817 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
73818 s,@CPP@,$CPP,;t t
73819 s,@EGREP@,$EGREP,;t t
73820 s,@check_msgfmt@,$check_msgfmt,;t t
73821 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
73822 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
73823 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
73824 s,@USE_NLS@,$USE_NLS,;t t
73825 s,@CLOCALE_H@,$CLOCALE_H,;t t
73826 s,@CCODECVT_H@,$CCODECVT_H,;t t
73827 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
73828 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
73829 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
73830 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
73831 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
73832 s,@CMONEY_CC@,$CMONEY_CC,;t t
73833 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
73834 s,@CTIME_H@,$CTIME_H,;t t
73835 s,@CTIME_CC@,$CTIME_CC,;t t
73836 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
73837 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
73838 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
73839 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
73840 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
73841 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
73842 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
73843 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
73844 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
73845 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
73846 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
73847 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
73848 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
73849 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
73850 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
73851 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
73852 s,@WERROR@,$WERROR,;t t
73853 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
73854 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
73855 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
73856 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
73857 s,@LIBICONV@,$LIBICONV,;t t
73858 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
73859 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
73860 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
73861 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
73862 s,@baseline_dir@,$baseline_dir,;t t
73863 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
73864 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
73865 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
73866 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
73867 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
73868 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
73869 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
73870 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
73871 s,@gxx_include_dir@,$gxx_include_dir,;t t
73872 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
73873 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
73874 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
73875 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
73876 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
73877 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
73878 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
73879 s,@LIBOBJS@,$LIBOBJS,;t t
73880 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
73881 CEOF
73883 _ACEOF
73885 cat >>$CONFIG_STATUS <<\_ACEOF
73886 # Split the substitutions into bite-sized pieces for seds with
73887 # small command number limits, like on Digital OSF/1 and HP-UX.
73888 ac_max_sed_lines=48
73889 ac_sed_frag=1 # Number of current file.
73890 ac_beg=1 # First line for current file.
73891 ac_end=$ac_max_sed_lines # Line after last line for current file.
73892 ac_more_lines=:
73893 ac_sed_cmds=
73894 while $ac_more_lines; do
73895 if test $ac_beg -gt 1; then
73896 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73897 else
73898 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73900 if test ! -s $tmp/subs.frag; then
73901 ac_more_lines=false
73902 else
73903 # The purpose of the label and of the branching condition is to
73904 # speed up the sed processing (if there are no `@' at all, there
73905 # is no need to browse any of the substitutions).
73906 # These are the two extra sed commands mentioned above.
73907 (echo ':t
73908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
73909 if test -z "$ac_sed_cmds"; then
73910 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
73911 else
73912 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
73914 ac_sed_frag=`expr $ac_sed_frag + 1`
73915 ac_beg=$ac_end
73916 ac_end=`expr $ac_end + $ac_max_sed_lines`
73918 done
73919 if test -z "$ac_sed_cmds"; then
73920 ac_sed_cmds=cat
73922 fi # test -n "$CONFIG_FILES"
73924 _ACEOF
73925 cat >>$CONFIG_STATUS <<\_ACEOF
73926 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
73927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
73928 case $ac_file in
73929 - | *:- | *:-:* ) # input from stdin
73930 cat >$tmp/stdin
73931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73935 * ) ac_file_in=$ac_file.in ;;
73936 esac
73938 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
73939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
73940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73941 X"$ac_file" : 'X\(//\)[^/]' \| \
73942 X"$ac_file" : 'X\(//\)$' \| \
73943 X"$ac_file" : 'X\(/\)' \| \
73944 . : '\(.\)' 2>/dev/null ||
73945 echo X"$ac_file" |
73946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73948 /^X\(\/\/\)$/{ s//\1/; q; }
73949 /^X\(\/\).*/{ s//\1/; q; }
73950 s/.*/./; q'`
73951 { if $as_mkdir_p; then
73952 mkdir -p "$ac_dir"
73953 else
73954 as_dir="$ac_dir"
73955 as_dirs=
73956 while test ! -d "$as_dir"; do
73957 as_dirs="$as_dir $as_dirs"
73958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
73959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73960 X"$as_dir" : 'X\(//\)[^/]' \| \
73961 X"$as_dir" : 'X\(//\)$' \| \
73962 X"$as_dir" : 'X\(/\)' \| \
73963 . : '\(.\)' 2>/dev/null ||
73964 echo X"$as_dir" |
73965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73967 /^X\(\/\/\)$/{ s//\1/; q; }
73968 /^X\(\/\).*/{ s//\1/; q; }
73969 s/.*/./; q'`
73970 done
73971 test ! -n "$as_dirs" || mkdir $as_dirs
73972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
73973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
73974 { (exit 1); exit 1; }; }; }
73976 ac_builddir=.
73978 if test "$ac_dir" != .; then
73979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
73980 # A "../" for each directory in $ac_dir_suffix.
73981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
73982 else
73983 ac_dir_suffix= ac_top_builddir=
73986 case $srcdir in
73987 .) # No --srcdir option. We are building in place.
73988 ac_srcdir=.
73989 if test -z "$ac_top_builddir"; then
73990 ac_top_srcdir=.
73991 else
73992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
73993 fi ;;
73994 [\\/]* | ?:[\\/]* ) # Absolute path.
73995 ac_srcdir=$srcdir$ac_dir_suffix;
73996 ac_top_srcdir=$srcdir ;;
73997 *) # Relative path.
73998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
73999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74000 esac
74002 # Do not use `cd foo && pwd` to compute absolute paths, because
74003 # the directories may not exist.
74004 case `pwd` in
74005 .) ac_abs_builddir="$ac_dir";;
74007 case "$ac_dir" in
74008 .) ac_abs_builddir=`pwd`;;
74009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74011 esac;;
74012 esac
74013 case $ac_abs_builddir in
74014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74016 case ${ac_top_builddir}. in
74017 .) ac_abs_top_builddir=$ac_abs_builddir;;
74018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74020 esac;;
74021 esac
74022 case $ac_abs_builddir in
74023 .) ac_abs_srcdir=$ac_srcdir;;
74025 case $ac_srcdir in
74026 .) ac_abs_srcdir=$ac_abs_builddir;;
74027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74029 esac;;
74030 esac
74031 case $ac_abs_builddir in
74032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74034 case $ac_top_srcdir in
74035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74038 esac;;
74039 esac
74042 case $INSTALL in
74043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74044 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74045 esac
74047 if test x"$ac_file" != x-; then
74048 { echo "$as_me:$LINENO: creating $ac_file" >&5
74049 echo "$as_me: creating $ac_file" >&6;}
74050 rm -f "$ac_file"
74052 # Let's still pretend it is `configure' which instantiates (i.e., don't
74053 # use $as_me), people would be surprised to read:
74054 # /* config.h. Generated by config.status. */
74055 if test x"$ac_file" = x-; then
74056 configure_input=
74057 else
74058 configure_input="$ac_file. "
74060 configure_input=$configure_input"Generated from `echo $ac_file_in |
74061 sed 's,.*/,,'` by configure."
74063 # First look for the input files in the build tree, otherwise in the
74064 # src tree.
74065 ac_file_inputs=`IFS=:
74066 for f in $ac_file_in; do
74067 case $f in
74068 -) echo $tmp/stdin ;;
74069 [\\/$]*)
74070 # Absolute (can't be DOS-style, as IFS=:)
74071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74072 echo "$as_me: error: cannot find input file: $f" >&2;}
74073 { (exit 1); exit 1; }; }
74074 echo "$f";;
74075 *) # Relative
74076 if test -f "$f"; then
74077 # Build tree
74078 echo "$f"
74079 elif test -f "$srcdir/$f"; then
74080 # Source tree
74081 echo "$srcdir/$f"
74082 else
74083 # /dev/null tree
74084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74085 echo "$as_me: error: cannot find input file: $f" >&2;}
74086 { (exit 1); exit 1; }; }
74087 fi;;
74088 esac
74089 done` || { (exit 1); exit 1; }
74090 _ACEOF
74091 cat >>$CONFIG_STATUS <<_ACEOF
74092 sed "$ac_vpsub
74093 $extrasub
74094 _ACEOF
74095 cat >>$CONFIG_STATUS <<\_ACEOF
74097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74098 s,@configure_input@,$configure_input,;t t
74099 s,@srcdir@,$ac_srcdir,;t t
74100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74101 s,@top_srcdir@,$ac_top_srcdir,;t t
74102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74103 s,@builddir@,$ac_builddir,;t t
74104 s,@abs_builddir@,$ac_abs_builddir,;t t
74105 s,@top_builddir@,$ac_top_builddir,;t t
74106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74107 s,@INSTALL@,$ac_INSTALL,;t t
74108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74109 rm -f $tmp/stdin
74110 if test x"$ac_file" != x-; then
74111 mv $tmp/out $ac_file
74112 else
74113 cat $tmp/out
74114 rm -f $tmp/out
74117 # Run the commands associated with the file.
74118 case $ac_file in
74119 scripts/check_survey ) chmod +x scripts/check_survey ;;
74120 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74121 esac
74122 done
74123 _ACEOF
74124 cat >>$CONFIG_STATUS <<\_ACEOF
74127 # CONFIG_HEADER section.
74130 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74131 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74133 # ac_d sets the value in "#define NAME VALUE" lines.
74134 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
74135 ac_dB='[ ].*$,\1#\2'
74136 ac_dC=' '
74137 ac_dD=',;t'
74138 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74139 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
74140 ac_uB='$,\1#\2define\3'
74141 ac_uC=' '
74142 ac_uD=',;t'
74144 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74146 case $ac_file in
74147 - | *:- | *:-:* ) # input from stdin
74148 cat >$tmp/stdin
74149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74153 * ) ac_file_in=$ac_file.in ;;
74154 esac
74156 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74157 echo "$as_me: creating $ac_file" >&6;}
74159 # First look for the input files in the build tree, otherwise in the
74160 # src tree.
74161 ac_file_inputs=`IFS=:
74162 for f in $ac_file_in; do
74163 case $f in
74164 -) echo $tmp/stdin ;;
74165 [\\/$]*)
74166 # Absolute (can't be DOS-style, as IFS=:)
74167 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74168 echo "$as_me: error: cannot find input file: $f" >&2;}
74169 { (exit 1); exit 1; }; }
74170 # Do quote $f, to prevent DOS paths from being IFS'd.
74171 echo "$f";;
74172 *) # Relative
74173 if test -f "$f"; then
74174 # Build tree
74175 echo "$f"
74176 elif test -f "$srcdir/$f"; then
74177 # Source tree
74178 echo "$srcdir/$f"
74179 else
74180 # /dev/null tree
74181 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74182 echo "$as_me: error: cannot find input file: $f" >&2;}
74183 { (exit 1); exit 1; }; }
74184 fi;;
74185 esac
74186 done` || { (exit 1); exit 1; }
74187 # Remove the trailing spaces.
74188 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
74190 _ACEOF
74192 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74193 # `conftest.undefs', that substitutes the proper values into
74194 # config.h.in to produce config.h. The first handles `#define'
74195 # templates, and the second `#undef' templates.
74196 # And first: Protect against being on the right side of a sed subst in
74197 # config.status. Protect against being in an unquoted here document
74198 # in config.status.
74199 rm -f conftest.defines conftest.undefs
74200 # Using a here document instead of a string reduces the quoting nightmare.
74201 # Putting comments in sed scripts is not portable.
74203 # `end' is used to avoid that the second main sed command (meant for
74204 # 0-ary CPP macros) applies to n-ary macro definitions.
74205 # See the Autoconf documentation for `clear'.
74206 cat >confdef2sed.sed <<\_ACEOF
74207 s/[\\&,]/\\&/g
74208 s,[\\$`],\\&,g
74209 t clear
74210 : clear
74211 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74212 t end
74213 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74214 : end
74215 _ACEOF
74216 # If some macros were called several times there might be several times
74217 # the same #defines, which is useless. Nevertheless, we may not want to
74218 # sort them, since we want the *last* AC-DEFINE to be honored.
74219 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74220 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74221 rm -f confdef2sed.sed
74223 # This sed command replaces #undef with comments. This is necessary, for
74224 # example, in the case of _POSIX_SOURCE, which is predefined and required
74225 # on some systems where configure will not decide to define it.
74226 cat >>conftest.undefs <<\_ACEOF
74227 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74228 _ACEOF
74230 # Break up conftest.defines because some shells have a limit on the size
74231 # of here documents, and old seds have small limits too (100 cmds).
74232 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74233 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74234 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74235 echo ' :' >>$CONFIG_STATUS
74236 rm -f conftest.tail
74237 while grep . conftest.defines >/dev/null
74239 # Write a limited-size here document to $tmp/defines.sed.
74240 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74241 # Speed up: don't consider the non `#define' lines.
74242 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
74243 # Work around the forget-to-reset-the-flag bug.
74244 echo 't clr' >>$CONFIG_STATUS
74245 echo ': clr' >>$CONFIG_STATUS
74246 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74247 echo 'CEOF
74248 sed -f $tmp/defines.sed $tmp/in >$tmp/out
74249 rm -f $tmp/in
74250 mv $tmp/out $tmp/in
74251 ' >>$CONFIG_STATUS
74252 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74253 rm -f conftest.defines
74254 mv conftest.tail conftest.defines
74255 done
74256 rm -f conftest.defines
74257 echo ' fi # grep' >>$CONFIG_STATUS
74258 echo >>$CONFIG_STATUS
74260 # Break up conftest.undefs because some shells have a limit on the size
74261 # of here documents, and old seds have small limits too (100 cmds).
74262 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
74263 rm -f conftest.tail
74264 while grep . conftest.undefs >/dev/null
74266 # Write a limited-size here document to $tmp/undefs.sed.
74267 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74268 # Speed up: don't consider the non `#undef'
74269 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
74270 # Work around the forget-to-reset-the-flag bug.
74271 echo 't clr' >>$CONFIG_STATUS
74272 echo ': clr' >>$CONFIG_STATUS
74273 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74274 echo 'CEOF
74275 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74276 rm -f $tmp/in
74277 mv $tmp/out $tmp/in
74278 ' >>$CONFIG_STATUS
74279 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74280 rm -f conftest.undefs
74281 mv conftest.tail conftest.undefs
74282 done
74283 rm -f conftest.undefs
74285 cat >>$CONFIG_STATUS <<\_ACEOF
74286 # Let's still pretend it is `configure' which instantiates (i.e., don't
74287 # use $as_me), people would be surprised to read:
74288 # /* config.h. Generated by config.status. */
74289 if test x"$ac_file" = x-; then
74290 echo "/* Generated by configure. */" >$tmp/config.h
74291 else
74292 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
74294 cat $tmp/in >>$tmp/config.h
74295 rm -f $tmp/in
74296 if test x"$ac_file" != x-; then
74297 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74299 echo "$as_me: $ac_file is unchanged" >&6;}
74300 else
74301 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74303 X"$ac_file" : 'X\(//\)[^/]' \| \
74304 X"$ac_file" : 'X\(//\)$' \| \
74305 X"$ac_file" : 'X\(/\)' \| \
74306 . : '\(.\)' 2>/dev/null ||
74307 echo X"$ac_file" |
74308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74310 /^X\(\/\/\)$/{ s//\1/; q; }
74311 /^X\(\/\).*/{ s//\1/; q; }
74312 s/.*/./; q'`
74313 { if $as_mkdir_p; then
74314 mkdir -p "$ac_dir"
74315 else
74316 as_dir="$ac_dir"
74317 as_dirs=
74318 while test ! -d "$as_dir"; do
74319 as_dirs="$as_dir $as_dirs"
74320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74322 X"$as_dir" : 'X\(//\)[^/]' \| \
74323 X"$as_dir" : 'X\(//\)$' \| \
74324 X"$as_dir" : 'X\(/\)' \| \
74325 . : '\(.\)' 2>/dev/null ||
74326 echo X"$as_dir" |
74327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74329 /^X\(\/\/\)$/{ s//\1/; q; }
74330 /^X\(\/\).*/{ s//\1/; q; }
74331 s/.*/./; q'`
74332 done
74333 test ! -n "$as_dirs" || mkdir $as_dirs
74334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74336 { (exit 1); exit 1; }; }; }
74338 rm -f $ac_file
74339 mv $tmp/config.h $ac_file
74341 else
74342 cat $tmp/config.h
74343 rm -f $tmp/config.h
74345 # Compute $ac_file's index in $config_headers.
74346 _am_stamp_count=1
74347 for _am_header in $config_headers :; do
74348 case $_am_header in
74349 $ac_file | $ac_file:* )
74350 break ;;
74352 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74353 esac
74354 done
74355 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74356 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74357 X$ac_file : 'X\(//\)[^/]' \| \
74358 X$ac_file : 'X\(//\)$' \| \
74359 X$ac_file : 'X\(/\)' \| \
74360 . : '\(.\)' 2>/dev/null ||
74361 echo X$ac_file |
74362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74364 /^X\(\/\/\)$/{ s//\1/; q; }
74365 /^X\(\/\).*/{ s//\1/; q; }
74366 s/.*/./; q'`/stamp-h$_am_stamp_count
74367 done
74368 _ACEOF
74369 cat >>$CONFIG_STATUS <<\_ACEOF
74372 # CONFIG_COMMANDS section.
74374 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74375 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74376 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74377 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74378 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74379 X"$ac_dest" : 'X\(//\)[^/]' \| \
74380 X"$ac_dest" : 'X\(//\)$' \| \
74381 X"$ac_dest" : 'X\(/\)' \| \
74382 . : '\(.\)' 2>/dev/null ||
74383 echo X"$ac_dest" |
74384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74386 /^X\(\/\/\)$/{ s//\1/; q; }
74387 /^X\(\/\).*/{ s//\1/; q; }
74388 s/.*/./; q'`
74389 { if $as_mkdir_p; then
74390 mkdir -p "$ac_dir"
74391 else
74392 as_dir="$ac_dir"
74393 as_dirs=
74394 while test ! -d "$as_dir"; do
74395 as_dirs="$as_dir $as_dirs"
74396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74398 X"$as_dir" : 'X\(//\)[^/]' \| \
74399 X"$as_dir" : 'X\(//\)$' \| \
74400 X"$as_dir" : 'X\(/\)' \| \
74401 . : '\(.\)' 2>/dev/null ||
74402 echo X"$as_dir" |
74403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74405 /^X\(\/\/\)$/{ s//\1/; q; }
74406 /^X\(\/\).*/{ s//\1/; q; }
74407 s/.*/./; q'`
74408 done
74409 test ! -n "$as_dirs" || mkdir $as_dirs
74410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74411 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74412 { (exit 1); exit 1; }; }; }
74414 ac_builddir=.
74416 if test "$ac_dir" != .; then
74417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74418 # A "../" for each directory in $ac_dir_suffix.
74419 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74420 else
74421 ac_dir_suffix= ac_top_builddir=
74424 case $srcdir in
74425 .) # No --srcdir option. We are building in place.
74426 ac_srcdir=.
74427 if test -z "$ac_top_builddir"; then
74428 ac_top_srcdir=.
74429 else
74430 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74431 fi ;;
74432 [\\/]* | ?:[\\/]* ) # Absolute path.
74433 ac_srcdir=$srcdir$ac_dir_suffix;
74434 ac_top_srcdir=$srcdir ;;
74435 *) # Relative path.
74436 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74437 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74438 esac
74440 # Do not use `cd foo && pwd` to compute absolute paths, because
74441 # the directories may not exist.
74442 case `pwd` in
74443 .) ac_abs_builddir="$ac_dir";;
74445 case "$ac_dir" in
74446 .) ac_abs_builddir=`pwd`;;
74447 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74448 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74449 esac;;
74450 esac
74451 case $ac_abs_builddir in
74452 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74454 case ${ac_top_builddir}. in
74455 .) ac_abs_top_builddir=$ac_abs_builddir;;
74456 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74457 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74458 esac;;
74459 esac
74460 case $ac_abs_builddir in
74461 .) ac_abs_srcdir=$ac_srcdir;;
74463 case $ac_srcdir in
74464 .) ac_abs_srcdir=$ac_abs_builddir;;
74465 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74466 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74467 esac;;
74468 esac
74469 case $ac_abs_builddir in
74470 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74472 case $ac_top_srcdir in
74473 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74474 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74475 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74476 esac;;
74477 esac
74480 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74481 echo "$as_me: executing $ac_dest commands" >&6;}
74482 case $ac_dest in
74483 default-1 )
74484 # Only add multilib support code if we just rebuilt the top-level
74485 # Makefile.
74486 case " $CONFIG_FILES " in
74487 *" Makefile "*)
74488 ac_file=Makefile . ${multi_basedir}/config-ml.in
74490 esac ;;
74491 default ) if test -n "$CONFIG_FILES"; then
74492 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74493 # that multilib installs will end up installed in the correct place.
74494 # The testsuite needs it for multilib-aware ABI baseline files.
74495 # To work around this not being passed down from config-ml.in ->
74496 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74497 # append it here. Only modify Makefiles that have just been created.
74499 # Also, get rid of this simulated-VPATH thing that automake does.
74500 cat > vpsed << \_EOF
74501 s!`test -f '$<' || echo '$(srcdir)/'`!!
74502 _EOF
74503 for i in $SUBDIRS; do
74504 case $CONFIG_FILES in
74505 *${i}/Makefile*)
74506 #echo "Adding MULTISUBDIR to $i/Makefile"
74507 sed -f vpsed $i/Makefile > tmp
74508 grep '^MULTISUBDIR =' Makefile >> tmp
74509 mv tmp $i/Makefile
74511 esac
74512 done
74513 rm vpsed
74515 (cd include && ${MAKE-make})
74517 esac
74518 done
74519 _ACEOF
74521 cat >>$CONFIG_STATUS <<\_ACEOF
74523 { (exit 0); exit 0; }
74524 _ACEOF
74525 chmod +x $CONFIG_STATUS
74526 ac_clean_files=$ac_clean_files_save
74529 # configure is writing to config.log, and then calls config.status.
74530 # config.status does its own redirection, appending to config.log.
74531 # Unfortunately, on DOS this fails, as config.log is still kept open
74532 # by configure, so config.status won't be able to write to it; its
74533 # output is simply discarded. So we exec the FD to /dev/null,
74534 # effectively closing config.log, so it can be properly (re)opened and
74535 # appended to by config.status. When coming back to configure, we
74536 # need to make the FD available again.
74537 if test "$no_create" != yes; then
74538 ac_cs_success=:
74539 ac_config_status_args=
74540 test "$silent" = yes &&
74541 ac_config_status_args="$ac_config_status_args --quiet"
74542 exec 5>/dev/null
74543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74544 exec 5>>config.log
74545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74546 # would make configure fail if this is the last instruction.
74547 $ac_cs_success || { (exit 1); exit 1; }