* ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
[official-gcc.git] / libstdc++-v3 / configure
blob0b2c97cdcc43e986252bdec2ee749415461090e3
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 C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_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-cheaders=KIND construct "C" headers for g++
868 [default=$c_model]
869 --enable-c-mbchar enable multibyte (wide) characters
870 [default=yes]
871 --enable-c99 turns on ISO/IEC 9899:1999 support
872 [default=yes]
873 --enable-long-long enables I/O support for 'long long'
874 [default=yes]
875 --enable-concept-checks use Boost-derived template checks [default=no]
876 --enable-libstdcxx-debug-flags=FLAGS
877 pass compiler FLAGS when building debug library
878 [default="-g3 -O0"]
879 --enable-libstdcxx-debug
880 build extra debug library [default=no]
881 --enable-cxx-flags=FLAGS
882 pass compiler FLAGS when building library
883 [default=]
884 --enable-symvers=STYLE enables symbol versioning of the shared library
885 [default=yes]
886 --enable-version-specific-runtime-libs
887 Specify that runtime libraries should be installed
888 in a compiler-specific directory
890 Optional Packages:
891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
893 --with-target-subdir=SUBDIR
894 configuring in a subdirectory
895 --with-cross-host=HOST configuring with a cross compiler
896 --with-newlib assume newlib as a system C library
897 --with-gnu-ld assume the C compiler uses GNU ld default=no
898 --with-pic try to use only PIC/non-PIC objects default=use both
899 --with-gxx-include-dir=DIR
900 installation directory for include files
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 package-unused configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by package-unused $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363 ac_config_headers="$ac_config_headers config.h"
1366 # This works around the fact that libtool configuration may change LD
1367 # for this particular configuration, but some shells, instead of
1368 # keeping the changes in LD private, export them just because LD is
1369 # exported. Only used at the end of this file.
1370 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1372 # For libtool versioning info, format is CURRENT:REVISION:AGE
1373 libtool_VERSION=6:0:0
1376 # Find the rest of the source tree framework.
1378 # Sets up multi_basedir, which is srcdir/.. plus the usual
1379 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1380 # Default to --enable-multilib
1381 # Check whether --enable-multilib or --disable-multilib was given.
1382 if test "${enable_multilib+set}" = set; then
1383 enableval="$enable_multilib"
1384 case "$enableval" in
1385 yes) multilib=yes ;;
1386 no) multilib=no ;;
1387 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1388 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1389 { (exit 1); exit 1; }; } ;;
1390 esac
1391 else
1392 multilib=yes
1395 # We may get other options which we leave undocumented:
1396 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1397 # See config-ml.in if you want the gory details.
1399 if test "$srcdir" = "."; then
1400 if test "$with_target_subdir" != "."; then
1401 multi_basedir="$srcdir/$with_multisrctop../.."
1402 else
1403 multi_basedir="$srcdir/$with_multisrctop.."
1405 else
1406 multi_basedir="$srcdir/.."
1410 ac_config_commands="$ac_config_commands default-1"
1413 # The generated code is exactly the same, except that automake's looks in
1414 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1415 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1416 # know what they are or what the other differences might be (and they keep
1417 # changing anyhow).
1419 # Looking in multi_basedir seems smarter, so actually execute that branch.
1420 if false; then
1421 # this is for automake
1422 ac_aux_dir=
1423 for ac_dir in .. $srcdir/..; do
1424 if test -f $ac_dir/install-sh; then
1425 ac_aux_dir=$ac_dir
1426 ac_install_sh="$ac_aux_dir/install-sh -c"
1427 break
1428 elif test -f $ac_dir/install.sh; then
1429 ac_aux_dir=$ac_dir
1430 ac_install_sh="$ac_aux_dir/install.sh -c"
1431 break
1432 elif test -f $ac_dir/shtool; then
1433 ac_aux_dir=$ac_dir
1434 ac_install_sh="$ac_aux_dir/shtool install -c"
1435 break
1437 done
1438 if test -z "$ac_aux_dir"; then
1439 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1440 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1441 { (exit 1); exit 1; }; }
1443 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1444 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1445 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1447 else
1448 # this is for autoconf
1449 ac_aux_dir=
1450 for ac_dir in ${multi_basedir}; do
1451 if test -f $ac_dir/install-sh; then
1452 ac_aux_dir=$ac_dir
1453 ac_install_sh="$ac_aux_dir/install-sh -c"
1454 break
1455 elif test -f $ac_dir/install.sh; then
1456 ac_aux_dir=$ac_dir
1457 ac_install_sh="$ac_aux_dir/install.sh -c"
1458 break
1459 elif test -f $ac_dir/shtool; then
1460 ac_aux_dir=$ac_dir
1461 ac_install_sh="$ac_aux_dir/shtool install -c"
1462 break
1464 done
1465 if test -z "$ac_aux_dir"; then
1466 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1467 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1468 { (exit 1); exit 1; }; }
1470 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1471 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1472 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1478 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1480 # You will slowly go insane if you do not grok the following fact: when
1481 # building v3 as part of the compiler, the top-level /target/ becomes the
1482 # library's /host/. configure then causes --target to default to --host,
1483 # exactly like any other package using autoconf. Therefore, 'target' and
1484 # 'host' will always be the same. This makes sense both for native and
1485 # cross compilers, just think about it for a little while. :-)
1487 # Also, if v3 is being configured as part of a cross compiler, the top-level
1488 # configure script will pass the "real" host as $with_cross_host.
1490 # Do not delete or change the following two lines. For why, see
1491 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1492 # Make sure we can run config.sub.
1493 $ac_config_sub sun4 >/dev/null 2>&1 ||
1494 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1495 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1496 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: checking build system type" >&5
1499 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1500 if test "${ac_cv_build+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 ac_cv_build_alias=$build_alias
1504 test -z "$ac_cv_build_alias" &&
1505 ac_cv_build_alias=`$ac_config_guess`
1506 test -z "$ac_cv_build_alias" &&
1507 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1508 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1509 { (exit 1); exit 1; }; }
1510 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1517 echo "${ECHO_T}$ac_cv_build" >&6
1518 build=$ac_cv_build
1519 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:$LINENO: checking host system type" >&5
1525 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1526 if test "${ac_cv_host+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_host_alias=$host_alias
1530 test -z "$ac_cv_host_alias" &&
1531 ac_cv_host_alias=$ac_cv_build_alias
1532 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1539 echo "${ECHO_T}$ac_cv_host" >&6
1540 host=$ac_cv_host
1541 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking target system type" >&5
1547 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1548 if test "${ac_cv_target+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 ac_cv_target_alias=$target_alias
1552 test "x$ac_cv_target_alias" = "x" &&
1553 ac_cv_target_alias=$ac_cv_host_alias
1554 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1561 echo "${ECHO_T}$ac_cv_target" >&6
1562 target=$ac_cv_target
1563 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 test -n "$target_alias" &&
1571 test "$program_prefix$program_suffix$program_transform_name" = \
1572 NONENONEs,x,x, &&
1573 program_prefix=${target_alias}-
1574 target_alias=${target_alias-$host_alias}
1576 # Handy for debugging:
1577 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1579 if test "$build" != "$host"; then
1580 # We are being configured with some form of cross compiler.
1581 GLIBCXX_IS_NATIVE=false
1583 else
1584 GLIBCXX_IS_NATIVE=true
1587 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1588 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1589 # 1.x: minimum required version
1590 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1591 # of other PACKAGE_* variables will, however, and there's nothing
1592 # we can do about that; they come from AC_INIT).
1593 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1594 # file in the top srcdir, etc, etc), so stop complaining.
1595 # no-dependencies: turns off auto dependency generation (just for now)
1596 # -Wall: turns on all automake warnings...
1597 # -Wno-portability: ...except this one, since GNU make is now required.
1598 am__api_version="1.8"
1599 # Find a good install program. We prefer a C program (faster),
1600 # so one script is as good as another. But avoid the broken or
1601 # incompatible versions:
1602 # SysV /etc/install, /usr/sbin/install
1603 # SunOS /usr/etc/install
1604 # IRIX /sbin/install
1605 # AIX /bin/install
1606 # AmigaOS /C/install, which installs bootblocks on floppy discs
1607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1610 # OS/2's system install, which has a completely different semantic
1611 # ./install, which can be erroneously created by make from ./install.sh.
1612 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1614 if test -z "$INSTALL"; then
1615 if test "${ac_cv_path_install+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 # Account for people who put trailing slashes in PATH elements.
1624 case $as_dir/ in
1625 ./ | .// | /cC/* | \
1626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1628 /usr/ucb/* ) ;;
1630 # OSF1 and SCO ODT 3.0 have their own names for install.
1631 # Don't use installbsd from OSF since it installs stuff as root
1632 # by default.
1633 for ac_prog in ginstall scoinst install; do
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1636 if test $ac_prog = install &&
1637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1638 # AIX install. It has an incompatible calling convention.
1640 elif test $ac_prog = install &&
1641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1642 # program-specific install script used by HP pwplus--don't use.
1644 else
1645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1646 break 3
1649 done
1650 done
1652 esac
1653 done
1657 if test "${ac_cv_path_install+set}" = set; then
1658 INSTALL=$ac_cv_path_install
1659 else
1660 # As a last resort, use the slow shell script. We don't cache a
1661 # path for INSTALL within a source directory, because that will
1662 # break other packages using the cache if that directory is
1663 # removed, or if the path is relative.
1664 INSTALL=$ac_install_sh
1667 echo "$as_me:$LINENO: result: $INSTALL" >&5
1668 echo "${ECHO_T}$INSTALL" >&6
1670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1671 # It thinks the first close brace ends the variable substitution.
1672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1678 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1679 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1680 # Just in case
1681 sleep 1
1682 echo timestamp > conftest.file
1683 # Do `set' in a subshell so we don't clobber the current shell's
1684 # arguments. Must try -L first in case configure is actually a
1685 # symlink; some systems play weird games with the mod time of symlinks
1686 # (eg FreeBSD returns the mod time of the symlink's containing
1687 # directory).
1688 if (
1689 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1690 if test "$*" = "X"; then
1691 # -L didn't work.
1692 set X `ls -t $srcdir/configure conftest.file`
1694 rm -f conftest.file
1695 if test "$*" != "X $srcdir/configure conftest.file" \
1696 && test "$*" != "X conftest.file $srcdir/configure"; then
1698 # If neither matched, then we have a broken ls. This can happen
1699 # if, for instance, CONFIG_SHELL is bash and it inherits a
1700 # broken ls alias from the environment. This has actually
1701 # happened. Such a system could not be considered "sane".
1702 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1703 alias in your environment" >&5
1704 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1705 alias in your environment" >&2;}
1706 { (exit 1); exit 1; }; }
1709 test "$2" = conftest.file
1711 then
1712 # Ok.
1714 else
1715 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1716 Check your system clock" >&5
1717 echo "$as_me: error: newly created file is older than distributed files!
1718 Check your system clock" >&2;}
1719 { (exit 1); exit 1; }; }
1721 echo "$as_me:$LINENO: result: yes" >&5
1722 echo "${ECHO_T}yes" >&6
1723 test "$program_prefix" != NONE &&
1724 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1725 # Use a double $ so make ignores it.
1726 test "$program_suffix" != NONE &&
1727 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1728 # Double any \ or $. echo might interpret backslashes.
1729 # By default was `s,x,x', remove it if useless.
1730 cat <<\_ACEOF >conftest.sed
1731 s/[\\$]/&&/g;s/;s,x,x,$//
1732 _ACEOF
1733 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1734 rm conftest.sed
1736 # expand $ac_aux_dir to an absolute path
1737 am_aux_dir=`cd $ac_aux_dir && pwd`
1739 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1740 # Use eval to expand $SHELL
1741 if eval "$MISSING --run true"; then
1742 am_missing_run="$MISSING --run "
1743 else
1744 am_missing_run=
1745 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1746 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1749 if mkdir -p -- . 2>/dev/null; then
1750 # Keeping the `.' argument allows $(mkdir_p) to be used without
1751 # argument. Indeed, we sometimes output rules like
1752 # $(mkdir_p) $(somedir)
1753 # where $(somedir) is conditionally defined.
1754 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1755 # expensive solution, as it forces Make to start a sub-shell.)
1756 mkdir_p='mkdir -p -- .'
1757 else
1758 # On NextStep and OpenStep, the `mkdir' command does not
1759 # recognize any option. It will interpret all options as
1760 # directories to create, and then abort because `.' already
1761 # exists.
1762 for d in ./-p ./--;
1764 test -d $d && rmdir $d
1765 done
1766 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1767 if test -f "$ac_aux_dir/mkinstalldirs"; then
1768 mkdir_p='$(mkinstalldirs)'
1769 else
1770 mkdir_p='$(install_sh) -d'
1774 for ac_prog in gawk mawk nawk awk
1776 # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_AWK+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 if test -n "$AWK"; then
1784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_AWK="$ac_prog"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1797 done
1798 done
1802 AWK=$ac_cv_prog_AWK
1803 if test -n "$AWK"; then
1804 echo "$as_me:$LINENO: result: $AWK" >&5
1805 echo "${ECHO_T}$AWK" >&6
1806 else
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1811 test -n "$AWK" && break
1812 done
1814 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1815 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1816 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1817 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 cat >conftest.make <<\_ACEOF
1821 all:
1822 @echo 'ac_maketemp="$(MAKE)"'
1823 _ACEOF
1824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1825 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1826 if test -n "$ac_maketemp"; then
1827 eval ac_cv_prog_make_${ac_make}_set=yes
1828 else
1829 eval ac_cv_prog_make_${ac_make}_set=no
1831 rm -f conftest.make
1833 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1834 echo "$as_me:$LINENO: result: yes" >&5
1835 echo "${ECHO_T}yes" >&6
1836 SET_MAKE=
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 SET_MAKE="MAKE=${MAKE-make}"
1843 rm -rf .tst 2>/dev/null
1844 mkdir .tst 2>/dev/null
1845 if test -d .tst; then
1846 am__leading_dot=.
1847 else
1848 am__leading_dot=_
1850 rmdir .tst 2>/dev/null
1852 # test to see if srcdir already configured
1853 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1854 test -f $srcdir/config.status; then
1855 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1856 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1857 { (exit 1); exit 1; }; }
1860 # test whether we have cygpath
1861 if test -z "$CYGPATH_W"; then
1862 if (cygpath --version) >/dev/null 2>/dev/null; then
1863 CYGPATH_W='cygpath -w'
1864 else
1865 CYGPATH_W=echo
1870 # Define the identity of the package.
1871 PACKAGE='libstdc++'
1872 VERSION='version-unused'
1875 # Some tools Automake needs.
1877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1892 AMTAR=${AMTAR-"${am_missing_run}tar"}
1894 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1896 # Installed binaries are usually stripped using `strip' when the user
1897 # run `make install-strip'. However `strip' might not be the right
1898 # tool to use in cross-compilation environments, therefore Automake
1899 # will honor the `STRIP' environment variable to overrule this program.
1900 if test "$cross_compiling" != no; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$STRIP"; then
1910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 STRIP=$ac_cv_prog_STRIP
1929 if test -n "$STRIP"; then
1930 echo "$as_me:$LINENO: result: $STRIP" >&5
1931 echo "${ECHO_T}$STRIP" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_STRIP"; then
1939 ac_ct_STRIP=$STRIP
1940 # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$ac_ct_STRIP"; then
1948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_STRIP="strip"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1968 if test -n "$ac_ct_STRIP"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1970 echo "${ECHO_T}$ac_ct_STRIP" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1976 STRIP=$ac_ct_STRIP
1977 else
1978 STRIP="$ac_cv_prog_STRIP"
1982 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1984 # We need awk for the "check" target. The system "awk" is bad on
1985 # some platforms.
1990 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1991 # up critical shell variables.
1993 # Keep these sync'd with the list in Makefile.am. The first provides an
1994 # expandable list at autoconf time; the second provides an expandable list
1995 # (i.e., shell variable) at configure time.
1997 SUBDIRS='include libmath libsupc++ src po testsuite'
1999 # These need to be absolute paths, yet at the same time need to
2000 # canonicalize only relative paths, because then amd will not unmount
2001 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2002 glibcxx_builddir=`${PWDCMD-pwd}`
2003 case $srcdir in
2004 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2005 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2006 esac
2007 toplevel_srcdir=${glibcxx_srcdir}/..
2012 # We use these options to decide which functions to include. They are
2013 # set from the top level.
2015 # Check whether --with-target-subdir or --without-target-subdir was given.
2016 if test "${with_target_subdir+set}" = set; then
2017 withval="$with_target_subdir"
2022 # Check whether --with-cross-host or --without-cross-host was given.
2023 if test "${with_cross_host+set}" = set; then
2024 withval="$with_cross_host"
2029 # Check whether --with-newlib or --without-newlib was given.
2030 if test "${with_newlib+set}" = set; then
2031 withval="$with_newlib"
2035 # We're almost certainly being configured before anything else which uses
2036 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2037 # we not cache the value of CXX that we "discover" here, because it's set
2038 # to something unique for us and libjava. Other target libraries need to
2039 # find CXX for themselves. We yank the rug out from under the normal AC_*
2040 # process by sneakily renaming the cache variable. This also lets us debug
2041 # the value of "our" CXX in postmortems.
2043 # We must also force CXX to /not/ be a precious variable, otherwise the
2044 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2045 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2046 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2047 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2049 # -fno-builtin must be present here so that a non-conflicting form of
2050 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2055 save_CXXFLAGS="$CXXFLAGS"
2056 CXXFLAGS="$CXXFLAGS -fno-builtin"
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 if test -n "$ac_tool_prefix"; then
2063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2089 CC=$ac_cv_prog_CC
2090 if test -n "$CC"; then
2091 echo "$as_me:$LINENO: result: $CC" >&5
2092 echo "${ECHO_T}$CC" >&6
2093 else
2094 echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6
2099 if test -z "$ac_cv_prog_CC"; then
2100 ac_ct_CC=$CC
2101 # Extract the first word of "gcc", so it can be a program name with args.
2102 set dummy gcc; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC="gcc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 CC=$ac_ct_CC
2137 else
2138 CC="$ac_cv_prog_CC"
2141 if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then
2143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2144 set dummy ${ac_tool_prefix}cc; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 ac_cv_prog_CC="${ac_tool_prefix}cc"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 break 2
2164 done
2165 done
2169 CC=$ac_cv_prog_CC
2170 if test -n "$CC"; then
2171 echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6
2173 else
2174 echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2179 if test -z "$ac_cv_prog_CC"; then
2180 ac_ct_CC=$CC
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198 ac_cv_prog_ac_ct_CC="cc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2202 done
2203 done
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6
2211 else
2212 echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6
2216 CC=$ac_ct_CC
2217 else
2218 CC="$ac_cv_prog_CC"
2222 if test -z "$CC"; then
2223 # Extract the first word of "cc", so it can be a program name with args.
2224 set dummy cc; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 ac_prog_rejected=no
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2242 ac_prog_rejected=yes
2243 continue
2245 ac_cv_prog_CC="cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2249 done
2250 done
2252 if test $ac_prog_rejected = yes; then
2253 # We found a bogon in the path, so make sure we never use it.
2254 set dummy $ac_cv_prog_CC
2255 shift
2256 if test $# != 0; then
2257 # We chose a different compiler from the bogus one.
2258 # However, it has the same basename, so the bogon will be chosen
2259 # first if we set CC to just the basename; use the full file name.
2260 shift
2261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6
2270 else
2271 echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 for ac_prog in cl
2280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2282 echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$CC"; then
2288 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308 echo "$as_me:$LINENO: result: $CC" >&5
2309 echo "${ECHO_T}$CC" >&6
2310 else
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2315 test -n "$CC" && break
2316 done
2318 if test -z "$CC"; then
2319 ac_ct_CC=$CC
2320 for ac_prog in cl
2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2
2324 echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$ac_ct_CC"; then
2330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2339 ac_cv_prog_ac_ct_CC="$ac_prog"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349 if test -n "$ac_ct_CC"; then
2350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351 echo "${ECHO_T}$ac_ct_CC" >&6
2352 else
2353 echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6
2357 test -n "$ac_ct_CC" && break
2358 done
2360 CC=$ac_ct_CC
2366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
2372 # Provide some information about the compiler.
2373 echo "$as_me:$LINENO:" \
2374 "checking for C compiler version" >&5
2375 ac_compiler=`set X $ac_compile; echo $2`
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2377 (eval $ac_compiler --version </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2382 (eval $ac_compiler -v </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2387 (eval $ac_compiler -V </dev/null >&5) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2392 cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h. */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2400 main ()
2404 return 0;
2406 _ACEOF
2407 # FIXME: Cleanup?
2408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2409 (eval $ac_link) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 gcc_no_link=no
2414 else
2415 gcc_no_link=yes
2418 if test x$gcc_no_link = xyes; then
2419 # Setting cross_compile will disable run tests; it will
2420 # also disable AC_CHECK_FILE but that's generally
2421 # correct if we can't link.
2422 cross_compiling=yes
2423 EXEEXT=
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 ac_clean_files_save=$ac_clean_files
2441 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2442 # Try to create an executable without -o first, disregard a.out.
2443 # It will help us diagnose broken compilers, and finding out an intuition
2444 # of exeext.
2445 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2446 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2447 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2449 (eval $ac_link_default) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # Find the output, starting from the most likely. This scheme is
2454 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # resort.
2457 # Be careful to initialize this variable, since it used to be cached.
2458 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2459 ac_cv_exeext=
2460 # b.out is created by i960 compilers.
2461 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2463 test -f "$ac_file" || continue
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2467 conftest.$ac_ext )
2468 # This is the source file.
2470 [ab].out )
2471 # We found the default executable, but exeext='' is most
2472 # certainly right.
2473 break;;
2474 *.* )
2475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 # FIXME: I believe we export ac_cv_exeext for Libtool,
2477 # but it would be cool to find out if it's true. Does anybody
2478 # maintain Libtool? --akim.
2479 export ac_cv_exeext
2480 break;;
2482 break;;
2483 esac
2484 done
2485 else
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: C compiler cannot create executables
2492 See \`config.log' for more details." >&2;}
2493 { (exit 77); exit 77; }; }
2496 ac_exeext=$ac_cv_exeext
2497 echo "$as_me:$LINENO: result: $ac_file" >&5
2498 echo "${ECHO_T}$ac_file" >&6
2500 # Check the compiler produces executables we can run. If not, either
2501 # the compiler is broken, or we cross compile.
2502 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2503 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505 # If not cross compiling, check that we can run a simple program.
2506 if test "$cross_compiling" != yes; then
2507 if { ac_try='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 cross_compiling=no
2514 else
2515 if test "$cross_compiling" = maybe; then
2516 cross_compiling=yes
2517 else
2518 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2519 If you meant to cross compile, use \`--host'.
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2528 echo "$as_me:$LINENO: result: yes" >&5
2529 echo "${ECHO_T}yes" >&6
2531 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2532 ac_clean_files=$ac_clean_files_save
2533 # Check the compiler produces executables we can run. If not, either
2534 # the compiler is broken, or we cross compile.
2535 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2536 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2537 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2538 echo "${ECHO_T}$cross_compiling" >&6
2540 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2541 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543 (eval $ac_link) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; then
2547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2548 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2549 # work properly (i.e., refer to `conftest.exe'), while it won't with
2550 # `rm'.
2551 for ac_file in conftest.exe conftest conftest.*; do
2552 test -f "$ac_file" || continue
2553 case $ac_file in
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556 export ac_cv_exeext
2557 break;;
2558 * ) break;;
2559 esac
2560 done
2561 else
2562 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2569 rm -f conftest$ac_cv_exeext
2570 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2571 echo "${ECHO_T}$ac_cv_exeext" >&6
2573 rm -f conftest.$ac_ext
2574 EXEEXT=$ac_cv_exeext
2575 ac_exeext=$EXEEXT
2577 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2578 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2579 if test "${ac_cv_objext+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2590 main ()
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.o conftest.obj
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609 done
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624 echo "${ECHO_T}$ac_cv_objext" >&6
2625 OBJEXT=$ac_cv_objext
2626 ac_objext=$OBJEXT
2627 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2642 #ifndef __GNUC__
2643 choke me
2644 #endif
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_compiler_gnu=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_compiler_gnu=no
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2683 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2684 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2685 GCC=`test $ac_compiler_gnu = yes && echo yes`
2686 ac_test_CFLAGS=${CFLAGS+set}
2687 ac_save_CFLAGS=$CFLAGS
2688 CFLAGS="-g"
2689 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2690 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2691 if test "${ac_cv_prog_cc_g+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2702 main ()
2706 return 0;
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_prog_cc_g=yes
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 ac_cv_prog_cc_g=no
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2741 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2742 if test "$ac_test_CFLAGS" = set; then
2743 CFLAGS=$ac_save_CFLAGS
2744 elif test $ac_cv_prog_cc_g = yes; then
2745 if test "$GCC" = yes; then
2746 CFLAGS="-g -O2"
2747 else
2748 CFLAGS="-g"
2750 else
2751 if test "$GCC" = yes; then
2752 CFLAGS="-O2"
2753 else
2754 CFLAGS=
2757 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2758 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 ac_cv_prog_cc_stdc=no
2763 ac_save_CC=$CC
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 #include <stdarg.h>
2771 #include <stdio.h>
2772 #include <sys/types.h>
2773 #include <sys/stat.h>
2774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2775 struct buf { int x; };
2776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2777 static char *e (p, i)
2778 char **p;
2779 int i;
2781 return p[i];
2783 static char *f (char * (*g) (char **, int), char **p, ...)
2785 char *s;
2786 va_list v;
2787 va_start (v,p);
2788 s = g (p, va_arg (v,int));
2789 va_end (v);
2790 return s;
2793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2794 function prototypes and stuff, but not '\xHH' hex character constants.
2795 These don't provoke an error unfortunately, instead are silently treated
2796 as 'x'. The following induces an error, until -std1 is added to get
2797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2798 array size at least. It's necessary to write '\x00'==0 to get something
2799 that's true only with -std1. */
2800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2802 int test (int i, double x);
2803 struct s1 {int (*f) (int a);};
2804 struct s2 {int (*f) (double a);};
2805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2806 int argc;
2807 char **argv;
2809 main ()
2811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2813 return 0;
2815 _ACEOF
2816 # Don't try gcc -ansi; that turns off useful extensions and
2817 # breaks some systems' header files.
2818 # AIX -qlanglvl=ansi
2819 # Ultrix and OSF/1 -std1
2820 # HP-UX 10.20 and later -Ae
2821 # HP-UX older versions -Aa -D_HPUX_SOURCE
2822 # SVR4 -Xc -D__EXTENSIONS__
2823 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2825 CC="$ac_save_CC $ac_arg"
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 ac_cv_prog_cc_stdc=$ac_arg
2849 break
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.err conftest.$ac_objext
2856 done
2857 rm -f conftest.$ac_ext conftest.$ac_objext
2858 CC=$ac_save_CC
2862 case "x$ac_cv_prog_cc_stdc" in
2863 x|xno)
2864 echo "$as_me:$LINENO: result: none needed" >&5
2865 echo "${ECHO_T}none needed" >&6 ;;
2867 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2868 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2869 CC="$CC $ac_cv_prog_cc_stdc" ;;
2870 esac
2872 # Some people use a C++ compiler to compile C. Since we use `exit',
2873 # in C++ we need to declare it. In case someone uses the same compiler
2874 # for both compiling C and C++ we need to have the C++ compiler decide
2875 # the declaration of exit, since it's the most demanding environment.
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #ifndef __cplusplus
2878 choke me
2879 #endif
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_c_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 for ac_declaration in \
2904 '' \
2905 'extern "C" void std::exit (int) throw (); using std::exit;' \
2906 'extern "C" void std::exit (int); using std::exit;' \
2907 'extern "C" void exit (int) throw ();' \
2908 'extern "C" void exit (int);' \
2909 'void exit (int);'
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 $ac_declaration
2918 #include <stdlib.h>
2920 main ()
2922 exit (42);
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 continue
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 $ac_declaration
2965 main ()
2967 exit (42);
2969 return 0;
2971 _ACEOF
2972 rm -f conftest.$ac_objext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag"
2982 || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 break
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001 done
3002 rm -f conftest*
3003 if test -n "$ac_declaration"; then
3004 echo '#ifdef __cplusplus' >>confdefs.h
3005 echo $ac_declaration >>confdefs.h
3006 echo '#endif' >>confdefs.h
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 ac_ext=cc
3022 ac_cpp='$CXXCPP $CPPFLAGS'
3023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 if test -n "$CXX"; then
3037 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3055 CXX=$glibcxx_cv_prog_CXX
3056 if test -n "$CXX"; then
3057 echo "$as_me:$LINENO: result: $CXX" >&5
3058 echo "${ECHO_T}$CXX" >&6
3059 else
3060 echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3064 test -n "$CXX" && break
3065 done
3067 if test -z "$CXX"; then
3068 ac_ct_CXX=$CXX
3069 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$ac_ct_CXX"; then
3079 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CXX="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3097 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3098 if test -n "$ac_ct_CXX"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3100 echo "${ECHO_T}$ac_ct_CXX" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3106 test -n "$ac_ct_CXX" && break
3107 done
3108 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3110 CXX=$ac_ct_CXX
3114 # Provide some information about the compiler.
3115 echo "$as_me:$LINENO:" \
3116 "checking for C++ compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3119 (eval $ac_compiler --version </dev/null >&5) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }
3123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3124 (eval $ac_compiler -v </dev/null >&5) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3129 (eval $ac_compiler -V </dev/null >&5) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3134 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3135 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3136 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3147 main ()
3149 #ifndef __GNUC__
3150 choke me
3151 #endif
3154 return 0;
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_cxx_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_compiler_gnu=yes
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_compiler_gnu=no
3186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3190 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3191 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3192 GXX=`test $ac_compiler_gnu = yes && echo yes`
3193 ac_test_CXXFLAGS=${CXXFLAGS+set}
3194 ac_save_CXXFLAGS=$CXXFLAGS
3195 CXXFLAGS="-g"
3196 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3197 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3198 if test "${ac_cv_prog_cxx_g+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3209 main ()
3213 return 0;
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -z "$ac_cxx_werror_flag"
3226 || test ! -s conftest.err'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 (eval $ac_try) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_cv_prog_cxx_g=yes
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 ac_cv_prog_cxx_g=no
3245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3248 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3249 if test "$ac_test_CXXFLAGS" = set; then
3250 CXXFLAGS=$ac_save_CXXFLAGS
3251 elif test $ac_cv_prog_cxx_g = yes; then
3252 if test "$GXX" = yes; then
3253 CXXFLAGS="-g -O2"
3254 else
3255 CXXFLAGS="-g"
3257 else
3258 if test "$GXX" = yes; then
3259 CXXFLAGS="-O2"
3260 else
3261 CXXFLAGS=
3264 for ac_declaration in \
3265 '' \
3266 'extern "C" void std::exit (int) throw (); using std::exit;' \
3267 'extern "C" void std::exit (int); using std::exit;' \
3268 'extern "C" void exit (int) throw ();' \
3269 'extern "C" void exit (int);' \
3270 'void exit (int);'
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 $ac_declaration
3279 #include <stdlib.h>
3281 main ()
3283 exit (42);
3285 return 0;
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_cxx_werror_flag"
3298 || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 continue
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 $ac_declaration
3326 main ()
3328 exit (42);
3330 return 0;
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_cxx_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 break
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 done
3363 rm -f conftest*
3364 if test -n "$ac_declaration"; then
3365 echo '#ifdef __cplusplus' >>confdefs.h
3366 echo $ac_declaration >>confdefs.h
3367 echo '#endif' >>confdefs.h
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 CXXFLAGS="$save_CXXFLAGS"
3381 # For directory versioning (e.g., headers) and other variables.
3382 echo "$as_me:$LINENO: checking for GCC version number" >&5
3383 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3384 gcc_version=`$CXX -dumpversion`
3385 echo "$as_me:$LINENO: result: $gcc_version" >&5
3386 echo "${ECHO_T}$gcc_version" >&6
3388 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3389 # available). Uncomment the next line to force a particular method.
3390 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3392 LN_S=$as_ln_s
3393 if test "$LN_S" = "ln -s"; then
3394 echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396 else
3397 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3398 echo "${ECHO_T}no, using $LN_S" >&6
3401 #LN_S='cp -p'
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}as; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_AS+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$AS"; then
3412 ac_cv_prog_AS="$AS" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_AS="${ac_tool_prefix}as"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3430 AS=$ac_cv_prog_AS
3431 if test -n "$AS"; then
3432 echo "$as_me:$LINENO: result: $AS" >&5
3433 echo "${ECHO_T}$AS" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3440 if test -z "$ac_cv_prog_AS"; then
3441 ac_ct_AS=$AS
3442 # Extract the first word of "as", so it can be a program name with args.
3443 set dummy as; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -n "$ac_ct_AS"; then
3450 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_AS="as"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3468 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3469 if test -n "$ac_ct_AS"; then
3470 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3471 echo "${ECHO_T}$ac_ct_AS" >&6
3472 else
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3477 AS=$ac_ct_AS
3478 else
3479 AS="$ac_cv_prog_AS"
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}ar; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_prog_AR+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -n "$AR"; then
3491 ac_cv_prog_AR="$AR" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_AR="${ac_tool_prefix}ar"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3504 done
3505 done
3509 AR=$ac_cv_prog_AR
3510 if test -n "$AR"; then
3511 echo "$as_me:$LINENO: result: $AR" >&5
3512 echo "${ECHO_T}$AR" >&6
3513 else
3514 echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3519 if test -z "$ac_cv_prog_AR"; then
3520 ac_ct_AR=$AR
3521 # Extract the first word of "ar", so it can be a program name with args.
3522 set dummy ar; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 if test -n "$ac_ct_AR"; then
3529 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_ac_ct_AR="ar"
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3542 done
3543 done
3547 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3548 if test -n "$ac_ct_AR"; then
3549 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3550 echo "${ECHO_T}$ac_ct_AR" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3556 AR=$ac_ct_AR
3557 else
3558 AR="$ac_cv_prog_AR"
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_RANLIB+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 if test -n "$RANLIB"; then
3570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3583 done
3584 done
3588 RANLIB=$ac_cv_prog_RANLIB
3589 if test -n "$RANLIB"; then
3590 echo "$as_me:$LINENO: result: $RANLIB" >&5
3591 echo "${ECHO_T}$RANLIB" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3598 if test -z "$ac_cv_prog_RANLIB"; then
3599 ac_ct_RANLIB=$RANLIB
3600 # Extract the first word of "ranlib", so it can be a program name with args.
3601 set dummy ranlib; ac_word=$2
3602 echo "$as_me:$LINENO: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 if test -n "$ac_ct_RANLIB"; then
3608 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_ac_ct_RANLIB="ranlib"
3618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3621 done
3622 done
3624 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3627 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3628 if test -n "$ac_ct_RANLIB"; then
3629 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3630 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3636 RANLIB=$ac_ct_RANLIB
3637 else
3638 RANLIB="$ac_cv_prog_RANLIB"
3642 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3643 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3644 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3645 if test "${enable_maintainer_mode+set}" = set; then
3646 enableval="$enable_maintainer_mode"
3647 USE_MAINTAINER_MODE=$enableval
3648 else
3649 USE_MAINTAINER_MODE=no
3651 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3652 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3655 if test $USE_MAINTAINER_MODE = yes; then
3656 MAINTAINER_MODE_TRUE=
3657 MAINTAINER_MODE_FALSE='#'
3658 else
3659 MAINTAINER_MODE_TRUE='#'
3660 MAINTAINER_MODE_FALSE=
3663 MAINT=$MAINTAINER_MODE_TRUE
3667 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3668 # which are themselves conditionally expanded.
3669 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3670 ## other macros from doing the same. This should be automated.) -pme
3671 need_libmath=no
3672 enable_wchar_t=no
3673 #enable_libstdcxx_debug=no
3674 #enable_libstdcxx_pch=no
3675 #enable_cheaders=c
3676 #c_compatibility=no
3677 #enable_abi_check=no
3678 #enable_symvers=no
3679 #enable_hosted_libstdcxx=yes
3681 # Find platform-specific directories containing configuration info.
3682 # Also possibly modify flags used elsewhere, as needed by the platform.
3684 . $glibcxx_srcdir/configure.host
3685 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3686 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3687 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3688 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3692 #AC_MSG_NOTICE([====== Starting libtool configuration])
3694 # Check whether --enable-shared or --disable-shared was given.
3695 if test "${enable_shared+set}" = set; then
3696 enableval="$enable_shared"
3697 p=${PACKAGE-default}
3698 case $enableval in
3699 yes) enable_shared=yes ;;
3700 no) enable_shared=no ;;
3702 enable_shared=no
3703 # Look at the argument we got. We use all the common list separators.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3705 for pkg in $enableval; do
3706 if test "X$pkg" = "X$p"; then
3707 enable_shared=yes
3709 done
3710 IFS="$ac_save_ifs"
3712 esac
3713 else
3714 enable_shared=yes
3716 # Check whether --enable-static or --disable-static was given.
3717 if test "${enable_static+set}" = set; then
3718 enableval="$enable_static"
3719 p=${PACKAGE-default}
3720 case $enableval in
3721 yes) enable_static=yes ;;
3722 no) enable_static=no ;;
3724 enable_static=no
3725 # Look at the argument we got. We use all the common list separators.
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3727 for pkg in $enableval; do
3728 if test "X$pkg" = "X$p"; then
3729 enable_static=yes
3731 done
3732 IFS="$ac_save_ifs"
3734 esac
3735 else
3736 enable_static=yes
3738 # Check whether --enable-fast-install or --disable-fast-install was given.
3739 if test "${enable_fast_install+set}" = set; then
3740 enableval="$enable_fast_install"
3741 p=${PACKAGE-default}
3742 case $enableval in
3743 yes) enable_fast_install=yes ;;
3744 no) enable_fast_install=no ;;
3746 enable_fast_install=no
3747 # Look at the argument we got. We use all the common list separators.
3748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3749 for pkg in $enableval; do
3750 if test "X$pkg" = "X$p"; then
3751 enable_fast_install=yes
3753 done
3754 IFS="$ac_save_ifs"
3756 esac
3757 else
3758 enable_fast_install=yes
3761 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3762 if test "${with_gnu_ld+set}" = set; then
3763 withval="$with_gnu_ld"
3764 test "$withval" = no || with_gnu_ld=yes
3765 else
3766 with_gnu_ld=no
3768 ac_prog=ld
3769 if test "$GCC" = yes; then
3770 # Check if gcc -print-prog-name=ld gives a path.
3771 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3772 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3773 case $host in
3774 *-*-mingw*)
3775 # gcc leaves a trailing carriage return which upsets mingw
3776 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3778 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3779 esac
3780 case $ac_prog in
3781 # Accept absolute paths.
3782 [\\/]* | [A-Za-z]:[\\/]*)
3783 re_direlt='/[^/][^/]*/\.\./'
3784 # Canonicalize the path of ld
3785 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3786 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3787 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3788 done
3789 test -z "$LD" && LD="$ac_prog"
3792 # If it fails, then pretend we aren't using GCC.
3793 ac_prog=ld
3796 # If it is relative, then search for the first ld in PATH.
3797 with_gnu_ld=unknown
3799 esac
3800 elif test "$with_gnu_ld" = yes; then
3801 echo "$as_me:$LINENO: checking for GNU ld" >&5
3802 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3803 else
3804 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3805 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3807 if test "${lt_cv_path_LD+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -z "$LD"; then
3811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3812 for ac_dir in $PATH; do
3813 test -z "$ac_dir" && ac_dir=.
3814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3815 lt_cv_path_LD="$ac_dir/$ac_prog"
3816 # Check to see if the program is GNU ld. I'd rather use --version,
3817 # but apparently some GNU ld's only accept -v.
3818 # Break only if it was the GNU/non-GNU ld that we prefer.
3819 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3820 test "$with_gnu_ld" != no && break
3821 else
3822 test "$with_gnu_ld" != yes && break
3825 done
3826 IFS="$ac_save_ifs"
3827 else
3828 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3832 LD="$lt_cv_path_LD"
3833 if test -n "$LD"; then
3834 echo "$as_me:$LINENO: result: $LD" >&5
3835 echo "${ECHO_T}$LD" >&6
3836 else
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3840 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3841 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3842 { (exit 1); exit 1; }; }
3843 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3844 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3845 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3849 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3850 lt_cv_prog_gnu_ld=yes
3851 else
3852 lt_cv_prog_gnu_ld=no
3855 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3856 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3857 with_gnu_ld=$lt_cv_prog_gnu_ld
3860 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3861 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3862 if test "${lt_cv_ld_reload_flag+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 lt_cv_ld_reload_flag='-r'
3867 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3868 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3869 reload_flag=$lt_cv_ld_reload_flag
3870 test -n "$reload_flag" && reload_flag=" $reload_flag"
3872 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3873 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3874 if test "${lt_cv_path_NM+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 if test -n "$NM"; then
3878 # Let the user override the test.
3879 lt_cv_path_NM="$NM"
3880 else
3881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3882 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3883 test -z "$ac_dir" && ac_dir=.
3884 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3885 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3886 # Check to see if the nm accepts a BSD-compat flag.
3887 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3888 # nm: unknown option "B" ignored
3889 # Tru64's nm complains that /dev/null is an invalid object file
3890 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3891 lt_cv_path_NM="$tmp_nm -B"
3892 break
3893 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3894 lt_cv_path_NM="$tmp_nm -p"
3895 break
3896 else
3897 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3898 continue # so that we can try to find one that supports BSD flags
3901 done
3902 IFS="$ac_save_ifs"
3903 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 NM="$lt_cv_path_NM"
3908 echo "$as_me:$LINENO: result: $NM" >&5
3909 echo "${ECHO_T}$NM" >&6
3911 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3912 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3913 if test "${lt_cv_deplibs_check_method+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 lt_cv_file_magic_cmd='$MAGIC_CMD'
3917 lt_cv_file_magic_test_file=
3918 lt_cv_deplibs_check_method='unknown'
3919 # Need to set the preceding variable on all platforms that support
3920 # interlibrary dependencies.
3921 # 'none' -- dependencies not supported.
3922 # `unknown' -- same as none, but documents that we really don't know.
3923 # 'pass_all' -- all dependencies passed with no checks.
3924 # 'test_compile' -- check by making test program.
3925 # 'file_magic [regex]' -- check by looking for files in library path
3926 # which responds to the $file_magic_cmd with a given egrep regex.
3927 # If you have `file' or equivalent on your system and you're not sure
3928 # whether `pass_all' will *always* work, you probably want this one.
3930 case $host_os in
3931 aix*)
3932 lt_cv_deplibs_check_method=pass_all
3935 beos*)
3936 lt_cv_deplibs_check_method=pass_all
3939 bsdi4*)
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3941 lt_cv_file_magic_cmd='/usr/bin/file -L'
3942 lt_cv_file_magic_test_file=/shlib/libc.so
3945 cygwin* | mingw* |pw32*)
3946 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3947 lt_cv_file_magic_cmd='$OBJDUMP -f'
3950 darwin* | rhapsody*)
3951 # this will be overwritten by pass_all, but leave it in just in case
3952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3953 lt_cv_file_magic_cmd='/usr/bin/file -L'
3954 case "$host_os" in
3955 rhapsody* | darwin1.012)
3956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3958 *) # Darwin 1.3 on
3959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3961 esac
3962 lt_cv_deplibs_check_method=pass_all
3965 freebsd* )
3966 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3967 case $host_cpu in
3968 i*86 )
3969 # Not sure whether the presence of OpenBSD here was a mistake.
3970 # Let's accept both of them until this is cleared up.
3971 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3972 lt_cv_file_magic_cmd=/usr/bin/file
3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3975 esac
3976 else
3977 lt_cv_deplibs_check_method=pass_all
3981 gnu*)
3982 lt_cv_deplibs_check_method=pass_all
3985 hpux10.20*|hpux11*)
3986 case $host_cpu in
3987 hppa*)
3988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3989 lt_cv_file_magic_cmd=/usr/bin/file
3990 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3992 ia64*)
3993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3994 lt_cv_file_magic_cmd=/usr/bin/file
3995 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3997 esac
4000 irix5* | irix6*)
4001 case $host_os in
4002 irix5*)
4003 # this will be overridden with pass_all, but let us keep it just in case
4004 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4007 case $LD in
4008 *-32|*"-32 ") libmagic=32-bit;;
4009 *-n32|*"-n32 ") libmagic=N32;;
4010 *-64|*"-64 ") libmagic=64-bit;;
4011 *) libmagic=never-match;;
4012 esac
4013 # this will be overridden with pass_all, but let us keep it just in case
4014 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4016 esac
4017 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4018 lt_cv_deplibs_check_method=pass_all
4021 # This must be Linux ELF.
4022 linux-gnu*)
4023 case $host_cpu in
4024 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4025 lt_cv_deplibs_check_method=pass_all ;;
4027 # glibc up to 2.1.1 does not perform some relocations on ARM
4028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4029 esac
4030 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4033 netbsd*)
4034 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4035 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4036 else
4037 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4041 newsos6)
4042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4043 lt_cv_file_magic_cmd=/usr/bin/file
4044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4047 osf3* | osf4* | osf5*)
4048 # this will be overridden with pass_all, but let us keep it just in case
4049 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4050 lt_cv_file_magic_test_file=/shlib/libc.so
4051 lt_cv_deplibs_check_method=pass_all
4054 sco3.2v5*)
4055 lt_cv_deplibs_check_method=pass_all
4058 solaris*)
4059 lt_cv_deplibs_check_method=pass_all
4060 lt_cv_file_magic_test_file=/lib/libc.so
4063 sysv5uw[78]* | sysv4*uw2*)
4064 lt_cv_deplibs_check_method=pass_all
4067 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4068 case $host_vendor in
4069 ncr)
4070 lt_cv_deplibs_check_method=pass_all
4072 motorola)
4073 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]'
4074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4076 esac
4078 esac
4081 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4082 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4083 file_magic_cmd=$lt_cv_file_magic_cmd
4084 deplibs_check_method=$lt_cv_deplibs_check_method
4090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4092 # Only perform the check for file, if the check method requires it
4093 case $deplibs_check_method in
4094 file_magic*)
4095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4096 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4097 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 case $MAGIC_CMD in
4103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4105 ?:/*)
4106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4109 ac_save_MAGIC_CMD="$MAGIC_CMD"
4110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4111 ac_dummy="/usr/bin:$PATH"
4112 for ac_dir in $ac_dummy; do
4113 test -z "$ac_dir" && ac_dir=.
4114 if test -f $ac_dir/${ac_tool_prefix}file; then
4115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4116 if test -n "$file_magic_test_file"; then
4117 case $deplibs_check_method in
4118 "file_magic "*)
4119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4122 egrep "$file_magic_regex" > /dev/null; then
4124 else
4125 cat <<EOF 1>&2
4127 *** Warning: the command libtool uses to detect shared libraries,
4128 *** $file_magic_cmd, produces output that libtool cannot recognize.
4129 *** The result is that libtool may fail to recognize shared libraries
4130 *** as such. This will affect the creation of libtool libraries that
4131 *** depend on shared libraries, but programs linked with such libtool
4132 *** libraries will work regardless of this problem. Nevertheless, you
4133 *** may want to report the problem to your system manager and/or to
4134 *** bug-libtool@gnu.org
4137 fi ;;
4138 esac
4140 break
4142 done
4143 IFS="$ac_save_ifs"
4144 MAGIC_CMD="$ac_save_MAGIC_CMD"
4146 esac
4149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4150 if test -n "$MAGIC_CMD"; then
4151 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4152 echo "${ECHO_T}$MAGIC_CMD" >&6
4153 else
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4158 if test -z "$lt_cv_path_MAGIC_CMD"; then
4159 if test -n "$ac_tool_prefix"; then
4160 echo "$as_me:$LINENO: checking for file" >&5
4161 echo $ECHO_N "checking for file... $ECHO_C" >&6
4162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 case $MAGIC_CMD in
4167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4169 ?:/*)
4170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4173 ac_save_MAGIC_CMD="$MAGIC_CMD"
4174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4175 ac_dummy="/usr/bin:$PATH"
4176 for ac_dir in $ac_dummy; do
4177 test -z "$ac_dir" && ac_dir=.
4178 if test -f $ac_dir/file; then
4179 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4180 if test -n "$file_magic_test_file"; then
4181 case $deplibs_check_method in
4182 "file_magic "*)
4183 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4186 egrep "$file_magic_regex" > /dev/null; then
4188 else
4189 cat <<EOF 1>&2
4191 *** Warning: the command libtool uses to detect shared libraries,
4192 *** $file_magic_cmd, produces output that libtool cannot recognize.
4193 *** The result is that libtool may fail to recognize shared libraries
4194 *** as such. This will affect the creation of libtool libraries that
4195 *** depend on shared libraries, but programs linked with such libtool
4196 *** libraries will work regardless of this problem. Nevertheless, you
4197 *** may want to report the problem to your system manager and/or to
4198 *** bug-libtool@gnu.org
4201 fi ;;
4202 esac
4204 break
4206 done
4207 IFS="$ac_save_ifs"
4208 MAGIC_CMD="$ac_save_MAGIC_CMD"
4210 esac
4213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4214 if test -n "$MAGIC_CMD"; then
4215 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4216 echo "${ECHO_T}$MAGIC_CMD" >&6
4217 else
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4222 else
4223 MAGIC_CMD=:
4229 esac
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_RANLIB+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4258 RANLIB=$ac_cv_prog_RANLIB
4259 if test -n "$RANLIB"; then
4260 echo "$as_me:$LINENO: result: $RANLIB" >&5
4261 echo "${ECHO_T}$RANLIB" >&6
4262 else
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_RANLIB="ranlib"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4294 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 RANLIB=$ac_ct_RANLIB
4307 else
4308 RANLIB="$ac_cv_prog_RANLIB"
4311 if test -n "$ac_tool_prefix"; then
4312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4313 set dummy ${ac_tool_prefix}strip; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_STRIP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 if test -n "$STRIP"; then
4320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4338 STRIP=$ac_cv_prog_STRIP
4339 if test -n "$STRIP"; then
4340 echo "$as_me:$LINENO: result: $STRIP" >&5
4341 echo "${ECHO_T}$STRIP" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4348 if test -z "$ac_cv_prog_STRIP"; then
4349 ac_ct_STRIP=$STRIP
4350 # Extract the first word of "strip", so it can be a program name with args.
4351 set dummy strip; ac_word=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -n "$ac_ct_STRIP"; then
4358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_ac_ct_STRIP="strip"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4374 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4378 if test -n "$ac_ct_STRIP"; then
4379 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4380 echo "${ECHO_T}$ac_ct_STRIP" >&6
4381 else
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4386 STRIP=$ac_ct_STRIP
4387 else
4388 STRIP="$ac_cv_prog_STRIP"
4392 # Check for any special flags to pass to ltconfig.
4393 libtool_flags="--cache-file=$cache_file"
4394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4402 if test "${enable_libtool_lock+set}" = set; then
4403 enableval="$enable_libtool_lock"
4406 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4407 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4410 # Check whether --with-pic or --without-pic was given.
4411 if test "${with_pic+set}" = set; then
4412 withval="$with_pic"
4413 pic_mode="$withval"
4414 else
4415 pic_mode=default
4417 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4418 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4420 # Some flags need to be propagated to the compiler or linker for good
4421 # libtool support.
4422 case $host in
4423 *-*-irix6*)
4424 # Find out which ABI we are using.
4425 echo '#line 4425 "configure"' > conftest.$ac_ext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; then
4431 if test "$lt_cv_prog_gnu_ld" = yes; then
4432 case `/usr/bin/file conftest.$ac_objext` in
4433 *32-bit*)
4434 LD="${LD-ld} -melf32bsmip"
4436 *N32*)
4437 LD="${LD-ld} -melf32bmipn32"
4439 *64-bit*)
4440 LD="${LD-ld} -melf64bmip"
4442 esac
4443 else
4444 case `/usr/bin/file conftest.$ac_objext` in
4445 *32-bit*)
4446 LD="${LD-ld} -32"
4448 *N32*)
4449 LD="${LD-ld} -n32"
4451 *64-bit*)
4452 LD="${LD-ld} -64"
4454 esac
4457 rm -rf conftest*
4460 ia64-*-hpux*)
4461 # Find out which ABI we are using.
4462 echo 'int i;' > conftest.$ac_ext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 case "`/usr/bin/file conftest.o`" in
4469 *ELF-32*)
4470 HPUX_IA64_MODE="32"
4472 *ELF-64*)
4473 HPUX_IA64_MODE="64"
4475 esac
4477 rm -rf conftest*
4480 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4481 # Find out which ABI we are using.
4482 echo 'int i;' > conftest.$ac_ext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; then
4488 case "`/usr/bin/file conftest.o`" in
4489 *32-bit*)
4490 case $host in
4491 x86_64-*linux*)
4492 LD="${LD-ld} -m elf_i386"
4494 ppc64-*linux*|powerpc64-*linux*)
4495 LD="${LD-ld} -m elf32ppclinux"
4497 s390x-*linux*)
4498 LD="${LD-ld} -m elf_s390"
4500 sparc64-*linux*)
4501 LD="${LD-ld} -m elf32_sparc"
4503 esac
4505 *64-bit*)
4506 case $host in
4507 x86_64-*linux*)
4508 LD="${LD-ld} -m elf_x86_64"
4510 ppc*-*linux*|powerpc*-*linux*)
4511 LD="${LD-ld} -m elf64ppc"
4513 s390*-*linux*)
4514 LD="${LD-ld} -m elf64_s390"
4516 sparc*-*linux*)
4517 LD="${LD-ld} -m elf64_sparc"
4519 esac
4521 esac
4523 rm -rf conftest*
4526 *-*-sco3.2v5*)
4527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4528 SAVE_CFLAGS="$CFLAGS"
4529 CFLAGS="$CFLAGS -belf"
4530 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4531 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4532 if test "${lt_cv_cc_needs_belf+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 if test x$gcc_no_link = xyes; then
4544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4546 { (exit 1); exit 1; }; }
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4556 main ()
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 lt_cv_cc_needs_belf=yes
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 lt_cv_cc_needs_belf=no
4592 rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4602 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4605 CFLAGS="$SAVE_CFLAGS"
4610 esac
4613 # Save cache, so that ltconfig can load it
4614 cat >confcache <<\_ACEOF
4615 # This file is a shell script that caches the results of configure
4616 # tests run on this system so they can be shared between configure
4617 # scripts and configure runs, see configure's option --config-cache.
4618 # It is not useful on other systems. If it contains results you don't
4619 # want to keep, you may remove or edit it.
4621 # config.status only pays attention to the cache file if you give it
4622 # the --recheck option to rerun configure.
4624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4626 # following values.
4628 _ACEOF
4630 # The following way of writing the cache mishandles newlines in values,
4631 # but we know of no workaround that is simple, portable, and efficient.
4632 # So, don't put newlines in cache variables' values.
4633 # Ultrix sh set writes to stderr and can't be redirected directly,
4634 # and sets the high bit in the cache file unless we assign to the vars.
4636 (set) 2>&1 |
4637 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4638 *ac_space=\ *)
4639 # `set' does not quote correctly, so add quotes (double-quote
4640 # substitution turns \\\\ into \\, and sed turns \\ into \).
4641 sed -n \
4642 "s/'/'\\\\''/g;
4643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4646 # `set' quotes correctly as required by POSIX, so do not add quotes.
4647 sed -n \
4648 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4650 esac;
4652 sed '
4653 t clear
4654 : clear
4655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4656 t end
4657 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4658 : end' >>confcache
4659 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4660 if test -w $cache_file; then
4661 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4662 cat confcache >$cache_file
4663 else
4664 echo "not updating unwritable cache $cache_file"
4667 rm -f confcache
4669 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4670 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4671 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4672 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4673 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4674 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4675 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4677 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4678 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4679 echo "$as_me: error: libtool configure failed" >&2;}
4680 { (exit 1); exit 1; }; }
4682 # Reload cache, that may have been modified by ltconfig
4683 if test -r "$cache_file"; then
4684 # Some versions of bash will fail to source /dev/null (special
4685 # files actually), so we avoid doing that.
4686 if test -f "$cache_file"; then
4687 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4688 echo "$as_me: loading cache $cache_file" >&6;}
4689 case $cache_file in
4690 [\\/]* | ?:[\\/]* ) . $cache_file;;
4691 *) . ./$cache_file;;
4692 esac
4694 else
4695 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4696 echo "$as_me: creating cache $cache_file" >&6;}
4697 >$cache_file
4701 # This can be used to rebuild libtool when needed
4702 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4704 # Always use our own libtool.
4705 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4707 # Redirect the config.log output again, so that the ltconfig log is not
4708 # clobbered by the next message.
4709 exec 5>>./config.log
4711 ac_ext=cc
4712 ac_cpp='$CXXCPP $CPPFLAGS'
4713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4716 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4718 if test -z "$CXXCPP"; then
4719 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 # Double quotes because CXXCPP needs to be expanded
4723 for CXXCPP in "$CXX -E" "/lib/cpp"
4725 ac_preproc_ok=false
4726 for ac_cxx_preproc_warn_flag in '' yes
4728 # Use a header file that comes with gcc, so configuring glibc
4729 # with a fresh cross-compiler works.
4730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4731 # <limits.h> exists even on freestanding compilers.
4732 # On the NeXT, cc -E runs the code through the compiler's parser,
4733 # not just through cpp. "Syntax error" is here to catch this case.
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 #ifdef __STDC__
4741 # include <limits.h>
4742 #else
4743 # include <assert.h>
4744 #endif
4745 Syntax error
4746 _ACEOF
4747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } >/dev/null; then
4755 if test -s conftest.err; then
4756 ac_cpp_err=$ac_cxx_preproc_warn_flag
4757 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4758 else
4759 ac_cpp_err=
4761 else
4762 ac_cpp_err=yes
4764 if test -z "$ac_cpp_err"; then
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 # Broken: fails on valid input.
4771 continue
4773 rm -f conftest.err conftest.$ac_ext
4775 # OK, works on sane cases. Now check whether non-existent headers
4776 # can be detected and how.
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <ac_nonexistent.h>
4784 _ACEOF
4785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev/null; then
4793 if test -s conftest.err; then
4794 ac_cpp_err=$ac_cxx_preproc_warn_flag
4795 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4796 else
4797 ac_cpp_err=
4799 else
4800 ac_cpp_err=yes
4802 if test -z "$ac_cpp_err"; then
4803 # Broken: success on invalid input.
4804 continue
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 # Passes both tests.
4810 ac_preproc_ok=:
4811 break
4813 rm -f conftest.err conftest.$ac_ext
4815 done
4816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4817 rm -f conftest.err conftest.$ac_ext
4818 if $ac_preproc_ok; then
4819 break
4822 done
4823 ac_cv_prog_CXXCPP=$CXXCPP
4826 CXXCPP=$ac_cv_prog_CXXCPP
4827 else
4828 ac_cv_prog_CXXCPP=$CXXCPP
4830 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4831 echo "${ECHO_T}$CXXCPP" >&6
4832 ac_preproc_ok=false
4833 for ac_cxx_preproc_warn_flag in '' yes
4835 # Use a header file that comes with gcc, so configuring glibc
4836 # with a fresh cross-compiler works.
4837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4838 # <limits.h> exists even on freestanding compilers.
4839 # On the NeXT, cc -E runs the code through the compiler's parser,
4840 # not just through cpp. "Syntax error" is here to catch this case.
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #ifdef __STDC__
4848 # include <limits.h>
4849 #else
4850 # include <assert.h>
4851 #endif
4852 Syntax error
4853 _ACEOF
4854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null; then
4862 if test -s conftest.err; then
4863 ac_cpp_err=$ac_cxx_preproc_warn_flag
4864 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4865 else
4866 ac_cpp_err=
4868 else
4869 ac_cpp_err=yes
4871 if test -z "$ac_cpp_err"; then
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 # Broken: fails on valid input.
4878 continue
4880 rm -f conftest.err conftest.$ac_ext
4882 # OK, works on sane cases. Now check whether non-existent headers
4883 # can be detected and how.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_cxx_preproc_warn_flag
4902 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4903 else
4904 ac_cpp_err=
4906 else
4907 ac_cpp_err=yes
4909 if test -z "$ac_cpp_err"; then
4910 # Broken: success on invalid input.
4911 continue
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 # Passes both tests.
4917 ac_preproc_ok=:
4918 break
4920 rm -f conftest.err conftest.$ac_ext
4922 done
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.$ac_ext
4925 if $ac_preproc_ok; then
4927 else
4928 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4929 See \`config.log' for more details." >&5
4930 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4931 See \`config.log' for more details." >&2;}
4932 { (exit 1); exit 1; }; }
4935 ac_ext=c
4936 ac_cpp='$CPP $CPPFLAGS'
4937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4944 lt_save_CC="$CC"
4945 lt_save_CFLAGS="$CFLAGS"
4946 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4947 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4948 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4949 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4950 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4951 deplibs_check_method="$deplibs_check_method" \
4952 file_magic_cmd="$file_magic_cmd" \
4953 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4954 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4955 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4956 echo "$as_me: error: libtool tag configuration failed" >&2;}
4957 { (exit 1); exit 1; }; }
4958 CC="$lt_save_CC"
4959 CFLAGS="$lt_save_CFLAGS"
4961 # Redirect the config.log output again, so that the ltconfig log is not
4962 # clobbered by the next message.
4963 exec 5>>./config.log
4972 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4974 # Possibly disable most of the library.
4975 ## XXX Consider skipping unncessary tests altogether in this case, rather
4976 ## than just ignoring the results. Faster /and/ more correct, win win.
4978 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4979 if test "${enable_hosted_libstdcxx+set}" = set; then
4980 enableval="$enable_hosted_libstdcxx"
4982 else
4983 enable_hosted_libstdcxx=yes
4985 if test "$enable_hosted_libstdcxx" = no; then
4986 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4987 echo "$as_me: Only freestanding libraries will be built" >&6;}
4988 is_hosted=no
4989 hosted_define=0
4990 enable_abi_check=no
4991 enable_libstdcxx_pch=no
4992 else
4993 is_hosted=yes
4994 hosted_define=1
4998 cat >>confdefs.h <<_ACEOF
4999 #define _GLIBCXX_HOSTED $hosted_define
5000 _ACEOF
5004 # Check for support bits and g++ features that don't require linking.
5006 echo "$as_me:$LINENO: checking for exception model to use" >&5
5007 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5010 ac_ext=cc
5011 ac_cpp='$CXXCPP $CPPFLAGS'
5012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5017 if test "${enable_sjlj_exceptions+set}" = set; then
5018 enableval="$enable_sjlj_exceptions"
5020 case "$enableval" in
5021 yes|no|auto) ;;
5022 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5023 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5024 { (exit 1); exit 1; }; } ;;
5025 esac
5027 else
5028 enable_sjlj_exceptions=auto
5032 if test $enable_sjlj_exceptions = auto; then
5033 # Botheration. Now we've got to detect the exception model. Link tests
5034 # against libgcc.a are problematic since we've not been given proper -L
5035 # bits for single-tree newlib and libgloss.
5037 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5038 cat > conftest.$ac_ext << EOF
5039 #line 5039 "configure"
5040 struct S { ~S(); };
5041 void bar();
5042 void foo()
5044 S s;
5045 bar();
5048 old_CXXFLAGS="$CXXFLAGS"
5049 CXXFLAGS=-S
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5056 enable_sjlj_exceptions=yes
5057 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5058 enable_sjlj_exceptions=no
5061 CXXFLAGS="$old_CXXFLAGS"
5062 rm -f conftest*
5065 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5066 # to two different models.
5067 case $enable_sjlj_exceptions in
5068 yes)
5070 cat >>confdefs.h <<\_ACEOF
5071 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5072 _ACEOF
5074 ac_exception_model_name=sjlj
5077 ac_exception_model_name="call frame"
5080 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5081 echo "$as_me: error: unable to detect exception model" >&2;}
5082 { (exit 1); exit 1; }; }
5084 esac
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5092 echo "${ECHO_T}$ac_exception_model_name" >&6
5095 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5096 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5097 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5098 if test "${enable_libstdcxx_pch+set}" = set; then
5099 enableval="$enable_libstdcxx_pch"
5101 case "$enableval" in
5102 yes|no) ;;
5103 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5104 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5106 esac
5108 else
5109 enable_libstdcxx_pch=$is_hosted
5112 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5113 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5115 if test $enable_libstdcxx_pch = yes; then
5116 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5117 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5118 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 ac_save_CXXFLAGS="$CXXFLAGS"
5122 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5125 ac_ext=cc
5126 ac_cpp='$CXXCPP $CPPFLAGS'
5127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 echo '#include <math.h>' > conftest.h
5132 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5133 -o conftest.h.gch 1>&5 2>&1 &&
5134 echo '#error "pch failed"' > conftest.h &&
5135 echo '#include "conftest.h"' > conftest.cc &&
5136 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5137 then
5138 glibcxx_cv_prog_CXX_pch=yes
5139 else
5140 glibcxx_cv_prog_CXX_pch=no
5142 rm -f conftest*
5143 CXXFLAGS=$ac_save_CXXFLAGS
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5153 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5154 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5158 if test $enable_libstdcxx_pch = yes; then
5159 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5160 else
5161 glibcxx_PCHFLAGS=""
5166 # Enable all the variable C++ runtime options.
5167 # NB: C_MBCHAR must come early.
5169 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5170 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5171 # Check whether --enable-cstdio or --disable-cstdio was given.
5172 if test "${enable_cstdio+set}" = set; then
5173 enableval="$enable_cstdio"
5175 case "$enableval" in
5176 stdio) ;;
5177 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5178 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5180 esac
5182 else
5183 enable_cstdio=stdio
5187 # Now that libio has been removed, you can have any color you want as long
5188 # as it's black. This is one big no-op until other packages are added, but
5189 # showing the framework never hurts.
5190 case ${enable_cstdio} in
5191 stdio)
5192 CSTDIO_H=config/io/c_io_stdio.h
5193 BASIC_FILE_H=config/io/basic_file_stdio.h
5194 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5195 echo "$as_me:$LINENO: result: stdio" >&5
5196 echo "${ECHO_T}stdio" >&6
5198 esac
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5211 # On Suns, sometimes $CPP names a directory.
5212 if test -n "$CPP" && test -d "$CPP"; then
5213 CPP=
5215 if test -z "$CPP"; then
5216 if test "${ac_cv_prog_CPP+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 # Double quotes because CPP needs to be expanded
5220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5222 ac_preproc_ok=false
5223 for ac_c_preproc_warn_flag in '' yes
5225 # Use a header file that comes with gcc, so configuring glibc
5226 # with a fresh cross-compiler works.
5227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 # <limits.h> exists even on freestanding compilers.
5229 # On the NeXT, cc -E runs the code through the compiler's parser,
5230 # not just through cpp. "Syntax error" is here to catch this case.
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #ifdef __STDC__
5238 # include <limits.h>
5239 #else
5240 # include <assert.h>
5241 #endif
5242 Syntax error
5243 _ACEOF
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null; then
5252 if test -s conftest.err; then
5253 ac_cpp_err=$ac_c_preproc_warn_flag
5254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5255 else
5256 ac_cpp_err=
5258 else
5259 ac_cpp_err=yes
5261 if test -z "$ac_cpp_err"; then
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 # Broken: fails on valid input.
5268 continue
5270 rm -f conftest.err conftest.$ac_ext
5272 # OK, works on sane cases. Now check whether non-existent headers
5273 # can be detected and how.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #include <ac_nonexistent.h>
5281 _ACEOF
5282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } >/dev/null; then
5290 if test -s conftest.err; then
5291 ac_cpp_err=$ac_c_preproc_warn_flag
5292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5293 else
5294 ac_cpp_err=
5296 else
5297 ac_cpp_err=yes
5299 if test -z "$ac_cpp_err"; then
5300 # Broken: success on invalid input.
5301 continue
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 # Passes both tests.
5307 ac_preproc_ok=:
5308 break
5310 rm -f conftest.err conftest.$ac_ext
5312 done
5313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314 rm -f conftest.err conftest.$ac_ext
5315 if $ac_preproc_ok; then
5316 break
5319 done
5320 ac_cv_prog_CPP=$CPP
5323 CPP=$ac_cv_prog_CPP
5324 else
5325 ac_cv_prog_CPP=$CPP
5327 echo "$as_me:$LINENO: result: $CPP" >&5
5328 echo "${ECHO_T}$CPP" >&6
5329 ac_preproc_ok=false
5330 for ac_c_preproc_warn_flag in '' yes
5332 # Use a header file that comes with gcc, so configuring glibc
5333 # with a fresh cross-compiler works.
5334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5335 # <limits.h> exists even on freestanding compilers.
5336 # On the NeXT, cc -E runs the code through the compiler's parser,
5337 # not just through cpp. "Syntax error" is here to catch this case.
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 #ifdef __STDC__
5345 # include <limits.h>
5346 #else
5347 # include <assert.h>
5348 #endif
5349 Syntax error
5350 _ACEOF
5351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } >/dev/null; then
5359 if test -s conftest.err; then
5360 ac_cpp_err=$ac_c_preproc_warn_flag
5361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5362 else
5363 ac_cpp_err=
5365 else
5366 ac_cpp_err=yes
5368 if test -z "$ac_cpp_err"; then
5370 else
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 # Broken: fails on valid input.
5375 continue
5377 rm -f conftest.err conftest.$ac_ext
5379 # OK, works on sane cases. Now check whether non-existent headers
5380 # can be detected and how.
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } >/dev/null; then
5397 if test -s conftest.err; then
5398 ac_cpp_err=$ac_c_preproc_warn_flag
5399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5400 else
5401 ac_cpp_err=
5403 else
5404 ac_cpp_err=yes
5406 if test -z "$ac_cpp_err"; then
5407 # Broken: success on invalid input.
5408 continue
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5417 rm -f conftest.err conftest.$ac_ext
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then
5424 else
5425 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." >&5
5427 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." >&2;}
5429 { (exit 1); exit 1; }; }
5432 ac_ext=c
5433 ac_cpp='$CPP $CPPFLAGS'
5434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439 echo "$as_me:$LINENO: checking for egrep" >&5
5440 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5441 if test "${ac_cv_prog_egrep+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5445 then ac_cv_prog_egrep='grep -E'
5446 else ac_cv_prog_egrep='egrep'
5449 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5450 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5451 EGREP=$ac_cv_prog_egrep
5454 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5456 if test "${ac_cv_header_stdc+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <stdlib.h>
5466 #include <stdarg.h>
5467 #include <string.h>
5468 #include <float.h>
5471 main ()
5475 return 0;
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -z "$ac_c_werror_flag"
5488 || test ! -s conftest.err'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_header_stdc=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_header_stdc=no
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5509 if test $ac_cv_header_stdc = yes; then
5510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <string.h>
5519 _ACEOF
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 $EGREP "memchr" >/dev/null 2>&1; then
5523 else
5524 ac_cv_header_stdc=no
5526 rm -f conftest*
5530 if test $ac_cv_header_stdc = yes; then
5531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <stdlib.h>
5540 _ACEOF
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 $EGREP "free" >/dev/null 2>&1; then
5544 else
5545 ac_cv_header_stdc=no
5547 rm -f conftest*
5551 if test $ac_cv_header_stdc = yes; then
5552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5553 if test "$cross_compiling" = yes; then
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <ctype.h>
5563 #if ((' ' & 0x0FF) == 0x020)
5564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5566 #else
5567 # define ISLOWER(c) \
5568 (('a' <= (c) && (c) <= 'i') \
5569 || ('j' <= (c) && (c) <= 'r') \
5570 || ('s' <= (c) && (c) <= 'z'))
5571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5572 #endif
5574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5576 main ()
5578 int i;
5579 for (i = 0; i < 256; i++)
5580 if (XOR (islower (i), ISLOWER (i))
5581 || toupper (i) != TOUPPER (i))
5582 exit(2);
5583 exit (0);
5585 _ACEOF
5586 rm -f conftest$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5598 else
5599 echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ( exit $ac_status )
5604 ac_cv_header_stdc=no
5606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5611 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5612 if test $ac_cv_header_stdc = yes; then
5614 cat >>confdefs.h <<\_ACEOF
5615 #define STDC_HEADERS 1
5616 _ACEOF
5620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5631 inttypes.h stdint.h unistd.h
5633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5634 echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 $ac_includes_default
5647 #include <$ac_header>
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 eval "$as_ac_Header=yes"
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 eval "$as_ac_Header=no"
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5683 cat >>confdefs.h <<_ACEOF
5684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5685 _ACEOF
5689 done
5693 echo "$as_me:$LINENO: checking for C locale to use" >&5
5694 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5695 # Check whether --enable-clocale or --disable-clocale was given.
5696 if test "${enable_clocale+set}" = set; then
5697 enableval="$enable_clocale"
5699 case "$enableval" in
5700 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5701 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5702 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5703 { (exit 1); exit 1; }; } ;;
5704 esac
5706 else
5707 enable_clocale=auto
5711 # If they didn't use this option switch, or if they specified --enable
5712 # with no specific model, we'll have to look for one. If they
5713 # specified --disable (???), do likewise.
5714 if test $enable_clocale = no || test $enable_clocale = yes; then
5715 enable_clocale=auto
5718 # Either a known package, or "auto"
5719 enable_clocale_flag=$enable_clocale
5721 # Probe for locale support if no specific model is specified.
5722 # Default to "generic".
5723 if test $enable_clocale_flag = auto; then
5724 case x${target_os} in
5725 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5733 #include <features.h>
5734 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5735 _GLIBCXX_ok
5736 #endif
5738 _ACEOF
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5741 enable_clocale_flag=gnu
5742 else
5743 enable_clocale_flag=generic
5745 rm -f conftest*
5748 # Test for bugs early in glibc-2.2.x series
5749 if test x$enable_clocale_flag = xgnu; then
5750 if test "$cross_compiling" = yes; then
5751 enable_clocale_flag=generic
5752 else
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5760 #define _GNU_SOURCE 1
5761 #include <locale.h>
5762 #include <string.h>
5763 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5764 extern __typeof(newlocale) __newlocale;
5765 extern __typeof(duplocale) __duplocale;
5766 extern __typeof(strcoll_l) __strcoll_l;
5767 #endif
5768 int main()
5770 const char __one[] = "Äuglein Augmen";
5771 const char __two[] = "Äuglein";
5772 int i;
5773 int j;
5774 __locale_t loc;
5775 __locale_t loc_dup;
5776 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5777 loc_dup = __duplocale(loc);
5778 i = __strcoll_l(__one, __two, loc);
5779 j = __strcoll_l(__one, __two, loc_dup);
5780 return 0;
5783 _ACEOF
5784 rm -f conftest$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786 (eval $ac_link) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 enable_clocale_flag=gnu
5796 else
5797 echo "$as_me: program exited with status $ac_status" >&5
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ( exit $ac_status )
5802 enable_clocale_flag=generic
5804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5808 # ... at some point put __strxfrm_l tests in as well.
5811 enable_clocale_flag=generic
5813 esac
5816 # Deal with gettext issues. Default to not using it (=no) until we detect
5817 # support for it later. Let the user turn it off via --e/d, but let that
5818 # default to on for easier handling.
5819 USE_NLS=no
5820 # Check whether --enable-nls or --disable-nls was given.
5821 if test "${enable_nls+set}" = set; then
5822 enableval="$enable_nls"
5824 else
5825 enable_nls=yes
5828 # Set configure bits for specified locale package
5829 case ${enable_clocale_flag} in
5830 generic)
5831 echo "$as_me:$LINENO: result: generic" >&5
5832 echo "${ECHO_T}generic" >&6
5834 CLOCALE_H=config/locale/generic/c_locale.h
5835 CLOCALE_CC=config/locale/generic/c_locale.cc
5836 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5837 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5838 CCOLLATE_CC=config/locale/generic/collate_members.cc
5839 CCTYPE_CC=config/locale/generic/ctype_members.cc
5840 CMESSAGES_H=config/locale/generic/messages_members.h
5841 CMESSAGES_CC=config/locale/generic/messages_members.cc
5842 CMONEY_CC=config/locale/generic/monetary_members.cc
5843 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5844 CTIME_H=config/locale/generic/time_members.h
5845 CTIME_CC=config/locale/generic/time_members.cc
5846 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5848 gnu)
5849 echo "$as_me:$LINENO: result: gnu" >&5
5850 echo "${ECHO_T}gnu" >&6
5852 # Declare intention to use gettext, and add support for specific
5853 # languages.
5854 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5855 ALL_LINGUAS="de fr"
5857 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5858 # Extract the first word of "msgfmt", so it can be a program name with args.
5859 set dummy msgfmt; ac_word=$2
5860 echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 if test -n "$check_msgfmt"; then
5866 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_check_msgfmt="yes"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5879 done
5880 done
5882 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5885 check_msgfmt=$ac_cv_prog_check_msgfmt
5886 if test -n "$check_msgfmt"; then
5887 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5888 echo "${ECHO_T}$check_msgfmt" >&6
5889 else
5890 echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6
5894 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5895 USE_NLS=yes
5897 # Export the build objects.
5898 for ling in $ALL_LINGUAS; do \
5899 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5900 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5901 done
5905 CLOCALE_H=config/locale/gnu/c_locale.h
5906 CLOCALE_CC=config/locale/gnu/c_locale.cc
5907 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5908 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5909 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5910 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5911 CMESSAGES_H=config/locale/gnu/messages_members.h
5912 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5913 CMONEY_CC=config/locale/gnu/monetary_members.cc
5914 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5915 CTIME_H=config/locale/gnu/time_members.h
5916 CTIME_CC=config/locale/gnu/time_members.cc
5917 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5919 ieee_1003.1-2001)
5920 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5921 echo "${ECHO_T}IEEE 1003.1" >&6
5923 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5924 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5925 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5926 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5927 CCOLLATE_CC=config/locale/generic/collate_members.cc
5928 CCTYPE_CC=config/locale/generic/ctype_members.cc
5929 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5930 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5931 CMONEY_CC=config/locale/generic/monetary_members.cc
5932 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5933 CTIME_H=config/locale/generic/time_members.h
5934 CTIME_CC=config/locale/generic/time_members.cc
5935 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5937 esac
5939 # This is where the testsuite looks for locale catalogs, using the
5940 # -DLOCALEDIR define during testsuite compilation.
5941 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5944 # A standalone libintl (e.g., GNU libintl) may be in use.
5945 if test $USE_NLS = yes; then
5947 for ac_header in libintl.h
5949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958 else
5959 # Is the header compilable?
5960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 #include <$ac_header>
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_header_compiler=yes
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_header_compiler=no
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6002 echo "${ECHO_T}$ac_header_compiler" >&6
6004 # Is the header present?
6005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <$ac_header>
6014 _ACEOF
6015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev/null; then
6023 if test -s conftest.err; then
6024 ac_cpp_err=$ac_c_preproc_warn_flag
6025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026 else
6027 ac_cpp_err=
6029 else
6030 ac_cpp_err=yes
6032 if test -z "$ac_cpp_err"; then
6033 ac_header_preproc=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_header_preproc=no
6040 rm -f conftest.err conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6042 echo "${ECHO_T}$ac_header_preproc" >&6
6044 # So? What about this header?
6045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6046 yes:no: )
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6051 ac_header_preproc=yes
6053 no:yes:* )
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6067 cat <<\_ASBOX
6068 ## ----------------------------------------- ##
6069 ## Report this to the package-unused lists. ##
6070 ## ----------------------------------------- ##
6071 _ASBOX
6073 sed "s/^/$as_me: WARNING: /" >&2
6075 esac
6076 echo "$as_me:$LINENO: checking for $ac_header" >&5
6077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 eval "$as_ac_Header=\$ac_header_preproc"
6083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6088 cat >>confdefs.h <<_ACEOF
6089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6090 _ACEOF
6092 else
6093 USE_NLS=no
6096 done
6098 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6099 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6100 if test "${ac_cv_search_gettext+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 ac_func_search_save_LIBS=$LIBS
6104 ac_cv_search_gettext=no
6105 if test x$gcc_no_link = xyes; then
6106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6108 { (exit 1); exit 1; }; }
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123 char gettext ();
6125 main ()
6127 gettext ();
6129 return 0;
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_search_gettext="none required"
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6160 rm -f conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6162 if test "$ac_cv_search_gettext" = no; then
6163 for ac_lib in intl; do
6164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6165 if test x$gcc_no_link = xyes; then
6166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6168 { (exit 1); exit 1; }; }
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6183 char gettext ();
6185 main ()
6187 gettext ();
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -z "$ac_c_werror_flag"
6202 || test ! -s conftest.err'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try='test -s conftest$ac_exeext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_search_gettext="-l$ac_lib"
6215 break
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6221 rm -f conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223 done
6225 LIBS=$ac_func_search_save_LIBS
6227 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6228 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6229 if test "$ac_cv_search_gettext" != no; then
6230 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6232 else
6233 USE_NLS=no
6237 if test $USE_NLS = yes; then
6238 cat >>confdefs.h <<\_ACEOF
6239 #define _GLIBCXX_USE_NLS 1
6240 _ACEOF
6260 # Check whether --enable-cheaders or --disable-cheaders was given.
6261 if test "${enable_cheaders+set}" = set; then
6262 enableval="$enable_cheaders"
6264 case "$enableval" in
6265 c|c_std) ;;
6266 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6267 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6268 { (exit 1); exit 1; }; } ;;
6269 esac
6271 else
6272 enable_cheaders=$c_model
6275 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6276 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6278 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6285 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6286 if test "${enable_c_mbchar+set}" = set; then
6287 enableval="$enable_c_mbchar"
6289 case "$enableval" in
6290 yes|no) ;;
6291 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6292 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6293 { (exit 1); exit 1; }; } ;;
6294 esac
6296 else
6297 enable_c_mbchar=yes
6300 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6304 # Check whether --enable-c99 or --disable-c99 was given.
6305 if test "${enable_c99+set}" = set; then
6306 enableval="$enable_c99"
6308 case "$enableval" in
6309 yes|no) ;;
6310 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6311 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6312 { (exit 1); exit 1; }; } ;;
6313 esac
6315 else
6316 enable_c99=yes
6322 ac_ext=cc
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6329 # Check for the existence of <math.h> functions used if C99 is enabled.
6330 ac_c99_math=yes;
6331 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6332 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <math.h>
6341 main ()
6343 fpclassify(0.0);
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_cxx_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_c99_math=no
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #include <math.h>
6386 main ()
6388 isfinite(0.0);
6390 return 0;
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395 (eval $ac_compile) 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_cxx_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest.$ac_objext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_c99_math=no
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <math.h>
6431 main ()
6433 isinf(0.0);
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_cxx_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_c99_math=no
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #include <math.h>
6476 main ()
6478 isnan(0.0);
6480 return 0;
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_cxx_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_c99_math=no
6512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <math.h>
6521 main ()
6523 isnormal(0.0);
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_cxx_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_c99_math=no
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #include <math.h>
6566 main ()
6568 signbit(0.0);
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6596 else
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_c99_math=no
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <math.h>
6611 main ()
6613 isgreater(0.0,0.0);
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_cxx_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_c99_math=no
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <math.h>
6656 main ()
6658 isgreaterequal(0.0,0.0);
6660 return 0;
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_cxx_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_c99_math=no
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <math.h>
6701 main ()
6703 isless(0.0,0.0);
6705 return 0;
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_cxx_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_c99_math=no
6737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <math.h>
6746 main ()
6748 islessequal(0.0,0.0);
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755 (eval $ac_compile) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_cxx_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_c99_math=no
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <math.h>
6791 main ()
6793 islessgreater(0.0,0.0);
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_cxx_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_c99_math=no
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <math.h>
6836 main ()
6838 isunordered(0.0,0.0);
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_cxx_werror_flag"
6853 || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 ac_c99_math=no
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6874 echo "${ECHO_T}$ac_c99_math" >&6
6876 if test x"$ac_c99_math" = x"yes"; then
6877 cat >>confdefs.h <<\_ACEOF
6878 #define _GLIBCXX_USE_C99_MATH 1
6879 _ACEOF
6883 # Check for the existence in <stdio.h> of vscanf, et. al.
6884 ac_c99_stdio=yes;
6885 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6886 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 #include <stdio.h>
6895 main ()
6897 snprintf("12", 0, "%i");
6899 return 0;
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_cxx_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_c99_stdio=no
6931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <stdio.h>
6939 #include <stdarg.h>
6940 void foo(char* fmt, ...)
6941 {va_list args; va_start(args, fmt);
6942 vfscanf(stderr, "%i", args);}
6944 main ()
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_cxx_werror_flag"
6961 || test ! -s conftest.err'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; } &&
6967 { ac_try='test -s conftest.$ac_objext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 (eval $ac_try) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 ac_c99_stdio=no
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <stdio.h>
6988 #include <stdarg.h>
6989 void foo(char* fmt, ...)
6990 {va_list args; va_start(args, fmt);
6991 vscanf("%i", args);}
6993 main ()
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_cxx_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_c99_stdio=no
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 #include <stdio.h>
7037 #include <stdarg.h>
7038 void foo(char* fmt, ...)
7039 {va_list args; va_start(args, fmt);
7040 vsnprintf(fmt, 0, "%i", args);}
7042 main ()
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7051 (eval $ac_compile) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_cxx_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest.$ac_objext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 ac_c99_stdio=no
7078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 #include <stdio.h>
7086 #include <stdarg.h>
7087 void foo(char* fmt, ...)
7088 {va_list args; va_start(args, fmt);
7089 vsscanf(fmt, "%i", args);}
7091 main ()
7095 return 0;
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_cxx_werror_flag"
7108 || test ! -s conftest.err'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest.$ac_objext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_c99_stdio=no
7127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7129 echo "${ECHO_T}$ac_c99_stdio" >&6
7131 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7132 ac_c99_stdlib=yes;
7133 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7134 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7135 if test "${ac_c99_lldiv_t+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <stdlib.h>
7147 main ()
7149 lldiv_t mydivt;
7151 return 0;
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_cxx_werror_flag"
7164 || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_c99_lldiv_t=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_c99_lldiv_t=no
7183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7188 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7190 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7191 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <stdlib.h>
7200 main ()
7202 char* tmp; strtof("gnu", &tmp);
7204 return 0;
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -z "$ac_cxx_werror_flag"
7217 || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_c99_stdlib=no
7236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #include <stdlib.h>
7245 main ()
7247 char* tmp; strtold("gnu", &tmp);
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_cxx_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_c99_stdlib=no
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <stdlib.h>
7290 main ()
7292 llabs(10);
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299 (eval $ac_compile) 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -z "$ac_cxx_werror_flag"
7307 || test ! -s conftest.err'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; } &&
7313 { ac_try='test -s conftest.$ac_objext'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 (eval $ac_try) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_c99_stdlib=no
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #include <stdlib.h>
7335 main ()
7337 lldiv(10,1);
7339 return 0;
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344 (eval $ac_compile) 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_cxx_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest.$ac_objext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ac_c99_stdlib=no
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 #include <stdlib.h>
7380 main ()
7382 atoll("10");
7384 return 0;
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_cxx_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_c99_stdlib=no
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <stdlib.h>
7425 main ()
7427 _Exit(0);
7429 return 0;
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_cxx_werror_flag"
7442 || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 ac_c99_stdlib=no
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462 if test x"$ac_c99_lldiv_t" = x"no"; then
7463 ac_c99_stdlib=no;
7465 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7466 echo "${ECHO_T}$ac_c99_stdlib" >&6
7468 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7469 # XXX the wchar.h checks should be rolled into the general C99 bits.
7470 ac_c99_wchar=yes;
7471 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7472 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h. */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 #include <wchar.h>
7481 main ()
7483 wcstold(L"10.0", NULL);
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_cxx_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest.$ac_objext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 ac_c99_wchar=no
7517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <wchar.h>
7526 main ()
7528 wcstoll(L"10", NULL, 10);
7530 return 0;
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -z "$ac_cxx_werror_flag"
7543 || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_c99_wchar=no
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <wchar.h>
7571 main ()
7573 wcstoull(L"10", NULL, 10);
7575 return 0;
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_cxx_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_c99_wchar=no
7607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7609 echo "${ECHO_T}$ac_c99_wchar" >&6
7611 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7612 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7613 if test x"$ac_c99_math" = x"no" ||
7614 test x"$ac_c99_stdio" = x"no" ||
7615 test x"$ac_c99_stdlib" = x"no" ||
7616 test x"$ac_c99_wchar" = x"no"; then
7617 enable_c99=no;
7619 echo "$as_me:$LINENO: result: $enable_c99" >&5
7620 echo "${ECHO_T}$enable_c99" >&6
7622 if test x"$ac_99_math" = x"yes"; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define _GLIBCXX_USE_C99_MATH 1
7625 _ACEOF
7629 # Option parsed, now set things appropriately
7630 if test x"$enable_c99" = x"yes"; then
7631 cat >>confdefs.h <<\_ACEOF
7632 #define _GLIBCXX_USE_C99 1
7633 _ACEOF
7637 ac_ext=c
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 # Check whether --enable-long-long or --disable-long-long was given.
7646 if test "${enable_long_long+set}" = set; then
7647 enableval="$enable_long_long"
7649 case "$enableval" in
7650 yes|no) ;;
7651 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7652 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7653 { (exit 1); exit 1; }; } ;;
7654 esac
7656 else
7657 enable_long_long=yes
7663 ac_ext=cc
7664 ac_cpp='$CXXCPP $CPPFLAGS'
7665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7670 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7671 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7672 # iostreams require strtoll, strtoull to compile
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <stdlib.h>
7681 main ()
7683 char* tmp; strtoll("gnu", &tmp, 10);
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7690 (eval $ac_compile) 2>conftest.er1
7691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -z "$ac_cxx_werror_flag"
7698 || test ! -s conftest.err'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7711 else
7712 echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7715 enable_long_long=no
7717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7726 main ()
7728 char* tmp; strtoull("gnu", &tmp, 10);
7730 return 0;
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } &&
7742 { ac_try='test -z "$ac_cxx_werror_flag"
7743 || test ! -s conftest.err'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; } &&
7749 { ac_try='test -s conftest.$ac_objext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 enable_long_long=no
7762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764 # Option parsed, now set things appropriately
7765 if test $enable_long_long = yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define _GLIBCXX_USE_LONG_LONG 1
7768 _ACEOF
7771 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7772 echo "${ECHO_T}$enable_long_long" >&6
7774 ac_ext=c
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7783 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7784 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7785 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7786 echo "${ECHO_T}$target_thread_file" >&6
7788 if test $target_thread_file != single; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_GTHR_DEFAULT 1
7791 _ACEOF
7795 glibcxx_thread_h=gthr-$target_thread_file.h
7799 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7800 if test "${enable_concept_checks+set}" = set; then
7801 enableval="$enable_concept_checks"
7803 case "$enableval" in
7804 yes|no) ;;
7805 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7806 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7807 { (exit 1); exit 1; }; } ;;
7808 esac
7810 else
7811 enable_concept_checks=no
7814 if test $enable_concept_checks = yes; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define _GLIBCXX_CONCEPT_CHECKS 1
7817 _ACEOF
7822 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7823 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7824 enableval="$enable_libstdcxx_debug_flags"
7825 case "x$enable_libstdcxx_debug_flags" in
7826 xno | x) enable_libstdcxx_debug_flags= ;;
7827 x-*) ;;
7828 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7829 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7830 { (exit 1); exit 1; }; } ;;
7831 esac
7832 else
7833 enable_libstdcxx_debug_flags="-g3 -O0"
7837 # Option parsed, now set things appropriately
7838 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7841 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7842 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7845 echo "$as_me:$LINENO: checking for additional debug build" >&5
7846 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7847 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7848 if test "${enable_libstdcxx_debug+set}" = set; then
7849 enableval="$enable_libstdcxx_debug"
7851 case "$enableval" in
7852 yes|no) ;;
7853 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7854 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7855 { (exit 1); exit 1; }; } ;;
7856 esac
7858 else
7859 enable_libstdcxx_debug=no
7862 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7863 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7866 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7867 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7868 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7869 if test "${enable_cxx_flags+set}" = set; then
7870 enableval="$enable_cxx_flags"
7871 case "x$enable_cxx_flags" in
7872 xno | x) enable_cxx_flags= ;;
7873 x-*) ;;
7874 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7875 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7876 { (exit 1); exit 1; }; } ;;
7877 esac
7878 else
7879 enable_cxx_flags=
7883 # Run through flags (either default or command-line) and set anything
7884 # extra (e.g., #defines) that must accompany particular g++ options.
7885 if test -n "$enable_cxx_flags"; then
7886 for f in $enable_cxx_flags; do
7887 case "$f" in
7888 -fhonor-std) ;;
7889 -*) ;;
7890 *) # and we're trying to pass /what/ exactly?
7891 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7892 echo "$as_me: error: compiler flags start with a -" >&2;}
7893 { (exit 1); exit 1; }; } ;;
7894 esac
7895 done
7898 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7899 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7900 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7904 # No surprises, no surprises...
7905 if test $atomicity_dir = cpu/generic ; then
7906 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7907 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7908 if test $target_thread_file = single; then
7909 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7910 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7911 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7912 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7913 else
7914 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7915 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7916 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7917 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7922 if $GLIBCXX_IS_NATIVE; then
7924 # We can do more elaborate tests that assume a working linker.
7925 CANADIAN=no
7927 # Check for available headers.
7941 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7942 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7943 sys/types.h
7945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7947 echo "$as_me:$LINENO: checking for $ac_header" >&5
7948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954 else
7955 # Is the header compilable?
7956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_includes_default
7965 #include <$ac_header>
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969 (eval $ac_compile) 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest.$ac_objext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_header_compiler=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_header_compiler=no
7996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7998 echo "${ECHO_T}$ac_header_compiler" >&6
8000 # Is the header present?
8001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h. */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 #include <$ac_header>
8010 _ACEOF
8011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } >/dev/null; then
8019 if test -s conftest.err; then
8020 ac_cpp_err=$ac_c_preproc_warn_flag
8021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8022 else
8023 ac_cpp_err=
8025 else
8026 ac_cpp_err=yes
8028 if test -z "$ac_cpp_err"; then
8029 ac_header_preproc=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_header_preproc=no
8036 rm -f conftest.err conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038 echo "${ECHO_T}$ac_header_preproc" >&6
8040 # So? What about this header?
8041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8042 yes:no: )
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8047 ac_header_preproc=yes
8049 no:yes:* )
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8063 cat <<\_ASBOX
8064 ## ----------------------------------------- ##
8065 ## Report this to the package-unused lists. ##
8066 ## ----------------------------------------- ##
8067 _ASBOX
8069 sed "s/^/$as_me: WARNING: /" >&2
8071 esac
8072 echo "$as_me:$LINENO: checking for $ac_header" >&5
8073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077 eval "$as_ac_Header=\$ac_header_preproc"
8079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8084 cat >>confdefs.h <<_ACEOF
8085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 _ACEOF
8090 done
8094 # All these tests are for C++; save the language and the compiler flags.
8095 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8096 # found in GLIBCXX_CONFIGURE.
8099 ac_ext=cc
8100 ac_cpp='$CXXCPP $CPPFLAGS'
8101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8105 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8106 ac_save_CXXFLAGS="$CXXFLAGS"
8108 # Check for maintainer-mode bits.
8109 if test x"$USE_MAINTAINER_MODE" = xno; then
8110 WERROR=''
8111 else
8112 WERROR='-Werror'
8115 # Check for -ffunction-sections -fdata-sections
8116 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8117 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8118 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8127 main ()
8129 int foo;
8131 return 0;
8133 _ACEOF
8134 rm -f conftest.$ac_objext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try='test -z "$ac_cxx_werror_flag"
8144 || test ! -s conftest.err'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_fdsections=yes
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 ac_fdsections=no
8163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8164 if test "$ac_test_CXXFLAGS" = set; then
8165 CXXFLAGS="$ac_save_CXXFLAGS"
8166 else
8167 # this is the suspicious part
8168 CXXFLAGS=''
8170 if test x"$ac_fdsections" = x"yes"; then
8171 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8173 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8174 echo "${ECHO_T}$ac_fdsections" >&6
8176 ac_ext=c
8177 ac_cpp='$CPP $CPPFLAGS'
8178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8186 # If we're not using GNU ld, then there's no point in even trying these
8187 # tests. Check for that first. We should have already tested for gld
8188 # by now (in libtool), but require it now just to be safe...
8189 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8190 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8194 # The name set by libtool depends on the version of libtool. Shame on us
8195 # for depending on an impl detail, but c'est la vie. Older versions used
8196 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8197 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8198 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8199 # set (hence we're using an older libtool), then set it.
8200 if test x${with_gnu_ld+set} != xset; then
8201 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8202 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8203 with_gnu_ld=no
8204 else
8205 with_gnu_ld=$ac_cv_prog_gnu_ld
8209 # Start by getting the version number. I think the libtool test already
8210 # does some of this, but throws away the result.
8212 ldver=`$LD --version 2>/dev/null | head -1 | \
8213 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8215 glibcxx_gnu_ld_version=`echo $ldver | \
8216 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8218 # Set --gc-sections.
8219 if test "$with_gnu_ld" = "notbroken"; then
8220 # GNU ld it is! Joy and bunny rabbits!
8222 # All these tests are for C++; save the language and the compiler flags.
8223 # Need to do this so that g++ won't try to link in libstdc++
8224 ac_test_CFLAGS="${CFLAGS+set}"
8225 ac_save_CFLAGS="$CFLAGS"
8226 CFLAGS='-x c++ -Wl,--gc-sections'
8228 # Check for -Wl,--gc-sections
8229 # XXX This test is broken at the moment, as symbols required for linking
8230 # are now in libsupc++ (not built yet). In addition, this test has
8231 # cored on solaris in the past. In addition, --gc-sections doesn't
8232 # really work at the moment (keeps on discarding used sections, first
8233 # .eh_frame and now some of the glibc sections for iconv).
8234 # Bzzzzt. Thanks for playing, maybe next time.
8235 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8236 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8237 if test "$cross_compiling" = yes; then
8238 ac_sectionLDflags=yes
8239 else
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8247 int main(void)
8249 try { throw 1; }
8250 catch (...) { };
8251 return 0;
8254 _ACEOF
8255 rm -f conftest$ac_exeext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257 (eval $ac_link) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_sectionLDflags=yes
8267 else
8268 echo "$as_me: program exited with status $ac_status" >&5
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ( exit $ac_status )
8273 ac_sectionLDflags=no
8275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8277 if test "$ac_test_CFLAGS" = set; then
8278 CFLAGS="$ac_save_CFLAGS"
8279 else
8280 # this is the suspicious part
8281 CFLAGS=''
8283 if test "$ac_sectionLDflags" = "yes"; then
8284 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8286 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8287 echo "${ECHO_T}$ac_sectionLDflags" >&6
8290 # Set linker optimization flags.
8291 if test x"$with_gnu_ld" = x"yes"; then
8292 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8299 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8300 ac_save_CXXFLAGS="$CXXFLAGS"
8301 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8303 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8304 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8305 if test "${ac_cv_lib_m_sin+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-lm $LIBS"
8310 if test x$gcc_no_link = xyes; then
8311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8313 { (exit 1); exit 1; }; }
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8322 /* Override any gcc2 internal prototype to avoid an error. */
8323 #ifdef __cplusplus
8324 extern "C"
8325 #endif
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328 char sin ();
8330 main ()
8332 sin ();
8334 return 0;
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 ac_cv_lib_m_sin=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 ac_cv_lib_m_sin=no
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_lib_save_LIBS
8370 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8371 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8372 if test $ac_cv_lib_m_sin = yes; then
8373 libm="-lm"
8376 ac_save_LIBS="$LIBS"
8377 LIBS="$LIBS $libm"
8381 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8382 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8383 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8384 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8390 ac_ext=cc
8391 ac_cpp='$CXXCPP $CPPFLAGS'
8392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 #include <math.h>
8403 #ifdef HAVE_IEEEFP_H
8404 #include <ieeefp.h>
8405 #endif
8408 main ()
8410 isinf(0);
8412 return 0;
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_cxx_werror_flag"
8425 || test ! -s conftest.err'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 glibcxx_cv_func_isinf_use=yes
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 glibcxx_cv_func_isinf_use=no
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8445 ac_ext=c
8446 ac_cpp='$CPP $CPPFLAGS'
8447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8456 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8458 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8460 for ac_func in isinf
8462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8463 echo "$as_me:$LINENO: checking for $ac_func" >&5
8464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8465 if eval "test \"\${$as_ac_var+set}\" = set"; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 if test x$gcc_no_link = xyes; then
8469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8471 { (exit 1); exit 1; }; }
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8481 #define $ac_func innocuous_$ac_func
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char $ac_func (); below.
8485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486 <limits.h> exists even on freestanding compilers. */
8488 #ifdef __STDC__
8489 # include <limits.h>
8490 #else
8491 # include <assert.h>
8492 #endif
8494 #undef $ac_func
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 #ifdef __cplusplus
8498 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503 char $ac_func ();
8504 /* The GNU C library defines this for functions which it implements
8505 to always fail with ENOSYS. Some functions are actually named
8506 something starting with __ and the normal name is an alias. */
8507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8508 choke me
8509 #else
8510 char (*f) () = $ac_func;
8511 #endif
8512 #ifdef __cplusplus
8514 #endif
8517 main ()
8519 return f != $ac_func;
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 eval "$as_ac_var=yes"
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 eval "$as_ac_var=no"
8553 rm -f conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8558 if test `eval echo '${'$as_ac_var'}'` = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8561 _ACEOF
8564 done
8566 else
8568 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8569 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8570 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8571 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8577 ac_ext=cc
8578 ac_cpp='$CXXCPP $CPPFLAGS'
8579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 #include <math.h>
8590 #ifdef HAVE_IEEEFP_H
8591 #include <ieeefp.h>
8592 #endif
8595 main ()
8597 _isinf(0);
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_cxx_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 glibcxx_cv_func__isinf_use=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 glibcxx_cv_func__isinf_use=no
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 ac_ext=c
8633 ac_cpp='$CPP $CPPFLAGS'
8634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8643 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8645 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8647 for ac_func in _isinf
8649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8650 echo "$as_me:$LINENO: checking for $ac_func" >&5
8651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8652 if eval "test \"\${$as_ac_var+set}\" = set"; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655 if test x$gcc_no_link = xyes; then
8656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8658 { (exit 1); exit 1; }; }
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8668 #define $ac_func innocuous_$ac_func
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char $ac_func (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8675 #ifdef __STDC__
8676 # include <limits.h>
8677 #else
8678 # include <assert.h>
8679 #endif
8681 #undef $ac_func
8683 /* Override any gcc2 internal prototype to avoid an error. */
8684 #ifdef __cplusplus
8685 extern "C"
8687 #endif
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690 char $ac_func ();
8691 /* The GNU C library defines this for functions which it implements
8692 to always fail with ENOSYS. Some functions are actually named
8693 something starting with __ and the normal name is an alias. */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8695 choke me
8696 #else
8697 char (*f) () = $ac_func;
8698 #endif
8699 #ifdef __cplusplus
8701 #endif
8704 main ()
8706 return f != $ac_func;
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_var=yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_var=no"
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8748 _ACEOF
8751 done
8758 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8759 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8760 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8761 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8767 ac_ext=cc
8768 ac_cpp='$CXXCPP $CPPFLAGS'
8769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <math.h>
8780 #ifdef HAVE_IEEEFP_H
8781 #include <ieeefp.h>
8782 #endif
8785 main ()
8787 isnan(0);
8789 return 0;
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794 (eval $ac_compile) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_cxx_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 glibcxx_cv_func_isnan_use=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 glibcxx_cv_func_isnan_use=no
8821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8822 ac_ext=c
8823 ac_cpp='$CPP $CPPFLAGS'
8824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8832 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8833 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8835 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8837 for ac_func in isnan
8839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8840 echo "$as_me:$LINENO: checking for $ac_func" >&5
8841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8842 if eval "test \"\${$as_ac_var+set}\" = set"; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 if test x$gcc_no_link = xyes; then
8846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8848 { (exit 1); exit 1; }; }
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8858 #define $ac_func innocuous_$ac_func
8860 /* System header to define __stub macros and hopefully few prototypes,
8861 which can conflict with char $ac_func (); below.
8862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8863 <limits.h> exists even on freestanding compilers. */
8865 #ifdef __STDC__
8866 # include <limits.h>
8867 #else
8868 # include <assert.h>
8869 #endif
8871 #undef $ac_func
8873 /* Override any gcc2 internal prototype to avoid an error. */
8874 #ifdef __cplusplus
8875 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8880 char $ac_func ();
8881 /* The GNU C library defines this for functions which it implements
8882 to always fail with ENOSYS. Some functions are actually named
8883 something starting with __ and the normal name is an alias. */
8884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885 choke me
8886 #else
8887 char (*f) () = $ac_func;
8888 #endif
8889 #ifdef __cplusplus
8891 #endif
8894 main ()
8896 return f != $ac_func;
8898 return 0;
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 eval "$as_ac_var=yes"
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 eval "$as_ac_var=no"
8930 rm -f conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8935 if test `eval echo '${'$as_ac_var'}'` = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8938 _ACEOF
8941 done
8943 else
8945 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8946 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8947 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8948 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8954 ac_ext=cc
8955 ac_cpp='$CXXCPP $CPPFLAGS'
8956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 #include <math.h>
8967 #ifdef HAVE_IEEEFP_H
8968 #include <ieeefp.h>
8969 #endif
8972 main ()
8974 _isnan(0);
8976 return 0;
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_cxx_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest.$ac_objext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 glibcxx_cv_func__isnan_use=yes
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 glibcxx_cv_func__isnan_use=no
9008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009 ac_ext=c
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9020 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9022 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9024 for ac_func in _isnan
9026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9027 echo "$as_me:$LINENO: checking for $ac_func" >&5
9028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_var+set}\" = set"; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032 if test x$gcc_no_link = xyes; then
9033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9035 { (exit 1); exit 1; }; }
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9045 #define $ac_func innocuous_$ac_func
9047 /* System header to define __stub macros and hopefully few prototypes,
9048 which can conflict with char $ac_func (); below.
9049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9050 <limits.h> exists even on freestanding compilers. */
9052 #ifdef __STDC__
9053 # include <limits.h>
9054 #else
9055 # include <assert.h>
9056 #endif
9058 #undef $ac_func
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 #ifdef __cplusplus
9062 extern "C"
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067 char $ac_func ();
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9072 choke me
9073 #else
9074 char (*f) () = $ac_func;
9075 #endif
9076 #ifdef __cplusplus
9078 #endif
9081 main ()
9083 return f != $ac_func;
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 eval "$as_ac_var=yes"
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 eval "$as_ac_var=no"
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9122 if test `eval echo '${'$as_ac_var'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9125 _ACEOF
9128 done
9135 echo "$as_me:$LINENO: checking for finite declaration" >&5
9136 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9137 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9138 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9144 ac_ext=cc
9145 ac_cpp='$CXXCPP $CPPFLAGS'
9146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 #include <math.h>
9157 #ifdef HAVE_IEEEFP_H
9158 #include <ieeefp.h>
9159 #endif
9162 main ()
9164 finite(0);
9166 return 0;
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_cxx_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 glibcxx_cv_func_finite_use=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 glibcxx_cv_func_finite_use=no
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199 ac_ext=c
9200 ac_cpp='$CPP $CPPFLAGS'
9201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9210 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9212 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9214 for ac_func in finite
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_var+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 if test x$gcc_no_link = xyes; then
9223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9225 { (exit 1); exit 1; }; }
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9235 #define $ac_func innocuous_$ac_func
9237 /* System header to define __stub macros and hopefully few prototypes,
9238 which can conflict with char $ac_func (); below.
9239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9240 <limits.h> exists even on freestanding compilers. */
9242 #ifdef __STDC__
9243 # include <limits.h>
9244 #else
9245 # include <assert.h>
9246 #endif
9248 #undef $ac_func
9250 /* Override any gcc2 internal prototype to avoid an error. */
9251 #ifdef __cplusplus
9252 extern "C"
9254 #endif
9255 /* We use char because int might match the return type of a gcc2
9256 builtin and then its argument prototype would still apply. */
9257 char $ac_func ();
9258 /* The GNU C library defines this for functions which it implements
9259 to always fail with ENOSYS. Some functions are actually named
9260 something starting with __ and the normal name is an alias. */
9261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9262 choke me
9263 #else
9264 char (*f) () = $ac_func;
9265 #endif
9266 #ifdef __cplusplus
9268 #endif
9271 main ()
9273 return f != $ac_func;
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_c_werror_flag"
9288 || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 eval "$as_ac_var=yes"
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 eval "$as_ac_var=no"
9307 rm -f conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9312 if test `eval echo '${'$as_ac_var'}'` = yes; then
9313 cat >>confdefs.h <<_ACEOF
9314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9315 _ACEOF
9318 done
9320 else
9322 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9323 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9324 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9325 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9331 ac_ext=cc
9332 ac_cpp='$CXXCPP $CPPFLAGS'
9333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <math.h>
9344 #ifdef HAVE_IEEEFP_H
9345 #include <ieeefp.h>
9346 #endif
9349 main ()
9351 _finite(0);
9353 return 0;
9355 _ACEOF
9356 rm -f conftest.$ac_objext
9357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9358 (eval $ac_compile) 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_cxx_werror_flag"
9366 || test ! -s conftest.err'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest.$ac_objext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 glibcxx_cv_func__finite_use=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 glibcxx_cv_func__finite_use=no
9385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9386 ac_ext=c
9387 ac_cpp='$CPP $CPPFLAGS'
9388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9396 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9397 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9399 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9401 for ac_func in _finite
9403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9404 echo "$as_me:$LINENO: checking for $ac_func" >&5
9405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9406 if eval "test \"\${$as_ac_var+set}\" = set"; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 if test x$gcc_no_link = xyes; then
9410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9412 { (exit 1); exit 1; }; }
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9422 #define $ac_func innocuous_$ac_func
9424 /* System header to define __stub macros and hopefully few prototypes,
9425 which can conflict with char $ac_func (); below.
9426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9427 <limits.h> exists even on freestanding compilers. */
9429 #ifdef __STDC__
9430 # include <limits.h>
9431 #else
9432 # include <assert.h>
9433 #endif
9435 #undef $ac_func
9437 /* Override any gcc2 internal prototype to avoid an error. */
9438 #ifdef __cplusplus
9439 extern "C"
9441 #endif
9442 /* We use char because int might match the return type of a gcc2
9443 builtin and then its argument prototype would still apply. */
9444 char $ac_func ();
9445 /* The GNU C library defines this for functions which it implements
9446 to always fail with ENOSYS. Some functions are actually named
9447 something starting with __ and the normal name is an alias. */
9448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9449 choke me
9450 #else
9451 char (*f) () = $ac_func;
9452 #endif
9453 #ifdef __cplusplus
9455 #endif
9458 main ()
9460 return f != $ac_func;
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 eval "$as_ac_var=yes"
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 eval "$as_ac_var=no"
9494 rm -f conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9499 if test `eval echo '${'$as_ac_var'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9502 _ACEOF
9505 done
9512 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9513 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9514 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9515 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9521 ac_ext=cc
9522 ac_cpp='$CXXCPP $CPPFLAGS'
9523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 #include <math.h>
9535 main ()
9537 copysign(0, 0);
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_cxx_werror_flag"
9552 || test ! -s conftest.err'
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); }; } &&
9558 { ac_try='test -s conftest.$ac_objext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 glibcxx_cv_func_copysign_use=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 glibcxx_cv_func_copysign_use=no
9571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9572 ac_ext=c
9573 ac_cpp='$CPP $CPPFLAGS'
9574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9582 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9583 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9585 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9587 for ac_func in copysign
9589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9590 echo "$as_me:$LINENO: checking for $ac_func" >&5
9591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9592 if eval "test \"\${$as_ac_var+set}\" = set"; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 if test x$gcc_no_link = xyes; then
9596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9598 { (exit 1); exit 1; }; }
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define $ac_func innocuous_$ac_func
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9615 #ifdef __STDC__
9616 # include <limits.h>
9617 #else
9618 # include <assert.h>
9619 #endif
9621 #undef $ac_func
9623 /* Override any gcc2 internal prototype to avoid an error. */
9624 #ifdef __cplusplus
9625 extern "C"
9627 #endif
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char $ac_func ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9635 choke me
9636 #else
9637 char (*f) () = $ac_func;
9638 #endif
9639 #ifdef __cplusplus
9641 #endif
9644 main ()
9646 return f != $ac_func;
9648 return 0;
9650 _ACEOF
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag"
9661 || test ! -s conftest.err'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9673 eval "$as_ac_var=yes"
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 eval "$as_ac_var=no"
9680 rm -f conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9685 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9688 _ACEOF
9691 done
9693 else
9695 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9696 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9697 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9698 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9704 ac_ext=cc
9705 ac_cpp='$CXXCPP $CPPFLAGS'
9706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <math.h>
9718 main ()
9720 _copysign(0, 0);
9722 return 0;
9724 _ACEOF
9725 rm -f conftest.$ac_objext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727 (eval $ac_compile) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_cxx_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 glibcxx_cv_func__copysign_use=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 glibcxx_cv_func__copysign_use=no
9754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9755 ac_ext=c
9756 ac_cpp='$CPP $CPPFLAGS'
9757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9765 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9766 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9768 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9770 for ac_func in _copysign
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 if test x$gcc_no_link = xyes; then
9779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9781 { (exit 1); exit 1; }; }
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9791 #define $ac_func innocuous_$ac_func
9793 /* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char $ac_func (); below.
9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796 <limits.h> exists even on freestanding compilers. */
9798 #ifdef __STDC__
9799 # include <limits.h>
9800 #else
9801 # include <assert.h>
9802 #endif
9804 #undef $ac_func
9806 /* Override any gcc2 internal prototype to avoid an error. */
9807 #ifdef __cplusplus
9808 extern "C"
9810 #endif
9811 /* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813 char $ac_func ();
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 choke me
9819 #else
9820 char (*f) () = $ac_func;
9821 #endif
9822 #ifdef __cplusplus
9824 #endif
9827 main ()
9829 return f != $ac_func;
9831 return 0;
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 eval "$as_ac_var=yes"
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 eval "$as_ac_var=no"
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9868 if test `eval echo '${'$as_ac_var'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9871 _ACEOF
9874 done
9881 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9882 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9883 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9884 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9890 ac_ext=cc
9891 ac_cpp='$CXXCPP $CPPFLAGS'
9892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <math.h>
9904 main ()
9906 sincos(0, 0, 0);
9908 return 0;
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913 (eval $ac_compile) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_cxx_werror_flag"
9921 || test ! -s conftest.err'
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); }; } &&
9927 { ac_try='test -s conftest.$ac_objext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 glibcxx_cv_func_sincos_use=yes
9934 else
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 glibcxx_cv_func_sincos_use=no
9940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941 ac_ext=c
9942 ac_cpp='$CPP $CPPFLAGS'
9943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9952 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9954 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9956 for ac_func in sincos
9958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9959 echo "$as_me:$LINENO: checking for $ac_func" >&5
9960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_var+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 if test x$gcc_no_link = xyes; then
9965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9967 { (exit 1); exit 1; }; }
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9984 #ifdef __STDC__
9985 # include <limits.h>
9986 #else
9987 # include <assert.h>
9988 #endif
9990 #undef $ac_func
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 #ifdef __cplusplus
9994 extern "C"
9996 #endif
9997 /* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
9999 char $ac_func ();
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10004 choke me
10005 #else
10006 char (*f) () = $ac_func;
10007 #endif
10008 #ifdef __cplusplus
10010 #endif
10013 main ()
10015 return f != $ac_func;
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 eval "$as_ac_var=yes"
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 eval "$as_ac_var=no"
10049 rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10054 if test `eval echo '${'$as_ac_var'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10057 _ACEOF
10060 done
10062 else
10064 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10065 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10066 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10067 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10073 ac_ext=cc
10074 ac_cpp='$CXXCPP $CPPFLAGS'
10075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <math.h>
10087 main ()
10089 _sincos(0, 0, 0);
10091 return 0;
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_cxx_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 glibcxx_cv_func__sincos_use=yes
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 glibcxx_cv_func__sincos_use=no
10123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10124 ac_ext=c
10125 ac_cpp='$CPP $CPPFLAGS'
10126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10134 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10135 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10137 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10139 for ac_func in _sincos
10141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10142 echo "$as_me:$LINENO: checking for $ac_func" >&5
10143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10144 if eval "test \"\${$as_ac_var+set}\" = set"; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 if test x$gcc_no_link = xyes; then
10148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10150 { (exit 1); exit 1; }; }
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10160 #define $ac_func innocuous_$ac_func
10162 /* System header to define __stub macros and hopefully few prototypes,
10163 which can conflict with char $ac_func (); below.
10164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10165 <limits.h> exists even on freestanding compilers. */
10167 #ifdef __STDC__
10168 # include <limits.h>
10169 #else
10170 # include <assert.h>
10171 #endif
10173 #undef $ac_func
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 #ifdef __cplusplus
10177 extern "C"
10179 #endif
10180 /* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10182 char $ac_func ();
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10187 choke me
10188 #else
10189 char (*f) () = $ac_func;
10190 #endif
10191 #ifdef __cplusplus
10193 #endif
10196 main ()
10198 return f != $ac_func;
10200 return 0;
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag"
10213 || test ! -s conftest.err'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 eval "$as_ac_var=yes"
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 eval "$as_ac_var=no"
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 _ACEOF
10243 done
10250 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10251 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10252 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10253 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10259 ac_ext=cc
10260 ac_cpp='$CXXCPP $CPPFLAGS'
10261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 #include <math.h>
10272 #ifdef HAVE_IEEEFP_H
10273 #include <ieeefp.h>
10274 #endif
10277 main ()
10279 fpclass(0);
10281 return 0;
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_cxx_werror_flag"
10294 || test ! -s conftest.err'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest.$ac_objext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 glibcxx_cv_func_fpclass_use=yes
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 glibcxx_cv_func_fpclass_use=no
10313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10314 ac_ext=c
10315 ac_cpp='$CPP $CPPFLAGS'
10316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10325 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10327 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10329 for ac_func in fpclass
10331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10332 echo "$as_me:$LINENO: checking for $ac_func" >&5
10333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10334 if eval "test \"\${$as_ac_var+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 if test x$gcc_no_link = xyes; then
10338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10340 { (exit 1); exit 1; }; }
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define $ac_func innocuous_$ac_func
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char $ac_func (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10357 #ifdef __STDC__
10358 # include <limits.h>
10359 #else
10360 # include <assert.h>
10361 #endif
10363 #undef $ac_func
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 #ifdef __cplusplus
10367 extern "C"
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char $ac_func ();
10373 /* The GNU C library defines this for functions which it implements
10374 to always fail with ENOSYS. Some functions are actually named
10375 something starting with __ and the normal name is an alias. */
10376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10377 choke me
10378 #else
10379 char (*f) () = $ac_func;
10380 #endif
10381 #ifdef __cplusplus
10383 #endif
10386 main ()
10388 return f != $ac_func;
10390 return 0;
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 eval "$as_ac_var=yes"
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 eval "$as_ac_var=no"
10422 rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10427 if test `eval echo '${'$as_ac_var'}'` = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 _ACEOF
10433 done
10435 else
10437 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10438 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10439 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10440 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10446 ac_ext=cc
10447 ac_cpp='$CXXCPP $CPPFLAGS'
10448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <math.h>
10459 #ifdef HAVE_IEEEFP_H
10460 #include <ieeefp.h>
10461 #endif
10464 main ()
10466 _fpclass(0);
10468 return 0;
10470 _ACEOF
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -z "$ac_cxx_werror_flag"
10481 || test ! -s conftest.err'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; } &&
10487 { ac_try='test -s conftest.$ac_objext'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 glibcxx_cv_func__fpclass_use=yes
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 glibcxx_cv_func__fpclass_use=no
10500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10501 ac_ext=c
10502 ac_cpp='$CPP $CPPFLAGS'
10503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10512 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10514 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10516 for ac_func in _fpclass
10518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10519 echo "$as_me:$LINENO: checking for $ac_func" >&5
10520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10521 if eval "test \"\${$as_ac_var+set}\" = set"; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 if test x$gcc_no_link = xyes; then
10525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10527 { (exit 1); exit 1; }; }
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10537 #define $ac_func innocuous_$ac_func
10539 /* System header to define __stub macros and hopefully few prototypes,
10540 which can conflict with char $ac_func (); below.
10541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10542 <limits.h> exists even on freestanding compilers. */
10544 #ifdef __STDC__
10545 # include <limits.h>
10546 #else
10547 # include <assert.h>
10548 #endif
10550 #undef $ac_func
10552 /* Override any gcc2 internal prototype to avoid an error. */
10553 #ifdef __cplusplus
10554 extern "C"
10556 #endif
10557 /* We use char because int might match the return type of a gcc2
10558 builtin and then its argument prototype would still apply. */
10559 char $ac_func ();
10560 /* The GNU C library defines this for functions which it implements
10561 to always fail with ENOSYS. Some functions are actually named
10562 something starting with __ and the normal name is an alias. */
10563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10564 choke me
10565 #else
10566 char (*f) () = $ac_func;
10567 #endif
10568 #ifdef __cplusplus
10570 #endif
10573 main ()
10575 return f != $ac_func;
10577 return 0;
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 eval "$as_ac_var=yes"
10603 else
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "$as_ac_var=no"
10609 rm -f conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10614 if test `eval echo '${'$as_ac_var'}'` = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10617 _ACEOF
10620 done
10627 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10628 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10629 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10630 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10636 ac_ext=cc
10637 ac_cpp='$CXXCPP $CPPFLAGS'
10638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 #include <math.h>
10649 #ifdef HAVE_IEEEFP_H
10650 #include <ieeefp.h>
10651 #endif
10654 main ()
10656 qfpclass(0);
10658 return 0;
10660 _ACEOF
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -z "$ac_cxx_werror_flag"
10671 || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest.$ac_objext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 glibcxx_cv_func_qfpclass_use=yes
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 glibcxx_cv_func_qfpclass_use=no
10690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10691 ac_ext=c
10692 ac_cpp='$CPP $CPPFLAGS'
10693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10701 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10702 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10704 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10706 for ac_func in qfpclass
10708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10709 echo "$as_me:$LINENO: checking for $ac_func" >&5
10710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_var+set}\" = set"; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 if test x$gcc_no_link = xyes; then
10715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10717 { (exit 1); exit 1; }; }
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define $ac_func innocuous_$ac_func
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char $ac_func (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10734 #ifdef __STDC__
10735 # include <limits.h>
10736 #else
10737 # include <assert.h>
10738 #endif
10740 #undef $ac_func
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 #ifdef __cplusplus
10744 extern "C"
10746 #endif
10747 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */
10749 char $ac_func ();
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10754 choke me
10755 #else
10756 char (*f) () = $ac_func;
10757 #endif
10758 #ifdef __cplusplus
10760 #endif
10763 main ()
10765 return f != $ac_func;
10767 return 0;
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 eval "$as_ac_var=yes"
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 eval "$as_ac_var=no"
10799 rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10804 if test `eval echo '${'$as_ac_var'}'` = yes; then
10805 cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10807 _ACEOF
10810 done
10812 else
10814 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10815 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10816 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10817 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10823 ac_ext=cc
10824 ac_cpp='$CXXCPP $CPPFLAGS'
10825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 #include <math.h>
10836 #ifdef HAVE_IEEEFP_H
10837 #include <ieeefp.h>
10838 #endif
10841 main ()
10843 _qfpclass(0);
10845 return 0;
10847 _ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850 (eval $ac_compile) 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_cxx_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 glibcxx_cv_func__qfpclass_use=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 glibcxx_cv_func__qfpclass_use=no
10877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10878 ac_ext=c
10879 ac_cpp='$CPP $CPPFLAGS'
10880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10888 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10889 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10891 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10893 for ac_func in _qfpclass
10895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10896 echo "$as_me:$LINENO: checking for $ac_func" >&5
10897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10898 if eval "test \"\${$as_ac_var+set}\" = set"; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901 if test x$gcc_no_link = xyes; then
10902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10904 { (exit 1); exit 1; }; }
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define $ac_func innocuous_$ac_func
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10921 #ifdef __STDC__
10922 # include <limits.h>
10923 #else
10924 # include <assert.h>
10925 #endif
10927 #undef $ac_func
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 #ifdef __cplusplus
10931 extern "C"
10933 #endif
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10936 char $ac_func ();
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10941 choke me
10942 #else
10943 char (*f) () = $ac_func;
10944 #endif
10945 #ifdef __cplusplus
10947 #endif
10950 main ()
10952 return f != $ac_func;
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10959 (eval $ac_link) 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 eval "$as_ac_var=yes"
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 eval "$as_ac_var=no"
10986 rm -f conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10991 if test `eval echo '${'$as_ac_var'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 _ACEOF
10997 done
11004 echo "$as_me:$LINENO: checking for hypot declaration" >&5
11005 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11006 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11007 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11013 ac_ext=cc
11014 ac_cpp='$CXXCPP $CPPFLAGS'
11015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <math.h>
11027 main ()
11029 hypot(0, 0);
11031 return 0;
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_cxx_werror_flag"
11044 || test ! -s conftest.err'
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); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 glibcxx_cv_func_hypot_use=yes
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 glibcxx_cv_func_hypot_use=no
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064 ac_ext=c
11065 ac_cpp='$CPP $CPPFLAGS'
11066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11074 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11075 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11077 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11079 for ac_func in hypot
11081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11082 echo "$as_me:$LINENO: checking for $ac_func" >&5
11083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_var+set}\" = set"; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 if test x$gcc_no_link = xyes; then
11088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11090 { (exit 1); exit 1; }; }
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h. */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11100 #define $ac_func innocuous_$ac_func
11102 /* System header to define __stub macros and hopefully few prototypes,
11103 which can conflict with char $ac_func (); below.
11104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11105 <limits.h> exists even on freestanding compilers. */
11107 #ifdef __STDC__
11108 # include <limits.h>
11109 #else
11110 # include <assert.h>
11111 #endif
11113 #undef $ac_func
11115 /* Override any gcc2 internal prototype to avoid an error. */
11116 #ifdef __cplusplus
11117 extern "C"
11119 #endif
11120 /* We use char because int might match the return type of a gcc2
11121 builtin and then its argument prototype would still apply. */
11122 char $ac_func ();
11123 /* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
11126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11127 choke me
11128 #else
11129 char (*f) () = $ac_func;
11130 #endif
11131 #ifdef __cplusplus
11133 #endif
11136 main ()
11138 return f != $ac_func;
11140 return 0;
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag"
11153 || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 eval "$as_ac_var=yes"
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 eval "$as_ac_var=no"
11172 rm -f conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11177 if test `eval echo '${'$as_ac_var'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11180 _ACEOF
11183 done
11185 else
11187 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11188 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11189 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11190 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11196 ac_ext=cc
11197 ac_cpp='$CXXCPP $CPPFLAGS'
11198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <math.h>
11210 main ()
11212 _hypot(0, 0);
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_cxx_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 glibcxx_cv_func__hypot_use=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 glibcxx_cv_func__hypot_use=no
11246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11247 ac_ext=c
11248 ac_cpp='$CPP $CPPFLAGS'
11249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11257 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11258 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11260 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11262 for ac_func in _hypot
11264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265 echo "$as_me:$LINENO: checking for $ac_func" >&5
11266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11267 if eval "test \"\${$as_ac_var+set}\" = set"; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 if test x$gcc_no_link = xyes; then
11271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11273 { (exit 1); exit 1; }; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11283 #define $ac_func innocuous_$ac_func
11285 /* System header to define __stub macros and hopefully few prototypes,
11286 which can conflict with char $ac_func (); below.
11287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11288 <limits.h> exists even on freestanding compilers. */
11290 #ifdef __STDC__
11291 # include <limits.h>
11292 #else
11293 # include <assert.h>
11294 #endif
11296 #undef $ac_func
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 #ifdef __cplusplus
11300 extern "C"
11302 #endif
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char $ac_func ();
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310 choke me
11311 #else
11312 char (*f) () = $ac_func;
11313 #endif
11314 #ifdef __cplusplus
11316 #endif
11319 main ()
11321 return f != $ac_func;
11323 return 0;
11325 _ACEOF
11326 rm -f conftest.$ac_objext conftest$ac_exeext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag"
11336 || test ! -s conftest.err'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 eval "$as_ac_var=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11355 rm -f conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11360 if test `eval echo '${'$as_ac_var'}'` = yes; then
11361 cat >>confdefs.h <<_ACEOF
11362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363 _ACEOF
11366 done
11373 echo "$as_me:$LINENO: checking for float trig functions" >&5
11374 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11375 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11381 ac_ext=cc
11382 ac_cpp='$CXXCPP $CPPFLAGS'
11383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h. */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 #include <math.h>
11395 main ()
11397 `for x in acosf asinf atanf \
11398 cosf sinf tanf \
11399 coshf sinhf tanhf; do echo "$x (0);"; done`
11401 return 0;
11403 _ACEOF
11404 rm -f conftest.$ac_objext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11406 (eval $ac_compile) 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_cxx_werror_flag"
11414 || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 glibcxx_cv_func_float_trig_use=yes
11427 else
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 glibcxx_cv_func_float_trig_use=no
11433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11434 ac_ext=c
11435 ac_cpp='$CPP $CPPFLAGS'
11436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11442 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11443 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11444 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11454 for ac_func in acosf asinf atanf \
11455 cosf sinf tanf \
11456 coshf sinhf tanhf
11458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459 echo "$as_me:$LINENO: checking for $ac_func" >&5
11460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11461 if eval "test \"\${$as_ac_var+set}\" = set"; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 if test x$gcc_no_link = xyes; then
11465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11467 { (exit 1); exit 1; }; }
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11477 #define $ac_func innocuous_$ac_func
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func (); below.
11481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11482 <limits.h> exists even on freestanding compilers. */
11484 #ifdef __STDC__
11485 # include <limits.h>
11486 #else
11487 # include <assert.h>
11488 #endif
11490 #undef $ac_func
11492 /* Override any gcc2 internal prototype to avoid an error. */
11493 #ifdef __cplusplus
11494 extern "C"
11496 #endif
11497 /* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11499 char $ac_func ();
11500 /* The GNU C library defines this for functions which it implements
11501 to always fail with ENOSYS. Some functions are actually named
11502 something starting with __ and the normal name is an alias. */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11504 choke me
11505 #else
11506 char (*f) () = $ac_func;
11507 #endif
11508 #ifdef __cplusplus
11510 #endif
11513 main ()
11515 return f != $ac_func;
11517 return 0;
11519 _ACEOF
11520 rm -f conftest.$ac_objext conftest$ac_exeext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522 (eval $ac_link) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 eval "$as_ac_var=yes"
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 eval "$as_ac_var=no"
11549 rm -f conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11554 if test `eval echo '${'$as_ac_var'}'` = yes; then
11555 cat >>confdefs.h <<_ACEOF
11556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11557 _ACEOF
11560 done
11565 echo "$as_me:$LINENO: checking for float round functions" >&5
11566 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11567 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11573 ac_ext=cc
11574 ac_cpp='$CXXCPP $CPPFLAGS'
11575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11579 cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 #include <math.h>
11587 main ()
11589 `for x in ceilf floorf; do echo "$x (0);"; done`
11591 return 0;
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596 (eval $ac_compile) 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_cxx_werror_flag"
11604 || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 glibcxx_cv_func_float_round_use=yes
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 glibcxx_cv_func_float_round_use=no
11623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11624 ac_ext=c
11625 ac_cpp='$CPP $CPPFLAGS'
11626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11633 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11634 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11637 for ac_func in ceilf floorf
11639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640 echo "$as_me:$LINENO: checking for $ac_func" >&5
11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_var+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 if test x$gcc_no_link = xyes; then
11646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11648 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11671 #undef $ac_func
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 #ifdef __cplusplus
11675 extern "C"
11677 #endif
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680 char $ac_func ();
11681 /* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11685 choke me
11686 #else
11687 char (*f) () = $ac_func;
11688 #endif
11689 #ifdef __cplusplus
11691 #endif
11694 main ()
11696 return f != $ac_func;
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 eval "$as_ac_var=yes"
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 eval "$as_ac_var=no"
11730 rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11741 done
11747 echo "$as_me:$LINENO: checking for expf declaration" >&5
11748 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11749 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11750 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11756 ac_ext=cc
11757 ac_cpp='$CXXCPP $CPPFLAGS'
11758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <math.h>
11769 #ifdef HAVE_IEEEFP_H
11770 #include <ieeefp.h>
11771 #endif
11774 main ()
11776 expf(0);
11778 return 0;
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783 (eval $ac_compile) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -z "$ac_cxx_werror_flag"
11791 || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 glibcxx_cv_func_expf_use=yes
11804 else
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 glibcxx_cv_func_expf_use=no
11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 ac_ext=c
11812 ac_cpp='$CPP $CPPFLAGS'
11813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11822 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11824 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11826 for ac_func in expf
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11831 if eval "test \"\${$as_ac_var+set}\" = set"; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834 if test x$gcc_no_link = xyes; then
11835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11837 { (exit 1); exit 1; }; }
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11847 #define $ac_func innocuous_$ac_func
11849 /* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func (); below.
11851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 <limits.h> exists even on freestanding compilers. */
11854 #ifdef __STDC__
11855 # include <limits.h>
11856 #else
11857 # include <assert.h>
11858 #endif
11860 #undef $ac_func
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 #ifdef __cplusplus
11864 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869 char $ac_func ();
11870 /* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11874 choke me
11875 #else
11876 char (*f) () = $ac_func;
11877 #endif
11878 #ifdef __cplusplus
11880 #endif
11883 main ()
11885 return f != $ac_func;
11887 return 0;
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 eval "$as_ac_var=yes"
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 eval "$as_ac_var=no"
11919 rm -f conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11924 if test `eval echo '${'$as_ac_var'}'` = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11927 _ACEOF
11930 done
11932 else
11934 echo "$as_me:$LINENO: checking for _expf declaration" >&5
11935 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
11936 if test x${glibcxx_cv_func__expf_use+set} != xset; then
11937 if test "${glibcxx_cv_func__expf_use+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11943 ac_ext=cc
11944 ac_cpp='$CXXCPP $CPPFLAGS'
11945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 #include <math.h>
11956 #ifdef HAVE_IEEEFP_H
11957 #include <ieeefp.h>
11958 #endif
11961 main ()
11963 _expf(0);
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_cxx_werror_flag"
11978 || test ! -s conftest.err'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest.$ac_objext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 glibcxx_cv_func__expf_use=yes
11991 else
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 glibcxx_cv_func__expf_use=no
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 ac_ext=c
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12009 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12011 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12013 for ac_func in _expf
12015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 echo "$as_me:$LINENO: checking for $ac_func" >&5
12017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_var+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 if test x$gcc_no_link = xyes; then
12022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12024 { (exit 1); exit 1; }; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12041 #ifdef __STDC__
12042 # include <limits.h>
12043 #else
12044 # include <assert.h>
12045 #endif
12047 #undef $ac_func
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 #ifdef __cplusplus
12051 extern "C"
12053 #endif
12054 /* We use char because int might match the return type of a gcc2
12055 builtin and then its argument prototype would still apply. */
12056 char $ac_func ();
12057 /* The GNU C library defines this for functions which it implements
12058 to always fail with ENOSYS. Some functions are actually named
12059 something starting with __ and the normal name is an alias. */
12060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12061 choke me
12062 #else
12063 char (*f) () = $ac_func;
12064 #endif
12065 #ifdef __cplusplus
12067 #endif
12070 main ()
12072 return f != $ac_func;
12074 return 0;
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_c_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 eval "$as_ac_var=yes"
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 eval "$as_ac_var=no"
12106 rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114 _ACEOF
12117 done
12124 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12125 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12126 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12127 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12133 ac_ext=cc
12134 ac_cpp='$CXXCPP $CPPFLAGS'
12135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 #include <math.h>
12146 #ifdef HAVE_IEEEFP_H
12147 #include <ieeefp.h>
12148 #endif
12151 main ()
12153 isnanf(0);
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_cxx_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 glibcxx_cv_func_isnanf_use=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 glibcxx_cv_func_isnanf_use=no
12187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12188 ac_ext=c
12189 ac_cpp='$CPP $CPPFLAGS'
12190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12198 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12199 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12201 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12203 for ac_func in isnanf
12205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_var+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 if test x$gcc_no_link = xyes; then
12212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12214 { (exit 1); exit 1; }; }
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12224 #define $ac_func innocuous_$ac_func
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char $ac_func (); below.
12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 <limits.h> exists even on freestanding compilers. */
12231 #ifdef __STDC__
12232 # include <limits.h>
12233 #else
12234 # include <assert.h>
12235 #endif
12237 #undef $ac_func
12239 /* Override any gcc2 internal prototype to avoid an error. */
12240 #ifdef __cplusplus
12241 extern "C"
12243 #endif
12244 /* We use char because int might match the return type of a gcc2
12245 builtin and then its argument prototype would still apply. */
12246 char $ac_func ();
12247 /* The GNU C library defines this for functions which it implements
12248 to always fail with ENOSYS. Some functions are actually named
12249 something starting with __ and the normal name is an alias. */
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 choke me
12252 #else
12253 char (*f) () = $ac_func;
12254 #endif
12255 #ifdef __cplusplus
12257 #endif
12260 main ()
12262 return f != $ac_func;
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 eval "$as_ac_var=yes"
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 eval "$as_ac_var=no"
12296 rm -f conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12301 if test `eval echo '${'$as_ac_var'}'` = yes; then
12302 cat >>confdefs.h <<_ACEOF
12303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12304 _ACEOF
12307 done
12309 else
12311 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12312 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12313 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12314 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12320 ac_ext=cc
12321 ac_cpp='$CXXCPP $CPPFLAGS'
12322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <math.h>
12333 #ifdef HAVE_IEEEFP_H
12334 #include <ieeefp.h>
12335 #endif
12338 main ()
12340 _isnanf(0);
12342 return 0;
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347 (eval $ac_compile) 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -z "$ac_cxx_werror_flag"
12355 || test ! -s conftest.err'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 glibcxx_cv_func__isnanf_use=yes
12368 else
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12372 glibcxx_cv_func__isnanf_use=no
12374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12375 ac_ext=c
12376 ac_cpp='$CPP $CPPFLAGS'
12377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12385 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12386 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12388 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12390 for ac_func in _isnanf
12392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12393 echo "$as_me:$LINENO: checking for $ac_func" >&5
12394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12395 if eval "test \"\${$as_ac_var+set}\" = set"; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 if test x$gcc_no_link = xyes; then
12399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12401 { (exit 1); exit 1; }; }
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define $ac_func innocuous_$ac_func
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char $ac_func (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12424 #undef $ac_func
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 #ifdef __cplusplus
12428 extern "C"
12430 #endif
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char $ac_func ();
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12438 choke me
12439 #else
12440 char (*f) () = $ac_func;
12441 #endif
12442 #ifdef __cplusplus
12444 #endif
12447 main ()
12449 return f != $ac_func;
12451 return 0;
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 eval "$as_ac_var=yes"
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 eval "$as_ac_var=no"
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12488 if test `eval echo '${'$as_ac_var'}'` = yes; then
12489 cat >>confdefs.h <<_ACEOF
12490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12491 _ACEOF
12494 done
12501 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12502 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12503 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12504 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12510 ac_ext=cc
12511 ac_cpp='$CXXCPP $CPPFLAGS'
12512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12516 cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h. */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 #include <math.h>
12523 #ifdef HAVE_IEEEFP_H
12524 #include <ieeefp.h>
12525 #endif
12528 main ()
12530 isinff(0);
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_cxx_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 glibcxx_cv_func_isinff_use=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 glibcxx_cv_func_isinff_use=no
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 ac_ext=c
12566 ac_cpp='$CPP $CPPFLAGS'
12567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12576 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12578 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12580 for ac_func in isinff
12582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12583 echo "$as_me:$LINENO: checking for $ac_func" >&5
12584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12585 if eval "test \"\${$as_ac_var+set}\" = set"; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 if test x$gcc_no_link = xyes; then
12589 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12591 { (exit 1); exit 1; }; }
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12601 #define $ac_func innocuous_$ac_func
12603 /* System header to define __stub macros and hopefully few prototypes,
12604 which can conflict with char $ac_func (); below.
12605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606 <limits.h> exists even on freestanding compilers. */
12608 #ifdef __STDC__
12609 # include <limits.h>
12610 #else
12611 # include <assert.h>
12612 #endif
12614 #undef $ac_func
12616 /* Override any gcc2 internal prototype to avoid an error. */
12617 #ifdef __cplusplus
12618 extern "C"
12620 #endif
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char $ac_func ();
12624 /* The GNU C library defines this for functions which it implements
12625 to always fail with ENOSYS. Some functions are actually named
12626 something starting with __ and the normal name is an alias. */
12627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12628 choke me
12629 #else
12630 char (*f) () = $ac_func;
12631 #endif
12632 #ifdef __cplusplus
12634 #endif
12637 main ()
12639 return f != $ac_func;
12641 return 0;
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646 (eval $ac_link) 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -z "$ac_c_werror_flag"
12654 || test ! -s conftest.err'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest$ac_exeext'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 eval "$as_ac_var=yes"
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 eval "$as_ac_var=no"
12673 rm -f conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12678 if test `eval echo '${'$as_ac_var'}'` = yes; then
12679 cat >>confdefs.h <<_ACEOF
12680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12681 _ACEOF
12684 done
12686 else
12688 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12689 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12690 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12691 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12697 ac_ext=cc
12698 ac_cpp='$CXXCPP $CPPFLAGS'
12699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <math.h>
12710 #ifdef HAVE_IEEEFP_H
12711 #include <ieeefp.h>
12712 #endif
12715 main ()
12717 _isinff(0);
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try='test -z "$ac_cxx_werror_flag"
12732 || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 glibcxx_cv_func__isinff_use=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 glibcxx_cv_func__isinff_use=no
12751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12752 ac_ext=c
12753 ac_cpp='$CPP $CPPFLAGS'
12754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12763 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12765 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12767 for ac_func in _isinff
12769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770 echo "$as_me:$LINENO: checking for $ac_func" >&5
12771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12772 if eval "test \"\${$as_ac_var+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 if test x$gcc_no_link = xyes; then
12776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12778 { (exit 1); exit 1; }; }
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12788 #define $ac_func innocuous_$ac_func
12790 /* System header to define __stub macros and hopefully few prototypes,
12791 which can conflict with char $ac_func (); below.
12792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12793 <limits.h> exists even on freestanding compilers. */
12795 #ifdef __STDC__
12796 # include <limits.h>
12797 #else
12798 # include <assert.h>
12799 #endif
12801 #undef $ac_func
12803 /* Override any gcc2 internal prototype to avoid an error. */
12804 #ifdef __cplusplus
12805 extern "C"
12807 #endif
12808 /* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810 char $ac_func ();
12811 /* The GNU C library defines this for functions which it implements
12812 to always fail with ENOSYS. Some functions are actually named
12813 something starting with __ and the normal name is an alias. */
12814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12815 choke me
12816 #else
12817 char (*f) () = $ac_func;
12818 #endif
12819 #ifdef __cplusplus
12821 #endif
12824 main ()
12826 return f != $ac_func;
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 eval "$as_ac_var=yes"
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 eval "$as_ac_var=no"
12860 rm -f conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12865 if test `eval echo '${'$as_ac_var'}'` = yes; then
12866 cat >>confdefs.h <<_ACEOF
12867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12868 _ACEOF
12871 done
12878 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12879 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12880 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12881 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12887 ac_ext=cc
12888 ac_cpp='$CXXCPP $CPPFLAGS'
12889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <math.h>
12901 main ()
12903 atan2f(0, 0);
12905 return 0;
12907 _ACEOF
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -z "$ac_cxx_werror_flag"
12918 || test ! -s conftest.err'
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); }; } &&
12924 { ac_try='test -s conftest.$ac_objext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 glibcxx_cv_func_atan2f_use=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 glibcxx_cv_func_atan2f_use=no
12937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12938 ac_ext=c
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
12949 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
12951 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
12953 for ac_func in atan2f
12955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 echo "$as_me:$LINENO: checking for $ac_func" >&5
12957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_var+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 if test x$gcc_no_link = xyes; then
12962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12964 { (exit 1); exit 1; }; }
12966 cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h. */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12974 #define $ac_func innocuous_$ac_func
12976 /* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char $ac_func (); below.
12978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12979 <limits.h> exists even on freestanding compilers. */
12981 #ifdef __STDC__
12982 # include <limits.h>
12983 #else
12984 # include <assert.h>
12985 #endif
12987 #undef $ac_func
12989 /* Override any gcc2 internal prototype to avoid an error. */
12990 #ifdef __cplusplus
12991 extern "C"
12993 #endif
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12996 char $ac_func ();
12997 /* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13001 choke me
13002 #else
13003 char (*f) () = $ac_func;
13004 #endif
13005 #ifdef __cplusplus
13007 #endif
13010 main ()
13012 return f != $ac_func;
13014 return 0;
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 eval "$as_ac_var=yes"
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 eval "$as_ac_var=no"
13046 rm -f conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13051 if test `eval echo '${'$as_ac_var'}'` = yes; then
13052 cat >>confdefs.h <<_ACEOF
13053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13054 _ACEOF
13057 done
13059 else
13061 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13062 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13063 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13064 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13070 ac_ext=cc
13071 ac_cpp='$CXXCPP $CPPFLAGS'
13072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 #include <math.h>
13084 main ()
13086 _atan2f(0, 0);
13088 return 0;
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_cxx_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 glibcxx_cv_func__atan2f_use=yes
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 glibcxx_cv_func__atan2f_use=no
13120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121 ac_ext=c
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13131 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13132 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13134 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13136 for ac_func in _atan2f
13138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13139 echo "$as_me:$LINENO: checking for $ac_func" >&5
13140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13141 if eval "test \"\${$as_ac_var+set}\" = set"; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 if test x$gcc_no_link = xyes; then
13145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13147 { (exit 1); exit 1; }; }
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13157 #define $ac_func innocuous_$ac_func
13159 /* System header to define __stub macros and hopefully few prototypes,
13160 which can conflict with char $ac_func (); below.
13161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162 <limits.h> exists even on freestanding compilers. */
13164 #ifdef __STDC__
13165 # include <limits.h>
13166 #else
13167 # include <assert.h>
13168 #endif
13170 #undef $ac_func
13172 /* Override any gcc2 internal prototype to avoid an error. */
13173 #ifdef __cplusplus
13174 extern "C"
13176 #endif
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179 char $ac_func ();
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13184 choke me
13185 #else
13186 char (*f) () = $ac_func;
13187 #endif
13188 #ifdef __cplusplus
13190 #endif
13193 main ()
13195 return f != $ac_func;
13197 return 0;
13199 _ACEOF
13200 rm -f conftest.$ac_objext conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag"
13210 || test ! -s conftest.err'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 eval "$as_ac_var=yes"
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 eval "$as_ac_var=no"
13229 rm -f conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13234 if test `eval echo '${'$as_ac_var'}'` = yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13237 _ACEOF
13240 done
13247 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13248 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13249 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13250 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13256 ac_ext=cc
13257 ac_cpp='$CXXCPP $CPPFLAGS'
13258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h. */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 #include <math.h>
13269 #ifdef HAVE_IEEEFP_H
13270 #include <ieeefp.h>
13271 #endif
13274 main ()
13276 fabsf(0);
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283 (eval $ac_compile) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_cxx_werror_flag"
13291 || test ! -s conftest.err'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 glibcxx_cv_func_fabsf_use=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 glibcxx_cv_func_fabsf_use=no
13310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13311 ac_ext=c
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13321 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13322 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13324 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13326 for ac_func in fabsf
13328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13329 echo "$as_me:$LINENO: checking for $ac_func" >&5
13330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13331 if eval "test \"\${$as_ac_var+set}\" = set"; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334 if test x$gcc_no_link = xyes; then
13335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13337 { (exit 1); exit 1; }; }
13339 cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h. */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13347 #define $ac_func innocuous_$ac_func
13349 /* System header to define __stub macros and hopefully few prototypes,
13350 which can conflict with char $ac_func (); below.
13351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13352 <limits.h> exists even on freestanding compilers. */
13354 #ifdef __STDC__
13355 # include <limits.h>
13356 #else
13357 # include <assert.h>
13358 #endif
13360 #undef $ac_func
13362 /* Override any gcc2 internal prototype to avoid an error. */
13363 #ifdef __cplusplus
13364 extern "C"
13366 #endif
13367 /* We use char because int might match the return type of a gcc2
13368 builtin and then its argument prototype would still apply. */
13369 char $ac_func ();
13370 /* The GNU C library defines this for functions which it implements
13371 to always fail with ENOSYS. Some functions are actually named
13372 something starting with __ and the normal name is an alias. */
13373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13374 choke me
13375 #else
13376 char (*f) () = $ac_func;
13377 #endif
13378 #ifdef __cplusplus
13380 #endif
13383 main ()
13385 return f != $ac_func;
13387 return 0;
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392 (eval $ac_link) 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest$ac_exeext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 eval "$as_ac_var=yes"
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 eval "$as_ac_var=no"
13419 rm -f conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13424 if test `eval echo '${'$as_ac_var'}'` = yes; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13427 _ACEOF
13430 done
13432 else
13434 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13435 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13436 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13437 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13443 ac_ext=cc
13444 ac_cpp='$CXXCPP $CPPFLAGS'
13445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 #include <math.h>
13456 #ifdef HAVE_IEEEFP_H
13457 #include <ieeefp.h>
13458 #endif
13461 main ()
13463 _fabsf(0);
13465 return 0;
13467 _ACEOF
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_cxx_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 glibcxx_cv_func__fabsf_use=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 glibcxx_cv_func__fabsf_use=no
13497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498 ac_ext=c
13499 ac_cpp='$CPP $CPPFLAGS'
13500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13508 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13509 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13511 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13513 for ac_func in _fabsf
13515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13516 echo "$as_me:$LINENO: checking for $ac_func" >&5
13517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13518 if eval "test \"\${$as_ac_var+set}\" = set"; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521 if test x$gcc_no_link = xyes; then
13522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13524 { (exit 1); exit 1; }; }
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13534 #define $ac_func innocuous_$ac_func
13536 /* System header to define __stub macros and hopefully few prototypes,
13537 which can conflict with char $ac_func (); below.
13538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13539 <limits.h> exists even on freestanding compilers. */
13541 #ifdef __STDC__
13542 # include <limits.h>
13543 #else
13544 # include <assert.h>
13545 #endif
13547 #undef $ac_func
13549 /* Override any gcc2 internal prototype to avoid an error. */
13550 #ifdef __cplusplus
13551 extern "C"
13553 #endif
13554 /* We use char because int might match the return type of a gcc2
13555 builtin and then its argument prototype would still apply. */
13556 char $ac_func ();
13557 /* The GNU C library defines this for functions which it implements
13558 to always fail with ENOSYS. Some functions are actually named
13559 something starting with __ and the normal name is an alias. */
13560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13561 choke me
13562 #else
13563 char (*f) () = $ac_func;
13564 #endif
13565 #ifdef __cplusplus
13567 #endif
13570 main ()
13572 return f != $ac_func;
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 eval "$as_ac_var=yes"
13600 else
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 eval "$as_ac_var=no"
13606 rm -f conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13611 if test `eval echo '${'$as_ac_var'}'` = yes; then
13612 cat >>confdefs.h <<_ACEOF
13613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13614 _ACEOF
13617 done
13624 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13625 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13626 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13627 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13633 ac_ext=cc
13634 ac_cpp='$CXXCPP $CPPFLAGS'
13635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 #include <math.h>
13647 main ()
13649 fmodf(0, 0);
13651 return 0;
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_cxx_werror_flag"
13664 || test ! -s conftest.err'
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); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 glibcxx_cv_func_fmodf_use=yes
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 glibcxx_cv_func_fmodf_use=no
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 ac_ext=c
13685 ac_cpp='$CPP $CPPFLAGS'
13686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13694 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13695 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13697 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13699 for ac_func in fmodf
13701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13702 echo "$as_me:$LINENO: checking for $ac_func" >&5
13703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13704 if eval "test \"\${$as_ac_var+set}\" = set"; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 if test x$gcc_no_link = xyes; then
13708 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13709 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13710 { (exit 1); exit 1; }; }
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13720 #define $ac_func innocuous_$ac_func
13722 /* System header to define __stub macros and hopefully few prototypes,
13723 which can conflict with char $ac_func (); below.
13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 <limits.h> exists even on freestanding compilers. */
13727 #ifdef __STDC__
13728 # include <limits.h>
13729 #else
13730 # include <assert.h>
13731 #endif
13733 #undef $ac_func
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 #ifdef __cplusplus
13737 extern "C"
13739 #endif
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742 char $ac_func ();
13743 /* The GNU C library defines this for functions which it implements
13744 to always fail with ENOSYS. Some functions are actually named
13745 something starting with __ and the normal name is an alias. */
13746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13747 choke me
13748 #else
13749 char (*f) () = $ac_func;
13750 #endif
13751 #ifdef __cplusplus
13753 #endif
13756 main ()
13758 return f != $ac_func;
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13792 rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13797 if test `eval echo '${'$as_ac_var'}'` = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13800 _ACEOF
13803 done
13805 else
13807 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13808 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13809 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13810 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13816 ac_ext=cc
13817 ac_cpp='$CXXCPP $CPPFLAGS'
13818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <math.h>
13830 main ()
13832 _fmodf(0, 0);
13834 return 0;
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_cxx_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 glibcxx_cv_func__fmodf_use=yes
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 glibcxx_cv_func__fmodf_use=no
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867 ac_ext=c
13868 ac_cpp='$CPP $CPPFLAGS'
13869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13878 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13880 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13882 for ac_func in _fmodf
13884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13885 echo "$as_me:$LINENO: checking for $ac_func" >&5
13886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13887 if eval "test \"\${$as_ac_var+set}\" = set"; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890 if test x$gcc_no_link = xyes; then
13891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13893 { (exit 1); exit 1; }; }
13895 cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h. */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13903 #define $ac_func innocuous_$ac_func
13905 /* System header to define __stub macros and hopefully few prototypes,
13906 which can conflict with char $ac_func (); below.
13907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13908 <limits.h> exists even on freestanding compilers. */
13910 #ifdef __STDC__
13911 # include <limits.h>
13912 #else
13913 # include <assert.h>
13914 #endif
13916 #undef $ac_func
13918 /* Override any gcc2 internal prototype to avoid an error. */
13919 #ifdef __cplusplus
13920 extern "C"
13922 #endif
13923 /* We use char because int might match the return type of a gcc2
13924 builtin and then its argument prototype would still apply. */
13925 char $ac_func ();
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930 choke me
13931 #else
13932 char (*f) () = $ac_func;
13933 #endif
13934 #ifdef __cplusplus
13936 #endif
13939 main ()
13941 return f != $ac_func;
13943 return 0;
13945 _ACEOF
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13948 (eval $ac_link) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest$ac_exeext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_var=yes"
13969 else
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 eval "$as_ac_var=no"
13975 rm -f conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13980 if test `eval echo '${'$as_ac_var'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983 _ACEOF
13986 done
13993 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
13994 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
13995 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13996 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
14002 ac_ext=cc
14003 ac_cpp='$CXXCPP $CPPFLAGS'
14004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 #include <math.h>
14016 main ()
14018 frexpf(0, 0);
14020 return 0;
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_cxx_werror_flag"
14033 || test ! -s conftest.err'
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); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 glibcxx_cv_func_frexpf_use=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 glibcxx_cv_func_frexpf_use=no
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 ac_ext=c
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14063 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14064 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14066 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14068 for ac_func in frexpf
14070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14071 echo "$as_me:$LINENO: checking for $ac_func" >&5
14072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14073 if eval "test \"\${$as_ac_var+set}\" = set"; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 if test x$gcc_no_link = xyes; then
14077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14079 { (exit 1); exit 1; }; }
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14089 #define $ac_func innocuous_$ac_func
14091 /* System header to define __stub macros and hopefully few prototypes,
14092 which can conflict with char $ac_func (); below.
14093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14094 <limits.h> exists even on freestanding compilers. */
14096 #ifdef __STDC__
14097 # include <limits.h>
14098 #else
14099 # include <assert.h>
14100 #endif
14102 #undef $ac_func
14104 /* Override any gcc2 internal prototype to avoid an error. */
14105 #ifdef __cplusplus
14106 extern "C"
14108 #endif
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14111 char $ac_func ();
14112 /* The GNU C library defines this for functions which it implements
14113 to always fail with ENOSYS. Some functions are actually named
14114 something starting with __ and the normal name is an alias. */
14115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14116 choke me
14117 #else
14118 char (*f) () = $ac_func;
14119 #endif
14120 #ifdef __cplusplus
14122 #endif
14125 main ()
14127 return f != $ac_func;
14129 return 0;
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 eval "$as_ac_var=yes"
14155 else
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 eval "$as_ac_var=no"
14161 rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14166 if test `eval echo '${'$as_ac_var'}'` = yes; then
14167 cat >>confdefs.h <<_ACEOF
14168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14169 _ACEOF
14172 done
14174 else
14176 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14177 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14178 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14179 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14185 ac_ext=cc
14186 ac_cpp='$CXXCPP $CPPFLAGS'
14187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <math.h>
14199 main ()
14201 _frexpf(0, 0);
14203 return 0;
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_cxx_werror_flag"
14216 || test ! -s conftest.err'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 glibcxx_cv_func__frexpf_use=yes
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 glibcxx_cv_func__frexpf_use=no
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14246 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14247 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14249 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14251 for ac_func in _frexpf
14253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14254 echo "$as_me:$LINENO: checking for $ac_func" >&5
14255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14256 if eval "test \"\${$as_ac_var+set}\" = set"; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259 if test x$gcc_no_link = xyes; then
14260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14262 { (exit 1); exit 1; }; }
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14272 #define $ac_func innocuous_$ac_func
14274 /* System header to define __stub macros and hopefully few prototypes,
14275 which can conflict with char $ac_func (); below.
14276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14277 <limits.h> exists even on freestanding compilers. */
14279 #ifdef __STDC__
14280 # include <limits.h>
14281 #else
14282 # include <assert.h>
14283 #endif
14285 #undef $ac_func
14287 /* Override any gcc2 internal prototype to avoid an error. */
14288 #ifdef __cplusplus
14289 extern "C"
14291 #endif
14292 /* We use char because int might match the return type of a gcc2
14293 builtin and then its argument prototype would still apply. */
14294 char $ac_func ();
14295 /* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14299 choke me
14300 #else
14301 char (*f) () = $ac_func;
14302 #endif
14303 #ifdef __cplusplus
14305 #endif
14308 main ()
14310 return f != $ac_func;
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 eval "$as_ac_var=yes"
14338 else
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 eval "$as_ac_var=no"
14344 rm -f conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14349 if test `eval echo '${'$as_ac_var'}'` = yes; then
14350 cat >>confdefs.h <<_ACEOF
14351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352 _ACEOF
14355 done
14362 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14363 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14364 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14365 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14371 ac_ext=cc
14372 ac_cpp='$CXXCPP $CPPFLAGS'
14373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <math.h>
14385 main ()
14387 hypotf(0, 0);
14389 return 0;
14391 _ACEOF
14392 rm -f conftest.$ac_objext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394 (eval $ac_compile) 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_cxx_werror_flag"
14402 || test ! -s conftest.err'
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); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 glibcxx_cv_func_hypotf_use=yes
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 glibcxx_cv_func_hypotf_use=no
14421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14422 ac_ext=c
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14432 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14433 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14435 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14437 for ac_func in hypotf
14439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14440 echo "$as_me:$LINENO: checking for $ac_func" >&5
14441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14442 if eval "test \"\${$as_ac_var+set}\" = set"; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 if test x$gcc_no_link = xyes; then
14446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14448 { (exit 1); exit 1; }; }
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14465 #ifdef __STDC__
14466 # include <limits.h>
14467 #else
14468 # include <assert.h>
14469 #endif
14471 #undef $ac_func
14473 /* Override any gcc2 internal prototype to avoid an error. */
14474 #ifdef __cplusplus
14475 extern "C"
14477 #endif
14478 /* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14480 char $ac_func ();
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14485 choke me
14486 #else
14487 char (*f) () = $ac_func;
14488 #endif
14489 #ifdef __cplusplus
14491 #endif
14494 main ()
14496 return f != $ac_func;
14498 return 0;
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -z "$ac_c_werror_flag"
14511 || test ! -s conftest.err'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 eval "$as_ac_var=yes"
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 eval "$as_ac_var=no"
14530 rm -f conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14535 if test `eval echo '${'$as_ac_var'}'` = yes; then
14536 cat >>confdefs.h <<_ACEOF
14537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14538 _ACEOF
14541 done
14543 else
14545 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14546 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14547 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14548 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14554 ac_ext=cc
14555 ac_cpp='$CXXCPP $CPPFLAGS'
14556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <math.h>
14568 main ()
14570 _hypotf(0, 0);
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577 (eval $ac_compile) 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -z "$ac_cxx_werror_flag"
14585 || test ! -s conftest.err'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 glibcxx_cv_func__hypotf_use=yes
14598 else
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 glibcxx_cv_func__hypotf_use=no
14604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14605 ac_ext=c
14606 ac_cpp='$CPP $CPPFLAGS'
14607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14615 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14616 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14618 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14620 for ac_func in _hypotf
14622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 echo "$as_me:$LINENO: checking for $ac_func" >&5
14624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14625 if eval "test \"\${$as_ac_var+set}\" = set"; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628 if test x$gcc_no_link = xyes; then
14629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14631 { (exit 1); exit 1; }; }
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14641 #define $ac_func innocuous_$ac_func
14643 /* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char $ac_func (); below.
14645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646 <limits.h> exists even on freestanding compilers. */
14648 #ifdef __STDC__
14649 # include <limits.h>
14650 #else
14651 # include <assert.h>
14652 #endif
14654 #undef $ac_func
14656 /* Override any gcc2 internal prototype to avoid an error. */
14657 #ifdef __cplusplus
14658 extern "C"
14660 #endif
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char $ac_func ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14668 choke me
14669 #else
14670 char (*f) () = $ac_func;
14671 #endif
14672 #ifdef __cplusplus
14674 #endif
14677 main ()
14679 return f != $ac_func;
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest$ac_exeext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 eval "$as_ac_var=yes"
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 eval "$as_ac_var=no"
14713 rm -f conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14718 if test `eval echo '${'$as_ac_var'}'` = yes; then
14719 cat >>confdefs.h <<_ACEOF
14720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14721 _ACEOF
14724 done
14731 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14732 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14733 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14734 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14740 ac_ext=cc
14741 ac_cpp='$CXXCPP $CPPFLAGS'
14742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 #include <math.h>
14754 main ()
14756 ldexpf(0, 0);
14758 return 0;
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -z "$ac_cxx_werror_flag"
14771 || test ! -s conftest.err'
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); }; } &&
14777 { ac_try='test -s conftest.$ac_objext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 glibcxx_cv_func_ldexpf_use=yes
14784 else
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 glibcxx_cv_func_ldexpf_use=no
14790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14791 ac_ext=c
14792 ac_cpp='$CPP $CPPFLAGS'
14793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14802 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14804 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14806 for ac_func in ldexpf
14808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809 echo "$as_me:$LINENO: checking for $ac_func" >&5
14810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14811 if eval "test \"\${$as_ac_var+set}\" = set"; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814 if test x$gcc_no_link = xyes; then
14815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14817 { (exit 1); exit 1; }; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14827 #define $ac_func innocuous_$ac_func
14829 /* System header to define __stub macros and hopefully few prototypes,
14830 which can conflict with char $ac_func (); below.
14831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14832 <limits.h> exists even on freestanding compilers. */
14834 #ifdef __STDC__
14835 # include <limits.h>
14836 #else
14837 # include <assert.h>
14838 #endif
14840 #undef $ac_func
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14846 #endif
14847 /* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849 char $ac_func ();
14850 /* The GNU C library defines this for functions which it implements
14851 to always fail with ENOSYS. Some functions are actually named
14852 something starting with __ and the normal name is an alias. */
14853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14854 choke me
14855 #else
14856 char (*f) () = $ac_func;
14857 #endif
14858 #ifdef __cplusplus
14860 #endif
14863 main ()
14865 return f != $ac_func;
14867 return 0;
14869 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag"
14880 || test ! -s conftest.err'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest$ac_exeext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 eval "$as_ac_var=yes"
14893 else
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 eval "$as_ac_var=no"
14899 rm -f conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14904 if test `eval echo '${'$as_ac_var'}'` = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14907 _ACEOF
14910 done
14912 else
14914 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14915 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14916 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14917 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14923 ac_ext=cc
14924 ac_cpp='$CXXCPP $CPPFLAGS'
14925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <math.h>
14937 main ()
14939 _ldexpf(0, 0);
14941 return 0;
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -z "$ac_cxx_werror_flag"
14954 || test ! -s conftest.err'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }; then
14966 glibcxx_cv_func__ldexpf_use=yes
14967 else
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 glibcxx_cv_func__ldexpf_use=no
14973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14974 ac_ext=c
14975 ac_cpp='$CPP $CPPFLAGS'
14976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14984 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
14985 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
14987 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14989 for ac_func in _ldexpf
14991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14992 echo "$as_me:$LINENO: checking for $ac_func" >&5
14993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14994 if eval "test \"\${$as_ac_var+set}\" = set"; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 if test x$gcc_no_link = xyes; then
14998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15000 { (exit 1); exit 1; }; }
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15010 #define $ac_func innocuous_$ac_func
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func (); below.
15014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15015 <limits.h> exists even on freestanding compilers. */
15017 #ifdef __STDC__
15018 # include <limits.h>
15019 #else
15020 # include <assert.h>
15021 #endif
15023 #undef $ac_func
15025 /* Override any gcc2 internal prototype to avoid an error. */
15026 #ifdef __cplusplus
15027 extern "C"
15029 #endif
15030 /* We use char because int might match the return type of a gcc2
15031 builtin and then its argument prototype would still apply. */
15032 char $ac_func ();
15033 /* The GNU C library defines this for functions which it implements
15034 to always fail with ENOSYS. Some functions are actually named
15035 something starting with __ and the normal name is an alias. */
15036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15037 choke me
15038 #else
15039 char (*f) () = $ac_func;
15040 #endif
15041 #ifdef __cplusplus
15043 #endif
15046 main ()
15048 return f != $ac_func;
15050 return 0;
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055 (eval $ac_link) 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -z "$ac_c_werror_flag"
15063 || test ! -s conftest.err'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest$ac_exeext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 eval "$as_ac_var=yes"
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 eval "$as_ac_var=no"
15082 rm -f conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
15085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15087 if test `eval echo '${'$as_ac_var'}'` = yes; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15090 _ACEOF
15093 done
15100 echo "$as_me:$LINENO: checking for logf declaration" >&5
15101 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15102 if test x${glibcxx_cv_func_logf_use+set} != xset; then
15103 if test "${glibcxx_cv_func_logf_use+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15109 ac_ext=cc
15110 ac_cpp='$CXXCPP $CPPFLAGS'
15111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <math.h>
15122 #ifdef HAVE_IEEEFP_H
15123 #include <ieeefp.h>
15124 #endif
15127 main ()
15129 logf(0);
15131 return 0;
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_cxx_werror_flag"
15144 || test ! -s conftest.err'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 glibcxx_cv_func_logf_use=yes
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 glibcxx_cv_func_logf_use=no
15163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15164 ac_ext=c
15165 ac_cpp='$CPP $CPPFLAGS'
15166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15174 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15175 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15177 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15179 for ac_func in logf
15181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15182 echo "$as_me:$LINENO: checking for $ac_func" >&5
15183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15184 if eval "test \"\${$as_ac_var+set}\" = set"; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 if test x$gcc_no_link = xyes; then
15188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15190 { (exit 1); exit 1; }; }
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15200 #define $ac_func innocuous_$ac_func
15202 /* System header to define __stub macros and hopefully few prototypes,
15203 which can conflict with char $ac_func (); below.
15204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15205 <limits.h> exists even on freestanding compilers. */
15207 #ifdef __STDC__
15208 # include <limits.h>
15209 #else
15210 # include <assert.h>
15211 #endif
15213 #undef $ac_func
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 #ifdef __cplusplus
15217 extern "C"
15219 #endif
15220 /* We use char because int might match the return type of a gcc2
15221 builtin and then its argument prototype would still apply. */
15222 char $ac_func ();
15223 /* The GNU C library defines this for functions which it implements
15224 to always fail with ENOSYS. Some functions are actually named
15225 something starting with __ and the normal name is an alias. */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15227 choke me
15228 #else
15229 char (*f) () = $ac_func;
15230 #endif
15231 #ifdef __cplusplus
15233 #endif
15236 main ()
15238 return f != $ac_func;
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245 (eval $ac_link) 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag"
15253 || test ! -s conftest.err'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest$ac_exeext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 eval "$as_ac_var=yes"
15266 else
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 eval "$as_ac_var=no"
15272 rm -f conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15277 if test `eval echo '${'$as_ac_var'}'` = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15280 _ACEOF
15283 done
15285 else
15287 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15288 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15289 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15290 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15296 ac_ext=cc
15297 ac_cpp='$CXXCPP $CPPFLAGS'
15298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <math.h>
15309 #ifdef HAVE_IEEEFP_H
15310 #include <ieeefp.h>
15311 #endif
15314 main ()
15316 _logf(0);
15318 return 0;
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323 (eval $ac_compile) 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_cxx_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 glibcxx_cv_func__logf_use=yes
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 glibcxx_cv_func__logf_use=no
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351 ac_ext=c
15352 ac_cpp='$CPP $CPPFLAGS'
15353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15361 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15362 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15364 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15366 for ac_func in _logf
15368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 echo "$as_me:$LINENO: checking for $ac_func" >&5
15370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15371 if eval "test \"\${$as_ac_var+set}\" = set"; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 if test x$gcc_no_link = xyes; then
15375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15377 { (exit 1); exit 1; }; }
15379 cat >conftest.$ac_ext <<_ACEOF
15380 /* confdefs.h. */
15381 _ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h. */
15385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15387 #define $ac_func innocuous_$ac_func
15389 /* System header to define __stub macros and hopefully few prototypes,
15390 which can conflict with char $ac_func (); below.
15391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15392 <limits.h> exists even on freestanding compilers. */
15394 #ifdef __STDC__
15395 # include <limits.h>
15396 #else
15397 # include <assert.h>
15398 #endif
15400 #undef $ac_func
15402 /* Override any gcc2 internal prototype to avoid an error. */
15403 #ifdef __cplusplus
15404 extern "C"
15406 #endif
15407 /* We use char because int might match the return type of a gcc2
15408 builtin and then its argument prototype would still apply. */
15409 char $ac_func ();
15410 /* The GNU C library defines this for functions which it implements
15411 to always fail with ENOSYS. Some functions are actually named
15412 something starting with __ and the normal name is an alias. */
15413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15414 choke me
15415 #else
15416 char (*f) () = $ac_func;
15417 #endif
15418 #ifdef __cplusplus
15420 #endif
15423 main ()
15425 return f != $ac_func;
15427 return 0;
15429 _ACEOF
15430 rm -f conftest.$ac_objext conftest$ac_exeext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15432 (eval $ac_link) 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -z "$ac_c_werror_flag"
15440 || test ! -s conftest.err'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; } &&
15446 { ac_try='test -s conftest$ac_exeext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 eval "$as_ac_var=yes"
15453 else
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 eval "$as_ac_var=no"
15459 rm -f conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15464 if test `eval echo '${'$as_ac_var'}'` = yes; then
15465 cat >>confdefs.h <<_ACEOF
15466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15467 _ACEOF
15470 done
15477 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15478 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15479 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15480 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15486 ac_ext=cc
15487 ac_cpp='$CXXCPP $CPPFLAGS'
15488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 #include <math.h>
15499 #ifdef HAVE_IEEEFP_H
15500 #include <ieeefp.h>
15501 #endif
15504 main ()
15506 log10f(0);
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_cxx_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 glibcxx_cv_func_log10f_use=yes
15534 else
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 glibcxx_cv_func_log10f_use=no
15540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15541 ac_ext=c
15542 ac_cpp='$CPP $CPPFLAGS'
15543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15551 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15552 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15554 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15556 for ac_func in log10f
15558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 echo "$as_me:$LINENO: checking for $ac_func" >&5
15560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15561 if eval "test \"\${$as_ac_var+set}\" = set"; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564 if test x$gcc_no_link = xyes; then
15565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15567 { (exit 1); exit 1; }; }
15569 cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h. */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15577 #define $ac_func innocuous_$ac_func
15579 /* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char $ac_func (); below.
15581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582 <limits.h> exists even on freestanding compilers. */
15584 #ifdef __STDC__
15585 # include <limits.h>
15586 #else
15587 # include <assert.h>
15588 #endif
15590 #undef $ac_func
15592 /* Override any gcc2 internal prototype to avoid an error. */
15593 #ifdef __cplusplus
15594 extern "C"
15596 #endif
15597 /* We use char because int might match the return type of a gcc2
15598 builtin and then its argument prototype would still apply. */
15599 char $ac_func ();
15600 /* The GNU C library defines this for functions which it implements
15601 to always fail with ENOSYS. Some functions are actually named
15602 something starting with __ and the normal name is an alias. */
15603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15604 choke me
15605 #else
15606 char (*f) () = $ac_func;
15607 #endif
15608 #ifdef __cplusplus
15610 #endif
15613 main ()
15615 return f != $ac_func;
15617 return 0;
15619 _ACEOF
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15622 (eval $ac_link) 2>conftest.er1
15623 ac_status=$?
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 eval "$as_ac_var=yes"
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 eval "$as_ac_var=no"
15649 rm -f conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15654 if test `eval echo '${'$as_ac_var'}'` = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15657 _ACEOF
15660 done
15662 else
15664 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15665 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15666 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15667 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15673 ac_ext=cc
15674 ac_cpp='$CXXCPP $CPPFLAGS'
15675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <math.h>
15686 #ifdef HAVE_IEEEFP_H
15687 #include <ieeefp.h>
15688 #endif
15691 main ()
15693 _log10f(0);
15695 return 0;
15697 _ACEOF
15698 rm -f conftest.$ac_objext
15699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700 (eval $ac_compile) 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -z "$ac_cxx_werror_flag"
15708 || test ! -s conftest.err'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 glibcxx_cv_func__log10f_use=yes
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 glibcxx_cv_func__log10f_use=no
15727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15728 ac_ext=c
15729 ac_cpp='$CPP $CPPFLAGS'
15730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15738 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15739 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15741 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15743 for ac_func in _log10f
15745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15746 echo "$as_me:$LINENO: checking for $ac_func" >&5
15747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_var+set}\" = set"; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751 if test x$gcc_no_link = xyes; then
15752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15754 { (exit 1); exit 1; }; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15764 #define $ac_func innocuous_$ac_func
15766 /* System header to define __stub macros and hopefully few prototypes,
15767 which can conflict with char $ac_func (); below.
15768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15769 <limits.h> exists even on freestanding compilers. */
15771 #ifdef __STDC__
15772 # include <limits.h>
15773 #else
15774 # include <assert.h>
15775 #endif
15777 #undef $ac_func
15779 /* Override any gcc2 internal prototype to avoid an error. */
15780 #ifdef __cplusplus
15781 extern "C"
15783 #endif
15784 /* We use char because int might match the return type of a gcc2
15785 builtin and then its argument prototype would still apply. */
15786 char $ac_func ();
15787 /* The GNU C library defines this for functions which it implements
15788 to always fail with ENOSYS. Some functions are actually named
15789 something starting with __ and the normal name is an alias. */
15790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 choke me
15792 #else
15793 char (*f) () = $ac_func;
15794 #endif
15795 #ifdef __cplusplus
15797 #endif
15800 main ()
15802 return f != $ac_func;
15804 return 0;
15806 _ACEOF
15807 rm -f conftest.$ac_objext conftest$ac_exeext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15809 (eval $ac_link) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest$ac_exeext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 eval "$as_ac_var=yes"
15830 else
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 eval "$as_ac_var=no"
15836 rm -f conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15841 if test `eval echo '${'$as_ac_var'}'` = yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15844 _ACEOF
15847 done
15854 echo "$as_me:$LINENO: checking for modff declaration" >&5
15855 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15856 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15857 if test "${glibcxx_cv_func_modff_use+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15863 ac_ext=cc
15864 ac_cpp='$CXXCPP $CPPFLAGS'
15865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h. */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 #include <math.h>
15877 main ()
15879 modff(0, 0);
15881 return 0;
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_cxx_werror_flag"
15894 || test ! -s conftest.err'
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); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 glibcxx_cv_func_modff_use=yes
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 glibcxx_cv_func_modff_use=no
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914 ac_ext=c
15915 ac_cpp='$CPP $CPPFLAGS'
15916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15924 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15925 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15927 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15929 for ac_func in modff
15931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15932 echo "$as_me:$LINENO: checking for $ac_func" >&5
15933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15934 if eval "test \"\${$as_ac_var+set}\" = set"; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937 if test x$gcc_no_link = xyes; then
15938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15940 { (exit 1); exit 1; }; }
15942 cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h. */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15950 #define $ac_func innocuous_$ac_func
15952 /* System header to define __stub macros and hopefully few prototypes,
15953 which can conflict with char $ac_func (); below.
15954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15955 <limits.h> exists even on freestanding compilers. */
15957 #ifdef __STDC__
15958 # include <limits.h>
15959 #else
15960 # include <assert.h>
15961 #endif
15963 #undef $ac_func
15965 /* Override any gcc2 internal prototype to avoid an error. */
15966 #ifdef __cplusplus
15967 extern "C"
15969 #endif
15970 /* We use char because int might match the return type of a gcc2
15971 builtin and then its argument prototype would still apply. */
15972 char $ac_func ();
15973 /* The GNU C library defines this for functions which it implements
15974 to always fail with ENOSYS. Some functions are actually named
15975 something starting with __ and the normal name is an alias. */
15976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15977 choke me
15978 #else
15979 char (*f) () = $ac_func;
15980 #endif
15981 #ifdef __cplusplus
15983 #endif
15986 main ()
15988 return f != $ac_func;
15990 return 0;
15992 _ACEOF
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15995 (eval $ac_link) 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag"
16003 || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest$ac_exeext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 eval "$as_ac_var=yes"
16016 else
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 eval "$as_ac_var=no"
16022 rm -f conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16027 if test `eval echo '${'$as_ac_var'}'` = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16030 _ACEOF
16033 done
16035 else
16037 echo "$as_me:$LINENO: checking for _modff declaration" >&5
16038 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16039 if test x${glibcxx_cv_func__modff_use+set} != xset; then
16040 if test "${glibcxx_cv_func__modff_use+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16046 ac_ext=cc
16047 ac_cpp='$CXXCPP $CPPFLAGS'
16048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <math.h>
16060 main ()
16062 _modff(0, 0);
16064 return 0;
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16069 (eval $ac_compile) 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
16076 { ac_try='test -z "$ac_cxx_werror_flag"
16077 || test ! -s conftest.err'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 glibcxx_cv_func__modff_use=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 glibcxx_cv_func__modff_use=no
16096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16097 ac_ext=c
16098 ac_cpp='$CPP $CPPFLAGS'
16099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16107 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16108 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16110 if test x$glibcxx_cv_func__modff_use = x"yes"; then
16112 for ac_func in _modff
16114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16115 echo "$as_me:$LINENO: checking for $ac_func" >&5
16116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16117 if eval "test \"\${$as_ac_var+set}\" = set"; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120 if test x$gcc_no_link = xyes; then
16121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16123 { (exit 1); exit 1; }; }
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16133 #define $ac_func innocuous_$ac_func
16135 /* System header to define __stub macros and hopefully few prototypes,
16136 which can conflict with char $ac_func (); below.
16137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16138 <limits.h> exists even on freestanding compilers. */
16140 #ifdef __STDC__
16141 # include <limits.h>
16142 #else
16143 # include <assert.h>
16144 #endif
16146 #undef $ac_func
16148 /* Override any gcc2 internal prototype to avoid an error. */
16149 #ifdef __cplusplus
16150 extern "C"
16152 #endif
16153 /* We use char because int might match the return type of a gcc2
16154 builtin and then its argument prototype would still apply. */
16155 char $ac_func ();
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16160 choke me
16161 #else
16162 char (*f) () = $ac_func;
16163 #endif
16164 #ifdef __cplusplus
16166 #endif
16169 main ()
16171 return f != $ac_func;
16173 return 0;
16175 _ACEOF
16176 rm -f conftest.$ac_objext conftest$ac_exeext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16178 (eval $ac_link) 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_c_werror_flag"
16186 || test ! -s conftest.err'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest$ac_exeext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 eval "$as_ac_var=yes"
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 eval "$as_ac_var=no"
16205 rm -f conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16210 if test `eval echo '${'$as_ac_var'}'` = yes; then
16211 cat >>confdefs.h <<_ACEOF
16212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16213 _ACEOF
16216 done
16223 echo "$as_me:$LINENO: checking for powf declaration" >&5
16224 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16225 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16226 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16232 ac_ext=cc
16233 ac_cpp='$CXXCPP $CPPFLAGS'
16234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 #include <math.h>
16246 main ()
16248 powf(0, 0);
16250 return 0;
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
16262 { ac_try='test -z "$ac_cxx_werror_flag"
16263 || test ! -s conftest.err'
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); }; } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 glibcxx_cv_func_powf_use=yes
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 glibcxx_cv_func_powf_use=no
16282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283 ac_ext=c
16284 ac_cpp='$CPP $CPPFLAGS'
16285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16293 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16294 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16296 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16298 for ac_func in powf
16300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16301 echo "$as_me:$LINENO: checking for $ac_func" >&5
16302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_var+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 if test x$gcc_no_link = xyes; then
16307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16309 { (exit 1); exit 1; }; }
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16319 #define $ac_func innocuous_$ac_func
16321 /* System header to define __stub macros and hopefully few prototypes,
16322 which can conflict with char $ac_func (); below.
16323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16324 <limits.h> exists even on freestanding compilers. */
16326 #ifdef __STDC__
16327 # include <limits.h>
16328 #else
16329 # include <assert.h>
16330 #endif
16332 #undef $ac_func
16334 /* Override any gcc2 internal prototype to avoid an error. */
16335 #ifdef __cplusplus
16336 extern "C"
16338 #endif
16339 /* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341 char $ac_func ();
16342 /* The GNU C library defines this for functions which it implements
16343 to always fail with ENOSYS. Some functions are actually named
16344 something starting with __ and the normal name is an alias. */
16345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16346 choke me
16347 #else
16348 char (*f) () = $ac_func;
16349 #endif
16350 #ifdef __cplusplus
16352 #endif
16355 main ()
16357 return f != $ac_func;
16359 return 0;
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16364 (eval $ac_link) 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag"
16372 || test ! -s conftest.err'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest$ac_exeext'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 eval "$as_ac_var=yes"
16385 else
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 eval "$as_ac_var=no"
16391 rm -f conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16396 if test `eval echo '${'$as_ac_var'}'` = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16399 _ACEOF
16402 done
16404 else
16406 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16407 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16408 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16409 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16415 ac_ext=cc
16416 ac_cpp='$CXXCPP $CPPFLAGS'
16417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h. */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 #include <math.h>
16429 main ()
16431 _powf(0, 0);
16433 return 0;
16435 _ACEOF
16436 rm -f conftest.$ac_objext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_cxx_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 glibcxx_cv_func__powf_use=yes
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 glibcxx_cv_func__powf_use=no
16465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466 ac_ext=c
16467 ac_cpp='$CPP $CPPFLAGS'
16468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16476 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16477 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16479 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16481 for ac_func in _powf
16483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16484 echo "$as_me:$LINENO: checking for $ac_func" >&5
16485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16486 if eval "test \"\${$as_ac_var+set}\" = set"; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489 if test x$gcc_no_link = xyes; then
16490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16492 { (exit 1); exit 1; }; }
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16502 #define $ac_func innocuous_$ac_func
16504 /* System header to define __stub macros and hopefully few prototypes,
16505 which can conflict with char $ac_func (); below.
16506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507 <limits.h> exists even on freestanding compilers. */
16509 #ifdef __STDC__
16510 # include <limits.h>
16511 #else
16512 # include <assert.h>
16513 #endif
16515 #undef $ac_func
16517 /* Override any gcc2 internal prototype to avoid an error. */
16518 #ifdef __cplusplus
16519 extern "C"
16521 #endif
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16524 char $ac_func ();
16525 /* The GNU C library defines this for functions which it implements
16526 to always fail with ENOSYS. Some functions are actually named
16527 something starting with __ and the normal name is an alias. */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16529 choke me
16530 #else
16531 char (*f) () = $ac_func;
16532 #endif
16533 #ifdef __cplusplus
16535 #endif
16538 main ()
16540 return f != $ac_func;
16542 return 0;
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 eval "$as_ac_var=yes"
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 eval "$as_ac_var=no"
16574 rm -f conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16579 if test `eval echo '${'$as_ac_var'}'` = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16582 _ACEOF
16585 done
16592 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16593 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16594 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16595 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16601 ac_ext=cc
16602 ac_cpp='$CXXCPP $CPPFLAGS'
16603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16607 cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h. */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16613 #include <math.h>
16614 #ifdef HAVE_IEEEFP_H
16615 #include <ieeefp.h>
16616 #endif
16619 main ()
16621 sqrtf(0);
16623 return 0;
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_cxx_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 glibcxx_cv_func_sqrtf_use=yes
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 glibcxx_cv_func_sqrtf_use=no
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656 ac_ext=c
16657 ac_cpp='$CPP $CPPFLAGS'
16658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16666 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16667 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16669 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16671 for ac_func in sqrtf
16673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 echo "$as_me:$LINENO: checking for $ac_func" >&5
16675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16676 if eval "test \"\${$as_ac_var+set}\" = set"; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679 if test x$gcc_no_link = xyes; then
16680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16682 { (exit 1); exit 1; }; }
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16692 #define $ac_func innocuous_$ac_func
16694 /* System header to define __stub macros and hopefully few prototypes,
16695 which can conflict with char $ac_func (); below.
16696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 <limits.h> exists even on freestanding compilers. */
16699 #ifdef __STDC__
16700 # include <limits.h>
16701 #else
16702 # include <assert.h>
16703 #endif
16705 #undef $ac_func
16707 /* Override any gcc2 internal prototype to avoid an error. */
16708 #ifdef __cplusplus
16709 extern "C"
16711 #endif
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char $ac_func ();
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16719 choke me
16720 #else
16721 char (*f) () = $ac_func;
16722 #endif
16723 #ifdef __cplusplus
16725 #endif
16728 main ()
16730 return f != $ac_func;
16732 return 0;
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag"
16745 || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 eval "$as_ac_var=yes"
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 eval "$as_ac_var=no"
16764 rm -f conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769 if test `eval echo '${'$as_ac_var'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772 _ACEOF
16775 done
16777 else
16779 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16780 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16781 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16782 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16788 ac_ext=cc
16789 ac_cpp='$CXXCPP $CPPFLAGS'
16790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 #include <math.h>
16801 #ifdef HAVE_IEEEFP_H
16802 #include <ieeefp.h>
16803 #endif
16806 main ()
16808 _sqrtf(0);
16810 return 0;
16812 _ACEOF
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_cxx_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 glibcxx_cv_func__sqrtf_use=yes
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 glibcxx_cv_func__sqrtf_use=no
16842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 ac_ext=c
16844 ac_cpp='$CPP $CPPFLAGS'
16845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16853 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16854 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16856 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16858 for ac_func in _sqrtf
16860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16861 echo "$as_me:$LINENO: checking for $ac_func" >&5
16862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16863 if eval "test \"\${$as_ac_var+set}\" = set"; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 if test x$gcc_no_link = xyes; then
16867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16869 { (exit 1); exit 1; }; }
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16879 #define $ac_func innocuous_$ac_func
16881 /* System header to define __stub macros and hopefully few prototypes,
16882 which can conflict with char $ac_func (); below.
16883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884 <limits.h> exists even on freestanding compilers. */
16886 #ifdef __STDC__
16887 # include <limits.h>
16888 #else
16889 # include <assert.h>
16890 #endif
16892 #undef $ac_func
16894 /* Override any gcc2 internal prototype to avoid an error. */
16895 #ifdef __cplusplus
16896 extern "C"
16898 #endif
16899 /* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901 char $ac_func ();
16902 /* The GNU C library defines this for functions which it implements
16903 to always fail with ENOSYS. Some functions are actually named
16904 something starting with __ and the normal name is an alias. */
16905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16906 choke me
16907 #else
16908 char (*f) () = $ac_func;
16909 #endif
16910 #ifdef __cplusplus
16912 #endif
16915 main ()
16917 return f != $ac_func;
16919 return 0;
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag"
16932 || test ! -s conftest.err'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 eval "$as_ac_var=yes"
16945 else
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 eval "$as_ac_var=no"
16951 rm -f conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16956 if test `eval echo '${'$as_ac_var'}'` = yes; then
16957 cat >>confdefs.h <<_ACEOF
16958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16959 _ACEOF
16962 done
16969 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
16970 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
16971 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
16972 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16978 ac_ext=cc
16979 ac_cpp='$CXXCPP $CPPFLAGS'
16980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #include <math.h>
16992 main ()
16994 sincosf(0, 0, 0);
16996 return 0;
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001 (eval $ac_compile) 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_cxx_werror_flag"
17009 || test ! -s conftest.err'
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); }; } &&
17015 { ac_try='test -s conftest.$ac_objext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 glibcxx_cv_func_sincosf_use=yes
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 glibcxx_cv_func_sincosf_use=no
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 ac_ext=c
17030 ac_cpp='$CPP $CPPFLAGS'
17031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17039 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17040 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17042 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17044 for ac_func in sincosf
17046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17047 echo "$as_me:$LINENO: checking for $ac_func" >&5
17048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17049 if eval "test \"\${$as_ac_var+set}\" = set"; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052 if test x$gcc_no_link = xyes; then
17053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17055 { (exit 1); exit 1; }; }
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h. */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17065 #define $ac_func innocuous_$ac_func
17067 /* System header to define __stub macros and hopefully few prototypes,
17068 which can conflict with char $ac_func (); below.
17069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070 <limits.h> exists even on freestanding compilers. */
17072 #ifdef __STDC__
17073 # include <limits.h>
17074 #else
17075 # include <assert.h>
17076 #endif
17078 #undef $ac_func
17080 /* Override any gcc2 internal prototype to avoid an error. */
17081 #ifdef __cplusplus
17082 extern "C"
17084 #endif
17085 /* We use char because int might match the return type of a gcc2
17086 builtin and then its argument prototype would still apply. */
17087 char $ac_func ();
17088 /* The GNU C library defines this for functions which it implements
17089 to always fail with ENOSYS. Some functions are actually named
17090 something starting with __ and the normal name is an alias. */
17091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17092 choke me
17093 #else
17094 char (*f) () = $ac_func;
17095 #endif
17096 #ifdef __cplusplus
17098 #endif
17101 main ()
17103 return f != $ac_func;
17105 return 0;
17107 _ACEOF
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17110 (eval $ac_link) 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -z "$ac_c_werror_flag"
17118 || test ! -s conftest.err'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; } &&
17124 { ac_try='test -s conftest$ac_exeext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 eval "$as_ac_var=yes"
17131 else
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 eval "$as_ac_var=no"
17137 rm -f conftest.err conftest.$ac_objext \
17138 conftest$ac_exeext conftest.$ac_ext
17140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 _ACEOF
17148 done
17150 else
17152 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17153 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17154 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17155 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17161 ac_ext=cc
17162 ac_cpp='$CXXCPP $CPPFLAGS'
17163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <math.h>
17175 main ()
17177 _sincosf(0, 0, 0);
17179 return 0;
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_cxx_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 glibcxx_cv_func__sincosf_use=yes
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 glibcxx_cv_func__sincosf_use=no
17211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17212 ac_ext=c
17213 ac_cpp='$CPP $CPPFLAGS'
17214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17223 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17225 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17227 for ac_func in _sincosf
17229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17230 echo "$as_me:$LINENO: checking for $ac_func" >&5
17231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17232 if eval "test \"\${$as_ac_var+set}\" = set"; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 if test x$gcc_no_link = xyes; then
17236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17238 { (exit 1); exit 1; }; }
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17248 #define $ac_func innocuous_$ac_func
17250 /* System header to define __stub macros and hopefully few prototypes,
17251 which can conflict with char $ac_func (); below.
17252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17253 <limits.h> exists even on freestanding compilers. */
17255 #ifdef __STDC__
17256 # include <limits.h>
17257 #else
17258 # include <assert.h>
17259 #endif
17261 #undef $ac_func
17263 /* Override any gcc2 internal prototype to avoid an error. */
17264 #ifdef __cplusplus
17265 extern "C"
17267 #endif
17268 /* We use char because int might match the return type of a gcc2
17269 builtin and then its argument prototype would still apply. */
17270 char $ac_func ();
17271 /* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
17274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17275 choke me
17276 #else
17277 char (*f) () = $ac_func;
17278 #endif
17279 #ifdef __cplusplus
17281 #endif
17284 main ()
17286 return f != $ac_func;
17288 return 0;
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag"
17301 || test ! -s conftest.err'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest$ac_exeext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 eval "$as_ac_var=yes"
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 eval "$as_ac_var=no"
17320 rm -f conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17325 if test `eval echo '${'$as_ac_var'}'` = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17328 _ACEOF
17331 done
17338 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17339 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17340 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17341 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17347 ac_ext=cc
17348 ac_cpp='$CXXCPP $CPPFLAGS'
17349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17353 cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h. */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <math.h>
17360 #ifdef HAVE_IEEEFP_H
17361 #include <ieeefp.h>
17362 #endif
17365 main ()
17367 finitef(0);
17369 return 0;
17371 _ACEOF
17372 rm -f conftest.$ac_objext
17373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17374 (eval $ac_compile) 2>conftest.er1
17375 ac_status=$?
17376 grep -v '^ *+' conftest.er1 >conftest.err
17377 rm -f conftest.er1
17378 cat conftest.err >&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -z "$ac_cxx_werror_flag"
17382 || test ! -s conftest.err'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; } &&
17388 { ac_try='test -s conftest.$ac_objext'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 glibcxx_cv_func_finitef_use=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 glibcxx_cv_func_finitef_use=no
17401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17402 ac_ext=c
17403 ac_cpp='$CPP $CPPFLAGS'
17404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17412 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17413 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17415 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17417 for ac_func in finitef
17419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17420 echo "$as_me:$LINENO: checking for $ac_func" >&5
17421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17422 if eval "test \"\${$as_ac_var+set}\" = set"; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 if test x$gcc_no_link = xyes; then
17426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17428 { (exit 1); exit 1; }; }
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17438 #define $ac_func innocuous_$ac_func
17440 /* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char $ac_func (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
17445 #ifdef __STDC__
17446 # include <limits.h>
17447 #else
17448 # include <assert.h>
17449 #endif
17451 #undef $ac_func
17453 /* Override any gcc2 internal prototype to avoid an error. */
17454 #ifdef __cplusplus
17455 extern "C"
17457 #endif
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17460 char $ac_func ();
17461 /* The GNU C library defines this for functions which it implements
17462 to always fail with ENOSYS. Some functions are actually named
17463 something starting with __ and the normal name is an alias. */
17464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17465 choke me
17466 #else
17467 char (*f) () = $ac_func;
17468 #endif
17469 #ifdef __cplusplus
17471 #endif
17474 main ()
17476 return f != $ac_func;
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest$ac_exeext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 eval "$as_ac_var=yes"
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 eval "$as_ac_var=no"
17510 rm -f conftest.err conftest.$ac_objext \
17511 conftest$ac_exeext conftest.$ac_ext
17513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17515 if test `eval echo '${'$as_ac_var'}'` = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17518 _ACEOF
17521 done
17523 else
17525 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17526 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17527 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17528 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17534 ac_ext=cc
17535 ac_cpp='$CXXCPP $CPPFLAGS'
17536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <math.h>
17547 #ifdef HAVE_IEEEFP_H
17548 #include <ieeefp.h>
17549 #endif
17552 main ()
17554 _finitef(0);
17556 return 0;
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17561 (eval $ac_compile) 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_cxx_werror_flag"
17569 || test ! -s conftest.err'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 glibcxx_cv_func__finitef_use=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 glibcxx_cv_func__finitef_use=no
17588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17589 ac_ext=c
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17599 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17600 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17602 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17604 for ac_func in _finitef
17606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17609 if eval "test \"\${$as_ac_var+set}\" = set"; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612 if test x$gcc_no_link = xyes; then
17613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17615 { (exit 1); exit 1; }; }
17617 cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625 #define $ac_func innocuous_$ac_func
17627 /* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char $ac_func (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17638 #undef $ac_func
17640 /* Override any gcc2 internal prototype to avoid an error. */
17641 #ifdef __cplusplus
17642 extern "C"
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17647 char $ac_func ();
17648 /* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17652 choke me
17653 #else
17654 char (*f) () = $ac_func;
17655 #endif
17656 #ifdef __cplusplus
17658 #endif
17661 main ()
17663 return f != $ac_func;
17665 return 0;
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 eval "$as_ac_var=yes"
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 eval "$as_ac_var=no"
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17702 if test `eval echo '${'$as_ac_var'}'` = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17705 _ACEOF
17708 done
17715 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17716 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17717 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17723 ac_ext=cc
17724 ac_cpp='$CXXCPP $CPPFLAGS'
17725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h. */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 #include <math.h>
17737 main ()
17739 `for x in acosl asinl atanl \
17740 cosl sinl tanl \
17741 coshl sinhl tanhl; do echo "$x (0);"; done`
17743 return 0;
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_cxx_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 glibcxx_cv_func_long_double_trig_use=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 glibcxx_cv_func_long_double_trig_use=no
17775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17776 ac_ext=c
17777 ac_cpp='$CPP $CPPFLAGS'
17778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17784 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17785 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17786 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17796 for ac_func in acosl asinl atanl \
17797 cosl sinl tanl \
17798 coshl sinhl tanhl
17800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17801 echo "$as_me:$LINENO: checking for $ac_func" >&5
17802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17803 if eval "test \"\${$as_ac_var+set}\" = set"; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 if test x$gcc_no_link = xyes; then
17807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17809 { (exit 1); exit 1; }; }
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define $ac_func innocuous_$ac_func
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17826 #ifdef __STDC__
17827 # include <limits.h>
17828 #else
17829 # include <assert.h>
17830 #endif
17832 #undef $ac_func
17834 /* Override any gcc2 internal prototype to avoid an error. */
17835 #ifdef __cplusplus
17836 extern "C"
17838 #endif
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char $ac_func ();
17842 /* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17846 choke me
17847 #else
17848 char (*f) () = $ac_func;
17849 #endif
17850 #ifdef __cplusplus
17852 #endif
17855 main ()
17857 return f != $ac_func;
17859 return 0;
17861 _ACEOF
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest$ac_exeext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 eval "$as_ac_var=yes"
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 eval "$as_ac_var=no"
17891 rm -f conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17896 if test `eval echo '${'$as_ac_var'}'` = yes; then
17897 cat >>confdefs.h <<_ACEOF
17898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17899 _ACEOF
17902 done
17907 echo "$as_me:$LINENO: checking for long double round functions" >&5
17908 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17909 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17915 ac_ext=cc
17916 ac_cpp='$CXXCPP $CPPFLAGS'
17917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 #include <math.h>
17929 main ()
17931 `for x in ceill floorl; do echo "$x (0);"; done`
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938 (eval $ac_compile) 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_cxx_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest.$ac_objext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 glibcxx_cv_func_long_double_round_use=yes
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 glibcxx_cv_func_long_double_round_use=no
17965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17966 ac_ext=c
17967 ac_cpp='$CPP $CPPFLAGS'
17968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
17975 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
17976 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
17979 for ac_func in ceill floorl
17981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17984 if eval "test \"\${$as_ac_var+set}\" = set"; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 if test x$gcc_no_link = xyes; then
17988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17990 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18000 #define $ac_func innocuous_$ac_func
18002 /* System header to define __stub macros and hopefully few prototypes,
18003 which can conflict with char $ac_func (); below.
18004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18005 <limits.h> exists even on freestanding compilers. */
18007 #ifdef __STDC__
18008 # include <limits.h>
18009 #else
18010 # include <assert.h>
18011 #endif
18013 #undef $ac_func
18015 /* Override any gcc2 internal prototype to avoid an error. */
18016 #ifdef __cplusplus
18017 extern "C"
18019 #endif
18020 /* We use char because int might match the return type of a gcc2
18021 builtin and then its argument prototype would still apply. */
18022 char $ac_func ();
18023 /* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18027 choke me
18028 #else
18029 char (*f) () = $ac_func;
18030 #endif
18031 #ifdef __cplusplus
18033 #endif
18036 main ()
18038 return f != $ac_func;
18040 return 0;
18042 _ACEOF
18043 rm -f conftest.$ac_objext conftest$ac_exeext
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag"
18053 || test ! -s conftest.err'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest$ac_exeext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 eval "$as_ac_var=yes"
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 eval "$as_ac_var=no"
18072 rm -f conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18077 if test `eval echo '${'$as_ac_var'}'` = yes; then
18078 cat >>confdefs.h <<_ACEOF
18079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18080 _ACEOF
18083 done
18089 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18090 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18091 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18092 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18098 ac_ext=cc
18099 ac_cpp='$CXXCPP $CPPFLAGS'
18100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18104 cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 #include <math.h>
18111 #ifdef HAVE_IEEEFP_H
18112 #include <ieeefp.h>
18113 #endif
18116 main ()
18118 isnanl(0);
18120 return 0;
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18125 (eval $ac_compile) 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
18132 { ac_try='test -z "$ac_cxx_werror_flag"
18133 || test ! -s conftest.err'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 glibcxx_cv_func_isnanl_use=yes
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 glibcxx_cv_func_isnanl_use=no
18152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18153 ac_ext=c
18154 ac_cpp='$CPP $CPPFLAGS'
18155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18163 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18164 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18166 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18168 for ac_func in isnanl
18170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18171 echo "$as_me:$LINENO: checking for $ac_func" >&5
18172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18173 if eval "test \"\${$as_ac_var+set}\" = set"; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 if test x$gcc_no_link = xyes; then
18177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18179 { (exit 1); exit 1; }; }
18181 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h. */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define $ac_func innocuous_$ac_func
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18196 #ifdef __STDC__
18197 # include <limits.h>
18198 #else
18199 # include <assert.h>
18200 #endif
18202 #undef $ac_func
18204 /* Override any gcc2 internal prototype to avoid an error. */
18205 #ifdef __cplusplus
18206 extern "C"
18208 #endif
18209 /* We use char because int might match the return type of a gcc2
18210 builtin and then its argument prototype would still apply. */
18211 char $ac_func ();
18212 /* The GNU C library defines this for functions which it implements
18213 to always fail with ENOSYS. Some functions are actually named
18214 something starting with __ and the normal name is an alias. */
18215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18216 choke me
18217 #else
18218 char (*f) () = $ac_func;
18219 #endif
18220 #ifdef __cplusplus
18222 #endif
18225 main ()
18227 return f != $ac_func;
18229 return 0;
18231 _ACEOF
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234 (eval $ac_link) 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag"
18242 || test ! -s conftest.err'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest$ac_exeext'
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18255 else
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259 eval "$as_ac_var=no"
18261 rm -f conftest.err conftest.$ac_objext \
18262 conftest$ac_exeext conftest.$ac_ext
18264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18266 if test `eval echo '${'$as_ac_var'}'` = yes; then
18267 cat >>confdefs.h <<_ACEOF
18268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 _ACEOF
18272 done
18274 else
18276 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18277 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18278 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18279 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18285 ac_ext=cc
18286 ac_cpp='$CXXCPP $CPPFLAGS'
18287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18291 cat >conftest.$ac_ext <<_ACEOF
18292 /* confdefs.h. */
18293 _ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h. */
18297 #include <math.h>
18298 #ifdef HAVE_IEEEFP_H
18299 #include <ieeefp.h>
18300 #endif
18303 main ()
18305 _isnanl(0);
18307 return 0;
18309 _ACEOF
18310 rm -f conftest.$ac_objext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_cxx_werror_flag"
18320 || test ! -s conftest.err'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 glibcxx_cv_func__isnanl_use=yes
18333 else
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 glibcxx_cv_func__isnanl_use=no
18339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18340 ac_ext=c
18341 ac_cpp='$CPP $CPPFLAGS'
18342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18350 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18351 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18353 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18355 for ac_func in _isnanl
18357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18358 echo "$as_me:$LINENO: checking for $ac_func" >&5
18359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18360 if eval "test \"\${$as_ac_var+set}\" = set"; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363 if test x$gcc_no_link = xyes; then
18364 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18365 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18366 { (exit 1); exit 1; }; }
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h. */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18376 #define $ac_func innocuous_$ac_func
18378 /* System header to define __stub macros and hopefully few prototypes,
18379 which can conflict with char $ac_func (); below.
18380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18381 <limits.h> exists even on freestanding compilers. */
18383 #ifdef __STDC__
18384 # include <limits.h>
18385 #else
18386 # include <assert.h>
18387 #endif
18389 #undef $ac_func
18391 /* Override any gcc2 internal prototype to avoid an error. */
18392 #ifdef __cplusplus
18393 extern "C"
18395 #endif
18396 /* We use char because int might match the return type of a gcc2
18397 builtin and then its argument prototype would still apply. */
18398 char $ac_func ();
18399 /* The GNU C library defines this for functions which it implements
18400 to always fail with ENOSYS. Some functions are actually named
18401 something starting with __ and the normal name is an alias. */
18402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18403 choke me
18404 #else
18405 char (*f) () = $ac_func;
18406 #endif
18407 #ifdef __cplusplus
18409 #endif
18412 main ()
18414 return f != $ac_func;
18416 return 0;
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 eval "$as_ac_var=yes"
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 eval "$as_ac_var=no"
18448 rm -f conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18453 if test `eval echo '${'$as_ac_var'}'` = yes; then
18454 cat >>confdefs.h <<_ACEOF
18455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18456 _ACEOF
18459 done
18466 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18467 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18468 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18469 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 else
18475 ac_ext=cc
18476 ac_cpp='$CXXCPP $CPPFLAGS'
18477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h. */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 #include <math.h>
18488 #ifdef HAVE_IEEEFP_H
18489 #include <ieeefp.h>
18490 #endif
18493 main ()
18495 isinfl(0);
18497 return 0;
18499 _ACEOF
18500 rm -f conftest.$ac_objext
18501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18502 (eval $ac_compile) 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } &&
18509 { ac_try='test -z "$ac_cxx_werror_flag"
18510 || test ! -s conftest.err'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest.$ac_objext'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 glibcxx_cv_func_isinfl_use=yes
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 glibcxx_cv_func_isinfl_use=no
18529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530 ac_ext=c
18531 ac_cpp='$CPP $CPPFLAGS'
18532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18540 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18541 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18543 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18545 for ac_func in isinfl
18547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18548 echo "$as_me:$LINENO: checking for $ac_func" >&5
18549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18550 if eval "test \"\${$as_ac_var+set}\" = set"; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 else
18553 if test x$gcc_no_link = xyes; then
18554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18556 { (exit 1); exit 1; }; }
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h. */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18566 #define $ac_func innocuous_$ac_func
18568 /* System header to define __stub macros and hopefully few prototypes,
18569 which can conflict with char $ac_func (); below.
18570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571 <limits.h> exists even on freestanding compilers. */
18573 #ifdef __STDC__
18574 # include <limits.h>
18575 #else
18576 # include <assert.h>
18577 #endif
18579 #undef $ac_func
18581 /* Override any gcc2 internal prototype to avoid an error. */
18582 #ifdef __cplusplus
18583 extern "C"
18585 #endif
18586 /* We use char because int might match the return type of a gcc2
18587 builtin and then its argument prototype would still apply. */
18588 char $ac_func ();
18589 /* The GNU C library defines this for functions which it implements
18590 to always fail with ENOSYS. Some functions are actually named
18591 something starting with __ and the normal name is an alias. */
18592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18593 choke me
18594 #else
18595 char (*f) () = $ac_func;
18596 #endif
18597 #ifdef __cplusplus
18599 #endif
18602 main ()
18604 return f != $ac_func;
18606 return 0;
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611 (eval $ac_link) 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 eval "$as_ac_var=yes"
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 eval "$as_ac_var=no"
18638 rm -f conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18643 if test `eval echo '${'$as_ac_var'}'` = yes; then
18644 cat >>confdefs.h <<_ACEOF
18645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18646 _ACEOF
18649 done
18651 else
18653 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18654 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18655 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18656 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18662 ac_ext=cc
18663 ac_cpp='$CXXCPP $CPPFLAGS'
18664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include <math.h>
18675 #ifdef HAVE_IEEEFP_H
18676 #include <ieeefp.h>
18677 #endif
18680 main ()
18682 _isinfl(0);
18684 return 0;
18686 _ACEOF
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_cxx_werror_flag"
18697 || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 glibcxx_cv_func__isinfl_use=yes
18710 else
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 glibcxx_cv_func__isinfl_use=no
18716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18717 ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18727 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18728 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18730 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18732 for ac_func in _isinfl
18734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18735 echo "$as_me:$LINENO: checking for $ac_func" >&5
18736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18737 if eval "test \"\${$as_ac_var+set}\" = set"; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740 if test x$gcc_no_link = xyes; then
18741 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18742 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18743 { (exit 1); exit 1; }; }
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18753 #define $ac_func innocuous_$ac_func
18755 /* System header to define __stub macros and hopefully few prototypes,
18756 which can conflict with char $ac_func (); below.
18757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18758 <limits.h> exists even on freestanding compilers. */
18760 #ifdef __STDC__
18761 # include <limits.h>
18762 #else
18763 # include <assert.h>
18764 #endif
18766 #undef $ac_func
18768 /* Override any gcc2 internal prototype to avoid an error. */
18769 #ifdef __cplusplus
18770 extern "C"
18772 #endif
18773 /* We use char because int might match the return type of a gcc2
18774 builtin and then its argument prototype would still apply. */
18775 char $ac_func ();
18776 /* The GNU C library defines this for functions which it implements
18777 to always fail with ENOSYS. Some functions are actually named
18778 something starting with __ and the normal name is an alias. */
18779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18780 choke me
18781 #else
18782 char (*f) () = $ac_func;
18783 #endif
18784 #ifdef __cplusplus
18786 #endif
18789 main ()
18791 return f != $ac_func;
18793 return 0;
18795 _ACEOF
18796 rm -f conftest.$ac_objext conftest$ac_exeext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18798 (eval $ac_link) 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest$ac_exeext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 eval "$as_ac_var=yes"
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 eval "$as_ac_var=no"
18825 rm -f conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18830 if test `eval echo '${'$as_ac_var'}'` = yes; then
18831 cat >>confdefs.h <<_ACEOF
18832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18833 _ACEOF
18836 done
18843 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18844 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18845 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18846 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18852 ac_ext=cc
18853 ac_cpp='$CXXCPP $CPPFLAGS'
18854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include <math.h>
18866 main ()
18868 copysignl(0, 0);
18870 return 0;
18872 _ACEOF
18873 rm -f conftest.$ac_objext
18874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18875 (eval $ac_compile) 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_cxx_werror_flag"
18883 || test ! -s conftest.err'
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); }; } &&
18889 { ac_try='test -s conftest.$ac_objext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 glibcxx_cv_func_copysignl_use=yes
18896 else
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 glibcxx_cv_func_copysignl_use=no
18902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18903 ac_ext=c
18904 ac_cpp='$CPP $CPPFLAGS'
18905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18913 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18914 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18916 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18918 for ac_func in copysignl
18920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18921 echo "$as_me:$LINENO: checking for $ac_func" >&5
18922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18923 if eval "test \"\${$as_ac_var+set}\" = set"; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926 if test x$gcc_no_link = xyes; then
18927 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18928 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18929 { (exit 1); exit 1; }; }
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18939 #define $ac_func innocuous_$ac_func
18941 /* System header to define __stub macros and hopefully few prototypes,
18942 which can conflict with char $ac_func (); below.
18943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18944 <limits.h> exists even on freestanding compilers. */
18946 #ifdef __STDC__
18947 # include <limits.h>
18948 #else
18949 # include <assert.h>
18950 #endif
18952 #undef $ac_func
18954 /* Override any gcc2 internal prototype to avoid an error. */
18955 #ifdef __cplusplus
18956 extern "C"
18958 #endif
18959 /* We use char because int might match the return type of a gcc2
18960 builtin and then its argument prototype would still apply. */
18961 char $ac_func ();
18962 /* The GNU C library defines this for functions which it implements
18963 to always fail with ENOSYS. Some functions are actually named
18964 something starting with __ and the normal name is an alias. */
18965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18966 choke me
18967 #else
18968 char (*f) () = $ac_func;
18969 #endif
18970 #ifdef __cplusplus
18972 #endif
18975 main ()
18977 return f != $ac_func;
18979 return 0;
18981 _ACEOF
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984 (eval $ac_link) 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag"
18992 || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 eval "$as_ac_var=yes"
19005 else
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19009 eval "$as_ac_var=no"
19011 rm -f conftest.err conftest.$ac_objext \
19012 conftest$ac_exeext conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19016 if test `eval echo '${'$as_ac_var'}'` = yes; then
19017 cat >>confdefs.h <<_ACEOF
19018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19019 _ACEOF
19022 done
19024 else
19026 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19027 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19028 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19029 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19035 ac_ext=cc
19036 ac_cpp='$CXXCPP $CPPFLAGS'
19037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <math.h>
19049 main ()
19051 _copysignl(0, 0);
19053 return 0;
19055 _ACEOF
19056 rm -f conftest.$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_cxx_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 glibcxx_cv_func__copysignl_use=yes
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 glibcxx_cv_func__copysignl_use=no
19085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19086 ac_ext=c
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19097 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19099 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19101 for ac_func in _copysignl
19103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19104 echo "$as_me:$LINENO: checking for $ac_func" >&5
19105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19106 if eval "test \"\${$as_ac_var+set}\" = set"; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109 if test x$gcc_no_link = xyes; then
19110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19112 { (exit 1); exit 1; }; }
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19122 #define $ac_func innocuous_$ac_func
19124 /* System header to define __stub macros and hopefully few prototypes,
19125 which can conflict with char $ac_func (); below.
19126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19127 <limits.h> exists even on freestanding compilers. */
19129 #ifdef __STDC__
19130 # include <limits.h>
19131 #else
19132 # include <assert.h>
19133 #endif
19135 #undef $ac_func
19137 /* Override any gcc2 internal prototype to avoid an error. */
19138 #ifdef __cplusplus
19139 extern "C"
19141 #endif
19142 /* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19144 char $ac_func ();
19145 /* The GNU C library defines this for functions which it implements
19146 to always fail with ENOSYS. Some functions are actually named
19147 something starting with __ and the normal name is an alias. */
19148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19149 choke me
19150 #else
19151 char (*f) () = $ac_func;
19152 #endif
19153 #ifdef __cplusplus
19155 #endif
19158 main ()
19160 return f != $ac_func;
19162 return 0;
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 eval "$as_ac_var=yes"
19188 else
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 eval "$as_ac_var=no"
19194 rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19199 if test `eval echo '${'$as_ac_var'}'` = yes; then
19200 cat >>confdefs.h <<_ACEOF
19201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19202 _ACEOF
19205 done
19212 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19213 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19214 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19215 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19221 ac_ext=cc
19222 ac_cpp='$CXXCPP $CPPFLAGS'
19223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h. */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233 #include <math.h>
19235 main ()
19237 atan2l(0, 0);
19239 return 0;
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19244 (eval $ac_compile) 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_cxx_werror_flag"
19252 || test ! -s conftest.err'
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); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 glibcxx_cv_func_atan2l_use=yes
19265 else
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 glibcxx_cv_func_atan2l_use=no
19271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19272 ac_ext=c
19273 ac_cpp='$CPP $CPPFLAGS'
19274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19282 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19283 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19285 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19287 for ac_func in atan2l
19289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19290 echo "$as_me:$LINENO: checking for $ac_func" >&5
19291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_var+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 if test x$gcc_no_link = xyes; then
19296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19298 { (exit 1); exit 1; }; }
19300 cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h. */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19308 #define $ac_func innocuous_$ac_func
19310 /* System header to define __stub macros and hopefully few prototypes,
19311 which can conflict with char $ac_func (); below.
19312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19313 <limits.h> exists even on freestanding compilers. */
19315 #ifdef __STDC__
19316 # include <limits.h>
19317 #else
19318 # include <assert.h>
19319 #endif
19321 #undef $ac_func
19323 /* Override any gcc2 internal prototype to avoid an error. */
19324 #ifdef __cplusplus
19325 extern "C"
19327 #endif
19328 /* We use char because int might match the return type of a gcc2
19329 builtin and then its argument prototype would still apply. */
19330 char $ac_func ();
19331 /* The GNU C library defines this for functions which it implements
19332 to always fail with ENOSYS. Some functions are actually named
19333 something starting with __ and the normal name is an alias. */
19334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19335 choke me
19336 #else
19337 char (*f) () = $ac_func;
19338 #endif
19339 #ifdef __cplusplus
19341 #endif
19344 main ()
19346 return f != $ac_func;
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19353 (eval $ac_link) 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
19360 { ac_try='test -z "$ac_c_werror_flag"
19361 || test ! -s conftest.err'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest$ac_exeext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 eval "$as_ac_var=yes"
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 eval "$as_ac_var=no"
19380 rm -f conftest.err conftest.$ac_objext \
19381 conftest$ac_exeext conftest.$ac_ext
19383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19385 if test `eval echo '${'$as_ac_var'}'` = yes; then
19386 cat >>confdefs.h <<_ACEOF
19387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19388 _ACEOF
19391 done
19393 else
19395 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19396 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19397 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19398 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19404 ac_ext=cc
19405 ac_cpp='$CXXCPP $CPPFLAGS'
19406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 #include <math.h>
19418 main ()
19420 _atan2l(0, 0);
19422 return 0;
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_cxx_werror_flag"
19435 || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 glibcxx_cv_func__atan2l_use=yes
19448 else
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 glibcxx_cv_func__atan2l_use=no
19454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19455 ac_ext=c
19456 ac_cpp='$CPP $CPPFLAGS'
19457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19465 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19466 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19468 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19470 for ac_func in _atan2l
19472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19473 echo "$as_me:$LINENO: checking for $ac_func" >&5
19474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19475 if eval "test \"\${$as_ac_var+set}\" = set"; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478 if test x$gcc_no_link = xyes; then
19479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19481 { (exit 1); exit 1; }; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h. */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19491 #define $ac_func innocuous_$ac_func
19493 /* System header to define __stub macros and hopefully few prototypes,
19494 which can conflict with char $ac_func (); below.
19495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19496 <limits.h> exists even on freestanding compilers. */
19498 #ifdef __STDC__
19499 # include <limits.h>
19500 #else
19501 # include <assert.h>
19502 #endif
19504 #undef $ac_func
19506 /* Override any gcc2 internal prototype to avoid an error. */
19507 #ifdef __cplusplus
19508 extern "C"
19510 #endif
19511 /* We use char because int might match the return type of a gcc2
19512 builtin and then its argument prototype would still apply. */
19513 char $ac_func ();
19514 /* The GNU C library defines this for functions which it implements
19515 to always fail with ENOSYS. Some functions are actually named
19516 something starting with __ and the normal name is an alias. */
19517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19518 choke me
19519 #else
19520 char (*f) () = $ac_func;
19521 #endif
19522 #ifdef __cplusplus
19524 #endif
19527 main ()
19529 return f != $ac_func;
19531 return 0;
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19536 (eval $ac_link) 2>conftest.er1
19537 ac_status=$?
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_c_werror_flag"
19544 || test ! -s conftest.err'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest$ac_exeext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 eval "$as_ac_var=yes"
19557 else
19558 echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19561 eval "$as_ac_var=no"
19563 rm -f conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext conftest.$ac_ext
19566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19568 if test `eval echo '${'$as_ac_var'}'` = yes; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19571 _ACEOF
19574 done
19581 echo "$as_me:$LINENO: checking for expl declaration" >&5
19582 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19583 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19584 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19590 ac_ext=cc
19591 ac_cpp='$CXXCPP $CPPFLAGS'
19592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 #include <math.h>
19603 #ifdef HAVE_IEEEFP_H
19604 #include <ieeefp.h>
19605 #endif
19608 main ()
19610 expl(0);
19612 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_cxx_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 glibcxx_cv_func_expl_use=yes
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 glibcxx_cv_func_expl_use=no
19644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645 ac_ext=c
19646 ac_cpp='$CPP $CPPFLAGS'
19647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19656 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19658 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19660 for ac_func in expl
19662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19663 echo "$as_me:$LINENO: checking for $ac_func" >&5
19664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_var+set}\" = set"; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668 if test x$gcc_no_link = xyes; then
19669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19671 { (exit 1); exit 1; }; }
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h. */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19681 #define $ac_func innocuous_$ac_func
19683 /* System header to define __stub macros and hopefully few prototypes,
19684 which can conflict with char $ac_func (); below.
19685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19686 <limits.h> exists even on freestanding compilers. */
19688 #ifdef __STDC__
19689 # include <limits.h>
19690 #else
19691 # include <assert.h>
19692 #endif
19694 #undef $ac_func
19696 /* Override any gcc2 internal prototype to avoid an error. */
19697 #ifdef __cplusplus
19698 extern "C"
19700 #endif
19701 /* We use char because int might match the return type of a gcc2
19702 builtin and then its argument prototype would still apply. */
19703 char $ac_func ();
19704 /* The GNU C library defines this for functions which it implements
19705 to always fail with ENOSYS. Some functions are actually named
19706 something starting with __ and the normal name is an alias. */
19707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19708 choke me
19709 #else
19710 char (*f) () = $ac_func;
19711 #endif
19712 #ifdef __cplusplus
19714 #endif
19717 main ()
19719 return f != $ac_func;
19721 return 0;
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726 (eval $ac_link) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -z "$ac_c_werror_flag"
19734 || test ! -s conftest.err'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest$ac_exeext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 eval "$as_ac_var=yes"
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 eval "$as_ac_var=no"
19753 rm -f conftest.err conftest.$ac_objext \
19754 conftest$ac_exeext conftest.$ac_ext
19756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19758 if test `eval echo '${'$as_ac_var'}'` = yes; then
19759 cat >>confdefs.h <<_ACEOF
19760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19761 _ACEOF
19764 done
19766 else
19768 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19769 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19770 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19771 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19777 ac_ext=cc
19778 ac_cpp='$CXXCPP $CPPFLAGS'
19779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 #include <math.h>
19790 #ifdef HAVE_IEEEFP_H
19791 #include <ieeefp.h>
19792 #endif
19795 main ()
19797 _expl(0);
19799 return 0;
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_cxx_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 glibcxx_cv_func__expl_use=yes
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 glibcxx_cv_func__expl_use=no
19831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19832 ac_ext=c
19833 ac_cpp='$CPP $CPPFLAGS'
19834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19843 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19845 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19847 for ac_func in _expl
19849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19850 echo "$as_me:$LINENO: checking for $ac_func" >&5
19851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19852 if eval "test \"\${$as_ac_var+set}\" = set"; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855 if test x$gcc_no_link = xyes; then
19856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19858 { (exit 1); exit 1; }; }
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19868 #define $ac_func innocuous_$ac_func
19870 /* System header to define __stub macros and hopefully few prototypes,
19871 which can conflict with char $ac_func (); below.
19872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19873 <limits.h> exists even on freestanding compilers. */
19875 #ifdef __STDC__
19876 # include <limits.h>
19877 #else
19878 # include <assert.h>
19879 #endif
19881 #undef $ac_func
19883 /* Override any gcc2 internal prototype to avoid an error. */
19884 #ifdef __cplusplus
19885 extern "C"
19887 #endif
19888 /* We use char because int might match the return type of a gcc2
19889 builtin and then its argument prototype would still apply. */
19890 char $ac_func ();
19891 /* The GNU C library defines this for functions which it implements
19892 to always fail with ENOSYS. Some functions are actually named
19893 something starting with __ and the normal name is an alias. */
19894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19895 choke me
19896 #else
19897 char (*f) () = $ac_func;
19898 #endif
19899 #ifdef __cplusplus
19901 #endif
19904 main ()
19906 return f != $ac_func;
19908 return 0;
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_c_werror_flag"
19921 || test ! -s conftest.err'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest$ac_exeext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 eval "$as_ac_var=yes"
19934 else
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 eval "$as_ac_var=no"
19940 rm -f conftest.err conftest.$ac_objext \
19941 conftest$ac_exeext conftest.$ac_ext
19943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19945 if test `eval echo '${'$as_ac_var'}'` = yes; then
19946 cat >>confdefs.h <<_ACEOF
19947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19948 _ACEOF
19951 done
19958 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
19959 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
19960 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
19961 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19967 ac_ext=cc
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 #include <math.h>
19980 #ifdef HAVE_IEEEFP_H
19981 #include <ieeefp.h>
19982 #endif
19985 main ()
19987 fabsl(0);
19989 return 0;
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994 (eval $ac_compile) 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -z "$ac_cxx_werror_flag"
20002 || test ! -s conftest.err'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; } &&
20008 { ac_try='test -s conftest.$ac_objext'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 glibcxx_cv_func_fabsl_use=yes
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 glibcxx_cv_func_fabsl_use=no
20021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022 ac_ext=c
20023 ac_cpp='$CPP $CPPFLAGS'
20024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20032 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20033 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20035 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20037 for ac_func in fabsl
20039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20040 echo "$as_me:$LINENO: checking for $ac_func" >&5
20041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20042 if eval "test \"\${$as_ac_var+set}\" = set"; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 if test x$gcc_no_link = xyes; then
20046 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20048 { (exit 1); exit 1; }; }
20050 cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h. */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20058 #define $ac_func innocuous_$ac_func
20060 /* System header to define __stub macros and hopefully few prototypes,
20061 which can conflict with char $ac_func (); below.
20062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063 <limits.h> exists even on freestanding compilers. */
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20071 #undef $ac_func
20073 /* Override any gcc2 internal prototype to avoid an error. */
20074 #ifdef __cplusplus
20075 extern "C"
20077 #endif
20078 /* We use char because int might match the return type of a gcc2
20079 builtin and then its argument prototype would still apply. */
20080 char $ac_func ();
20081 /* The GNU C library defines this for functions which it implements
20082 to always fail with ENOSYS. Some functions are actually named
20083 something starting with __ and the normal name is an alias. */
20084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20085 choke me
20086 #else
20087 char (*f) () = $ac_func;
20088 #endif
20089 #ifdef __cplusplus
20091 #endif
20094 main ()
20096 return f != $ac_func;
20098 return 0;
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103 (eval $ac_link) 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
20110 { ac_try='test -z "$ac_c_werror_flag"
20111 || test ! -s conftest.err'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest$ac_exeext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 eval "$as_ac_var=yes"
20124 else
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 eval "$as_ac_var=no"
20130 rm -f conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20135 if test `eval echo '${'$as_ac_var'}'` = yes; then
20136 cat >>confdefs.h <<_ACEOF
20137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20138 _ACEOF
20141 done
20143 else
20145 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20146 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20147 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20148 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20154 ac_ext=cc
20155 ac_cpp='$CXXCPP $CPPFLAGS'
20156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <math.h>
20167 #ifdef HAVE_IEEEFP_H
20168 #include <ieeefp.h>
20169 #endif
20172 main ()
20174 _fabsl(0);
20176 return 0;
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181 (eval $ac_compile) 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_cxx_werror_flag"
20189 || test ! -s conftest.err'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 glibcxx_cv_func__fabsl_use=yes
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 glibcxx_cv_func__fabsl_use=no
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20209 ac_ext=c
20210 ac_cpp='$CPP $CPPFLAGS'
20211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20220 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20222 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20224 for ac_func in _fabsl
20226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20227 echo "$as_me:$LINENO: checking for $ac_func" >&5
20228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20229 if eval "test \"\${$as_ac_var+set}\" = set"; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 if test x$gcc_no_link = xyes; then
20233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20235 { (exit 1); exit 1; }; }
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h. */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20245 #define $ac_func innocuous_$ac_func
20247 /* System header to define __stub macros and hopefully few prototypes,
20248 which can conflict with char $ac_func (); below.
20249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250 <limits.h> exists even on freestanding compilers. */
20252 #ifdef __STDC__
20253 # include <limits.h>
20254 #else
20255 # include <assert.h>
20256 #endif
20258 #undef $ac_func
20260 /* Override any gcc2 internal prototype to avoid an error. */
20261 #ifdef __cplusplus
20262 extern "C"
20264 #endif
20265 /* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20267 char $ac_func ();
20268 /* The GNU C library defines this for functions which it implements
20269 to always fail with ENOSYS. Some functions are actually named
20270 something starting with __ and the normal name is an alias. */
20271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20272 choke me
20273 #else
20274 char (*f) () = $ac_func;
20275 #endif
20276 #ifdef __cplusplus
20278 #endif
20281 main ()
20283 return f != $ac_func;
20285 return 0;
20287 _ACEOF
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290 (eval $ac_link) 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -z "$ac_c_werror_flag"
20298 || test ! -s conftest.err'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest$ac_exeext'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 eval "$as_ac_var=yes"
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 eval "$as_ac_var=no"
20317 rm -f conftest.err conftest.$ac_objext \
20318 conftest$ac_exeext conftest.$ac_ext
20320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20322 if test `eval echo '${'$as_ac_var'}'` = yes; then
20323 cat >>confdefs.h <<_ACEOF
20324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20325 _ACEOF
20328 done
20335 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20336 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20337 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20338 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20344 ac_ext=cc
20345 ac_cpp='$CXXCPP $CPPFLAGS'
20346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 #include <math.h>
20358 main ()
20360 fmodl(0, 0);
20362 return 0;
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20367 (eval $ac_compile) 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
20374 { ac_try='test -z "$ac_cxx_werror_flag"
20375 || test ! -s conftest.err'
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); }; } &&
20381 { ac_try='test -s conftest.$ac_objext'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 glibcxx_cv_func_fmodl_use=yes
20388 else
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20392 glibcxx_cv_func_fmodl_use=no
20394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20395 ac_ext=c
20396 ac_cpp='$CPP $CPPFLAGS'
20397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20405 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20406 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20408 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20410 for ac_func in fmodl
20412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413 echo "$as_me:$LINENO: checking for $ac_func" >&5
20414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20415 if eval "test \"\${$as_ac_var+set}\" = set"; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418 if test x$gcc_no_link = xyes; then
20419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20421 { (exit 1); exit 1; }; }
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20431 #define $ac_func innocuous_$ac_func
20433 /* System header to define __stub macros and hopefully few prototypes,
20434 which can conflict with char $ac_func (); below.
20435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20436 <limits.h> exists even on freestanding compilers. */
20438 #ifdef __STDC__
20439 # include <limits.h>
20440 #else
20441 # include <assert.h>
20442 #endif
20444 #undef $ac_func
20446 /* Override any gcc2 internal prototype to avoid an error. */
20447 #ifdef __cplusplus
20448 extern "C"
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char $ac_func ();
20454 /* The GNU C library defines this for functions which it implements
20455 to always fail with ENOSYS. Some functions are actually named
20456 something starting with __ and the normal name is an alias. */
20457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20458 choke me
20459 #else
20460 char (*f) () = $ac_func;
20461 #endif
20462 #ifdef __cplusplus
20464 #endif
20467 main ()
20469 return f != $ac_func;
20471 return 0;
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476 (eval $ac_link) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag"
20484 || test ! -s conftest.err'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; } &&
20490 { ac_try='test -s conftest$ac_exeext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 eval "$as_ac_var=yes"
20497 else
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 eval "$as_ac_var=no"
20503 rm -f conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
20506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20508 if test `eval echo '${'$as_ac_var'}'` = yes; then
20509 cat >>confdefs.h <<_ACEOF
20510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20511 _ACEOF
20514 done
20516 else
20518 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20519 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20520 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20521 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20527 ac_ext=cc
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <math.h>
20541 main ()
20543 _fmodl(0, 0);
20545 return 0;
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_cxx_werror_flag"
20558 || test ! -s conftest.err'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest.$ac_objext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 glibcxx_cv_func__fmodl_use=yes
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 glibcxx_cv_func__fmodl_use=no
20577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20578 ac_ext=c
20579 ac_cpp='$CPP $CPPFLAGS'
20580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20589 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20591 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20593 for ac_func in _fmodl
20595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20596 echo "$as_me:$LINENO: checking for $ac_func" >&5
20597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20598 if eval "test \"\${$as_ac_var+set}\" = set"; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601 if test x$gcc_no_link = xyes; then
20602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20604 { (exit 1); exit 1; }; }
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h. */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20614 #define $ac_func innocuous_$ac_func
20616 /* System header to define __stub macros and hopefully few prototypes,
20617 which can conflict with char $ac_func (); below.
20618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619 <limits.h> exists even on freestanding compilers. */
20621 #ifdef __STDC__
20622 # include <limits.h>
20623 #else
20624 # include <assert.h>
20625 #endif
20627 #undef $ac_func
20629 /* Override any gcc2 internal prototype to avoid an error. */
20630 #ifdef __cplusplus
20631 extern "C"
20633 #endif
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20636 char $ac_func ();
20637 /* The GNU C library defines this for functions which it implements
20638 to always fail with ENOSYS. Some functions are actually named
20639 something starting with __ and the normal name is an alias. */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20641 choke me
20642 #else
20643 char (*f) () = $ac_func;
20644 #endif
20645 #ifdef __cplusplus
20647 #endif
20650 main ()
20652 return f != $ac_func;
20654 return 0;
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659 (eval $ac_link) 2>conftest.er1
20660 ac_status=$?
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -f conftest.er1
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_c_werror_flag"
20667 || test ! -s conftest.err'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; } &&
20673 { ac_try='test -s conftest$ac_exeext'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 eval "$as_ac_var=yes"
20680 else
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 eval "$as_ac_var=no"
20686 rm -f conftest.err conftest.$ac_objext \
20687 conftest$ac_exeext conftest.$ac_ext
20689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20691 if test `eval echo '${'$as_ac_var'}'` = yes; then
20692 cat >>confdefs.h <<_ACEOF
20693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20694 _ACEOF
20697 done
20704 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20705 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20706 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20707 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20713 ac_ext=cc
20714 ac_cpp='$CXXCPP $CPPFLAGS'
20715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20719 cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h. */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 #include <math.h>
20727 main ()
20729 frexpl(0, 0);
20731 return 0;
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_cxx_werror_flag"
20744 || test ! -s conftest.err'
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); }; } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 glibcxx_cv_func_frexpl_use=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 glibcxx_cv_func_frexpl_use=no
20763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20764 ac_ext=c
20765 ac_cpp='$CPP $CPPFLAGS'
20766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20774 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20775 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20777 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20779 for ac_func in frexpl
20781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20782 echo "$as_me:$LINENO: checking for $ac_func" >&5
20783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20784 if eval "test \"\${$as_ac_var+set}\" = set"; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787 if test x$gcc_no_link = xyes; then
20788 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20790 { (exit 1); exit 1; }; }
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20800 #define $ac_func innocuous_$ac_func
20802 /* System header to define __stub macros and hopefully few prototypes,
20803 which can conflict with char $ac_func (); below.
20804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20805 <limits.h> exists even on freestanding compilers. */
20807 #ifdef __STDC__
20808 # include <limits.h>
20809 #else
20810 # include <assert.h>
20811 #endif
20813 #undef $ac_func
20815 /* Override any gcc2 internal prototype to avoid an error. */
20816 #ifdef __cplusplus
20817 extern "C"
20819 #endif
20820 /* We use char because int might match the return type of a gcc2
20821 builtin and then its argument prototype would still apply. */
20822 char $ac_func ();
20823 /* The GNU C library defines this for functions which it implements
20824 to always fail with ENOSYS. Some functions are actually named
20825 something starting with __ and the normal name is an alias. */
20826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20827 choke me
20828 #else
20829 char (*f) () = $ac_func;
20830 #endif
20831 #ifdef __cplusplus
20833 #endif
20836 main ()
20838 return f != $ac_func;
20840 return 0;
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20845 (eval $ac_link) 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -z "$ac_c_werror_flag"
20853 || test ! -s conftest.err'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest$ac_exeext'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 eval "$as_ac_var=yes"
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 eval "$as_ac_var=no"
20872 rm -f conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
20875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20877 if test `eval echo '${'$as_ac_var'}'` = yes; then
20878 cat >>confdefs.h <<_ACEOF
20879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20880 _ACEOF
20883 done
20885 else
20887 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20888 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20889 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20890 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20896 ac_ext=cc
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902 cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h. */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 #include <math.h>
20910 main ()
20912 _frexpl(0, 0);
20914 return 0;
20916 _ACEOF
20917 rm -f conftest.$ac_objext
20918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20919 (eval $ac_compile) 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } &&
20926 { ac_try='test -z "$ac_cxx_werror_flag"
20927 || test ! -s conftest.err'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20939 glibcxx_cv_func__frexpl_use=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 glibcxx_cv_func__frexpl_use=no
20946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20947 ac_ext=c
20948 ac_cpp='$CPP $CPPFLAGS'
20949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
20958 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
20960 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
20962 for ac_func in _frexpl
20964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20967 if eval "test \"\${$as_ac_var+set}\" = set"; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 else
20970 if test x$gcc_no_link = xyes; then
20971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20973 { (exit 1); exit 1; }; }
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h. */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20983 #define $ac_func innocuous_$ac_func
20985 /* System header to define __stub macros and hopefully few prototypes,
20986 which can conflict with char $ac_func (); below.
20987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20988 <limits.h> exists even on freestanding compilers. */
20990 #ifdef __STDC__
20991 # include <limits.h>
20992 #else
20993 # include <assert.h>
20994 #endif
20996 #undef $ac_func
20998 /* Override any gcc2 internal prototype to avoid an error. */
20999 #ifdef __cplusplus
21000 extern "C"
21002 #endif
21003 /* We use char because int might match the return type of a gcc2
21004 builtin and then its argument prototype would still apply. */
21005 char $ac_func ();
21006 /* The GNU C library defines this for functions which it implements
21007 to always fail with ENOSYS. Some functions are actually named
21008 something starting with __ and the normal name is an alias. */
21009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21010 choke me
21011 #else
21012 char (*f) () = $ac_func;
21013 #endif
21014 #ifdef __cplusplus
21016 #endif
21019 main ()
21021 return f != $ac_func;
21023 return 0;
21025 _ACEOF
21026 rm -f conftest.$ac_objext conftest$ac_exeext
21027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21028 (eval $ac_link) 2>conftest.er1
21029 ac_status=$?
21030 grep -v '^ *+' conftest.er1 >conftest.err
21031 rm -f conftest.er1
21032 cat conftest.err >&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); } &&
21035 { ac_try='test -z "$ac_c_werror_flag"
21036 || test ! -s conftest.err'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; } &&
21042 { ac_try='test -s conftest$ac_exeext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 eval "$as_ac_var=yes"
21049 else
21050 echo "$as_me: failed program was:" >&5
21051 sed 's/^/| /' conftest.$ac_ext >&5
21053 eval "$as_ac_var=no"
21055 rm -f conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21060 if test `eval echo '${'$as_ac_var'}'` = yes; then
21061 cat >>confdefs.h <<_ACEOF
21062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21063 _ACEOF
21066 done
21073 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21074 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21075 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21076 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21082 ac_ext=cc
21083 ac_cpp='$CXXCPP $CPPFLAGS'
21084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <math.h>
21096 main ()
21098 hypotl(0, 0);
21100 return 0;
21102 _ACEOF
21103 rm -f conftest.$ac_objext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105 (eval $ac_compile) 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } &&
21112 { ac_try='test -z "$ac_cxx_werror_flag"
21113 || test ! -s conftest.err'
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); }; } &&
21119 { ac_try='test -s conftest.$ac_objext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 glibcxx_cv_func_hypotl_use=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 glibcxx_cv_func_hypotl_use=no
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 ac_ext=c
21134 ac_cpp='$CPP $CPPFLAGS'
21135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21144 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21146 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21148 for ac_func in hypotl
21150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21151 echo "$as_me:$LINENO: checking for $ac_func" >&5
21152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21153 if eval "test \"\${$as_ac_var+set}\" = set"; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156 if test x$gcc_no_link = xyes; then
21157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21159 { (exit 1); exit 1; }; }
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21169 #define $ac_func innocuous_$ac_func
21171 /* System header to define __stub macros and hopefully few prototypes,
21172 which can conflict with char $ac_func (); below.
21173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21174 <limits.h> exists even on freestanding compilers. */
21176 #ifdef __STDC__
21177 # include <limits.h>
21178 #else
21179 # include <assert.h>
21180 #endif
21182 #undef $ac_func
21184 /* Override any gcc2 internal prototype to avoid an error. */
21185 #ifdef __cplusplus
21186 extern "C"
21188 #endif
21189 /* We use char because int might match the return type of a gcc2
21190 builtin and then its argument prototype would still apply. */
21191 char $ac_func ();
21192 /* The GNU C library defines this for functions which it implements
21193 to always fail with ENOSYS. Some functions are actually named
21194 something starting with __ and the normal name is an alias. */
21195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21196 choke me
21197 #else
21198 char (*f) () = $ac_func;
21199 #endif
21200 #ifdef __cplusplus
21202 #endif
21205 main ()
21207 return f != $ac_func;
21209 return 0;
21211 _ACEOF
21212 rm -f conftest.$ac_objext conftest$ac_exeext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21214 (eval $ac_link) 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag"
21222 || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest$ac_exeext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 eval "$as_ac_var=yes"
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 eval "$as_ac_var=no"
21241 rm -f conftest.err conftest.$ac_objext \
21242 conftest$ac_exeext conftest.$ac_ext
21244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21246 if test `eval echo '${'$as_ac_var'}'` = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21249 _ACEOF
21252 done
21254 else
21256 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21257 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21258 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21259 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21265 ac_ext=cc
21266 ac_cpp='$CXXCPP $CPPFLAGS'
21267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <math.h>
21279 main ()
21281 _hypotl(0, 0);
21283 return 0;
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21288 (eval $ac_compile) 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_cxx_werror_flag"
21296 || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest.$ac_objext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 glibcxx_cv_func__hypotl_use=yes
21309 else
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 glibcxx_cv_func__hypotl_use=no
21315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 ac_ext=c
21317 ac_cpp='$CPP $CPPFLAGS'
21318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21326 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21327 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21329 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21331 for ac_func in _hypotl
21333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21334 echo "$as_me:$LINENO: checking for $ac_func" >&5
21335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21336 if eval "test \"\${$as_ac_var+set}\" = set"; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339 if test x$gcc_no_link = xyes; then
21340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21342 { (exit 1); exit 1; }; }
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21352 #define $ac_func innocuous_$ac_func
21354 /* System header to define __stub macros and hopefully few prototypes,
21355 which can conflict with char $ac_func (); below.
21356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21357 <limits.h> exists even on freestanding compilers. */
21359 #ifdef __STDC__
21360 # include <limits.h>
21361 #else
21362 # include <assert.h>
21363 #endif
21365 #undef $ac_func
21367 /* Override any gcc2 internal prototype to avoid an error. */
21368 #ifdef __cplusplus
21369 extern "C"
21371 #endif
21372 /* We use char because int might match the return type of a gcc2
21373 builtin and then its argument prototype would still apply. */
21374 char $ac_func ();
21375 /* The GNU C library defines this for functions which it implements
21376 to always fail with ENOSYS. Some functions are actually named
21377 something starting with __ and the normal name is an alias. */
21378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21379 choke me
21380 #else
21381 char (*f) () = $ac_func;
21382 #endif
21383 #ifdef __cplusplus
21385 #endif
21388 main ()
21390 return f != $ac_func;
21392 return 0;
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>conftest.er1
21398 ac_status=$?
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_c_werror_flag"
21405 || test ! -s conftest.err'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest$ac_exeext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 eval "$as_ac_var=yes"
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 eval "$as_ac_var=no"
21424 rm -f conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21429 if test `eval echo '${'$as_ac_var'}'` = yes; then
21430 cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21432 _ACEOF
21435 done
21442 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21443 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21444 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21445 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21451 ac_ext=cc
21452 ac_cpp='$CXXCPP $CPPFLAGS'
21453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 #include <math.h>
21465 main ()
21467 ldexpl(0, 0);
21469 return 0;
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -z "$ac_cxx_werror_flag"
21482 || test ! -s conftest.err'
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); }; } &&
21488 { ac_try='test -s conftest.$ac_objext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 glibcxx_cv_func_ldexpl_use=yes
21495 else
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 glibcxx_cv_func_ldexpl_use=no
21501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21502 ac_ext=c
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21513 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21515 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21517 for ac_func in ldexpl
21519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21520 echo "$as_me:$LINENO: checking for $ac_func" >&5
21521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21522 if eval "test \"\${$as_ac_var+set}\" = set"; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525 if test x$gcc_no_link = xyes; then
21526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21528 { (exit 1); exit 1; }; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21538 #define $ac_func innocuous_$ac_func
21540 /* System header to define __stub macros and hopefully few prototypes,
21541 which can conflict with char $ac_func (); below.
21542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21543 <limits.h> exists even on freestanding compilers. */
21545 #ifdef __STDC__
21546 # include <limits.h>
21547 #else
21548 # include <assert.h>
21549 #endif
21551 #undef $ac_func
21553 /* Override any gcc2 internal prototype to avoid an error. */
21554 #ifdef __cplusplus
21555 extern "C"
21557 #endif
21558 /* We use char because int might match the return type of a gcc2
21559 builtin and then its argument prototype would still apply. */
21560 char $ac_func ();
21561 /* The GNU C library defines this for functions which it implements
21562 to always fail with ENOSYS. Some functions are actually named
21563 something starting with __ and the normal name is an alias. */
21564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21565 choke me
21566 #else
21567 char (*f) () = $ac_func;
21568 #endif
21569 #ifdef __cplusplus
21571 #endif
21574 main ()
21576 return f != $ac_func;
21578 return 0;
21580 _ACEOF
21581 rm -f conftest.$ac_objext conftest$ac_exeext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21583 (eval $ac_link) 2>conftest.er1
21584 ac_status=$?
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
21590 { ac_try='test -z "$ac_c_werror_flag"
21591 || test ! -s conftest.err'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; } &&
21597 { ac_try='test -s conftest$ac_exeext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 eval "$as_ac_var=yes"
21604 else
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 eval "$as_ac_var=no"
21610 rm -f conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21615 if test `eval echo '${'$as_ac_var'}'` = yes; then
21616 cat >>confdefs.h <<_ACEOF
21617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21618 _ACEOF
21621 done
21623 else
21625 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21626 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21627 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21628 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21634 ac_ext=cc
21635 ac_cpp='$CXXCPP $CPPFLAGS'
21636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <math.h>
21648 main ()
21650 _ldexpl(0, 0);
21652 return 0;
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657 (eval $ac_compile) 2>conftest.er1
21658 ac_status=$?
21659 grep -v '^ *+' conftest.er1 >conftest.err
21660 rm -f conftest.er1
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -z "$ac_cxx_werror_flag"
21665 || test ! -s conftest.err'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try='test -s conftest.$ac_objext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 glibcxx_cv_func__ldexpl_use=yes
21678 else
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 glibcxx_cv_func__ldexpl_use=no
21684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21685 ac_ext=c
21686 ac_cpp='$CPP $CPPFLAGS'
21687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21695 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21696 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21698 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21700 for ac_func in _ldexpl
21702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 echo "$as_me:$LINENO: checking for $ac_func" >&5
21704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21705 if eval "test \"\${$as_ac_var+set}\" = set"; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708 if test x$gcc_no_link = xyes; then
21709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21711 { (exit 1); exit 1; }; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21721 #define $ac_func innocuous_$ac_func
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21734 #undef $ac_func
21736 /* Override any gcc2 internal prototype to avoid an error. */
21737 #ifdef __cplusplus
21738 extern "C"
21740 #endif
21741 /* We use char because int might match the return type of a gcc2
21742 builtin and then its argument prototype would still apply. */
21743 char $ac_func ();
21744 /* The GNU C library defines this for functions which it implements
21745 to always fail with ENOSYS. Some functions are actually named
21746 something starting with __ and the normal name is an alias. */
21747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21748 choke me
21749 #else
21750 char (*f) () = $ac_func;
21751 #endif
21752 #ifdef __cplusplus
21754 #endif
21757 main ()
21759 return f != $ac_func;
21761 return 0;
21763 _ACEOF
21764 rm -f conftest.$ac_objext conftest$ac_exeext
21765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21766 (eval $ac_link) 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } &&
21773 { ac_try='test -z "$ac_c_werror_flag"
21774 || test ! -s conftest.err'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest$ac_exeext'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 eval "$as_ac_var=yes"
21787 else
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21791 eval "$as_ac_var=no"
21793 rm -f conftest.err conftest.$ac_objext \
21794 conftest$ac_exeext conftest.$ac_ext
21796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21798 if test `eval echo '${'$as_ac_var'}'` = yes; then
21799 cat >>confdefs.h <<_ACEOF
21800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21801 _ACEOF
21804 done
21811 echo "$as_me:$LINENO: checking for logl declaration" >&5
21812 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21813 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21814 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21820 ac_ext=cc
21821 ac_cpp='$CXXCPP $CPPFLAGS'
21822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h. */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <math.h>
21833 #ifdef HAVE_IEEEFP_H
21834 #include <ieeefp.h>
21835 #endif
21838 main ()
21840 logl(0);
21842 return 0;
21844 _ACEOF
21845 rm -f conftest.$ac_objext
21846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21847 (eval $ac_compile) 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
21854 { ac_try='test -z "$ac_cxx_werror_flag"
21855 || test ! -s conftest.err'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; } &&
21861 { ac_try='test -s conftest.$ac_objext'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 glibcxx_cv_func_logl_use=yes
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 glibcxx_cv_func_logl_use=no
21874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21875 ac_ext=c
21876 ac_cpp='$CPP $CPPFLAGS'
21877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21885 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21886 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21888 if test x$glibcxx_cv_func_logl_use = x"yes"; then
21890 for ac_func in logl
21892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21893 echo "$as_me:$LINENO: checking for $ac_func" >&5
21894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21895 if eval "test \"\${$as_ac_var+set}\" = set"; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898 if test x$gcc_no_link = xyes; then
21899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21901 { (exit 1); exit 1; }; }
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21911 #define $ac_func innocuous_$ac_func
21913 /* System header to define __stub macros and hopefully few prototypes,
21914 which can conflict with char $ac_func (); below.
21915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21916 <limits.h> exists even on freestanding compilers. */
21918 #ifdef __STDC__
21919 # include <limits.h>
21920 #else
21921 # include <assert.h>
21922 #endif
21924 #undef $ac_func
21926 /* Override any gcc2 internal prototype to avoid an error. */
21927 #ifdef __cplusplus
21928 extern "C"
21930 #endif
21931 /* We use char because int might match the return type of a gcc2
21932 builtin and then its argument prototype would still apply. */
21933 char $ac_func ();
21934 /* The GNU C library defines this for functions which it implements
21935 to always fail with ENOSYS. Some functions are actually named
21936 something starting with __ and the normal name is an alias. */
21937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21938 choke me
21939 #else
21940 char (*f) () = $ac_func;
21941 #endif
21942 #ifdef __cplusplus
21944 #endif
21947 main ()
21949 return f != $ac_func;
21951 return 0;
21953 _ACEOF
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21956 (eval $ac_link) 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -z "$ac_c_werror_flag"
21964 || test ! -s conftest.err'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try='test -s conftest$ac_exeext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 eval "$as_ac_var=yes"
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 eval "$as_ac_var=no"
21983 rm -f conftest.err conftest.$ac_objext \
21984 conftest$ac_exeext conftest.$ac_ext
21986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21988 if test `eval echo '${'$as_ac_var'}'` = yes; then
21989 cat >>confdefs.h <<_ACEOF
21990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21991 _ACEOF
21994 done
21996 else
21998 echo "$as_me:$LINENO: checking for _logl declaration" >&5
21999 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22000 if test x${glibcxx_cv_func__logl_use+set} != xset; then
22001 if test "${glibcxx_cv_func__logl_use+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22007 ac_ext=cc
22008 ac_cpp='$CXXCPP $CPPFLAGS'
22009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 #include <math.h>
22020 #ifdef HAVE_IEEEFP_H
22021 #include <ieeefp.h>
22022 #endif
22025 main ()
22027 _logl(0);
22029 return 0;
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22034 (eval $ac_compile) 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_cxx_werror_flag"
22042 || test ! -s conftest.err'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; } &&
22048 { ac_try='test -s conftest.$ac_objext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 glibcxx_cv_func__logl_use=yes
22055 else
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 glibcxx_cv_func__logl_use=no
22061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22062 ac_ext=c
22063 ac_cpp='$CPP $CPPFLAGS'
22064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22072 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22073 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22075 if test x$glibcxx_cv_func__logl_use = x"yes"; then
22077 for ac_func in _logl
22079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22080 echo "$as_me:$LINENO: checking for $ac_func" >&5
22081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22082 if eval "test \"\${$as_ac_var+set}\" = set"; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085 if test x$gcc_no_link = xyes; then
22086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22088 { (exit 1); exit 1; }; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22098 #define $ac_func innocuous_$ac_func
22100 /* System header to define __stub macros and hopefully few prototypes,
22101 which can conflict with char $ac_func (); below.
22102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22103 <limits.h> exists even on freestanding compilers. */
22105 #ifdef __STDC__
22106 # include <limits.h>
22107 #else
22108 # include <assert.h>
22109 #endif
22111 #undef $ac_func
22113 /* Override any gcc2 internal prototype to avoid an error. */
22114 #ifdef __cplusplus
22115 extern "C"
22117 #endif
22118 /* We use char because int might match the return type of a gcc2
22119 builtin and then its argument prototype would still apply. */
22120 char $ac_func ();
22121 /* The GNU C library defines this for functions which it implements
22122 to always fail with ENOSYS. Some functions are actually named
22123 something starting with __ and the normal name is an alias. */
22124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22125 choke me
22126 #else
22127 char (*f) () = $ac_func;
22128 #endif
22129 #ifdef __cplusplus
22131 #endif
22134 main ()
22136 return f != $ac_func;
22138 return 0;
22140 _ACEOF
22141 rm -f conftest.$ac_objext conftest$ac_exeext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22143 (eval $ac_link) 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try='test -z "$ac_c_werror_flag"
22151 || test ! -s conftest.err'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; } &&
22157 { ac_try='test -s conftest$ac_exeext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 eval "$as_ac_var=yes"
22164 else
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 eval "$as_ac_var=no"
22170 rm -f conftest.err conftest.$ac_objext \
22171 conftest$ac_exeext conftest.$ac_ext
22173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22175 if test `eval echo '${'$as_ac_var'}'` = yes; then
22176 cat >>confdefs.h <<_ACEOF
22177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22178 _ACEOF
22181 done
22188 echo "$as_me:$LINENO: checking for log10l declaration" >&5
22189 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22190 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22191 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 else
22197 ac_ext=cc
22198 ac_cpp='$CXXCPP $CPPFLAGS'
22199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h. */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 #include <math.h>
22210 #ifdef HAVE_IEEEFP_H
22211 #include <ieeefp.h>
22212 #endif
22215 main ()
22217 log10l(0);
22219 return 0;
22221 _ACEOF
22222 rm -f conftest.$ac_objext
22223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224 (eval $ac_compile) 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
22231 { ac_try='test -z "$ac_cxx_werror_flag"
22232 || test ! -s conftest.err'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 glibcxx_cv_func_log10l_use=yes
22245 else
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 glibcxx_cv_func_log10l_use=no
22251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252 ac_ext=c
22253 ac_cpp='$CPP $CPPFLAGS'
22254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22262 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22263 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22265 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22267 for ac_func in log10l
22269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22270 echo "$as_me:$LINENO: checking for $ac_func" >&5
22271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22272 if eval "test \"\${$as_ac_var+set}\" = set"; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 else
22275 if test x$gcc_no_link = xyes; then
22276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22278 { (exit 1); exit 1; }; }
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22288 #define $ac_func innocuous_$ac_func
22290 /* System header to define __stub macros and hopefully few prototypes,
22291 which can conflict with char $ac_func (); below.
22292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22293 <limits.h> exists even on freestanding compilers. */
22295 #ifdef __STDC__
22296 # include <limits.h>
22297 #else
22298 # include <assert.h>
22299 #endif
22301 #undef $ac_func
22303 /* Override any gcc2 internal prototype to avoid an error. */
22304 #ifdef __cplusplus
22305 extern "C"
22307 #endif
22308 /* We use char because int might match the return type of a gcc2
22309 builtin and then its argument prototype would still apply. */
22310 char $ac_func ();
22311 /* The GNU C library defines this for functions which it implements
22312 to always fail with ENOSYS. Some functions are actually named
22313 something starting with __ and the normal name is an alias. */
22314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22315 choke me
22316 #else
22317 char (*f) () = $ac_func;
22318 #endif
22319 #ifdef __cplusplus
22321 #endif
22324 main ()
22326 return f != $ac_func;
22328 return 0;
22330 _ACEOF
22331 rm -f conftest.$ac_objext conftest$ac_exeext
22332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333 (eval $ac_link) 2>conftest.er1
22334 ac_status=$?
22335 grep -v '^ *+' conftest.er1 >conftest.err
22336 rm -f conftest.er1
22337 cat conftest.err >&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } &&
22340 { ac_try='test -z "$ac_c_werror_flag"
22341 || test ! -s conftest.err'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest$ac_exeext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 eval "$as_ac_var=yes"
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 eval "$as_ac_var=no"
22360 rm -f conftest.err conftest.$ac_objext \
22361 conftest$ac_exeext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22365 if test `eval echo '${'$as_ac_var'}'` = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22368 _ACEOF
22371 done
22373 else
22375 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22376 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22377 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22378 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22384 ac_ext=cc
22385 ac_cpp='$CXXCPP $CPPFLAGS'
22386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h. */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 #include <math.h>
22397 #ifdef HAVE_IEEEFP_H
22398 #include <ieeefp.h>
22399 #endif
22402 main ()
22404 _log10l(0);
22406 return 0;
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411 (eval $ac_compile) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try='test -z "$ac_cxx_werror_flag"
22419 || test ! -s conftest.err'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try='test -s conftest.$ac_objext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 glibcxx_cv_func__log10l_use=yes
22432 else
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 glibcxx_cv_func__log10l_use=no
22438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22439 ac_ext=c
22440 ac_cpp='$CPP $CPPFLAGS'
22441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22449 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22450 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22452 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22454 for ac_func in _log10l
22456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22457 echo "$as_me:$LINENO: checking for $ac_func" >&5
22458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22459 if eval "test \"\${$as_ac_var+set}\" = set"; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462 if test x$gcc_no_link = xyes; then
22463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22465 { (exit 1); exit 1; }; }
22467 cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h. */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22475 #define $ac_func innocuous_$ac_func
22477 /* System header to define __stub macros and hopefully few prototypes,
22478 which can conflict with char $ac_func (); below.
22479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22480 <limits.h> exists even on freestanding compilers. */
22482 #ifdef __STDC__
22483 # include <limits.h>
22484 #else
22485 # include <assert.h>
22486 #endif
22488 #undef $ac_func
22490 /* Override any gcc2 internal prototype to avoid an error. */
22491 #ifdef __cplusplus
22492 extern "C"
22494 #endif
22495 /* We use char because int might match the return type of a gcc2
22496 builtin and then its argument prototype would still apply. */
22497 char $ac_func ();
22498 /* The GNU C library defines this for functions which it implements
22499 to always fail with ENOSYS. Some functions are actually named
22500 something starting with __ and the normal name is an alias. */
22501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22502 choke me
22503 #else
22504 char (*f) () = $ac_func;
22505 #endif
22506 #ifdef __cplusplus
22508 #endif
22511 main ()
22513 return f != $ac_func;
22515 return 0;
22517 _ACEOF
22518 rm -f conftest.$ac_objext conftest$ac_exeext
22519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22520 (eval $ac_link) 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
22527 { ac_try='test -z "$ac_c_werror_flag"
22528 || test ! -s conftest.err'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; } &&
22534 { ac_try='test -s conftest$ac_exeext'
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 eval "$as_ac_var=yes"
22541 else
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 eval "$as_ac_var=no"
22547 rm -f conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22552 if test `eval echo '${'$as_ac_var'}'` = yes; then
22553 cat >>confdefs.h <<_ACEOF
22554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22555 _ACEOF
22558 done
22565 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22566 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22567 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22568 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22574 ac_ext=cc
22575 ac_cpp='$CXXCPP $CPPFLAGS'
22576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 #include <math.h>
22588 main ()
22590 modfl(0, 0);
22592 return 0;
22594 _ACEOF
22595 rm -f conftest.$ac_objext
22596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22597 (eval $ac_compile) 2>conftest.er1
22598 ac_status=$?
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
22604 { ac_try='test -z "$ac_cxx_werror_flag"
22605 || test ! -s conftest.err'
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); }; } &&
22611 { ac_try='test -s conftest.$ac_objext'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 glibcxx_cv_func_modfl_use=yes
22618 else
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 glibcxx_cv_func_modfl_use=no
22624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22625 ac_ext=c
22626 ac_cpp='$CPP $CPPFLAGS'
22627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22636 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22638 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22640 for ac_func in modfl
22642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22643 echo "$as_me:$LINENO: checking for $ac_func" >&5
22644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22645 if eval "test \"\${$as_ac_var+set}\" = set"; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648 if test x$gcc_no_link = xyes; then
22649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22651 { (exit 1); exit 1; }; }
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h. */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22661 #define $ac_func innocuous_$ac_func
22663 /* System header to define __stub macros and hopefully few prototypes,
22664 which can conflict with char $ac_func (); below.
22665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22666 <limits.h> exists even on freestanding compilers. */
22668 #ifdef __STDC__
22669 # include <limits.h>
22670 #else
22671 # include <assert.h>
22672 #endif
22674 #undef $ac_func
22676 /* Override any gcc2 internal prototype to avoid an error. */
22677 #ifdef __cplusplus
22678 extern "C"
22680 #endif
22681 /* We use char because int might match the return type of a gcc2
22682 builtin and then its argument prototype would still apply. */
22683 char $ac_func ();
22684 /* The GNU C library defines this for functions which it implements
22685 to always fail with ENOSYS. Some functions are actually named
22686 something starting with __ and the normal name is an alias. */
22687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22688 choke me
22689 #else
22690 char (*f) () = $ac_func;
22691 #endif
22692 #ifdef __cplusplus
22694 #endif
22697 main ()
22699 return f != $ac_func;
22701 return 0;
22703 _ACEOF
22704 rm -f conftest.$ac_objext conftest$ac_exeext
22705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22706 (eval $ac_link) 2>conftest.er1
22707 ac_status=$?
22708 grep -v '^ *+' conftest.er1 >conftest.err
22709 rm -f conftest.er1
22710 cat conftest.err >&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); } &&
22713 { ac_try='test -z "$ac_c_werror_flag"
22714 || test ! -s conftest.err'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; } &&
22720 { ac_try='test -s conftest$ac_exeext'
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726 eval "$as_ac_var=yes"
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 eval "$as_ac_var=no"
22733 rm -f conftest.err conftest.$ac_objext \
22734 conftest$ac_exeext conftest.$ac_ext
22736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22738 if test `eval echo '${'$as_ac_var'}'` = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22741 _ACEOF
22744 done
22746 else
22748 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22749 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22750 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22751 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22753 else
22757 ac_ext=cc
22758 ac_cpp='$CXXCPP $CPPFLAGS'
22759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22763 cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h. */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 #include <math.h>
22771 main ()
22773 _modfl(0, 0);
22775 return 0;
22777 _ACEOF
22778 rm -f conftest.$ac_objext
22779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22780 (eval $ac_compile) 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } &&
22787 { ac_try='test -z "$ac_cxx_werror_flag"
22788 || test ! -s conftest.err'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; } &&
22794 { ac_try='test -s conftest.$ac_objext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 glibcxx_cv_func__modfl_use=yes
22801 else
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 glibcxx_cv_func__modfl_use=no
22807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808 ac_ext=c
22809 ac_cpp='$CPP $CPPFLAGS'
22810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22818 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22819 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22821 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22823 for ac_func in _modfl
22825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22826 echo "$as_me:$LINENO: checking for $ac_func" >&5
22827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22828 if eval "test \"\${$as_ac_var+set}\" = set"; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831 if test x$gcc_no_link = xyes; then
22832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22834 { (exit 1); exit 1; }; }
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h. */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22844 #define $ac_func innocuous_$ac_func
22846 /* System header to define __stub macros and hopefully few prototypes,
22847 which can conflict with char $ac_func (); below.
22848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22849 <limits.h> exists even on freestanding compilers. */
22851 #ifdef __STDC__
22852 # include <limits.h>
22853 #else
22854 # include <assert.h>
22855 #endif
22857 #undef $ac_func
22859 /* Override any gcc2 internal prototype to avoid an error. */
22860 #ifdef __cplusplus
22861 extern "C"
22863 #endif
22864 /* We use char because int might match the return type of a gcc2
22865 builtin and then its argument prototype would still apply. */
22866 char $ac_func ();
22867 /* The GNU C library defines this for functions which it implements
22868 to always fail with ENOSYS. Some functions are actually named
22869 something starting with __ and the normal name is an alias. */
22870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22871 choke me
22872 #else
22873 char (*f) () = $ac_func;
22874 #endif
22875 #ifdef __cplusplus
22877 #endif
22880 main ()
22882 return f != $ac_func;
22884 return 0;
22886 _ACEOF
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889 (eval $ac_link) 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag"
22897 || test ! -s conftest.err'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest$ac_exeext'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 eval "$as_ac_var=yes"
22910 else
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 eval "$as_ac_var=no"
22916 rm -f conftest.err conftest.$ac_objext \
22917 conftest$ac_exeext conftest.$ac_ext
22919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22921 if test `eval echo '${'$as_ac_var'}'` = yes; then
22922 cat >>confdefs.h <<_ACEOF
22923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22924 _ACEOF
22927 done
22934 echo "$as_me:$LINENO: checking for powl declaration" >&5
22935 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
22936 if test x${glibcxx_cv_func_powl_use+set} != xset; then
22937 if test "${glibcxx_cv_func_powl_use+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22943 ac_ext=cc
22944 ac_cpp='$CXXCPP $CPPFLAGS'
22945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22949 cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h. */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 #include <math.h>
22957 main ()
22959 powl(0, 0);
22961 return 0;
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22966 (eval $ac_compile) 2>conftest.er1
22967 ac_status=$?
22968 grep -v '^ *+' conftest.er1 >conftest.err
22969 rm -f conftest.er1
22970 cat conftest.err >&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } &&
22973 { ac_try='test -z "$ac_cxx_werror_flag"
22974 || test ! -s conftest.err'
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); }; } &&
22980 { ac_try='test -s conftest.$ac_objext'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
22986 glibcxx_cv_func_powl_use=yes
22987 else
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 glibcxx_cv_func_powl_use=no
22993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22994 ac_ext=c
22995 ac_cpp='$CPP $CPPFLAGS'
22996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23004 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23005 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23007 if test x$glibcxx_cv_func_powl_use = x"yes"; then
23009 for ac_func in powl
23011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23012 echo "$as_me:$LINENO: checking for $ac_func" >&5
23013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23014 if eval "test \"\${$as_ac_var+set}\" = set"; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 if test x$gcc_no_link = xyes; then
23018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23020 { (exit 1); exit 1; }; }
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23030 #define $ac_func innocuous_$ac_func
23032 /* System header to define __stub macros and hopefully few prototypes,
23033 which can conflict with char $ac_func (); below.
23034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035 <limits.h> exists even on freestanding compilers. */
23037 #ifdef __STDC__
23038 # include <limits.h>
23039 #else
23040 # include <assert.h>
23041 #endif
23043 #undef $ac_func
23045 /* Override any gcc2 internal prototype to avoid an error. */
23046 #ifdef __cplusplus
23047 extern "C"
23049 #endif
23050 /* We use char because int might match the return type of a gcc2
23051 builtin and then its argument prototype would still apply. */
23052 char $ac_func ();
23053 /* The GNU C library defines this for functions which it implements
23054 to always fail with ENOSYS. Some functions are actually named
23055 something starting with __ and the normal name is an alias. */
23056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23057 choke me
23058 #else
23059 char (*f) () = $ac_func;
23060 #endif
23061 #ifdef __cplusplus
23063 #endif
23066 main ()
23068 return f != $ac_func;
23070 return 0;
23072 _ACEOF
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23075 (eval $ac_link) 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
23082 { ac_try='test -z "$ac_c_werror_flag"
23083 || test ! -s conftest.err'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest$ac_exeext'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 eval "$as_ac_var=yes"
23096 else
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 eval "$as_ac_var=no"
23102 rm -f conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23107 if test `eval echo '${'$as_ac_var'}'` = yes; then
23108 cat >>confdefs.h <<_ACEOF
23109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23110 _ACEOF
23113 done
23115 else
23117 echo "$as_me:$LINENO: checking for _powl declaration" >&5
23118 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23119 if test x${glibcxx_cv_func__powl_use+set} != xset; then
23120 if test "${glibcxx_cv_func__powl_use+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23126 ac_ext=cc
23127 ac_cpp='$CXXCPP $CPPFLAGS'
23128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23132 cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h. */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 #include <math.h>
23140 main ()
23142 _powl(0, 0);
23144 return 0;
23146 _ACEOF
23147 rm -f conftest.$ac_objext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23149 (eval $ac_compile) 2>conftest.er1
23150 ac_status=$?
23151 grep -v '^ *+' conftest.er1 >conftest.err
23152 rm -f conftest.er1
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_cxx_werror_flag"
23157 || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest.$ac_objext'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 glibcxx_cv_func__powl_use=yes
23170 else
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23174 glibcxx_cv_func__powl_use=no
23176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23177 ac_ext=c
23178 ac_cpp='$CPP $CPPFLAGS'
23179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23187 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23188 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23190 if test x$glibcxx_cv_func__powl_use = x"yes"; then
23192 for ac_func in _powl
23194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23195 echo "$as_me:$LINENO: checking for $ac_func" >&5
23196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23197 if eval "test \"\${$as_ac_var+set}\" = set"; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23200 if test x$gcc_no_link = xyes; then
23201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23203 { (exit 1); exit 1; }; }
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23213 #define $ac_func innocuous_$ac_func
23215 /* System header to define __stub macros and hopefully few prototypes,
23216 which can conflict with char $ac_func (); below.
23217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23218 <limits.h> exists even on freestanding compilers. */
23220 #ifdef __STDC__
23221 # include <limits.h>
23222 #else
23223 # include <assert.h>
23224 #endif
23226 #undef $ac_func
23228 /* Override any gcc2 internal prototype to avoid an error. */
23229 #ifdef __cplusplus
23230 extern "C"
23232 #endif
23233 /* We use char because int might match the return type of a gcc2
23234 builtin and then its argument prototype would still apply. */
23235 char $ac_func ();
23236 /* The GNU C library defines this for functions which it implements
23237 to always fail with ENOSYS. Some functions are actually named
23238 something starting with __ and the normal name is an alias. */
23239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23240 choke me
23241 #else
23242 char (*f) () = $ac_func;
23243 #endif
23244 #ifdef __cplusplus
23246 #endif
23249 main ()
23251 return f != $ac_func;
23253 return 0;
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 eval "$as_ac_var=yes"
23279 else
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 eval "$as_ac_var=no"
23285 rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23290 if test `eval echo '${'$as_ac_var'}'` = yes; then
23291 cat >>confdefs.h <<_ACEOF
23292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23293 _ACEOF
23296 done
23303 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23304 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23305 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23306 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23312 ac_ext=cc
23313 ac_cpp='$CXXCPP $CPPFLAGS'
23314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h. */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 #include <math.h>
23325 #ifdef HAVE_IEEEFP_H
23326 #include <ieeefp.h>
23327 #endif
23330 main ()
23332 sqrtl(0);
23334 return 0;
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23339 (eval $ac_compile) 2>conftest.er1
23340 ac_status=$?
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } &&
23346 { ac_try='test -z "$ac_cxx_werror_flag"
23347 || test ! -s conftest.err'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } &&
23353 { ac_try='test -s conftest.$ac_objext'
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; }; then
23359 glibcxx_cv_func_sqrtl_use=yes
23360 else
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 glibcxx_cv_func_sqrtl_use=no
23366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23367 ac_ext=c
23368 ac_cpp='$CPP $CPPFLAGS'
23369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23377 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23378 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23380 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23382 for ac_func in sqrtl
23384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23385 echo "$as_me:$LINENO: checking for $ac_func" >&5
23386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23387 if eval "test \"\${$as_ac_var+set}\" = set"; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390 if test x$gcc_no_link = xyes; then
23391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23393 { (exit 1); exit 1; }; }
23395 cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h. */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23403 #define $ac_func innocuous_$ac_func
23405 /* System header to define __stub macros and hopefully few prototypes,
23406 which can conflict with char $ac_func (); below.
23407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23408 <limits.h> exists even on freestanding compilers. */
23410 #ifdef __STDC__
23411 # include <limits.h>
23412 #else
23413 # include <assert.h>
23414 #endif
23416 #undef $ac_func
23418 /* Override any gcc2 internal prototype to avoid an error. */
23419 #ifdef __cplusplus
23420 extern "C"
23422 #endif
23423 /* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23425 char $ac_func ();
23426 /* The GNU C library defines this for functions which it implements
23427 to always fail with ENOSYS. Some functions are actually named
23428 something starting with __ and the normal name is an alias. */
23429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23430 choke me
23431 #else
23432 char (*f) () = $ac_func;
23433 #endif
23434 #ifdef __cplusplus
23436 #endif
23439 main ()
23441 return f != $ac_func;
23443 return 0;
23445 _ACEOF
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448 (eval $ac_link) 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
23455 { ac_try='test -z "$ac_c_werror_flag"
23456 || test ! -s conftest.err'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 eval "$as_ac_var=yes"
23469 else
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 eval "$as_ac_var=no"
23475 rm -f conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23480 if test `eval echo '${'$as_ac_var'}'` = yes; then
23481 cat >>confdefs.h <<_ACEOF
23482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23483 _ACEOF
23486 done
23488 else
23490 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23491 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23492 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23493 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23499 ac_ext=cc
23500 ac_cpp='$CXXCPP $CPPFLAGS'
23501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include <math.h>
23512 #ifdef HAVE_IEEEFP_H
23513 #include <ieeefp.h>
23514 #endif
23517 main ()
23519 _sqrtl(0);
23521 return 0;
23523 _ACEOF
23524 rm -f conftest.$ac_objext
23525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23526 (eval $ac_compile) 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } &&
23533 { ac_try='test -z "$ac_cxx_werror_flag"
23534 || test ! -s conftest.err'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; } &&
23540 { ac_try='test -s conftest.$ac_objext'
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; }; then
23546 glibcxx_cv_func__sqrtl_use=yes
23547 else
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23551 glibcxx_cv_func__sqrtl_use=no
23553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23554 ac_ext=c
23555 ac_cpp='$CPP $CPPFLAGS'
23556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23564 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23565 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23567 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23569 for ac_func in _sqrtl
23571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23572 echo "$as_me:$LINENO: checking for $ac_func" >&5
23573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23574 if eval "test \"\${$as_ac_var+set}\" = set"; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577 if test x$gcc_no_link = xyes; then
23578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23580 { (exit 1); exit 1; }; }
23582 cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h. */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23590 #define $ac_func innocuous_$ac_func
23592 /* System header to define __stub macros and hopefully few prototypes,
23593 which can conflict with char $ac_func (); below.
23594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23595 <limits.h> exists even on freestanding compilers. */
23597 #ifdef __STDC__
23598 # include <limits.h>
23599 #else
23600 # include <assert.h>
23601 #endif
23603 #undef $ac_func
23605 /* Override any gcc2 internal prototype to avoid an error. */
23606 #ifdef __cplusplus
23607 extern "C"
23609 #endif
23610 /* We use char because int might match the return type of a gcc2
23611 builtin and then its argument prototype would still apply. */
23612 char $ac_func ();
23613 /* The GNU C library defines this for functions which it implements
23614 to always fail with ENOSYS. Some functions are actually named
23615 something starting with __ and the normal name is an alias. */
23616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23617 choke me
23618 #else
23619 char (*f) () = $ac_func;
23620 #endif
23621 #ifdef __cplusplus
23623 #endif
23626 main ()
23628 return f != $ac_func;
23630 return 0;
23632 _ACEOF
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635 (eval $ac_link) 2>conftest.er1
23636 ac_status=$?
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } &&
23642 { ac_try='test -z "$ac_c_werror_flag"
23643 || test ! -s conftest.err'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; } &&
23649 { ac_try='test -s conftest$ac_exeext'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23652 ac_status=$?
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; }; then
23655 eval "$as_ac_var=yes"
23656 else
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 eval "$as_ac_var=no"
23662 rm -f conftest.err conftest.$ac_objext \
23663 conftest$ac_exeext conftest.$ac_ext
23665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23667 if test `eval echo '${'$as_ac_var'}'` = yes; then
23668 cat >>confdefs.h <<_ACEOF
23669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23670 _ACEOF
23673 done
23680 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23681 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23682 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23683 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23689 ac_ext=cc
23690 ac_cpp='$CXXCPP $CPPFLAGS'
23691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 #include <math.h>
23703 main ()
23705 sincosl(0, 0, 0);
23707 return 0;
23709 _ACEOF
23710 rm -f conftest.$ac_objext
23711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23712 (eval $ac_compile) 2>conftest.er1
23713 ac_status=$?
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
23719 { ac_try='test -z "$ac_cxx_werror_flag"
23720 || test ! -s conftest.err'
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); }; } &&
23726 { ac_try='test -s conftest.$ac_objext'
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 glibcxx_cv_func_sincosl_use=yes
23733 else
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 glibcxx_cv_func_sincosl_use=no
23739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23740 ac_ext=c
23741 ac_cpp='$CPP $CPPFLAGS'
23742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23750 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23751 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23753 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23755 for ac_func in sincosl
23757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23758 echo "$as_me:$LINENO: checking for $ac_func" >&5
23759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23760 if eval "test \"\${$as_ac_var+set}\" = set"; then
23761 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 else
23763 if test x$gcc_no_link = xyes; then
23764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23765 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23766 { (exit 1); exit 1; }; }
23768 cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h. */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23776 #define $ac_func innocuous_$ac_func
23778 /* System header to define __stub macros and hopefully few prototypes,
23779 which can conflict with char $ac_func (); below.
23780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23781 <limits.h> exists even on freestanding compilers. */
23783 #ifdef __STDC__
23784 # include <limits.h>
23785 #else
23786 # include <assert.h>
23787 #endif
23789 #undef $ac_func
23791 /* Override any gcc2 internal prototype to avoid an error. */
23792 #ifdef __cplusplus
23793 extern "C"
23795 #endif
23796 /* We use char because int might match the return type of a gcc2
23797 builtin and then its argument prototype would still apply. */
23798 char $ac_func ();
23799 /* The GNU C library defines this for functions which it implements
23800 to always fail with ENOSYS. Some functions are actually named
23801 something starting with __ and the normal name is an alias. */
23802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23803 choke me
23804 #else
23805 char (*f) () = $ac_func;
23806 #endif
23807 #ifdef __cplusplus
23809 #endif
23812 main ()
23814 return f != $ac_func;
23816 return 0;
23818 _ACEOF
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23821 (eval $ac_link) 2>conftest.er1
23822 ac_status=$?
23823 grep -v '^ *+' conftest.er1 >conftest.err
23824 rm -f conftest.er1
23825 cat conftest.err >&5
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } &&
23828 { ac_try='test -z "$ac_c_werror_flag"
23829 || test ! -s conftest.err'
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; } &&
23835 { ac_try='test -s conftest$ac_exeext'
23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837 (eval $ac_try) 2>&5
23838 ac_status=$?
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; }; then
23841 eval "$as_ac_var=yes"
23842 else
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 eval "$as_ac_var=no"
23848 rm -f conftest.err conftest.$ac_objext \
23849 conftest$ac_exeext conftest.$ac_ext
23851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23853 if test `eval echo '${'$as_ac_var'}'` = yes; then
23854 cat >>confdefs.h <<_ACEOF
23855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23856 _ACEOF
23859 done
23861 else
23863 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23864 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23865 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23866 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23872 ac_ext=cc
23873 ac_cpp='$CXXCPP $CPPFLAGS'
23874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23878 cat >conftest.$ac_ext <<_ACEOF
23879 /* confdefs.h. */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #include <math.h>
23886 main ()
23888 _sincosl(0, 0, 0);
23890 return 0;
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23895 (eval $ac_compile) 2>conftest.er1
23896 ac_status=$?
23897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
23902 { ac_try='test -z "$ac_cxx_werror_flag"
23903 || test ! -s conftest.err'
23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905 (eval $ac_try) 2>&5
23906 ac_status=$?
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; } &&
23909 { ac_try='test -s conftest.$ac_objext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 glibcxx_cv_func__sincosl_use=yes
23916 else
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 glibcxx_cv_func__sincosl_use=no
23922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23923 ac_ext=c
23924 ac_cpp='$CPP $CPPFLAGS'
23925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23933 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
23934 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
23936 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
23938 for ac_func in _sincosl
23940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23941 echo "$as_me:$LINENO: checking for $ac_func" >&5
23942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23943 if eval "test \"\${$as_ac_var+set}\" = set"; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946 if test x$gcc_no_link = xyes; then
23947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23949 { (exit 1); exit 1; }; }
23951 cat >conftest.$ac_ext <<_ACEOF
23952 /* confdefs.h. */
23953 _ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h. */
23957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23959 #define $ac_func innocuous_$ac_func
23961 /* System header to define __stub macros and hopefully few prototypes,
23962 which can conflict with char $ac_func (); below.
23963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23964 <limits.h> exists even on freestanding compilers. */
23966 #ifdef __STDC__
23967 # include <limits.h>
23968 #else
23969 # include <assert.h>
23970 #endif
23972 #undef $ac_func
23974 /* Override any gcc2 internal prototype to avoid an error. */
23975 #ifdef __cplusplus
23976 extern "C"
23978 #endif
23979 /* We use char because int might match the return type of a gcc2
23980 builtin and then its argument prototype would still apply. */
23981 char $ac_func ();
23982 /* The GNU C library defines this for functions which it implements
23983 to always fail with ENOSYS. Some functions are actually named
23984 something starting with __ and the normal name is an alias. */
23985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23986 choke me
23987 #else
23988 char (*f) () = $ac_func;
23989 #endif
23990 #ifdef __cplusplus
23992 #endif
23995 main ()
23997 return f != $ac_func;
23999 return 0;
24001 _ACEOF
24002 rm -f conftest.$ac_objext conftest$ac_exeext
24003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24004 (eval $ac_link) 2>conftest.er1
24005 ac_status=$?
24006 grep -v '^ *+' conftest.er1 >conftest.err
24007 rm -f conftest.er1
24008 cat conftest.err >&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } &&
24011 { ac_try='test -z "$ac_c_werror_flag"
24012 || test ! -s conftest.err'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; } &&
24018 { ac_try='test -s conftest$ac_exeext'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 eval "$as_ac_var=yes"
24025 else
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 eval "$as_ac_var=no"
24031 rm -f conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
24034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24036 if test `eval echo '${'$as_ac_var'}'` = yes; then
24037 cat >>confdefs.h <<_ACEOF
24038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24039 _ACEOF
24042 done
24049 echo "$as_me:$LINENO: checking for finitel declaration" >&5
24050 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24051 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24052 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24058 ac_ext=cc
24059 ac_cpp='$CXXCPP $CPPFLAGS'
24060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24064 cat >conftest.$ac_ext <<_ACEOF
24065 /* confdefs.h. */
24066 _ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 #include <math.h>
24071 #ifdef HAVE_IEEEFP_H
24072 #include <ieeefp.h>
24073 #endif
24076 main ()
24078 finitel(0);
24080 return 0;
24082 _ACEOF
24083 rm -f conftest.$ac_objext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085 (eval $ac_compile) 2>conftest.er1
24086 ac_status=$?
24087 grep -v '^ *+' conftest.er1 >conftest.err
24088 rm -f conftest.er1
24089 cat conftest.err >&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } &&
24092 { ac_try='test -z "$ac_cxx_werror_flag"
24093 || test ! -s conftest.err'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; } &&
24099 { ac_try='test -s conftest.$ac_objext'
24100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101 (eval $ac_try) 2>&5
24102 ac_status=$?
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); }; }; then
24105 glibcxx_cv_func_finitel_use=yes
24106 else
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 glibcxx_cv_func_finitel_use=no
24112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24113 ac_ext=c
24114 ac_cpp='$CPP $CPPFLAGS'
24115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24123 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24124 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24126 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24128 for ac_func in finitel
24130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24131 echo "$as_me:$LINENO: checking for $ac_func" >&5
24132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24133 if eval "test \"\${$as_ac_var+set}\" = set"; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136 if test x$gcc_no_link = xyes; then
24137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24139 { (exit 1); exit 1; }; }
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24149 #define $ac_func innocuous_$ac_func
24151 /* System header to define __stub macros and hopefully few prototypes,
24152 which can conflict with char $ac_func (); below.
24153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24154 <limits.h> exists even on freestanding compilers. */
24156 #ifdef __STDC__
24157 # include <limits.h>
24158 #else
24159 # include <assert.h>
24160 #endif
24162 #undef $ac_func
24164 /* Override any gcc2 internal prototype to avoid an error. */
24165 #ifdef __cplusplus
24166 extern "C"
24168 #endif
24169 /* We use char because int might match the return type of a gcc2
24170 builtin and then its argument prototype would still apply. */
24171 char $ac_func ();
24172 /* The GNU C library defines this for functions which it implements
24173 to always fail with ENOSYS. Some functions are actually named
24174 something starting with __ and the normal name is an alias. */
24175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24176 choke me
24177 #else
24178 char (*f) () = $ac_func;
24179 #endif
24180 #ifdef __cplusplus
24182 #endif
24185 main ()
24187 return f != $ac_func;
24189 return 0;
24191 _ACEOF
24192 rm -f conftest.$ac_objext conftest$ac_exeext
24193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24194 (eval $ac_link) 2>conftest.er1
24195 ac_status=$?
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
24201 { ac_try='test -z "$ac_c_werror_flag"
24202 || test ! -s conftest.err'
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; } &&
24208 { ac_try='test -s conftest$ac_exeext'
24209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); }; }; then
24214 eval "$as_ac_var=yes"
24215 else
24216 echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24219 eval "$as_ac_var=no"
24221 rm -f conftest.err conftest.$ac_objext \
24222 conftest$ac_exeext conftest.$ac_ext
24224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24226 if test `eval echo '${'$as_ac_var'}'` = yes; then
24227 cat >>confdefs.h <<_ACEOF
24228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24229 _ACEOF
24232 done
24234 else
24236 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24237 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24238 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24239 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24240 echo $ECHO_N "(cached) $ECHO_C" >&6
24241 else
24245 ac_ext=cc
24246 ac_cpp='$CXXCPP $CPPFLAGS'
24247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24251 cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h. */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24257 #include <math.h>
24258 #ifdef HAVE_IEEEFP_H
24259 #include <ieeefp.h>
24260 #endif
24263 main ()
24265 _finitel(0);
24267 return 0;
24269 _ACEOF
24270 rm -f conftest.$ac_objext
24271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24272 (eval $ac_compile) 2>conftest.er1
24273 ac_status=$?
24274 grep -v '^ *+' conftest.er1 >conftest.err
24275 rm -f conftest.er1
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } &&
24279 { ac_try='test -z "$ac_cxx_werror_flag"
24280 || test ! -s conftest.err'
24281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282 (eval $ac_try) 2>&5
24283 ac_status=$?
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; } &&
24286 { ac_try='test -s conftest.$ac_objext'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; }; then
24292 glibcxx_cv_func__finitel_use=yes
24293 else
24294 echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24297 glibcxx_cv_func__finitel_use=no
24299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24300 ac_ext=c
24301 ac_cpp='$CPP $CPPFLAGS'
24302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24310 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24311 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24313 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24315 for ac_func in _finitel
24317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24318 echo "$as_me:$LINENO: checking for $ac_func" >&5
24319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24320 if eval "test \"\${$as_ac_var+set}\" = set"; then
24321 echo $ECHO_N "(cached) $ECHO_C" >&6
24322 else
24323 if test x$gcc_no_link = xyes; then
24324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24326 { (exit 1); exit 1; }; }
24328 cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h. */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24336 #define $ac_func innocuous_$ac_func
24338 /* System header to define __stub macros and hopefully few prototypes,
24339 which can conflict with char $ac_func (); below.
24340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24341 <limits.h> exists even on freestanding compilers. */
24343 #ifdef __STDC__
24344 # include <limits.h>
24345 #else
24346 # include <assert.h>
24347 #endif
24349 #undef $ac_func
24351 /* Override any gcc2 internal prototype to avoid an error. */
24352 #ifdef __cplusplus
24353 extern "C"
24355 #endif
24356 /* We use char because int might match the return type of a gcc2
24357 builtin and then its argument prototype would still apply. */
24358 char $ac_func ();
24359 /* The GNU C library defines this for functions which it implements
24360 to always fail with ENOSYS. Some functions are actually named
24361 something starting with __ and the normal name is an alias. */
24362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24363 choke me
24364 #else
24365 char (*f) () = $ac_func;
24366 #endif
24367 #ifdef __cplusplus
24369 #endif
24372 main ()
24374 return f != $ac_func;
24376 return 0;
24378 _ACEOF
24379 rm -f conftest.$ac_objext conftest$ac_exeext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24381 (eval $ac_link) 2>conftest.er1
24382 ac_status=$?
24383 grep -v '^ *+' conftest.er1 >conftest.err
24384 rm -f conftest.er1
24385 cat conftest.err >&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); } &&
24388 { ac_try='test -z "$ac_c_werror_flag"
24389 || test ! -s conftest.err'
24390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); }; } &&
24395 { ac_try='test -s conftest$ac_exeext'
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24398 ac_status=$?
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; }; then
24401 eval "$as_ac_var=yes"
24402 else
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 eval "$as_ac_var=no"
24408 rm -f conftest.err conftest.$ac_objext \
24409 conftest$ac_exeext conftest.$ac_ext
24411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24413 if test `eval echo '${'$as_ac_var'}'` = yes; then
24414 cat >>confdefs.h <<_ACEOF
24415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24416 _ACEOF
24419 done
24427 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24428 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24429 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24435 ac_ext=cc
24436 ac_cpp='$CXXCPP $CPPFLAGS'
24437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 #include <math.h>
24449 main ()
24451 `for x in _acosf _asinf _atanf \
24452 _cosf _sinf _tanf \
24453 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24455 return 0;
24457 _ACEOF
24458 rm -f conftest.$ac_objext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24460 (eval $ac_compile) 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
24467 { ac_try='test -z "$ac_cxx_werror_flag"
24468 || test ! -s conftest.err'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest.$ac_objext'
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; }; then
24480 glibcxx_cv_func__float_trig_use=yes
24481 else
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 glibcxx_cv_func__float_trig_use=no
24487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24488 ac_ext=c
24489 ac_cpp='$CPP $CPPFLAGS'
24490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24496 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24497 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24498 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24508 for ac_func in _acosf _asinf _atanf \
24509 _cosf _sinf _tanf \
24510 _coshf _sinhf _tanhf
24512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24513 echo "$as_me:$LINENO: checking for $ac_func" >&5
24514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24515 if eval "test \"\${$as_ac_var+set}\" = set"; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24518 if test x$gcc_no_link = xyes; then
24519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24521 { (exit 1); exit 1; }; }
24523 cat >conftest.$ac_ext <<_ACEOF
24524 /* confdefs.h. */
24525 _ACEOF
24526 cat confdefs.h >>conftest.$ac_ext
24527 cat >>conftest.$ac_ext <<_ACEOF
24528 /* end confdefs.h. */
24529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24531 #define $ac_func innocuous_$ac_func
24533 /* System header to define __stub macros and hopefully few prototypes,
24534 which can conflict with char $ac_func (); below.
24535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24536 <limits.h> exists even on freestanding compilers. */
24538 #ifdef __STDC__
24539 # include <limits.h>
24540 #else
24541 # include <assert.h>
24542 #endif
24544 #undef $ac_func
24546 /* Override any gcc2 internal prototype to avoid an error. */
24547 #ifdef __cplusplus
24548 extern "C"
24550 #endif
24551 /* We use char because int might match the return type of a gcc2
24552 builtin and then its argument prototype would still apply. */
24553 char $ac_func ();
24554 /* The GNU C library defines this for functions which it implements
24555 to always fail with ENOSYS. Some functions are actually named
24556 something starting with __ and the normal name is an alias. */
24557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24558 choke me
24559 #else
24560 char (*f) () = $ac_func;
24561 #endif
24562 #ifdef __cplusplus
24564 #endif
24567 main ()
24569 return f != $ac_func;
24571 return 0;
24573 _ACEOF
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576 (eval $ac_link) 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag"
24584 || test ! -s conftest.err'
24585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; } &&
24590 { ac_try='test -s conftest$ac_exeext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 eval "$as_ac_var=yes"
24597 else
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 eval "$as_ac_var=no"
24603 rm -f conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
24606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24608 if test `eval echo '${'$as_ac_var'}'` = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24611 _ACEOF
24614 done
24619 echo "$as_me:$LINENO: checking for _float round functions" >&5
24620 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24621 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24623 else
24627 ac_ext=cc
24628 ac_cpp='$CXXCPP $CPPFLAGS'
24629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24633 cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h. */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639 #include <math.h>
24641 main ()
24643 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24645 return 0;
24647 _ACEOF
24648 rm -f conftest.$ac_objext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24650 (eval $ac_compile) 2>conftest.er1
24651 ac_status=$?
24652 grep -v '^ *+' conftest.er1 >conftest.err
24653 rm -f conftest.er1
24654 cat conftest.err >&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } &&
24657 { ac_try='test -z "$ac_cxx_werror_flag"
24658 || test ! -s conftest.err'
24659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; } &&
24664 { ac_try='test -s conftest.$ac_objext'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 glibcxx_cv_func__float_round_use=yes
24671 else
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 glibcxx_cv_func__float_round_use=no
24677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24678 ac_ext=c
24679 ac_cpp='$CPP $CPPFLAGS'
24680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24686 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24687 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24688 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24691 for ac_func in _ceilf _floorf
24693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24694 echo "$as_me:$LINENO: checking for $ac_func" >&5
24695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24696 if eval "test \"\${$as_ac_var+set}\" = set"; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24698 else
24699 if test x$gcc_no_link = xyes; then
24700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24702 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24712 #define $ac_func innocuous_$ac_func
24714 /* System header to define __stub macros and hopefully few prototypes,
24715 which can conflict with char $ac_func (); below.
24716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24717 <limits.h> exists even on freestanding compilers. */
24719 #ifdef __STDC__
24720 # include <limits.h>
24721 #else
24722 # include <assert.h>
24723 #endif
24725 #undef $ac_func
24727 /* Override any gcc2 internal prototype to avoid an error. */
24728 #ifdef __cplusplus
24729 extern "C"
24731 #endif
24732 /* We use char because int might match the return type of a gcc2
24733 builtin and then its argument prototype would still apply. */
24734 char $ac_func ();
24735 /* The GNU C library defines this for functions which it implements
24736 to always fail with ENOSYS. Some functions are actually named
24737 something starting with __ and the normal name is an alias. */
24738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24739 choke me
24740 #else
24741 char (*f) () = $ac_func;
24742 #endif
24743 #ifdef __cplusplus
24745 #endif
24748 main ()
24750 return f != $ac_func;
24752 return 0;
24754 _ACEOF
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757 (eval $ac_link) 2>conftest.er1
24758 ac_status=$?
24759 grep -v '^ *+' conftest.er1 >conftest.err
24760 rm -f conftest.er1
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } &&
24764 { ac_try='test -z "$ac_c_werror_flag"
24765 || test ! -s conftest.err'
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; } &&
24771 { ac_try='test -s conftest$ac_exeext'
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 eval "$as_ac_var=yes"
24778 else
24779 echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24782 eval "$as_ac_var=no"
24784 rm -f conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
24787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24789 if test `eval echo '${'$as_ac_var'}'` = yes; then
24790 cat >>confdefs.h <<_ACEOF
24791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24792 _ACEOF
24795 done
24801 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24802 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24803 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 else
24809 ac_ext=cc
24810 ac_cpp='$CXXCPP $CPPFLAGS'
24811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24815 cat >conftest.$ac_ext <<_ACEOF
24816 /* confdefs.h. */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24821 #include <math.h>
24823 main ()
24825 `for x in _acosl _asinl _atanl \
24826 _cosl _sinl _tanl \
24827 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24829 return 0;
24831 _ACEOF
24832 rm -f conftest.$ac_objext
24833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24834 (eval $ac_compile) 2>conftest.er1
24835 ac_status=$?
24836 grep -v '^ *+' conftest.er1 >conftest.err
24837 rm -f conftest.er1
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } &&
24841 { ac_try='test -z "$ac_cxx_werror_flag"
24842 || test ! -s conftest.err'
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); }; } &&
24848 { ac_try='test -s conftest.$ac_objext'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; }; then
24854 glibcxx_cv_func__long_double_trig_use=yes
24855 else
24856 echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24859 glibcxx_cv_func__long_double_trig_use=no
24861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24862 ac_ext=c
24863 ac_cpp='$CPP $CPPFLAGS'
24864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24870 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24871 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24872 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24882 for ac_func in _acosl _asinl _atanl \
24883 _cosl _sinl _tanl \
24884 _coshl _sinhl _tanhl
24886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24887 echo "$as_me:$LINENO: checking for $ac_func" >&5
24888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24889 if eval "test \"\${$as_ac_var+set}\" = set"; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24891 else
24892 if test x$gcc_no_link = xyes; then
24893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24895 { (exit 1); exit 1; }; }
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h. */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24905 #define $ac_func innocuous_$ac_func
24907 /* System header to define __stub macros and hopefully few prototypes,
24908 which can conflict with char $ac_func (); below.
24909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24910 <limits.h> exists even on freestanding compilers. */
24912 #ifdef __STDC__
24913 # include <limits.h>
24914 #else
24915 # include <assert.h>
24916 #endif
24918 #undef $ac_func
24920 /* Override any gcc2 internal prototype to avoid an error. */
24921 #ifdef __cplusplus
24922 extern "C"
24924 #endif
24925 /* We use char because int might match the return type of a gcc2
24926 builtin and then its argument prototype would still apply. */
24927 char $ac_func ();
24928 /* The GNU C library defines this for functions which it implements
24929 to always fail with ENOSYS. Some functions are actually named
24930 something starting with __ and the normal name is an alias. */
24931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24932 choke me
24933 #else
24934 char (*f) () = $ac_func;
24935 #endif
24936 #ifdef __cplusplus
24938 #endif
24941 main ()
24943 return f != $ac_func;
24945 return 0;
24947 _ACEOF
24948 rm -f conftest.$ac_objext conftest$ac_exeext
24949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24950 (eval $ac_link) 2>conftest.er1
24951 ac_status=$?
24952 grep -v '^ *+' conftest.er1 >conftest.err
24953 rm -f conftest.er1
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try='test -z "$ac_c_werror_flag"
24958 || test ! -s conftest.err'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; } &&
24964 { ac_try='test -s conftest$ac_exeext'
24965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966 (eval $ac_try) 2>&5
24967 ac_status=$?
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; }; then
24970 eval "$as_ac_var=yes"
24971 else
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24975 eval "$as_ac_var=no"
24977 rm -f conftest.err conftest.$ac_objext \
24978 conftest$ac_exeext conftest.$ac_ext
24980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24982 if test `eval echo '${'$as_ac_var'}'` = yes; then
24983 cat >>confdefs.h <<_ACEOF
24984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24985 _ACEOF
24988 done
24993 echo "$as_me:$LINENO: checking for _long double round functions" >&5
24994 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
24995 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
25001 ac_ext=cc
25002 ac_cpp='$CXXCPP $CPPFLAGS'
25003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25007 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h. */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 #include <math.h>
25015 main ()
25017 `for x in _ceill _floorl; do echo "$x (0);"; done`
25019 return 0;
25021 _ACEOF
25022 rm -f conftest.$ac_objext
25023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25024 (eval $ac_compile) 2>conftest.er1
25025 ac_status=$?
25026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
25031 { ac_try='test -z "$ac_cxx_werror_flag"
25032 || test ! -s conftest.err'
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest.$ac_objext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 glibcxx_cv_func__long_double_round_use=yes
25045 else
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 glibcxx_cv_func__long_double_round_use=no
25051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25052 ac_ext=c
25053 ac_cpp='$CPP $CPPFLAGS'
25054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25060 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25061 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25062 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25065 for ac_func in _ceill _floorl
25067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25068 echo "$as_me:$LINENO: checking for $ac_func" >&5
25069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25070 if eval "test \"\${$as_ac_var+set}\" = set"; then
25071 echo $ECHO_N "(cached) $ECHO_C" >&6
25072 else
25073 if test x$gcc_no_link = xyes; then
25074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25076 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25086 #define $ac_func innocuous_$ac_func
25088 /* System header to define __stub macros and hopefully few prototypes,
25089 which can conflict with char $ac_func (); below.
25090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25091 <limits.h> exists even on freestanding compilers. */
25093 #ifdef __STDC__
25094 # include <limits.h>
25095 #else
25096 # include <assert.h>
25097 #endif
25099 #undef $ac_func
25101 /* Override any gcc2 internal prototype to avoid an error. */
25102 #ifdef __cplusplus
25103 extern "C"
25105 #endif
25106 /* We use char because int might match the return type of a gcc2
25107 builtin and then its argument prototype would still apply. */
25108 char $ac_func ();
25109 /* The GNU C library defines this for functions which it implements
25110 to always fail with ENOSYS. Some functions are actually named
25111 something starting with __ and the normal name is an alias. */
25112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25113 choke me
25114 #else
25115 char (*f) () = $ac_func;
25116 #endif
25117 #ifdef __cplusplus
25119 #endif
25122 main ()
25124 return f != $ac_func;
25126 return 0;
25128 _ACEOF
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131 (eval $ac_link) 2>conftest.er1
25132 ac_status=$?
25133 grep -v '^ *+' conftest.er1 >conftest.err
25134 rm -f conftest.er1
25135 cat conftest.err >&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } &&
25138 { ac_try='test -z "$ac_c_werror_flag"
25139 || test ! -s conftest.err'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } &&
25145 { ac_try='test -s conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 eval "$as_ac_var=yes"
25152 else
25153 echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25156 eval "$as_ac_var=no"
25158 rm -f conftest.err conftest.$ac_objext \
25159 conftest$ac_exeext conftest.$ac_ext
25161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25163 if test `eval echo '${'$as_ac_var'}'` = yes; then
25164 cat >>confdefs.h <<_ACEOF
25165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25166 _ACEOF
25169 done
25174 LIBS="$ac_save_LIBS"
25175 CXXFLAGS="$ac_save_CXXFLAGS"
25179 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25180 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25181 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25182 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25183 echo $ECHO_N "(cached) $ECHO_C" >&6
25184 else
25188 ac_ext=cc
25189 ac_cpp='$CXXCPP $CPPFLAGS'
25190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25194 cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h. */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 #include <math.h>
25202 main ()
25204 __builtin_abs(0);
25206 return 0;
25208 _ACEOF
25209 rm -f conftest.$ac_objext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25211 (eval $ac_compile) 2>conftest.er1
25212 ac_status=$?
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } &&
25218 { ac_try='test -z "$ac_cxx_werror_flag"
25219 || test ! -s conftest.err'
25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; } &&
25225 { ac_try='test -s conftest.$ac_objext'
25226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227 (eval $ac_try) 2>&5
25228 ac_status=$?
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; }; then
25231 glibcxx_cv_func___builtin_abs_use=yes
25232 else
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 glibcxx_cv_func___builtin_abs_use=no
25238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25239 ac_ext=c
25240 ac_cpp='$CPP $CPPFLAGS'
25241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25249 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25250 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25251 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25252 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25253 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25254 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25255 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25257 else
25259 if test x$gcc_no_link = xyes; then
25260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25262 { (exit 1); exit 1; }; }
25264 cat >conftest.$ac_ext <<_ACEOF
25265 /* confdefs.h. */
25266 _ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 #include <math.h>
25272 main ()
25274 __builtin_abs(0);
25276 return 0;
25278 _ACEOF
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281 (eval $ac_link) 2>conftest.er1
25282 ac_status=$?
25283 grep -v '^ *+' conftest.er1 >conftest.err
25284 rm -f conftest.er1
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } &&
25288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest$ac_exeext'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301 glibcxx_cv_func___builtin_abs_link=yes
25302 else
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 glibcxx_cv_func___builtin_abs_link=no
25308 rm -f conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
25314 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25315 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25316 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25317 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25318 cat >>confdefs.h <<_ACEOF
25319 #define ${ac_tr_func} 1
25320 _ACEOF
25326 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25327 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25328 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25329 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25331 else
25335 ac_ext=cc
25336 ac_cpp='$CXXCPP $CPPFLAGS'
25337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h. */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include <math.h>
25349 main ()
25351 __builtin_fabsf(0);
25353 return 0;
25355 _ACEOF
25356 rm -f conftest.$ac_objext
25357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25358 (eval $ac_compile) 2>conftest.er1
25359 ac_status=$?
25360 grep -v '^ *+' conftest.er1 >conftest.err
25361 rm -f conftest.er1
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } &&
25365 { ac_try='test -z "$ac_cxx_werror_flag"
25366 || test ! -s conftest.err'
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); }; } &&
25372 { ac_try='test -s conftest.$ac_objext'
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; }; then
25378 glibcxx_cv_func___builtin_fabsf_use=yes
25379 else
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 glibcxx_cv_func___builtin_fabsf_use=no
25385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25386 ac_ext=c
25387 ac_cpp='$CPP $CPPFLAGS'
25388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25396 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25397 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25398 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25399 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25400 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25401 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25402 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25406 if test x$gcc_no_link = xyes; then
25407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25409 { (exit 1); exit 1; }; }
25411 cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h. */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h. */
25417 #include <math.h>
25419 main ()
25421 __builtin_fabsf(0);
25423 return 0;
25425 _ACEOF
25426 rm -f conftest.$ac_objext conftest$ac_exeext
25427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25428 (eval $ac_link) 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } &&
25435 { ac_try='test -z "$ac_c_werror_flag"
25436 || test ! -s conftest.err'
25437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; } &&
25442 { ac_try='test -s conftest$ac_exeext'
25443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25444 (eval $ac_try) 2>&5
25445 ac_status=$?
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); }; }; then
25448 glibcxx_cv_func___builtin_fabsf_link=yes
25449 else
25450 echo "$as_me: failed program was:" >&5
25451 sed 's/^/| /' conftest.$ac_ext >&5
25453 glibcxx_cv_func___builtin_fabsf_link=no
25455 rm -f conftest.err conftest.$ac_objext \
25456 conftest$ac_exeext conftest.$ac_ext
25461 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25462 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25463 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25464 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25465 cat >>confdefs.h <<_ACEOF
25466 #define ${ac_tr_func} 1
25467 _ACEOF
25473 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25474 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25475 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25476 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25478 else
25482 ac_ext=cc
25483 ac_cpp='$CXXCPP $CPPFLAGS'
25484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25488 cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h. */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 #include <math.h>
25496 main ()
25498 __builtin_fabs(0);
25500 return 0;
25502 _ACEOF
25503 rm -f conftest.$ac_objext
25504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25505 (eval $ac_compile) 2>conftest.er1
25506 ac_status=$?
25507 grep -v '^ *+' conftest.er1 >conftest.err
25508 rm -f conftest.er1
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
25512 { ac_try='test -z "$ac_cxx_werror_flag"
25513 || test ! -s conftest.err'
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); }; } &&
25519 { ac_try='test -s conftest.$ac_objext'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25525 glibcxx_cv_func___builtin_fabs_use=yes
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 glibcxx_cv_func___builtin_fabs_use=no
25532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25533 ac_ext=c
25534 ac_cpp='$CPP $CPPFLAGS'
25535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25543 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25544 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25545 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25546 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25547 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25548 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25549 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25553 if test x$gcc_no_link = xyes; then
25554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25556 { (exit 1); exit 1; }; }
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h. */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 #include <math.h>
25566 main ()
25568 __builtin_fabs(0);
25570 return 0;
25572 _ACEOF
25573 rm -f conftest.$ac_objext conftest$ac_exeext
25574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25575 (eval $ac_link) 2>conftest.er1
25576 ac_status=$?
25577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } &&
25582 { ac_try='test -z "$ac_c_werror_flag"
25583 || test ! -s conftest.err'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest$ac_exeext'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 glibcxx_cv_func___builtin_fabs_link=yes
25596 else
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 glibcxx_cv_func___builtin_fabs_link=no
25602 rm -f conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25609 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25610 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25611 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25612 cat >>confdefs.h <<_ACEOF
25613 #define ${ac_tr_func} 1
25614 _ACEOF
25620 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25621 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25622 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25623 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25629 ac_ext=cc
25630 ac_cpp='$CXXCPP $CPPFLAGS'
25631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25635 cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h. */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25641 #include <math.h>
25643 main ()
25645 __builtin_fabsl(0);
25647 return 0;
25649 _ACEOF
25650 rm -f conftest.$ac_objext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25652 (eval $ac_compile) 2>conftest.er1
25653 ac_status=$?
25654 grep -v '^ *+' conftest.er1 >conftest.err
25655 rm -f conftest.er1
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_cxx_werror_flag"
25660 || test ! -s conftest.err'
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); }; } &&
25666 { ac_try='test -s conftest.$ac_objext'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 glibcxx_cv_func___builtin_fabsl_use=yes
25673 else
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25677 glibcxx_cv_func___builtin_fabsl_use=no
25679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25680 ac_ext=c
25681 ac_cpp='$CPP $CPPFLAGS'
25682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25690 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25691 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25692 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25693 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25694 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25695 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25696 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25697 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 else
25700 if test x$gcc_no_link = xyes; then
25701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25703 { (exit 1); exit 1; }; }
25705 cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h. */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25711 #include <math.h>
25713 main ()
25715 __builtin_fabsl(0);
25717 return 0;
25719 _ACEOF
25720 rm -f conftest.$ac_objext conftest$ac_exeext
25721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25722 (eval $ac_link) 2>conftest.er1
25723 ac_status=$?
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
25729 { ac_try='test -z "$ac_c_werror_flag"
25730 || test ! -s conftest.err'
25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); }; } &&
25736 { ac_try='test -s conftest$ac_exeext'
25737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); }; }; then
25742 glibcxx_cv_func___builtin_fabsl_link=yes
25743 else
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25747 glibcxx_cv_func___builtin_fabsl_link=no
25749 rm -f conftest.err conftest.$ac_objext \
25750 conftest$ac_exeext conftest.$ac_ext
25755 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25756 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25757 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25758 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25759 cat >>confdefs.h <<_ACEOF
25760 #define ${ac_tr_func} 1
25761 _ACEOF
25767 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25768 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25769 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25770 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25771 echo $ECHO_N "(cached) $ECHO_C" >&6
25772 else
25776 ac_ext=cc
25777 ac_cpp='$CXXCPP $CPPFLAGS'
25778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25782 cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h. */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25788 #include <math.h>
25790 main ()
25792 __builtin_labs(0);
25794 return 0;
25796 _ACEOF
25797 rm -f conftest.$ac_objext
25798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25799 (eval $ac_compile) 2>conftest.er1
25800 ac_status=$?
25801 grep -v '^ *+' conftest.er1 >conftest.err
25802 rm -f conftest.er1
25803 cat conftest.err >&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); } &&
25806 { ac_try='test -z "$ac_cxx_werror_flag"
25807 || test ! -s conftest.err'
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); }; } &&
25813 { ac_try='test -s conftest.$ac_objext'
25814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); }; }; then
25819 glibcxx_cv_func___builtin_labs_use=yes
25820 else
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 glibcxx_cv_func___builtin_labs_use=no
25826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25827 ac_ext=c
25828 ac_cpp='$CPP $CPPFLAGS'
25829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25837 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25838 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25839 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25840 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25841 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25842 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25843 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25844 echo $ECHO_N "(cached) $ECHO_C" >&6
25845 else
25847 if test x$gcc_no_link = xyes; then
25848 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25849 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25850 { (exit 1); exit 1; }; }
25852 cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h. */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h. */
25858 #include <math.h>
25860 main ()
25862 __builtin_labs(0);
25864 return 0;
25866 _ACEOF
25867 rm -f conftest.$ac_objext conftest$ac_exeext
25868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25869 (eval $ac_link) 2>conftest.er1
25870 ac_status=$?
25871 grep -v '^ *+' conftest.er1 >conftest.err
25872 rm -f conftest.er1
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } &&
25876 { ac_try='test -z "$ac_c_werror_flag"
25877 || test ! -s conftest.err'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest$ac_exeext'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 glibcxx_cv_func___builtin_labs_link=yes
25890 else
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 glibcxx_cv_func___builtin_labs_link=no
25896 rm -f conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
25902 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25903 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25904 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25905 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25906 cat >>confdefs.h <<_ACEOF
25907 #define ${ac_tr_func} 1
25908 _ACEOF
25915 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25916 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25917 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25918 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25920 else
25924 ac_ext=cc
25925 ac_cpp='$CXXCPP $CPPFLAGS'
25926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25930 cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h. */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 #include <math.h>
25938 main ()
25940 __builtin_sqrtf(0);
25942 return 0;
25944 _ACEOF
25945 rm -f conftest.$ac_objext
25946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25947 (eval $ac_compile) 2>conftest.er1
25948 ac_status=$?
25949 grep -v '^ *+' conftest.er1 >conftest.err
25950 rm -f conftest.er1
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } &&
25954 { ac_try='test -z "$ac_cxx_werror_flag"
25955 || test ! -s conftest.err'
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; } &&
25961 { ac_try='test -s conftest.$ac_objext'
25962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963 (eval $ac_try) 2>&5
25964 ac_status=$?
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; }; then
25967 glibcxx_cv_func___builtin_sqrtf_use=yes
25968 else
25969 echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25972 glibcxx_cv_func___builtin_sqrtf_use=no
25974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25975 ac_ext=c
25976 ac_cpp='$CPP $CPPFLAGS'
25977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25985 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
25986 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
25987 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
25988 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
25989 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
25990 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
25991 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25995 if test x$gcc_no_link = xyes; then
25996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25998 { (exit 1); exit 1; }; }
26000 cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h. */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <math.h>
26008 main ()
26010 __builtin_sqrtf(0);
26012 return 0;
26014 _ACEOF
26015 rm -f conftest.$ac_objext conftest$ac_exeext
26016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26017 (eval $ac_link) 2>conftest.er1
26018 ac_status=$?
26019 grep -v '^ *+' conftest.er1 >conftest.err
26020 rm -f conftest.er1
26021 cat conftest.err >&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } &&
26024 { ac_try='test -z "$ac_c_werror_flag"
26025 || test ! -s conftest.err'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; } &&
26031 { ac_try='test -s conftest$ac_exeext'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26034 ac_status=$?
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; }; then
26037 glibcxx_cv_func___builtin_sqrtf_link=yes
26038 else
26039 echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 glibcxx_cv_func___builtin_sqrtf_link=no
26044 rm -f conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26050 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26051 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26052 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26053 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26054 cat >>confdefs.h <<_ACEOF
26055 #define ${ac_tr_func} 1
26056 _ACEOF
26062 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26063 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26064 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26065 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26067 else
26071 ac_ext=cc
26072 ac_cpp='$CXXCPP $CPPFLAGS'
26073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26077 cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h. */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h. */
26083 #include <math.h>
26085 main ()
26087 __builtin_sqrt(0);
26089 return 0;
26091 _ACEOF
26092 rm -f conftest.$ac_objext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26094 (eval $ac_compile) 2>conftest.er1
26095 ac_status=$?
26096 grep -v '^ *+' conftest.er1 >conftest.err
26097 rm -f conftest.er1
26098 cat conftest.err >&5
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
26101 { ac_try='test -z "$ac_cxx_werror_flag"
26102 || test ! -s conftest.err'
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); }; } &&
26108 { ac_try='test -s conftest.$ac_objext'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; }; then
26114 glibcxx_cv_func___builtin_sqrt_use=yes
26115 else
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26119 glibcxx_cv_func___builtin_sqrt_use=no
26121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26122 ac_ext=c
26123 ac_cpp='$CPP $CPPFLAGS'
26124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26132 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26133 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26134 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26135 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26136 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26137 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26138 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 else
26142 if test x$gcc_no_link = xyes; then
26143 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26145 { (exit 1); exit 1; }; }
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h. */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 #include <math.h>
26155 main ()
26157 __builtin_sqrt(0);
26159 return 0;
26161 _ACEOF
26162 rm -f conftest.$ac_objext conftest$ac_exeext
26163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26164 (eval $ac_link) 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -z "$ac_c_werror_flag"
26172 || test ! -s conftest.err'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26175 ac_status=$?
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; } &&
26178 { ac_try='test -s conftest$ac_exeext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
26184 glibcxx_cv_func___builtin_sqrt_link=yes
26185 else
26186 echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26189 glibcxx_cv_func___builtin_sqrt_link=no
26191 rm -f conftest.err conftest.$ac_objext \
26192 conftest$ac_exeext conftest.$ac_ext
26197 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26198 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26199 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26200 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26201 cat >>confdefs.h <<_ACEOF
26202 #define ${ac_tr_func} 1
26203 _ACEOF
26209 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26210 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26211 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26212 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26218 ac_ext=cc
26219 ac_cpp='$CXXCPP $CPPFLAGS'
26220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26224 cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h. */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26230 #include <math.h>
26232 main ()
26234 __builtin_sqrtl(0);
26236 return 0;
26238 _ACEOF
26239 rm -f conftest.$ac_objext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26241 (eval $ac_compile) 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } &&
26248 { ac_try='test -z "$ac_cxx_werror_flag"
26249 || test ! -s conftest.err'
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); }; } &&
26255 { ac_try='test -s conftest.$ac_objext'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; }; then
26261 glibcxx_cv_func___builtin_sqrtl_use=yes
26262 else
26263 echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26266 glibcxx_cv_func___builtin_sqrtl_use=no
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26269 ac_ext=c
26270 ac_cpp='$CPP $CPPFLAGS'
26271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26280 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26281 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26282 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26283 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26284 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26285 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26287 else
26289 if test x$gcc_no_link = xyes; then
26290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26292 { (exit 1); exit 1; }; }
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h. */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 #include <math.h>
26302 main ()
26304 __builtin_sqrtl(0);
26306 return 0;
26308 _ACEOF
26309 rm -f conftest.$ac_objext conftest$ac_exeext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26311 (eval $ac_link) 2>conftest.er1
26312 ac_status=$?
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } &&
26318 { ac_try='test -z "$ac_c_werror_flag"
26319 || test ! -s conftest.err'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest$ac_exeext'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331 glibcxx_cv_func___builtin_sqrtl_link=yes
26332 else
26333 echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26336 glibcxx_cv_func___builtin_sqrtl_link=no
26338 rm -f conftest.err conftest.$ac_objext \
26339 conftest$ac_exeext conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26345 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26346 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26347 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26348 cat >>confdefs.h <<_ACEOF
26349 #define ${ac_tr_func} 1
26350 _ACEOF
26357 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26358 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26359 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26360 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26366 ac_ext=cc
26367 ac_cpp='$CXXCPP $CPPFLAGS'
26368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26372 cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h. */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h. */
26378 #include <math.h>
26380 main ()
26382 __builtin_sinf(0);
26384 return 0;
26386 _ACEOF
26387 rm -f conftest.$ac_objext
26388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26389 (eval $ac_compile) 2>conftest.er1
26390 ac_status=$?
26391 grep -v '^ *+' conftest.er1 >conftest.err
26392 rm -f conftest.er1
26393 cat conftest.err >&5
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); } &&
26396 { ac_try='test -z "$ac_cxx_werror_flag"
26397 || test ! -s conftest.err'
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; } &&
26403 { ac_try='test -s conftest.$ac_objext'
26404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26405 (eval $ac_try) 2>&5
26406 ac_status=$?
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); }; }; then
26409 glibcxx_cv_func___builtin_sinf_use=yes
26410 else
26411 echo "$as_me: failed program was:" >&5
26412 sed 's/^/| /' conftest.$ac_ext >&5
26414 glibcxx_cv_func___builtin_sinf_use=no
26416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26417 ac_ext=c
26418 ac_cpp='$CPP $CPPFLAGS'
26419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26427 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26428 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26429 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26430 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26431 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26432 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26433 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26437 if test x$gcc_no_link = xyes; then
26438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26440 { (exit 1); exit 1; }; }
26442 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h. */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26448 #include <math.h>
26450 main ()
26452 __builtin_sinf(0);
26454 return 0;
26456 _ACEOF
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26459 (eval $ac_link) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -z "$ac_c_werror_flag"
26467 || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest$ac_exeext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 glibcxx_cv_func___builtin_sinf_link=yes
26480 else
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26484 glibcxx_cv_func___builtin_sinf_link=no
26486 rm -f conftest.err conftest.$ac_objext \
26487 conftest$ac_exeext conftest.$ac_ext
26492 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26493 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26494 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26495 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26496 cat >>confdefs.h <<_ACEOF
26497 #define ${ac_tr_func} 1
26498 _ACEOF
26504 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26505 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26506 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26507 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26513 ac_ext=cc
26514 ac_cpp='$CXXCPP $CPPFLAGS'
26515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h. */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 #include <math.h>
26527 main ()
26529 __builtin_sin(0);
26531 return 0;
26533 _ACEOF
26534 rm -f conftest.$ac_objext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26536 (eval $ac_compile) 2>conftest.er1
26537 ac_status=$?
26538 grep -v '^ *+' conftest.er1 >conftest.err
26539 rm -f conftest.er1
26540 cat conftest.err >&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
26543 { ac_try='test -z "$ac_cxx_werror_flag"
26544 || test ! -s conftest.err'
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); }; } &&
26550 { ac_try='test -s conftest.$ac_objext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 glibcxx_cv_func___builtin_sin_use=yes
26557 else
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 glibcxx_cv_func___builtin_sin_use=no
26563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26564 ac_ext=c
26565 ac_cpp='$CPP $CPPFLAGS'
26566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26574 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26575 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26576 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26577 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26578 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26579 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26580 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582 else
26584 if test x$gcc_no_link = xyes; then
26585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26587 { (exit 1); exit 1; }; }
26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h. */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h. */
26595 #include <math.h>
26597 main ()
26599 __builtin_sin(0);
26601 return 0;
26603 _ACEOF
26604 rm -f conftest.$ac_objext conftest$ac_exeext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26606 (eval $ac_link) 2>conftest.er1
26607 ac_status=$?
26608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
26613 { ac_try='test -z "$ac_c_werror_flag"
26614 || test ! -s conftest.err'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest$ac_exeext'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 glibcxx_cv_func___builtin_sin_link=yes
26627 else
26628 echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 glibcxx_cv_func___builtin_sin_link=no
26633 rm -f conftest.err conftest.$ac_objext \
26634 conftest$ac_exeext conftest.$ac_ext
26639 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26640 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26641 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26642 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26643 cat >>confdefs.h <<_ACEOF
26644 #define ${ac_tr_func} 1
26645 _ACEOF
26651 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26652 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26653 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26654 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26660 ac_ext=cc
26661 ac_cpp='$CXXCPP $CPPFLAGS'
26662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26666 cat >conftest.$ac_ext <<_ACEOF
26667 /* confdefs.h. */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h. */
26672 #include <math.h>
26674 main ()
26676 __builtin_sinl(0);
26678 return 0;
26680 _ACEOF
26681 rm -f conftest.$ac_objext
26682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26683 (eval $ac_compile) 2>conftest.er1
26684 ac_status=$?
26685 grep -v '^ *+' conftest.er1 >conftest.err
26686 rm -f conftest.er1
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } &&
26690 { ac_try='test -z "$ac_cxx_werror_flag"
26691 || test ! -s conftest.err'
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); }; } &&
26697 { ac_try='test -s conftest.$ac_objext'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; }; then
26703 glibcxx_cv_func___builtin_sinl_use=yes
26704 else
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26708 glibcxx_cv_func___builtin_sinl_use=no
26710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26711 ac_ext=c
26712 ac_cpp='$CPP $CPPFLAGS'
26713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26721 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26722 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26723 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26724 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26725 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26726 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26727 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26731 if test x$gcc_no_link = xyes; then
26732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26734 { (exit 1); exit 1; }; }
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h. */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26742 #include <math.h>
26744 main ()
26746 __builtin_sinl(0);
26748 return 0;
26750 _ACEOF
26751 rm -f conftest.$ac_objext conftest$ac_exeext
26752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26753 (eval $ac_link) 2>conftest.er1
26754 ac_status=$?
26755 grep -v '^ *+' conftest.er1 >conftest.err
26756 rm -f conftest.er1
26757 cat conftest.err >&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); } &&
26760 { ac_try='test -z "$ac_c_werror_flag"
26761 || test ! -s conftest.err'
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; } &&
26767 { ac_try='test -s conftest$ac_exeext'
26768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); }; }; then
26773 glibcxx_cv_func___builtin_sinl_link=yes
26774 else
26775 echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26778 glibcxx_cv_func___builtin_sinl_link=no
26780 rm -f conftest.err conftest.$ac_objext \
26781 conftest$ac_exeext conftest.$ac_ext
26786 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26787 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26788 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26789 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26790 cat >>confdefs.h <<_ACEOF
26791 #define ${ac_tr_func} 1
26792 _ACEOF
26799 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26800 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26801 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26802 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26808 ac_ext=cc
26809 ac_cpp='$CXXCPP $CPPFLAGS'
26810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26814 cat >conftest.$ac_ext <<_ACEOF
26815 /* confdefs.h. */
26816 _ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h. */
26820 #include <math.h>
26822 main ()
26824 __builtin_cosf(0);
26826 return 0;
26828 _ACEOF
26829 rm -f conftest.$ac_objext
26830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26831 (eval $ac_compile) 2>conftest.er1
26832 ac_status=$?
26833 grep -v '^ *+' conftest.er1 >conftest.err
26834 rm -f conftest.er1
26835 cat conftest.err >&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } &&
26838 { ac_try='test -z "$ac_cxx_werror_flag"
26839 || test ! -s conftest.err'
26840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841 (eval $ac_try) 2>&5
26842 ac_status=$?
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); }; } &&
26845 { ac_try='test -s conftest.$ac_objext'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 glibcxx_cv_func___builtin_cosf_use=yes
26852 else
26853 echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 glibcxx_cv_func___builtin_cosf_use=no
26858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26859 ac_ext=c
26860 ac_cpp='$CPP $CPPFLAGS'
26861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26869 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26870 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26871 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26872 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26873 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26874 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26875 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26877 else
26879 if test x$gcc_no_link = xyes; then
26880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26882 { (exit 1); exit 1; }; }
26884 cat >conftest.$ac_ext <<_ACEOF
26885 /* confdefs.h. */
26886 _ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h. */
26890 #include <math.h>
26892 main ()
26894 __builtin_cosf(0);
26896 return 0;
26898 _ACEOF
26899 rm -f conftest.$ac_objext conftest$ac_exeext
26900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26901 (eval $ac_link) 2>conftest.er1
26902 ac_status=$?
26903 grep -v '^ *+' conftest.er1 >conftest.err
26904 rm -f conftest.er1
26905 cat conftest.err >&5
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
26908 { ac_try='test -z "$ac_c_werror_flag"
26909 || test ! -s conftest.err'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; } &&
26915 { ac_try='test -s conftest$ac_exeext'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 glibcxx_cv_func___builtin_cosf_link=yes
26922 else
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26926 glibcxx_cv_func___builtin_cosf_link=no
26928 rm -f conftest.err conftest.$ac_objext \
26929 conftest$ac_exeext conftest.$ac_ext
26934 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
26935 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
26936 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
26937 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26938 cat >>confdefs.h <<_ACEOF
26939 #define ${ac_tr_func} 1
26940 _ACEOF
26946 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
26947 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
26948 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
26949 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
26950 echo $ECHO_N "(cached) $ECHO_C" >&6
26951 else
26955 ac_ext=cc
26956 ac_cpp='$CXXCPP $CPPFLAGS'
26957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26961 cat >conftest.$ac_ext <<_ACEOF
26962 /* confdefs.h. */
26963 _ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h. */
26967 #include <math.h>
26969 main ()
26971 __builtin_cos(0);
26973 return 0;
26975 _ACEOF
26976 rm -f conftest.$ac_objext
26977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978 (eval $ac_compile) 2>conftest.er1
26979 ac_status=$?
26980 grep -v '^ *+' conftest.er1 >conftest.err
26981 rm -f conftest.er1
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } &&
26985 { ac_try='test -z "$ac_cxx_werror_flag"
26986 || test ! -s conftest.err'
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); }; } &&
26992 { ac_try='test -s conftest.$ac_objext'
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
26998 glibcxx_cv_func___builtin_cos_use=yes
26999 else
27000 echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27003 glibcxx_cv_func___builtin_cos_use=no
27005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006 ac_ext=c
27007 ac_cpp='$CPP $CPPFLAGS'
27008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27016 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27017 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27018 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27019 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27020 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27021 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27022 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27023 echo $ECHO_N "(cached) $ECHO_C" >&6
27024 else
27026 if test x$gcc_no_link = xyes; then
27027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27029 { (exit 1); exit 1; }; }
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h. */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h. */
27037 #include <math.h>
27039 main ()
27041 __builtin_cos(0);
27043 return 0;
27045 _ACEOF
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27048 (eval $ac_link) 2>conftest.er1
27049 ac_status=$?
27050 grep -v '^ *+' conftest.er1 >conftest.err
27051 rm -f conftest.er1
27052 cat conftest.err >&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } &&
27055 { ac_try='test -z "$ac_c_werror_flag"
27056 || test ! -s conftest.err'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; } &&
27062 { ac_try='test -s conftest$ac_exeext'
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; }; then
27068 glibcxx_cv_func___builtin_cos_link=yes
27069 else
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 glibcxx_cv_func___builtin_cos_link=no
27075 rm -f conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27082 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27083 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27084 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27085 cat >>confdefs.h <<_ACEOF
27086 #define ${ac_tr_func} 1
27087 _ACEOF
27093 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27094 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27095 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27096 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098 else
27102 ac_ext=cc
27103 ac_cpp='$CXXCPP $CPPFLAGS'
27104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27108 cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h. */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 #include <math.h>
27116 main ()
27118 __builtin_cosl(0);
27120 return 0;
27122 _ACEOF
27123 rm -f conftest.$ac_objext
27124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27125 (eval $ac_compile) 2>conftest.er1
27126 ac_status=$?
27127 grep -v '^ *+' conftest.er1 >conftest.err
27128 rm -f conftest.er1
27129 cat conftest.err >&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } &&
27132 { ac_try='test -z "$ac_cxx_werror_flag"
27133 || test ! -s conftest.err'
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); }; } &&
27139 { ac_try='test -s conftest.$ac_objext'
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; }; then
27145 glibcxx_cv_func___builtin_cosl_use=yes
27146 else
27147 echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27150 glibcxx_cv_func___builtin_cosl_use=no
27152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27153 ac_ext=c
27154 ac_cpp='$CPP $CPPFLAGS'
27155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27163 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27164 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27165 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27166 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27167 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27168 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27169 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27173 if test x$gcc_no_link = xyes; then
27174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27176 { (exit 1); exit 1; }; }
27178 cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h. */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 #include <math.h>
27186 main ()
27188 __builtin_cosl(0);
27190 return 0;
27192 _ACEOF
27193 rm -f conftest.$ac_objext conftest$ac_exeext
27194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27195 (eval $ac_link) 2>conftest.er1
27196 ac_status=$?
27197 grep -v '^ *+' conftest.er1 >conftest.err
27198 rm -f conftest.er1
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag"
27203 || test ! -s conftest.err'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; } &&
27209 { ac_try='test -s conftest$ac_exeext'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 glibcxx_cv_func___builtin_cosl_link=yes
27216 else
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 glibcxx_cv_func___builtin_cosl_link=no
27222 rm -f conftest.err conftest.$ac_objext \
27223 conftest$ac_exeext conftest.$ac_ext
27228 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27229 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27230 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27231 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27232 cat >>confdefs.h <<_ACEOF
27233 #define ${ac_tr_func} 1
27234 _ACEOF
27240 dummyvar=no
27241 if test x$dummyvar = x"yes"; then
27242 cat >>confdefs.h <<\_ACEOF
27243 #define HAVE___BUILTIN_ABS 1
27244 _ACEOF
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE___BUILTIN_LABS 1
27248 _ACEOF
27250 cat >>confdefs.h <<\_ACEOF
27251 #define HAVE___BUILTIN_COS 1
27252 _ACEOF
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE___BUILTIN_COSF 1
27256 _ACEOF
27258 cat >>confdefs.h <<\_ACEOF
27259 #define HAVE___BUILTIN_COSL 1
27260 _ACEOF
27262 cat >>confdefs.h <<\_ACEOF
27263 #define HAVE___BUILTIN_FABS 1
27264 _ACEOF
27266 cat >>confdefs.h <<\_ACEOF
27267 #define HAVE___BUILTIN_FABSF 1
27268 _ACEOF
27270 cat >>confdefs.h <<\_ACEOF
27271 #define HAVE___BUILTIN_FABSL 1
27272 _ACEOF
27274 cat >>confdefs.h <<\_ACEOF
27275 #define HAVE___BUILTIN_SIN 1
27276 _ACEOF
27278 cat >>confdefs.h <<\_ACEOF
27279 #define HAVE___BUILTIN_SINF 1
27280 _ACEOF
27282 cat >>confdefs.h <<\_ACEOF
27283 #define HAVE___BUILTIN_SINL 1
27284 _ACEOF
27286 cat >>confdefs.h <<\_ACEOF
27287 #define HAVE___BUILTIN_SQRT 1
27288 _ACEOF
27290 cat >>confdefs.h <<\_ACEOF
27291 #define HAVE___BUILTIN_SQRTF 1
27292 _ACEOF
27294 cat >>confdefs.h <<\_ACEOF
27295 #define HAVE___BUILTIN_SQRTL 1
27296 _ACEOF
27302 echo "$as_me:$LINENO: checking for main in -lm" >&5
27303 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27304 if test "${ac_cv_lib_m_main+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
27306 else
27307 ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-lm $LIBS"
27309 if test x$gcc_no_link = xyes; then
27310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27312 { (exit 1); exit 1; }; }
27314 cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h. */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27323 main ()
27325 main ();
27327 return 0;
27329 _ACEOF
27330 rm -f conftest.$ac_objext conftest$ac_exeext
27331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27332 (eval $ac_link) 2>conftest.er1
27333 ac_status=$?
27334 grep -v '^ *+' conftest.er1 >conftest.err
27335 rm -f conftest.er1
27336 cat conftest.err >&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } &&
27339 { ac_try='test -z "$ac_c_werror_flag"
27340 || test ! -s conftest.err'
27341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342 (eval $ac_try) 2>&5
27343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; } &&
27346 { ac_try='test -s conftest$ac_exeext'
27347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348 (eval $ac_try) 2>&5
27349 ac_status=$?
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; }; then
27352 ac_cv_lib_m_main=yes
27353 else
27354 echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27357 ac_cv_lib_m_main=no
27359 rm -f conftest.err conftest.$ac_objext \
27360 conftest$ac_exeext conftest.$ac_ext
27361 LIBS=$ac_check_lib_save_LIBS
27363 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27364 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27365 if test $ac_cv_lib_m_main = yes; then
27366 cat >>confdefs.h <<_ACEOF
27367 #define HAVE_LIBM 1
27368 _ACEOF
27370 LIBS="-lm $LIBS"
27375 for ac_func in copysignf
27377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27378 echo "$as_me:$LINENO: checking for $ac_func" >&5
27379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27380 if eval "test \"\${$as_ac_var+set}\" = set"; then
27381 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 else
27383 if test x$gcc_no_link = xyes; then
27384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27386 { (exit 1); exit 1; }; }
27388 cat >conftest.$ac_ext <<_ACEOF
27389 /* confdefs.h. */
27390 _ACEOF
27391 cat confdefs.h >>conftest.$ac_ext
27392 cat >>conftest.$ac_ext <<_ACEOF
27393 /* end confdefs.h. */
27394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27396 #define $ac_func innocuous_$ac_func
27398 /* System header to define __stub macros and hopefully few prototypes,
27399 which can conflict with char $ac_func (); below.
27400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27401 <limits.h> exists even on freestanding compilers. */
27403 #ifdef __STDC__
27404 # include <limits.h>
27405 #else
27406 # include <assert.h>
27407 #endif
27409 #undef $ac_func
27411 /* Override any gcc2 internal prototype to avoid an error. */
27412 #ifdef __cplusplus
27413 extern "C"
27415 #endif
27416 /* We use char because int might match the return type of a gcc2
27417 builtin and then its argument prototype would still apply. */
27418 char $ac_func ();
27419 /* The GNU C library defines this for functions which it implements
27420 to always fail with ENOSYS. Some functions are actually named
27421 something starting with __ and the normal name is an alias. */
27422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27423 choke me
27424 #else
27425 char (*f) () = $ac_func;
27426 #endif
27427 #ifdef __cplusplus
27429 #endif
27432 main ()
27434 return f != $ac_func;
27436 return 0;
27438 _ACEOF
27439 rm -f conftest.$ac_objext conftest$ac_exeext
27440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27441 (eval $ac_link) 2>conftest.er1
27442 ac_status=$?
27443 grep -v '^ *+' conftest.er1 >conftest.err
27444 rm -f conftest.er1
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } &&
27448 { ac_try='test -z "$ac_c_werror_flag"
27449 || test ! -s conftest.err'
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; }; then
27461 eval "$as_ac_var=yes"
27462 else
27463 echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27466 eval "$as_ac_var=no"
27468 rm -f conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
27471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27473 if test `eval echo '${'$as_ac_var'}'` = yes; then
27474 cat >>confdefs.h <<_ACEOF
27475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27476 _ACEOF
27478 else
27479 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27481 done
27485 for ac_func in __signbit
27487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27488 echo "$as_me:$LINENO: checking for $ac_func" >&5
27489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27490 if eval "test \"\${$as_ac_var+set}\" = set"; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493 if test x$gcc_no_link = xyes; then
27494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27496 { (exit 1); exit 1; }; }
27498 cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h. */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h. */
27504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27506 #define $ac_func innocuous_$ac_func
27508 /* System header to define __stub macros and hopefully few prototypes,
27509 which can conflict with char $ac_func (); below.
27510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27511 <limits.h> exists even on freestanding compilers. */
27513 #ifdef __STDC__
27514 # include <limits.h>
27515 #else
27516 # include <assert.h>
27517 #endif
27519 #undef $ac_func
27521 /* Override any gcc2 internal prototype to avoid an error. */
27522 #ifdef __cplusplus
27523 extern "C"
27525 #endif
27526 /* We use char because int might match the return type of a gcc2
27527 builtin and then its argument prototype would still apply. */
27528 char $ac_func ();
27529 /* The GNU C library defines this for functions which it implements
27530 to always fail with ENOSYS. Some functions are actually named
27531 something starting with __ and the normal name is an alias. */
27532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27533 choke me
27534 #else
27535 char (*f) () = $ac_func;
27536 #endif
27537 #ifdef __cplusplus
27539 #endif
27542 main ()
27544 return f != $ac_func;
27546 return 0;
27548 _ACEOF
27549 rm -f conftest.$ac_objext conftest$ac_exeext
27550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27551 (eval $ac_link) 2>conftest.er1
27552 ac_status=$?
27553 grep -v '^ *+' conftest.er1 >conftest.err
27554 rm -f conftest.er1
27555 cat conftest.err >&5
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); } &&
27558 { ac_try='test -z "$ac_c_werror_flag"
27559 || test ! -s conftest.err'
27560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; } &&
27565 { ac_try='test -s conftest$ac_exeext'
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; }; then
27571 eval "$as_ac_var=yes"
27572 else
27573 echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27576 eval "$as_ac_var=no"
27578 rm -f conftest.err conftest.$ac_objext \
27579 conftest$ac_exeext conftest.$ac_ext
27581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27583 if test `eval echo '${'$as_ac_var'}'` = yes; then
27584 cat >>confdefs.h <<_ACEOF
27585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27586 _ACEOF
27588 else
27589 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27591 done
27594 for ac_func in __signbitf
27596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27597 echo "$as_me:$LINENO: checking for $ac_func" >&5
27598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27599 if eval "test \"\${$as_ac_var+set}\" = set"; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602 if test x$gcc_no_link = xyes; then
27603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27605 { (exit 1); exit 1; }; }
27607 cat >conftest.$ac_ext <<_ACEOF
27608 /* confdefs.h. */
27609 _ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h. */
27613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27615 #define $ac_func innocuous_$ac_func
27617 /* System header to define __stub macros and hopefully few prototypes,
27618 which can conflict with char $ac_func (); below.
27619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27620 <limits.h> exists even on freestanding compilers. */
27622 #ifdef __STDC__
27623 # include <limits.h>
27624 #else
27625 # include <assert.h>
27626 #endif
27628 #undef $ac_func
27630 /* Override any gcc2 internal prototype to avoid an error. */
27631 #ifdef __cplusplus
27632 extern "C"
27634 #endif
27635 /* We use char because int might match the return type of a gcc2
27636 builtin and then its argument prototype would still apply. */
27637 char $ac_func ();
27638 /* The GNU C library defines this for functions which it implements
27639 to always fail with ENOSYS. Some functions are actually named
27640 something starting with __ and the normal name is an alias. */
27641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27642 choke me
27643 #else
27644 char (*f) () = $ac_func;
27645 #endif
27646 #ifdef __cplusplus
27648 #endif
27651 main ()
27653 return f != $ac_func;
27655 return 0;
27657 _ACEOF
27658 rm -f conftest.$ac_objext conftest$ac_exeext
27659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27660 (eval $ac_link) 2>conftest.er1
27661 ac_status=$?
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } &&
27667 { ac_try='test -z "$ac_c_werror_flag"
27668 || test ! -s conftest.err'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 eval "$as_ac_var=yes"
27681 else
27682 echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27685 eval "$as_ac_var=no"
27687 rm -f conftest.err conftest.$ac_objext \
27688 conftest$ac_exeext conftest.$ac_ext
27690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27692 if test `eval echo '${'$as_ac_var'}'` = yes; then
27693 cat >>confdefs.h <<_ACEOF
27694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27695 _ACEOF
27697 else
27698 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27700 done
27703 if test x$ac_cv_func_copysignl = x"yes"; then
27705 for ac_func in __signbitl
27707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27708 echo "$as_me:$LINENO: checking for $ac_func" >&5
27709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27710 if eval "test \"\${$as_ac_var+set}\" = set"; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713 if test x$gcc_no_link = xyes; then
27714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27716 { (exit 1); exit 1; }; }
27718 cat >conftest.$ac_ext <<_ACEOF
27719 /* confdefs.h. */
27720 _ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h. */
27724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27726 #define $ac_func innocuous_$ac_func
27728 /* System header to define __stub macros and hopefully few prototypes,
27729 which can conflict with char $ac_func (); below.
27730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27731 <limits.h> exists even on freestanding compilers. */
27733 #ifdef __STDC__
27734 # include <limits.h>
27735 #else
27736 # include <assert.h>
27737 #endif
27739 #undef $ac_func
27741 /* Override any gcc2 internal prototype to avoid an error. */
27742 #ifdef __cplusplus
27743 extern "C"
27745 #endif
27746 /* We use char because int might match the return type of a gcc2
27747 builtin and then its argument prototype would still apply. */
27748 char $ac_func ();
27749 /* The GNU C library defines this for functions which it implements
27750 to always fail with ENOSYS. Some functions are actually named
27751 something starting with __ and the normal name is an alias. */
27752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27753 choke me
27754 #else
27755 char (*f) () = $ac_func;
27756 #endif
27757 #ifdef __cplusplus
27759 #endif
27762 main ()
27764 return f != $ac_func;
27766 return 0;
27768 _ACEOF
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27771 (eval $ac_link) 2>conftest.er1
27772 ac_status=$?
27773 grep -v '^ *+' conftest.er1 >conftest.err
27774 rm -f conftest.er1
27775 cat conftest.err >&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } &&
27778 { ac_try='test -z "$ac_c_werror_flag"
27779 || test ! -s conftest.err'
27780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27781 (eval $ac_try) 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; } &&
27785 { ac_try='test -s conftest$ac_exeext'
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; }; then
27791 eval "$as_ac_var=yes"
27792 else
27793 echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27796 eval "$as_ac_var=no"
27798 rm -f conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
27801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27803 if test `eval echo '${'$as_ac_var'}'` = yes; then
27804 cat >>confdefs.h <<_ACEOF
27805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27806 _ACEOF
27808 else
27809 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27811 done
27815 # XXX Review this. Nothing uses it.
27816 if test -n "$LIBMATHOBJS"; then
27817 need_libmath=yes
27822 # Test wchar.h for mbstate_t, which is needed for char_traits and
27823 # others even if wchar_t support is not on.
27824 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27825 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27826 cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h. */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 #include <wchar.h>
27834 main ()
27836 mbstate_t teststate;
27838 return 0;
27840 _ACEOF
27841 rm -f conftest.$ac_objext
27842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27843 (eval $ac_compile) 2>conftest.er1
27844 ac_status=$?
27845 grep -v '^ *+' conftest.er1 >conftest.err
27846 rm -f conftest.er1
27847 cat conftest.err >&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); } &&
27850 { ac_try='test -z "$ac_c_werror_flag"
27851 || test ! -s conftest.err'
27852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853 (eval $ac_try) 2>&5
27854 ac_status=$?
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); }; } &&
27857 { ac_try='test -s conftest.$ac_objext'
27858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27859 (eval $ac_try) 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; }; then
27863 have_mbstate_t=yes
27864 else
27865 echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 have_mbstate_t=no
27870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27871 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27872 echo "${ECHO_T}$have_mbstate_t" >&6
27873 if test x"$have_mbstate_t" = xyes; then
27874 cat >>confdefs.h <<\_ACEOF
27875 #define HAVE_MBSTATE_T 1
27876 _ACEOF
27880 # Sanity check for existence of ISO C99 headers for extended encoding.
27882 for ac_header in wchar.h
27884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27886 echo "$as_me:$LINENO: checking for $ac_header" >&5
27887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27893 else
27894 # Is the header compilable?
27895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27896 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
27904 #include <$ac_header>
27905 _ACEOF
27906 rm -f conftest.$ac_objext
27907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27908 (eval $ac_compile) 2>conftest.er1
27909 ac_status=$?
27910 grep -v '^ *+' conftest.er1 >conftest.err
27911 rm -f conftest.er1
27912 cat conftest.err >&5
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); } &&
27915 { ac_try='test -z "$ac_c_werror_flag"
27916 || test ! -s conftest.err'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; } &&
27922 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27928 ac_header_compiler=yes
27929 else
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27933 ac_header_compiler=no
27935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27937 echo "${ECHO_T}$ac_header_compiler" >&6
27939 # Is the header present?
27940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27942 cat >conftest.$ac_ext <<_ACEOF
27943 /* confdefs.h. */
27944 _ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27948 #include <$ac_header>
27949 _ACEOF
27950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27952 ac_status=$?
27953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } >/dev/null; then
27958 if test -s conftest.err; then
27959 ac_cpp_err=$ac_c_preproc_warn_flag
27960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27961 else
27962 ac_cpp_err=
27964 else
27965 ac_cpp_err=yes
27967 if test -z "$ac_cpp_err"; then
27968 ac_header_preproc=yes
27969 else
27970 echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27973 ac_header_preproc=no
27975 rm -f conftest.err conftest.$ac_ext
27976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27977 echo "${ECHO_T}$ac_header_preproc" >&6
27979 # So? What about this header?
27980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27981 yes:no: )
27982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27986 ac_header_preproc=yes
27988 no:yes:* )
27989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28002 cat <<\_ASBOX
28003 ## ----------------------------------------- ##
28004 ## Report this to the package-unused lists. ##
28005 ## ----------------------------------------- ##
28006 _ASBOX
28008 sed "s/^/$as_me: WARNING: /" >&2
28010 esac
28011 echo "$as_me:$LINENO: checking for $ac_header" >&5
28012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015 else
28016 eval "$as_ac_Header=\$ac_header_preproc"
28018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28023 cat >>confdefs.h <<_ACEOF
28024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28025 _ACEOF
28026 ac_has_wchar_h=yes
28027 else
28028 ac_has_wchar_h=no
28031 done
28034 for ac_header in wctype.h
28036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28038 echo "$as_me:$LINENO: checking for $ac_header" >&5
28039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28045 else
28046 # Is the header compilable?
28047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28049 cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h. */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28055 $ac_includes_default
28056 #include <$ac_header>
28057 _ACEOF
28058 rm -f conftest.$ac_objext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060 (eval $ac_compile) 2>conftest.er1
28061 ac_status=$?
28062 grep -v '^ *+' conftest.er1 >conftest.err
28063 rm -f conftest.er1
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag"
28068 || test ! -s conftest.err'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest.$ac_objext'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_header_compiler=yes
28081 else
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28085 ac_header_compiler=no
28087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28089 echo "${ECHO_T}$ac_header_compiler" >&6
28091 # Is the header present?
28092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28094 cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h. */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100 #include <$ac_header>
28101 _ACEOF
28102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28104 ac_status=$?
28105 grep -v '^ *+' conftest.er1 >conftest.err
28106 rm -f conftest.er1
28107 cat conftest.err >&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); } >/dev/null; then
28110 if test -s conftest.err; then
28111 ac_cpp_err=$ac_c_preproc_warn_flag
28112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28113 else
28114 ac_cpp_err=
28116 else
28117 ac_cpp_err=yes
28119 if test -z "$ac_cpp_err"; then
28120 ac_header_preproc=yes
28121 else
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 ac_header_preproc=no
28127 rm -f conftest.err conftest.$ac_ext
28128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28129 echo "${ECHO_T}$ac_header_preproc" >&6
28131 # So? What about this header?
28132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28133 yes:no: )
28134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28138 ac_header_preproc=yes
28140 no:yes:* )
28141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28154 cat <<\_ASBOX
28155 ## ----------------------------------------- ##
28156 ## Report this to the package-unused lists. ##
28157 ## ----------------------------------------- ##
28158 _ASBOX
28160 sed "s/^/$as_me: WARNING: /" >&2
28162 esac
28163 echo "$as_me:$LINENO: checking for $ac_header" >&5
28164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168 eval "$as_ac_Header=\$ac_header_preproc"
28170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28175 cat >>confdefs.h <<_ACEOF
28176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28177 _ACEOF
28178 ac_has_wctype_h=yes
28179 else
28180 ac_has_wctype_h=no
28183 done
28186 # Only continue checking if the ISO C99 headers exist and support is on.
28187 if test x"$ac_has_wchar_h" = xyes &&
28188 test x"$ac_has_wctype_h" = xyes &&
28189 test x"$enable_c_mbchar" != xno; then
28191 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28192 # numeric_limits can instantiate type_traits<wchar_t>
28193 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28194 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28195 cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h. */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 #include <wchar.h>
28203 main ()
28205 int i = WCHAR_MIN; int j = WCHAR_MAX;
28207 return 0;
28209 _ACEOF
28210 rm -f conftest.$ac_objext
28211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28212 (eval $ac_compile) 2>conftest.er1
28213 ac_status=$?
28214 grep -v '^ *+' conftest.er1 >conftest.err
28215 rm -f conftest.er1
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
28219 { ac_try='test -z "$ac_c_werror_flag"
28220 || test ! -s conftest.err'
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28223 ac_status=$?
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; } &&
28226 { ac_try='test -s conftest.$ac_objext'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
28232 has_wchar_minmax=yes
28233 else
28234 echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28237 has_wchar_minmax=no
28239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28240 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28241 echo "${ECHO_T}$has_wchar_minmax" >&6
28243 # Test wchar.h for WEOF, which is what we use to determine whether
28244 # to specialize for char_traits<wchar_t> or not.
28245 echo "$as_me:$LINENO: checking for WEOF" >&5
28246 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28247 cat >conftest.$ac_ext <<_ACEOF
28248 /* confdefs.h. */
28249 _ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28254 #include <wchar.h>
28255 #include <stddef.h>
28257 main ()
28259 wint_t i = WEOF;
28261 return 0;
28263 _ACEOF
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266 (eval $ac_compile) 2>conftest.er1
28267 ac_status=$?
28268 grep -v '^ *+' conftest.er1 >conftest.err
28269 rm -f conftest.er1
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -z "$ac_c_werror_flag"
28274 || test ! -s conftest.err'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try='test -s conftest.$ac_objext'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286 has_weof=yes
28287 else
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28291 has_weof=no
28293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28294 echo "$as_me:$LINENO: result: $has_weof" >&5
28295 echo "${ECHO_T}$has_weof" >&6
28297 # Tests for wide character functions used in char_traits<wchar_t>.
28298 ac_wfuncs=yes
28305 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28308 echo "$as_me:$LINENO: checking for $ac_func" >&5
28309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28310 if eval "test \"\${$as_ac_var+set}\" = set"; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313 if test x$gcc_no_link = xyes; then
28314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28316 { (exit 1); exit 1; }; }
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. */
28324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28326 #define $ac_func innocuous_$ac_func
28328 /* System header to define __stub macros and hopefully few prototypes,
28329 which can conflict with char $ac_func (); below.
28330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28331 <limits.h> exists even on freestanding compilers. */
28333 #ifdef __STDC__
28334 # include <limits.h>
28335 #else
28336 # include <assert.h>
28337 #endif
28339 #undef $ac_func
28341 /* Override any gcc2 internal prototype to avoid an error. */
28342 #ifdef __cplusplus
28343 extern "C"
28345 #endif
28346 /* We use char because int might match the return type of a gcc2
28347 builtin and then its argument prototype would still apply. */
28348 char $ac_func ();
28349 /* The GNU C library defines this for functions which it implements
28350 to always fail with ENOSYS. Some functions are actually named
28351 something starting with __ and the normal name is an alias. */
28352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28353 choke me
28354 #else
28355 char (*f) () = $ac_func;
28356 #endif
28357 #ifdef __cplusplus
28359 #endif
28362 main ()
28364 return f != $ac_func;
28366 return 0;
28368 _ACEOF
28369 rm -f conftest.$ac_objext conftest$ac_exeext
28370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28371 (eval $ac_link) 2>conftest.er1
28372 ac_status=$?
28373 grep -v '^ *+' conftest.er1 >conftest.err
28374 rm -f conftest.er1
28375 cat conftest.err >&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); } &&
28378 { ac_try='test -z "$ac_c_werror_flag"
28379 || test ! -s conftest.err'
28380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); }; } &&
28385 { ac_try='test -s conftest$ac_exeext'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 eval "$as_ac_var=yes"
28392 else
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28396 eval "$as_ac_var=no"
28398 rm -f conftest.err conftest.$ac_objext \
28399 conftest$ac_exeext conftest.$ac_ext
28401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28403 if test `eval echo '${'$as_ac_var'}'` = yes; then
28404 cat >>confdefs.h <<_ACEOF
28405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28406 _ACEOF
28408 else
28409 ac_wfuncs=no
28411 done
28414 # Checks for names injected into std:: by the c_std headers.
28461 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28462 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28463 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28464 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28465 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28466 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28469 echo "$as_me:$LINENO: checking for $ac_func" >&5
28470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28471 if eval "test \"\${$as_ac_var+set}\" = set"; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474 if test x$gcc_no_link = xyes; then
28475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28477 { (exit 1); exit 1; }; }
28479 cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h. */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28487 #define $ac_func innocuous_$ac_func
28489 /* System header to define __stub macros and hopefully few prototypes,
28490 which can conflict with char $ac_func (); below.
28491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28492 <limits.h> exists even on freestanding compilers. */
28494 #ifdef __STDC__
28495 # include <limits.h>
28496 #else
28497 # include <assert.h>
28498 #endif
28500 #undef $ac_func
28502 /* Override any gcc2 internal prototype to avoid an error. */
28503 #ifdef __cplusplus
28504 extern "C"
28506 #endif
28507 /* We use char because int might match the return type of a gcc2
28508 builtin and then its argument prototype would still apply. */
28509 char $ac_func ();
28510 /* The GNU C library defines this for functions which it implements
28511 to always fail with ENOSYS. Some functions are actually named
28512 something starting with __ and the normal name is an alias. */
28513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28514 choke me
28515 #else
28516 char (*f) () = $ac_func;
28517 #endif
28518 #ifdef __cplusplus
28520 #endif
28523 main ()
28525 return f != $ac_func;
28527 return 0;
28529 _ACEOF
28530 rm -f conftest.$ac_objext conftest$ac_exeext
28531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28532 (eval $ac_link) 2>conftest.er1
28533 ac_status=$?
28534 grep -v '^ *+' conftest.er1 >conftest.err
28535 rm -f conftest.er1
28536 cat conftest.err >&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } &&
28539 { ac_try='test -z "$ac_c_werror_flag"
28540 || test ! -s conftest.err'
28541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; } &&
28546 { ac_try='test -s conftest$ac_exeext'
28547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548 (eval $ac_try) 2>&5
28549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 eval "$as_ac_var=yes"
28553 else
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28557 eval "$as_ac_var=no"
28559 rm -f conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
28562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28564 if test `eval echo '${'$as_ac_var'}'` = yes; then
28565 cat >>confdefs.h <<_ACEOF
28566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28567 _ACEOF
28569 else
28570 ac_wfuncs=no
28572 done
28575 # Checks for wide character functions that are not required
28576 # for basic wchar_t support. Don't disable support if they are missing.
28577 # Injection of these is wrapped with guard macros.
28583 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28586 echo "$as_me:$LINENO: checking for $ac_func" >&5
28587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28588 if eval "test \"\${$as_ac_var+set}\" = set"; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590 else
28591 if test x$gcc_no_link = xyes; then
28592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28594 { (exit 1); exit 1; }; }
28596 cat >conftest.$ac_ext <<_ACEOF
28597 /* confdefs.h. */
28598 _ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28604 #define $ac_func innocuous_$ac_func
28606 /* System header to define __stub macros and hopefully few prototypes,
28607 which can conflict with char $ac_func (); below.
28608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28609 <limits.h> exists even on freestanding compilers. */
28611 #ifdef __STDC__
28612 # include <limits.h>
28613 #else
28614 # include <assert.h>
28615 #endif
28617 #undef $ac_func
28619 /* Override any gcc2 internal prototype to avoid an error. */
28620 #ifdef __cplusplus
28621 extern "C"
28623 #endif
28624 /* We use char because int might match the return type of a gcc2
28625 builtin and then its argument prototype would still apply. */
28626 char $ac_func ();
28627 /* The GNU C library defines this for functions which it implements
28628 to always fail with ENOSYS. Some functions are actually named
28629 something starting with __ and the normal name is an alias. */
28630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28631 choke me
28632 #else
28633 char (*f) () = $ac_func;
28634 #endif
28635 #ifdef __cplusplus
28637 #endif
28640 main ()
28642 return f != $ac_func;
28644 return 0;
28646 _ACEOF
28647 rm -f conftest.$ac_objext conftest$ac_exeext
28648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28649 (eval $ac_link) 2>conftest.er1
28650 ac_status=$?
28651 grep -v '^ *+' conftest.er1 >conftest.err
28652 rm -f conftest.er1
28653 cat conftest.err >&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); } &&
28656 { ac_try='test -z "$ac_c_werror_flag"
28657 || test ! -s conftest.err'
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; } &&
28663 { ac_try='test -s conftest$ac_exeext'
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28669 eval "$as_ac_var=yes"
28670 else
28671 echo "$as_me: failed program was:" >&5
28672 sed 's/^/| /' conftest.$ac_ext >&5
28674 eval "$as_ac_var=no"
28676 rm -f conftest.err conftest.$ac_objext \
28677 conftest$ac_exeext conftest.$ac_ext
28679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28681 if test `eval echo '${'$as_ac_var'}'` = yes; then
28682 cat >>confdefs.h <<_ACEOF
28683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28684 _ACEOF
28687 done
28690 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28691 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28692 if test x"$has_weof" = xyes &&
28693 test x"$has_wchar_minmax" = xyes &&
28694 test x"$ac_wfuncs" = xyes;
28695 then
28696 ac_isoC99_wchar_t=yes
28697 else
28698 ac_isoC99_wchar_t=no
28700 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28701 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28703 # Use iconv for wchar_t to char conversions. As such, check for
28704 # X/Open Portability Guide, version 2 features (XPG2).
28705 if test "${ac_cv_header_iconv_h+set}" = set; then
28706 echo "$as_me:$LINENO: checking for iconv.h" >&5
28707 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28708 if test "${ac_cv_header_iconv_h+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28711 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28712 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28713 else
28714 # Is the header compilable?
28715 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28716 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28717 cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h. */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 $ac_includes_default
28724 #include <iconv.h>
28725 _ACEOF
28726 rm -f conftest.$ac_objext
28727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28728 (eval $ac_compile) 2>conftest.er1
28729 ac_status=$?
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
28735 { ac_try='test -z "$ac_c_werror_flag"
28736 || test ! -s conftest.err'
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest.$ac_objext'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_header_compiler=yes
28749 else
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28753 ac_header_compiler=no
28755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28757 echo "${ECHO_T}$ac_header_compiler" >&6
28759 # Is the header present?
28760 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28761 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28762 cat >conftest.$ac_ext <<_ACEOF
28763 /* confdefs.h. */
28764 _ACEOF
28765 cat confdefs.h >>conftest.$ac_ext
28766 cat >>conftest.$ac_ext <<_ACEOF
28767 /* end confdefs.h. */
28768 #include <iconv.h>
28769 _ACEOF
28770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28772 ac_status=$?
28773 grep -v '^ *+' conftest.er1 >conftest.err
28774 rm -f conftest.er1
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } >/dev/null; then
28778 if test -s conftest.err; then
28779 ac_cpp_err=$ac_c_preproc_warn_flag
28780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28781 else
28782 ac_cpp_err=
28784 else
28785 ac_cpp_err=yes
28787 if test -z "$ac_cpp_err"; then
28788 ac_header_preproc=yes
28789 else
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 ac_header_preproc=no
28795 rm -f conftest.err conftest.$ac_ext
28796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28797 echo "${ECHO_T}$ac_header_preproc" >&6
28799 # So? What about this header?
28800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28801 yes:no: )
28802 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28803 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28805 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28806 ac_header_preproc=yes
28808 no:yes:* )
28809 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28810 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28812 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28814 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28815 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28816 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28818 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28820 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28822 cat <<\_ASBOX
28823 ## ----------------------------------------- ##
28824 ## Report this to the package-unused lists. ##
28825 ## ----------------------------------------- ##
28826 _ASBOX
28828 sed "s/^/$as_me: WARNING: /" >&2
28830 esac
28831 echo "$as_me:$LINENO: checking for iconv.h" >&5
28832 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28833 if test "${ac_cv_header_iconv_h+set}" = set; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28835 else
28836 ac_cv_header_iconv_h=$ac_header_preproc
28838 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28839 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28842 if test $ac_cv_header_iconv_h = yes; then
28843 ac_has_iconv_h=yes
28844 else
28845 ac_has_iconv_h=no
28849 if test "${ac_cv_header_langinfo_h+set}" = set; then
28850 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28851 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28852 if test "${ac_cv_header_langinfo_h+set}" = set; then
28853 echo $ECHO_N "(cached) $ECHO_C" >&6
28855 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28857 else
28858 # Is the header compilable?
28859 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28860 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h. */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 $ac_includes_default
28868 #include <langinfo.h>
28869 _ACEOF
28870 rm -f conftest.$ac_objext
28871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28872 (eval $ac_compile) 2>conftest.er1
28873 ac_status=$?
28874 grep -v '^ *+' conftest.er1 >conftest.err
28875 rm -f conftest.er1
28876 cat conftest.err >&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); } &&
28879 { ac_try='test -z "$ac_c_werror_flag"
28880 || test ! -s conftest.err'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; } &&
28886 { ac_try='test -s conftest.$ac_objext'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 ac_header_compiler=yes
28893 else
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_header_compiler=no
28899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28901 echo "${ECHO_T}$ac_header_compiler" >&6
28903 # Is the header present?
28904 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28905 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28906 cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h. */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h. */
28912 #include <langinfo.h>
28913 _ACEOF
28914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28916 ac_status=$?
28917 grep -v '^ *+' conftest.er1 >conftest.err
28918 rm -f conftest.er1
28919 cat conftest.err >&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); } >/dev/null; then
28922 if test -s conftest.err; then
28923 ac_cpp_err=$ac_c_preproc_warn_flag
28924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28925 else
28926 ac_cpp_err=
28928 else
28929 ac_cpp_err=yes
28931 if test -z "$ac_cpp_err"; then
28932 ac_header_preproc=yes
28933 else
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 ac_header_preproc=no
28939 rm -f conftest.err conftest.$ac_ext
28940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28941 echo "${ECHO_T}$ac_header_preproc" >&6
28943 # So? What about this header?
28944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28945 yes:no: )
28946 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28947 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
28949 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
28950 ac_header_preproc=yes
28952 no:yes:* )
28953 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
28954 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
28956 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
28957 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
28958 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
28959 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
28960 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
28962 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
28964 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
28966 cat <<\_ASBOX
28967 ## ----------------------------------------- ##
28968 ## Report this to the package-unused lists. ##
28969 ## ----------------------------------------- ##
28970 _ASBOX
28972 sed "s/^/$as_me: WARNING: /" >&2
28974 esac
28975 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28976 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28977 if test "${ac_cv_header_langinfo_h+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979 else
28980 ac_cv_header_langinfo_h=$ac_header_preproc
28982 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28983 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28986 if test $ac_cv_header_langinfo_h = yes; then
28987 ac_has_langinfo_h=yes
28988 else
28989 ac_has_langinfo_h=no
28994 # Check for existence of libiconv.a providing XPG2 wchar_t support.
28995 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
28996 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
28997 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000 ac_check_lib_save_LIBS=$LIBS
29001 LIBS="-liconv $LIBS"
29002 if test x$gcc_no_link = xyes; then
29003 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29004 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29005 { (exit 1); exit 1; }; }
29007 cat >conftest.$ac_ext <<_ACEOF
29008 /* confdefs.h. */
29009 _ACEOF
29010 cat confdefs.h >>conftest.$ac_ext
29011 cat >>conftest.$ac_ext <<_ACEOF
29012 /* end confdefs.h. */
29014 /* Override any gcc2 internal prototype to avoid an error. */
29015 #ifdef __cplusplus
29016 extern "C"
29017 #endif
29018 /* We use char because int might match the return type of a gcc2
29019 builtin and then its argument prototype would still apply. */
29020 char iconv ();
29022 main ()
29024 iconv ();
29026 return 0;
29028 _ACEOF
29029 rm -f conftest.$ac_objext conftest$ac_exeext
29030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29031 (eval $ac_link) 2>conftest.er1
29032 ac_status=$?
29033 grep -v '^ *+' conftest.er1 >conftest.err
29034 rm -f conftest.er1
29035 cat conftest.err >&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } &&
29038 { ac_try='test -z "$ac_c_werror_flag"
29039 || test ! -s conftest.err'
29040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041 (eval $ac_try) 2>&5
29042 ac_status=$?
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); }; } &&
29045 { ac_try='test -s conftest$ac_exeext'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29048 ac_status=$?
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; }; then
29051 ac_cv_lib_iconv_iconv=yes
29052 else
29053 echo "$as_me: failed program was:" >&5
29054 sed 's/^/| /' conftest.$ac_ext >&5
29056 ac_cv_lib_iconv_iconv=no
29058 rm -f conftest.err conftest.$ac_objext \
29059 conftest$ac_exeext conftest.$ac_ext
29060 LIBS=$ac_check_lib_save_LIBS
29062 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29063 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29064 if test $ac_cv_lib_iconv_iconv = yes; then
29065 libiconv="-liconv"
29068 ac_save_LIBS="$LIBS"
29069 LIBS="$LIBS $libiconv"
29075 for ac_func in iconv_open iconv_close iconv nl_langinfo
29077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29078 echo "$as_me:$LINENO: checking for $ac_func" >&5
29079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29080 if eval "test \"\${$as_ac_var+set}\" = set"; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 else
29083 if test x$gcc_no_link = xyes; then
29084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29086 { (exit 1); exit 1; }; }
29088 cat >conftest.$ac_ext <<_ACEOF
29089 /* confdefs.h. */
29090 _ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h. */
29094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29096 #define $ac_func innocuous_$ac_func
29098 /* System header to define __stub macros and hopefully few prototypes,
29099 which can conflict with char $ac_func (); below.
29100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29101 <limits.h> exists even on freestanding compilers. */
29103 #ifdef __STDC__
29104 # include <limits.h>
29105 #else
29106 # include <assert.h>
29107 #endif
29109 #undef $ac_func
29111 /* Override any gcc2 internal prototype to avoid an error. */
29112 #ifdef __cplusplus
29113 extern "C"
29115 #endif
29116 /* We use char because int might match the return type of a gcc2
29117 builtin and then its argument prototype would still apply. */
29118 char $ac_func ();
29119 /* The GNU C library defines this for functions which it implements
29120 to always fail with ENOSYS. Some functions are actually named
29121 something starting with __ and the normal name is an alias. */
29122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29123 choke me
29124 #else
29125 char (*f) () = $ac_func;
29126 #endif
29127 #ifdef __cplusplus
29129 #endif
29132 main ()
29134 return f != $ac_func;
29136 return 0;
29138 _ACEOF
29139 rm -f conftest.$ac_objext conftest$ac_exeext
29140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141 (eval $ac_link) 2>conftest.er1
29142 ac_status=$?
29143 grep -v '^ *+' conftest.er1 >conftest.err
29144 rm -f conftest.er1
29145 cat conftest.err >&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); } &&
29148 { ac_try='test -z "$ac_c_werror_flag"
29149 || test ! -s conftest.err'
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; } &&
29155 { ac_try='test -s conftest$ac_exeext'
29156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157 (eval $ac_try) 2>&5
29158 ac_status=$?
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; }; then
29161 eval "$as_ac_var=yes"
29162 else
29163 echo "$as_me: failed program was:" >&5
29164 sed 's/^/| /' conftest.$ac_ext >&5
29166 eval "$as_ac_var=no"
29168 rm -f conftest.err conftest.$ac_objext \
29169 conftest$ac_exeext conftest.$ac_ext
29171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29173 if test `eval echo '${'$as_ac_var'}'` = yes; then
29174 cat >>confdefs.h <<_ACEOF
29175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29176 _ACEOF
29177 ac_XPG2funcs=yes
29178 else
29179 ac_XPG2funcs=no
29181 done
29184 LIBS="$ac_save_LIBS"
29186 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29187 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29188 if test x"$ac_has_iconv_h" = xyes &&
29189 test x"$ac_has_langinfo_h" = xyes &&
29190 test x"$ac_XPG2funcs" = xyes;
29191 then
29192 ac_XPG2_wchar_t=yes
29193 else
29194 ac_XPG2_wchar_t=no
29196 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29197 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29199 # At the moment, only enable wchar_t specializations if all the
29200 # above support is present.
29201 if test x"$ac_isoC99_wchar_t" = xyes &&
29202 test x"$ac_XPG2_wchar_t" = xyes;
29203 then
29204 cat >>confdefs.h <<\_ACEOF
29205 #define _GLIBCXX_USE_WCHAR_T 1
29206 _ACEOF
29208 enable_wchar_t=yes
29211 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29212 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29213 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29214 echo "${ECHO_T}$enable_wchar_t" >&6
29217 ac_test_CXXFLAGS="${CXXFLAGS+set}"
29218 ac_save_CXXFLAGS="$CXXFLAGS"
29219 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29222 echo "$as_me:$LINENO: checking for strtold declaration" >&5
29223 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29224 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29225 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29231 ac_ext=cc
29232 ac_cpp='$CXXCPP $CPPFLAGS'
29233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29237 cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h. */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29243 #include <stdlib.h>
29245 main ()
29247 strtold(0, 0);
29249 return 0;
29251 _ACEOF
29252 rm -f conftest.$ac_objext
29253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29254 (eval $ac_compile) 2>conftest.er1
29255 ac_status=$?
29256 grep -v '^ *+' conftest.er1 >conftest.err
29257 rm -f conftest.er1
29258 cat conftest.err >&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } &&
29261 { ac_try='test -z "$ac_cxx_werror_flag"
29262 || test ! -s conftest.err'
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; } &&
29268 { ac_try='test -s conftest.$ac_objext'
29269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270 (eval $ac_try) 2>&5
29271 ac_status=$?
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
29274 glibcxx_cv_func_strtold_use=yes
29275 else
29276 echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29279 glibcxx_cv_func_strtold_use=no
29281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29282 ac_ext=c
29283 ac_cpp='$CPP $CPPFLAGS'
29284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29292 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29293 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29294 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29296 for ac_func in strtold
29298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29299 echo "$as_me:$LINENO: checking for $ac_func" >&5
29300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29301 if eval "test \"\${$as_ac_var+set}\" = set"; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29303 else
29304 if test x$gcc_no_link = xyes; then
29305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29307 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29317 #define $ac_func innocuous_$ac_func
29319 /* System header to define __stub macros and hopefully few prototypes,
29320 which can conflict with char $ac_func (); below.
29321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29322 <limits.h> exists even on freestanding compilers. */
29324 #ifdef __STDC__
29325 # include <limits.h>
29326 #else
29327 # include <assert.h>
29328 #endif
29330 #undef $ac_func
29332 /* Override any gcc2 internal prototype to avoid an error. */
29333 #ifdef __cplusplus
29334 extern "C"
29336 #endif
29337 /* We use char because int might match the return type of a gcc2
29338 builtin and then its argument prototype would still apply. */
29339 char $ac_func ();
29340 /* The GNU C library defines this for functions which it implements
29341 to always fail with ENOSYS. Some functions are actually named
29342 something starting with __ and the normal name is an alias. */
29343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29344 choke me
29345 #else
29346 char (*f) () = $ac_func;
29347 #endif
29348 #ifdef __cplusplus
29350 #endif
29353 main ()
29355 return f != $ac_func;
29357 return 0;
29359 _ACEOF
29360 rm -f conftest.$ac_objext conftest$ac_exeext
29361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29362 (eval $ac_link) 2>conftest.er1
29363 ac_status=$?
29364 grep -v '^ *+' conftest.er1 >conftest.err
29365 rm -f conftest.er1
29366 cat conftest.err >&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); } &&
29369 { ac_try='test -z "$ac_c_werror_flag"
29370 || test ! -s conftest.err'
29371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372 (eval $ac_try) 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; } &&
29376 { ac_try='test -s conftest$ac_exeext'
29377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378 (eval $ac_try) 2>&5
29379 ac_status=$?
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); }; }; then
29382 eval "$as_ac_var=yes"
29383 else
29384 echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29387 eval "$as_ac_var=no"
29389 rm -f conftest.err conftest.$ac_objext \
29390 conftest$ac_exeext conftest.$ac_ext
29392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29394 if test `eval echo '${'$as_ac_var'}'` = yes; then
29395 cat >>confdefs.h <<_ACEOF
29396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29397 _ACEOF
29400 done
29405 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29406 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29407 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29408 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29409 echo $ECHO_N "(cached) $ECHO_C" >&6
29410 else
29414 ac_ext=cc
29415 ac_cpp='$CXXCPP $CPPFLAGS'
29416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29420 cat >conftest.$ac_ext <<_ACEOF
29421 /* confdefs.h. */
29422 _ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h. */
29426 #include <stdlib.h>
29428 main ()
29430 strtof(0, 0);
29432 return 0;
29434 _ACEOF
29435 rm -f conftest.$ac_objext
29436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29437 (eval $ac_compile) 2>conftest.er1
29438 ac_status=$?
29439 grep -v '^ *+' conftest.er1 >conftest.err
29440 rm -f conftest.er1
29441 cat conftest.err >&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } &&
29444 { ac_try='test -z "$ac_cxx_werror_flag"
29445 || test ! -s conftest.err'
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; } &&
29451 { ac_try='test -s conftest.$ac_objext'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 glibcxx_cv_func_strtof_use=yes
29458 else
29459 echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29462 glibcxx_cv_func_strtof_use=no
29464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29465 ac_ext=c
29466 ac_cpp='$CPP $CPPFLAGS'
29467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29475 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29476 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29477 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29479 for ac_func in strtof
29481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29482 echo "$as_me:$LINENO: checking for $ac_func" >&5
29483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29484 if eval "test \"\${$as_ac_var+set}\" = set"; then
29485 echo $ECHO_N "(cached) $ECHO_C" >&6
29486 else
29487 if test x$gcc_no_link = xyes; then
29488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29490 { (exit 1); exit 1; }; }
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29500 #define $ac_func innocuous_$ac_func
29502 /* System header to define __stub macros and hopefully few prototypes,
29503 which can conflict with char $ac_func (); below.
29504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29505 <limits.h> exists even on freestanding compilers. */
29507 #ifdef __STDC__
29508 # include <limits.h>
29509 #else
29510 # include <assert.h>
29511 #endif
29513 #undef $ac_func
29515 /* Override any gcc2 internal prototype to avoid an error. */
29516 #ifdef __cplusplus
29517 extern "C"
29519 #endif
29520 /* We use char because int might match the return type of a gcc2
29521 builtin and then its argument prototype would still apply. */
29522 char $ac_func ();
29523 /* The GNU C library defines this for functions which it implements
29524 to always fail with ENOSYS. Some functions are actually named
29525 something starting with __ and the normal name is an alias. */
29526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29527 choke me
29528 #else
29529 char (*f) () = $ac_func;
29530 #endif
29531 #ifdef __cplusplus
29533 #endif
29536 main ()
29538 return f != $ac_func;
29540 return 0;
29542 _ACEOF
29543 rm -f conftest.$ac_objext conftest$ac_exeext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29545 (eval $ac_link) 2>conftest.er1
29546 ac_status=$?
29547 grep -v '^ *+' conftest.er1 >conftest.err
29548 rm -f conftest.er1
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } &&
29552 { ac_try='test -z "$ac_c_werror_flag"
29553 || test ! -s conftest.err'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; } &&
29559 { ac_try='test -s conftest$ac_exeext'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; }; then
29565 eval "$as_ac_var=yes"
29566 else
29567 echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29570 eval "$as_ac_var=no"
29572 rm -f conftest.err conftest.$ac_objext \
29573 conftest$ac_exeext conftest.$ac_ext
29575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29577 if test `eval echo '${'$as_ac_var'}'` = yes; then
29578 cat >>confdefs.h <<_ACEOF
29579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29580 _ACEOF
29583 done
29588 CXXFLAGS="$ac_save_CXXFLAGS"
29591 # For showmanyc_helper().
29594 for ac_header in sys/ioctl.h sys/filio.h
29596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29598 echo "$as_me:$LINENO: checking for $ac_header" >&5
29599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29605 else
29606 # Is the header compilable?
29607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29609 cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h. */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 $ac_includes_default
29616 #include <$ac_header>
29617 _ACEOF
29618 rm -f conftest.$ac_objext
29619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29620 (eval $ac_compile) 2>conftest.er1
29621 ac_status=$?
29622 grep -v '^ *+' conftest.er1 >conftest.err
29623 rm -f conftest.er1
29624 cat conftest.err >&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } &&
29627 { ac_try='test -z "$ac_c_werror_flag"
29628 || test ! -s conftest.err'
29629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630 (eval $ac_try) 2>&5
29631 ac_status=$?
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); }; } &&
29634 { ac_try='test -s conftest.$ac_objext'
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; }; then
29640 ac_header_compiler=yes
29641 else
29642 echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29645 ac_header_compiler=no
29647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649 echo "${ECHO_T}$ac_header_compiler" >&6
29651 # Is the header present?
29652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h. */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 #include <$ac_header>
29661 _ACEOF
29662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29664 ac_status=$?
29665 grep -v '^ *+' conftest.er1 >conftest.err
29666 rm -f conftest.er1
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } >/dev/null; then
29670 if test -s conftest.err; then
29671 ac_cpp_err=$ac_c_preproc_warn_flag
29672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29673 else
29674 ac_cpp_err=
29676 else
29677 ac_cpp_err=yes
29679 if test -z "$ac_cpp_err"; then
29680 ac_header_preproc=yes
29681 else
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ac_header_preproc=no
29687 rm -f conftest.err conftest.$ac_ext
29688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29689 echo "${ECHO_T}$ac_header_preproc" >&6
29691 # So? What about this header?
29692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29693 yes:no: )
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29698 ac_header_preproc=yes
29700 no:yes:* )
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29714 cat <<\_ASBOX
29715 ## ----------------------------------------- ##
29716 ## Report this to the package-unused lists. ##
29717 ## ----------------------------------------- ##
29718 _ASBOX
29720 sed "s/^/$as_me: WARNING: /" >&2
29722 esac
29723 echo "$as_me:$LINENO: checking for $ac_header" >&5
29724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 else
29728 eval "$as_ac_Header=\$ac_header_preproc"
29730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29735 cat >>confdefs.h <<_ACEOF
29736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29737 _ACEOF
29741 done
29744 if test "${glibcxx_cv_POLL+set}" = set; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29748 if test x$gcc_no_link = xyes; then
29749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29751 { (exit 1); exit 1; }; }
29753 cat >conftest.$ac_ext <<_ACEOF
29754 /* confdefs.h. */
29755 _ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h. */
29759 #include <poll.h>
29761 main ()
29763 struct pollfd pfd[1];
29764 pfd[0].events = POLLIN;
29765 poll(pfd, 1, 0);
29767 return 0;
29769 _ACEOF
29770 rm -f conftest.$ac_objext conftest$ac_exeext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29772 (eval $ac_link) 2>conftest.er1
29773 ac_status=$?
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
29779 { ac_try='test -z "$ac_c_werror_flag"
29780 || test ! -s conftest.err'
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest$ac_exeext'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29789 ac_status=$?
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
29792 glibcxx_cv_POLL=yes
29793 else
29794 echo "$as_me: failed program was:" >&5
29795 sed 's/^/| /' conftest.$ac_ext >&5
29797 glibcxx_cv_POLL=no
29799 rm -f conftest.err conftest.$ac_objext \
29800 conftest$ac_exeext conftest.$ac_ext
29804 if test $glibcxx_cv_POLL = yes; then
29805 cat >>confdefs.h <<\_ACEOF
29806 #define HAVE_POLL 1
29807 _ACEOF
29812 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814 else
29816 if test x$gcc_no_link = xyes; then
29817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29819 { (exit 1); exit 1; }; }
29821 cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h. */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h. */
29827 #include <sys/stat.h>
29829 main ()
29831 struct stat buffer;
29832 fstat(0, &buffer);
29833 S_ISREG(buffer.st_mode);
29835 return 0;
29837 _ACEOF
29838 rm -f conftest.$ac_objext conftest$ac_exeext
29839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29840 (eval $ac_link) 2>conftest.er1
29841 ac_status=$?
29842 grep -v '^ *+' conftest.er1 >conftest.err
29843 rm -f conftest.er1
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } &&
29847 { ac_try='test -z "$ac_c_werror_flag"
29848 || test ! -s conftest.err'
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29851 ac_status=$?
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; } &&
29854 { ac_try='test -s conftest$ac_exeext'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 glibcxx_cv_S_ISREG=yes
29861 else
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 glibcxx_cv_S_ISREG=no
29867 rm -f conftest.err conftest.$ac_objext \
29868 conftest$ac_exeext conftest.$ac_ext
29872 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29876 if test x$gcc_no_link = xyes; then
29877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29879 { (exit 1); exit 1; }; }
29881 cat >conftest.$ac_ext <<_ACEOF
29882 /* confdefs.h. */
29883 _ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h. */
29887 #include <sys/stat.h>
29889 main ()
29891 struct stat buffer;
29892 fstat(0, &buffer);
29893 S_IFREG & buffer.st_mode;
29895 return 0;
29897 _ACEOF
29898 rm -f conftest.$ac_objext conftest$ac_exeext
29899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29900 (eval $ac_link) 2>conftest.er1
29901 ac_status=$?
29902 grep -v '^ *+' conftest.er1 >conftest.err
29903 rm -f conftest.er1
29904 cat conftest.err >&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); } &&
29907 { ac_try='test -z "$ac_c_werror_flag"
29908 || test ! -s conftest.err'
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; } &&
29914 { ac_try='test -s conftest$ac_exeext'
29915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29916 (eval $ac_try) 2>&5
29917 ac_status=$?
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); }; }; then
29920 glibcxx_cv_S_IFREG=yes
29921 else
29922 echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29925 glibcxx_cv_S_IFREG=no
29927 rm -f conftest.err conftest.$ac_objext \
29928 conftest$ac_exeext conftest.$ac_ext
29932 if test $glibcxx_cv_S_ISREG = yes; then
29933 cat >>confdefs.h <<\_ACEOF
29934 #define HAVE_S_ISREG 1
29935 _ACEOF
29937 elif test $glibcxx_cv_S_IFREG = yes; then
29938 cat >>confdefs.h <<\_ACEOF
29939 #define HAVE_S_IFREG 1
29940 _ACEOF
29945 # For xsputn_2().
29947 for ac_header in sys/uio.h
29949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29951 echo "$as_me:$LINENO: checking for $ac_header" >&5
29952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29958 else
29959 # Is the header compilable?
29960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h. */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29968 $ac_includes_default
29969 #include <$ac_header>
29970 _ACEOF
29971 rm -f conftest.$ac_objext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29973 (eval $ac_compile) 2>conftest.er1
29974 ac_status=$?
29975 grep -v '^ *+' conftest.er1 >conftest.err
29976 rm -f conftest.er1
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
29980 { ac_try='test -z "$ac_c_werror_flag"
29981 || test ! -s conftest.err'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_header_compiler=yes
29994 else
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29998 ac_header_compiler=no
30000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30002 echo "${ECHO_T}$ac_header_compiler" >&6
30004 # Is the header present?
30005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30007 cat >conftest.$ac_ext <<_ACEOF
30008 /* confdefs.h. */
30009 _ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h. */
30013 #include <$ac_header>
30014 _ACEOF
30015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30017 ac_status=$?
30018 grep -v '^ *+' conftest.er1 >conftest.err
30019 rm -f conftest.er1
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } >/dev/null; then
30023 if test -s conftest.err; then
30024 ac_cpp_err=$ac_c_preproc_warn_flag
30025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30026 else
30027 ac_cpp_err=
30029 else
30030 ac_cpp_err=yes
30032 if test -z "$ac_cpp_err"; then
30033 ac_header_preproc=yes
30034 else
30035 echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.$ac_ext >&5
30038 ac_header_preproc=no
30040 rm -f conftest.err conftest.$ac_ext
30041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30042 echo "${ECHO_T}$ac_header_preproc" >&6
30044 # So? What about this header?
30045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30046 yes:no: )
30047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30051 ac_header_preproc=yes
30053 no:yes:* )
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30067 cat <<\_ASBOX
30068 ## ----------------------------------------- ##
30069 ## Report this to the package-unused lists. ##
30070 ## ----------------------------------------- ##
30071 _ASBOX
30073 sed "s/^/$as_me: WARNING: /" >&2
30075 esac
30076 echo "$as_me:$LINENO: checking for $ac_header" >&5
30077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080 else
30081 eval "$as_ac_Header=\$ac_header_preproc"
30083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30088 cat >>confdefs.h <<_ACEOF
30089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30090 _ACEOF
30094 done
30097 if test "${glibcxx_cv_WRITEV+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30099 else
30101 if test x$gcc_no_link = xyes; then
30102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30104 { (exit 1); exit 1; }; }
30106 cat >conftest.$ac_ext <<_ACEOF
30107 /* confdefs.h. */
30108 _ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 #include <sys/uio.h>
30114 main ()
30116 struct iovec iov[2];
30117 writev(0, iov, 0);
30119 return 0;
30121 _ACEOF
30122 rm -f conftest.$ac_objext conftest$ac_exeext
30123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30124 (eval $ac_link) 2>conftest.er1
30125 ac_status=$?
30126 grep -v '^ *+' conftest.er1 >conftest.err
30127 rm -f conftest.er1
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } &&
30131 { ac_try='test -z "$ac_c_werror_flag"
30132 || test ! -s conftest.err'
30133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30134 (eval $ac_try) 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; } &&
30138 { ac_try='test -s conftest$ac_exeext'
30139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30140 (eval $ac_try) 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; }; then
30144 glibcxx_cv_WRITEV=yes
30145 else
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 glibcxx_cv_WRITEV=no
30151 rm -f conftest.err conftest.$ac_objext \
30152 conftest$ac_exeext conftest.$ac_ext
30156 if test $glibcxx_cv_WRITEV = yes; then
30157 cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_WRITEV 1
30159 _ACEOF
30164 # For the __streamoff_base_type typedef.
30166 if test "${glibcxx_cv_INT64_T+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 else
30170 cat >conftest.$ac_ext <<_ACEOF
30171 /* confdefs.h. */
30172 _ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h. */
30176 #include <stdint.h>
30178 main ()
30180 int64_t var;
30182 return 0;
30184 _ACEOF
30185 rm -f conftest.$ac_objext
30186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30187 (eval $ac_compile) 2>conftest.er1
30188 ac_status=$?
30189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag"
30195 || test ! -s conftest.err'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest.$ac_objext'
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 glibcxx_cv_INT64_T=yes
30208 else
30209 echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30212 glibcxx_cv_INT64_T=no
30214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30218 if test $glibcxx_cv_INT64_T = yes; then
30219 cat >>confdefs.h <<\_ACEOF
30220 #define HAVE_INT64_T 1
30221 _ACEOF
30226 # For LFS support.
30230 ac_ext=cc
30231 ac_cpp='$CXXCPP $CPPFLAGS'
30232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30236 ac_save_CXXFLAGS="$CXXFLAGS"
30237 CXXFLAGS="$CXXFLAGS -fno-exceptions"
30238 if test "${glibcxx_cv_LFS+set}" = set; then
30239 echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30242 if test x$gcc_no_link = xyes; then
30243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30245 { (exit 1); exit 1; }; }
30247 cat >conftest.$ac_ext <<_ACEOF
30248 /* confdefs.h. */
30249 _ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h. */
30253 #include <unistd.h>
30254 #include <stdio.h>
30257 main ()
30259 FILE* fp;
30260 fopen64("t", "w");
30261 fseeko64(fp, 0, SEEK_CUR);
30262 ftello64(fp);
30263 lseek64(1, 0, SEEK_CUR);
30265 return 0;
30267 _ACEOF
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30270 (eval $ac_link) 2>conftest.er1
30271 ac_status=$?
30272 grep -v '^ *+' conftest.er1 >conftest.err
30273 rm -f conftest.er1
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_cxx_werror_flag"
30278 || test ! -s conftest.err'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest$ac_exeext'
30285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 glibcxx_cv_LFS=yes
30291 else
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30295 glibcxx_cv_LFS=no
30297 rm -f conftest.err conftest.$ac_objext \
30298 conftest$ac_exeext conftest.$ac_ext
30302 if test $glibcxx_cv_LFS = yes; then
30303 cat >>confdefs.h <<\_ACEOF
30304 #define _GLIBCXX_USE_LFS 1
30305 _ACEOF
30308 CXXFLAGS="$ac_save_CXXFLAGS"
30309 ac_ext=c
30310 ac_cpp='$CPP $CPPFLAGS'
30311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30318 if test "${ac_cv_header_locale_h+set}" = set; then
30319 echo "$as_me:$LINENO: checking for locale.h" >&5
30320 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30321 if test "${ac_cv_header_locale_h+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30325 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30326 else
30327 # Is the header compilable?
30328 echo "$as_me:$LINENO: checking locale.h usability" >&5
30329 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h. */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 $ac_includes_default
30337 #include <locale.h>
30338 _ACEOF
30339 rm -f conftest.$ac_objext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30341 (eval $ac_compile) 2>conftest.er1
30342 ac_status=$?
30343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag"
30349 || test ! -s conftest.err'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30352 ac_status=$?
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest.$ac_objext'
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30358 ac_status=$?
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
30361 ac_header_compiler=yes
30362 else
30363 echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30366 ac_header_compiler=no
30368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30370 echo "${ECHO_T}$ac_header_compiler" >&6
30372 # Is the header present?
30373 echo "$as_me:$LINENO: checking locale.h presence" >&5
30374 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30375 cat >conftest.$ac_ext <<_ACEOF
30376 /* confdefs.h. */
30377 _ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h. */
30381 #include <locale.h>
30382 _ACEOF
30383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30385 ac_status=$?
30386 grep -v '^ *+' conftest.er1 >conftest.err
30387 rm -f conftest.er1
30388 cat conftest.err >&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } >/dev/null; then
30391 if test -s conftest.err; then
30392 ac_cpp_err=$ac_c_preproc_warn_flag
30393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30394 else
30395 ac_cpp_err=
30397 else
30398 ac_cpp_err=yes
30400 if test -z "$ac_cpp_err"; then
30401 ac_header_preproc=yes
30402 else
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30406 ac_header_preproc=no
30408 rm -f conftest.err conftest.$ac_ext
30409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 echo "${ECHO_T}$ac_header_preproc" >&6
30412 # So? What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30414 yes:no: )
30415 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30416 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30418 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30419 ac_header_preproc=yes
30421 no:yes:* )
30422 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30423 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30425 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30427 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30429 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30431 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30433 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30435 cat <<\_ASBOX
30436 ## ----------------------------------------- ##
30437 ## Report this to the package-unused lists. ##
30438 ## ----------------------------------------- ##
30439 _ASBOX
30441 sed "s/^/$as_me: WARNING: /" >&2
30443 esac
30444 echo "$as_me:$LINENO: checking for locale.h" >&5
30445 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30446 if test "${ac_cv_header_locale_h+set}" = set; then
30447 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449 ac_cv_header_locale_h=$ac_header_preproc
30451 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30452 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30455 if test $ac_cv_header_locale_h = yes; then
30457 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30458 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30459 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30461 else
30462 if test x$gcc_no_link = xyes; then
30463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30465 { (exit 1); exit 1; }; }
30467 cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h. */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 #include <locale.h>
30475 main ()
30477 return LC_MESSAGES
30479 return 0;
30481 _ACEOF
30482 rm -f conftest.$ac_objext conftest$ac_exeext
30483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30484 (eval $ac_link) 2>conftest.er1
30485 ac_status=$?
30486 grep -v '^ *+' conftest.er1 >conftest.err
30487 rm -f conftest.er1
30488 cat conftest.err >&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } &&
30491 { ac_try='test -z "$ac_c_werror_flag"
30492 || test ! -s conftest.err'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
30498 { ac_try='test -s conftest$ac_exeext'
30499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500 (eval $ac_try) 2>&5
30501 ac_status=$?
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }; }; then
30504 ac_cv_val_LC_MESSAGES=yes
30505 else
30506 echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30509 ac_cv_val_LC_MESSAGES=no
30511 rm -f conftest.err conftest.$ac_objext \
30512 conftest$ac_exeext conftest.$ac_ext
30514 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30515 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30516 if test $ac_cv_val_LC_MESSAGES = yes; then
30517 cat >>confdefs.h <<\_ACEOF
30518 #define HAVE_LC_MESSAGES 1
30519 _ACEOF
30528 cat >conftest.$ac_ext <<_ACEOF
30529 /* confdefs.h. */
30530 _ACEOF
30531 cat confdefs.h >>conftest.$ac_ext
30532 cat >>conftest.$ac_ext <<_ACEOF
30533 /* end confdefs.h. */
30534 #include <setjmp.h>
30536 main ()
30538 sigjmp_buf env;
30539 while (! sigsetjmp (env, 1))
30540 siglongjmp (env, 1);
30543 return 0;
30545 _ACEOF
30546 rm -f conftest.$ac_objext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30548 (eval $ac_compile) 2>conftest.er1
30549 ac_status=$?
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
30555 { ac_try='test -z "$ac_c_werror_flag"
30556 || test ! -s conftest.err'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest.$ac_objext'
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30569 cat >>confdefs.h <<\_ACEOF
30570 #define HAVE_SIGSETJMP 1
30571 _ACEOF
30573 else
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30580 if test x$gcc_no_link = xyes; then
30581 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30582 ac_cv_func_mmap_fixed_mapped=no
30585 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30588 for ac_header in stdlib.h unistd.h
30590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30592 echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30599 else
30600 # Is the header compilable?
30601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30603 cat >conftest.$ac_ext <<_ACEOF
30604 /* confdefs.h. */
30605 _ACEOF
30606 cat confdefs.h >>conftest.$ac_ext
30607 cat >>conftest.$ac_ext <<_ACEOF
30608 /* end confdefs.h. */
30609 $ac_includes_default
30610 #include <$ac_header>
30611 _ACEOF
30612 rm -f conftest.$ac_objext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30614 (eval $ac_compile) 2>conftest.er1
30615 ac_status=$?
30616 grep -v '^ *+' conftest.er1 >conftest.err
30617 rm -f conftest.er1
30618 cat conftest.err >&5
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } &&
30621 { ac_try='test -z "$ac_c_werror_flag"
30622 || test ! -s conftest.err'
30623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624 (eval $ac_try) 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; } &&
30628 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30634 ac_header_compiler=yes
30635 else
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30639 ac_header_compiler=no
30641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30643 echo "${ECHO_T}$ac_header_compiler" >&6
30645 # Is the header present?
30646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30648 cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h. */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 #include <$ac_header>
30655 _ACEOF
30656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30658 ac_status=$?
30659 grep -v '^ *+' conftest.er1 >conftest.err
30660 rm -f conftest.er1
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } >/dev/null; then
30664 if test -s conftest.err; then
30665 ac_cpp_err=$ac_c_preproc_warn_flag
30666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30667 else
30668 ac_cpp_err=
30670 else
30671 ac_cpp_err=yes
30673 if test -z "$ac_cpp_err"; then
30674 ac_header_preproc=yes
30675 else
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 ac_header_preproc=no
30681 rm -f conftest.err conftest.$ac_ext
30682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683 echo "${ECHO_T}$ac_header_preproc" >&6
30685 # So? What about this header?
30686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30687 yes:no: )
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30692 ac_header_preproc=yes
30694 no:yes:* )
30695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30708 cat <<\_ASBOX
30709 ## ----------------------------------------- ##
30710 ## Report this to the package-unused lists. ##
30711 ## ----------------------------------------- ##
30712 _ASBOX
30714 sed "s/^/$as_me: WARNING: /" >&2
30716 esac
30717 echo "$as_me:$LINENO: checking for $ac_header" >&5
30718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30721 else
30722 eval "$as_ac_Header=\$ac_header_preproc"
30724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729 cat >>confdefs.h <<_ACEOF
30730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30731 _ACEOF
30735 done
30738 for ac_func in getpagesize
30740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30741 echo "$as_me:$LINENO: checking for $ac_func" >&5
30742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30743 if eval "test \"\${$as_ac_var+set}\" = set"; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30745 else
30746 if test x$gcc_no_link = xyes; then
30747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30749 { (exit 1); exit 1; }; }
30751 cat >conftest.$ac_ext <<_ACEOF
30752 /* confdefs.h. */
30753 _ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h. */
30757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30759 #define $ac_func innocuous_$ac_func
30761 /* System header to define __stub macros and hopefully few prototypes,
30762 which can conflict with char $ac_func (); below.
30763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30764 <limits.h> exists even on freestanding compilers. */
30766 #ifdef __STDC__
30767 # include <limits.h>
30768 #else
30769 # include <assert.h>
30770 #endif
30772 #undef $ac_func
30774 /* Override any gcc2 internal prototype to avoid an error. */
30775 #ifdef __cplusplus
30776 extern "C"
30778 #endif
30779 /* We use char because int might match the return type of a gcc2
30780 builtin and then its argument prototype would still apply. */
30781 char $ac_func ();
30782 /* The GNU C library defines this for functions which it implements
30783 to always fail with ENOSYS. Some functions are actually named
30784 something starting with __ and the normal name is an alias. */
30785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30786 choke me
30787 #else
30788 char (*f) () = $ac_func;
30789 #endif
30790 #ifdef __cplusplus
30792 #endif
30795 main ()
30797 return f != $ac_func;
30799 return 0;
30801 _ACEOF
30802 rm -f conftest.$ac_objext conftest$ac_exeext
30803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804 (eval $ac_link) 2>conftest.er1
30805 ac_status=$?
30806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
30811 { ac_try='test -z "$ac_c_werror_flag"
30812 || test ! -s conftest.err'
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; } &&
30818 { ac_try='test -s conftest$ac_exeext'
30819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30820 (eval $ac_try) 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
30824 eval "$as_ac_var=yes"
30825 else
30826 echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30829 eval "$as_ac_var=no"
30831 rm -f conftest.err conftest.$ac_objext \
30832 conftest$ac_exeext conftest.$ac_ext
30834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30836 if test `eval echo '${'$as_ac_var'}'` = yes; then
30837 cat >>confdefs.h <<_ACEOF
30838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30839 _ACEOF
30842 done
30844 echo "$as_me:$LINENO: checking for working mmap" >&5
30845 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30846 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 else
30849 if test "$cross_compiling" = yes; then
30850 ac_cv_func_mmap_fixed_mapped=no
30851 else
30852 cat >conftest.$ac_ext <<_ACEOF
30853 /* confdefs.h. */
30854 _ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h. */
30858 $ac_includes_default
30859 /* malloc might have been renamed as rpl_malloc. */
30860 #undef malloc
30862 /* Thanks to Mike Haertel and Jim Avera for this test.
30863 Here is a matrix of mmap possibilities:
30864 mmap private not fixed
30865 mmap private fixed at somewhere currently unmapped
30866 mmap private fixed at somewhere already mapped
30867 mmap shared not fixed
30868 mmap shared fixed at somewhere currently unmapped
30869 mmap shared fixed at somewhere already mapped
30870 For private mappings, we should verify that changes cannot be read()
30871 back from the file, nor mmap's back from the file at a different
30872 address. (There have been systems where private was not correctly
30873 implemented like the infamous i386 svr4.0, and systems where the
30874 VM page cache was not coherent with the file system buffer cache
30875 like early versions of FreeBSD and possibly contemporary NetBSD.)
30876 For shared mappings, we should conversely verify that changes get
30877 propagated back to all the places they're supposed to be.
30879 Grep wants private fixed already mapped.
30880 The main things grep needs to know about mmap are:
30881 * does it exist and is it safe to write into the mmap'd area
30882 * how to use it (BSD variants) */
30884 #include <fcntl.h>
30885 #include <sys/mman.h>
30887 #if !STDC_HEADERS && !HAVE_STDLIB_H
30888 char *malloc ();
30889 #endif
30891 /* This mess was copied from the GNU getpagesize.h. */
30892 #if !HAVE_GETPAGESIZE
30893 /* Assume that all systems that can run configure have sys/param.h. */
30894 # if !HAVE_SYS_PARAM_H
30895 # define HAVE_SYS_PARAM_H 1
30896 # endif
30898 # ifdef _SC_PAGESIZE
30899 # define getpagesize() sysconf(_SC_PAGESIZE)
30900 # else /* no _SC_PAGESIZE */
30901 # if HAVE_SYS_PARAM_H
30902 # include <sys/param.h>
30903 # ifdef EXEC_PAGESIZE
30904 # define getpagesize() EXEC_PAGESIZE
30905 # else /* no EXEC_PAGESIZE */
30906 # ifdef NBPG
30907 # define getpagesize() NBPG * CLSIZE
30908 # ifndef CLSIZE
30909 # define CLSIZE 1
30910 # endif /* no CLSIZE */
30911 # else /* no NBPG */
30912 # ifdef NBPC
30913 # define getpagesize() NBPC
30914 # else /* no NBPC */
30915 # ifdef PAGESIZE
30916 # define getpagesize() PAGESIZE
30917 # endif /* PAGESIZE */
30918 # endif /* no NBPC */
30919 # endif /* no NBPG */
30920 # endif /* no EXEC_PAGESIZE */
30921 # else /* no HAVE_SYS_PARAM_H */
30922 # define getpagesize() 8192 /* punt totally */
30923 # endif /* no HAVE_SYS_PARAM_H */
30924 # endif /* no _SC_PAGESIZE */
30926 #endif /* no HAVE_GETPAGESIZE */
30929 main ()
30931 char *data, *data2, *data3;
30932 int i, pagesize;
30933 int fd;
30935 pagesize = getpagesize ();
30937 /* First, make a file with some known garbage in it. */
30938 data = (char *) malloc (pagesize);
30939 if (!data)
30940 exit (1);
30941 for (i = 0; i < pagesize; ++i)
30942 *(data + i) = rand ();
30943 umask (0);
30944 fd = creat ("conftest.mmap", 0600);
30945 if (fd < 0)
30946 exit (1);
30947 if (write (fd, data, pagesize) != pagesize)
30948 exit (1);
30949 close (fd);
30951 /* Next, try to mmap the file at a fixed address which already has
30952 something else allocated at it. If we can, also make sure that
30953 we see the same garbage. */
30954 fd = open ("conftest.mmap", O_RDWR);
30955 if (fd < 0)
30956 exit (1);
30957 data2 = (char *) malloc (2 * pagesize);
30958 if (!data2)
30959 exit (1);
30960 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30961 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30962 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30963 exit (1);
30964 for (i = 0; i < pagesize; ++i)
30965 if (*(data + i) != *(data2 + i))
30966 exit (1);
30968 /* Finally, make sure that changes to the mapped area do not
30969 percolate back to the file as seen by read(). (This is a bug on
30970 some variants of i386 svr4.0.) */
30971 for (i = 0; i < pagesize; ++i)
30972 *(data2 + i) = *(data2 + i) + 1;
30973 data3 = (char *) malloc (pagesize);
30974 if (!data3)
30975 exit (1);
30976 if (read (fd, data3, pagesize) != pagesize)
30977 exit (1);
30978 for (i = 0; i < pagesize; ++i)
30979 if (*(data + i) != *(data3 + i))
30980 exit (1);
30981 close (fd);
30982 exit (0);
30984 _ACEOF
30985 rm -f conftest$ac_exeext
30986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30987 (eval $ac_link) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; }; then
30996 ac_cv_func_mmap_fixed_mapped=yes
30997 else
30998 echo "$as_me: program exited with status $ac_status" >&5
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 ( exit $ac_status )
31003 ac_cv_func_mmap_fixed_mapped=no
31005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31008 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31009 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31010 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31012 cat >>confdefs.h <<\_ACEOF
31013 #define HAVE_MMAP 1
31014 _ACEOF
31017 rm -f conftest.mmap
31021 else
31023 # This lets us hard-code the functionality we know we'll have in the cross
31024 # target environment. "Let" is a sugar-coated word placed on an especially
31025 # dull and tedious hack, actually.
31027 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31028 # that involve linking, can't be used:
31029 # "cannot open sim-crt0.o"
31030 # "cannot open crt0.o"
31031 # etc. All this is because there currently exists no unified, consistent
31032 # way for top level CC information to be passed down to target directories:
31033 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31034 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31035 # crosses can be removed.
31037 # If Canadian cross, then don't pick up tools from the build directory.
31038 # Used only in GLIBCXX_EXPORT_INCLUDES.
31039 if test -n "$with_cross_host" &&
31040 test x"$build_alias" != x"$with_cross_host" &&
31041 test x"$build" != x"$target";
31042 then
31043 CANADIAN=yes
31044 else
31045 CANADIAN=no
31048 # Construct crosses by hand, eliminating bits that need ld...
31049 # GLIBCXX_CHECK_COMPILER_FEATURES
31050 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31051 # GLIBCXX_CHECK_MATH_SUPPORT
31053 # First, test for "known" system libraries. We may be using newlib even
31054 # on a hosted environment.
31055 if test "x${with_newlib}" = "xyes"; then
31056 os_include_dir="os/newlib"
31057 cat >>confdefs.h <<\_ACEOF
31058 #define HAVE_HYPOT 1
31059 _ACEOF
31062 # GLIBCXX_CHECK_STDLIB_SUPPORT
31063 cat >>confdefs.h <<\_ACEOF
31064 #define HAVE_STRTOF 1
31065 _ACEOF
31067 cat >>confdefs.h <<\_ACEOF
31068 #define HAVE_STRTOLD 1
31069 _ACEOF
31071 # AC_FUNC_MMAP
31072 cat >>confdefs.h <<\_ACEOF
31073 #define HAVE_MMAP 1
31074 _ACEOF
31077 cat >>confdefs.h <<\_ACEOF
31078 #define HAVE_ACOSF 1
31079 _ACEOF
31081 cat >>confdefs.h <<\_ACEOF
31082 #define HAVE_ASINF 1
31083 _ACEOF
31085 cat >>confdefs.h <<\_ACEOF
31086 #define HAVE_ATAN2F 1
31087 _ACEOF
31089 cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_ATANF 1
31091 _ACEOF
31093 cat >>confdefs.h <<\_ACEOF
31094 #define HAVE_CEILF 1
31095 _ACEOF
31097 cat >>confdefs.h <<\_ACEOF
31098 #define HAVE_COPYSIGN 1
31099 _ACEOF
31101 cat >>confdefs.h <<\_ACEOF
31102 #define HAVE_COPYSIGNF 1
31103 _ACEOF
31105 cat >>confdefs.h <<\_ACEOF
31106 #define HAVE_COSF 1
31107 _ACEOF
31109 cat >>confdefs.h <<\_ACEOF
31110 #define HAVE_COSHF 1
31111 _ACEOF
31113 cat >>confdefs.h <<\_ACEOF
31114 #define HAVE_EXPF 1
31115 _ACEOF
31117 cat >>confdefs.h <<\_ACEOF
31118 #define HAVE_FABSF 1
31119 _ACEOF
31121 cat >>confdefs.h <<\_ACEOF
31122 #define HAVE_FLOORF 1
31123 _ACEOF
31125 cat >>confdefs.h <<\_ACEOF
31126 #define HAVE_FMODF 1
31127 _ACEOF
31129 cat >>confdefs.h <<\_ACEOF
31130 #define HAVE_FREXPF 1
31131 _ACEOF
31133 cat >>confdefs.h <<\_ACEOF
31134 #define HAVE_LDEXPF 1
31135 _ACEOF
31137 cat >>confdefs.h <<\_ACEOF
31138 #define HAVE_LOG10F 1
31139 _ACEOF
31141 cat >>confdefs.h <<\_ACEOF
31142 #define HAVE_LOGF 1
31143 _ACEOF
31145 cat >>confdefs.h <<\_ACEOF
31146 #define HAVE_MODFF 1
31147 _ACEOF
31149 cat >>confdefs.h <<\_ACEOF
31150 #define HAVE_POWF 1
31151 _ACEOF
31153 cat >>confdefs.h <<\_ACEOF
31154 #define HAVE_SINF 1
31155 _ACEOF
31157 cat >>confdefs.h <<\_ACEOF
31158 #define HAVE_SINHF 1
31159 _ACEOF
31161 cat >>confdefs.h <<\_ACEOF
31162 #define HAVE_SQRTF 1
31163 _ACEOF
31165 cat >>confdefs.h <<\_ACEOF
31166 #define HAVE_TANF 1
31167 _ACEOF
31169 cat >>confdefs.h <<\_ACEOF
31170 #define HAVE_TANHF 1
31171 _ACEOF
31174 cat >>confdefs.h <<\_ACEOF
31175 #define HAVE_S_ISREG 1
31176 _ACEOF
31178 cat >>confdefs.h <<\_ACEOF
31179 #define HAVE_S_IFREG 1
31180 _ACEOF
31182 else
31184 # Base decisions on target environment.
31185 case "${host}" in
31186 *-darwin*)
31187 # Darwin versions vary, but the linker should work in a cross environment,
31188 # so we just check for all the features here.
31189 # Check for available headers.
31203 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31204 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31205 sys/types.h
31207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31209 echo "$as_me:$LINENO: checking for $ac_header" >&5
31210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31216 else
31217 # Is the header compilable?
31218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31220 cat >conftest.$ac_ext <<_ACEOF
31221 /* confdefs.h. */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 $ac_includes_default
31227 #include <$ac_header>
31228 _ACEOF
31229 rm -f conftest.$ac_objext
31230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31231 (eval $ac_compile) 2>conftest.er1
31232 ac_status=$?
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag"
31239 || test ! -s conftest.err'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest.$ac_objext'
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31248 ac_status=$?
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; }; then
31251 ac_header_compiler=yes
31252 else
31253 echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31256 ac_header_compiler=no
31258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31260 echo "${ECHO_T}$ac_header_compiler" >&6
31262 # Is the header present?
31263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31265 cat >conftest.$ac_ext <<_ACEOF
31266 /* confdefs.h. */
31267 _ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h. */
31271 #include <$ac_header>
31272 _ACEOF
31273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31275 ac_status=$?
31276 grep -v '^ *+' conftest.er1 >conftest.err
31277 rm -f conftest.er1
31278 cat conftest.err >&5
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } >/dev/null; then
31281 if test -s conftest.err; then
31282 ac_cpp_err=$ac_c_preproc_warn_flag
31283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31284 else
31285 ac_cpp_err=
31287 else
31288 ac_cpp_err=yes
31290 if test -z "$ac_cpp_err"; then
31291 ac_header_preproc=yes
31292 else
31293 echo "$as_me: failed program was:" >&5
31294 sed 's/^/| /' conftest.$ac_ext >&5
31296 ac_header_preproc=no
31298 rm -f conftest.err conftest.$ac_ext
31299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31300 echo "${ECHO_T}$ac_header_preproc" >&6
31302 # So? What about this header?
31303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31304 yes:no: )
31305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31309 ac_header_preproc=yes
31311 no:yes:* )
31312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31325 cat <<\_ASBOX
31326 ## ----------------------------------------- ##
31327 ## Report this to the package-unused lists. ##
31328 ## ----------------------------------------- ##
31329 _ASBOX
31331 sed "s/^/$as_me: WARNING: /" >&2
31333 esac
31334 echo "$as_me:$LINENO: checking for $ac_header" >&5
31335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31337 echo $ECHO_N "(cached) $ECHO_C" >&6
31338 else
31339 eval "$as_ac_Header=\$ac_header_preproc"
31341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31346 cat >>confdefs.h <<_ACEOF
31347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31348 _ACEOF
31352 done
31356 # All these tests are for C++; save the language and the compiler flags.
31357 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31358 # found in GLIBCXX_CONFIGURE.
31361 ac_ext=cc
31362 ac_cpp='$CXXCPP $CPPFLAGS'
31363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31367 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31368 ac_save_CXXFLAGS="$CXXFLAGS"
31370 # Check for maintainer-mode bits.
31371 if test x"$USE_MAINTAINER_MODE" = xno; then
31372 WERROR=''
31373 else
31374 WERROR='-Werror'
31377 # Check for -ffunction-sections -fdata-sections
31378 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31379 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31380 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31381 cat >conftest.$ac_ext <<_ACEOF
31382 /* confdefs.h. */
31383 _ACEOF
31384 cat confdefs.h >>conftest.$ac_ext
31385 cat >>conftest.$ac_ext <<_ACEOF
31386 /* end confdefs.h. */
31389 main ()
31391 int foo;
31393 return 0;
31395 _ACEOF
31396 rm -f conftest.$ac_objext
31397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31398 (eval $ac_compile) 2>conftest.er1
31399 ac_status=$?
31400 grep -v '^ *+' conftest.er1 >conftest.err
31401 rm -f conftest.er1
31402 cat conftest.err >&5
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); } &&
31405 { ac_try='test -z "$ac_cxx_werror_flag"
31406 || test ! -s conftest.err'
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest.$ac_objext'
31413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414 (eval $ac_try) 2>&5
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); }; }; then
31418 ac_fdsections=yes
31419 else
31420 echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31423 ac_fdsections=no
31425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31426 if test "$ac_test_CXXFLAGS" = set; then
31427 CXXFLAGS="$ac_save_CXXFLAGS"
31428 else
31429 # this is the suspicious part
31430 CXXFLAGS=''
31432 if test x"$ac_fdsections" = x"yes"; then
31433 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31435 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31436 echo "${ECHO_T}$ac_fdsections" >&6
31438 ac_ext=c
31439 ac_cpp='$CPP $CPPFLAGS'
31440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31447 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31449 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31450 ac_save_CXXFLAGS="$CXXFLAGS"
31451 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31453 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31454 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31455 if test "${ac_cv_lib_m_sin+set}" = set; then
31456 echo $ECHO_N "(cached) $ECHO_C" >&6
31457 else
31458 ac_check_lib_save_LIBS=$LIBS
31459 LIBS="-lm $LIBS"
31460 if test x$gcc_no_link = xyes; then
31461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31463 { (exit 1); exit 1; }; }
31465 cat >conftest.$ac_ext <<_ACEOF
31466 /* confdefs.h. */
31467 _ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h. */
31472 /* Override any gcc2 internal prototype to avoid an error. */
31473 #ifdef __cplusplus
31474 extern "C"
31475 #endif
31476 /* We use char because int might match the return type of a gcc2
31477 builtin and then its argument prototype would still apply. */
31478 char sin ();
31480 main ()
31482 sin ();
31484 return 0;
31486 _ACEOF
31487 rm -f conftest.$ac_objext conftest$ac_exeext
31488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31489 (eval $ac_link) 2>conftest.er1
31490 ac_status=$?
31491 grep -v '^ *+' conftest.er1 >conftest.err
31492 rm -f conftest.er1
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_c_werror_flag"
31497 || test ! -s conftest.err'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; } &&
31503 { ac_try='test -s conftest$ac_exeext'
31504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505 (eval $ac_try) 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; }; then
31509 ac_cv_lib_m_sin=yes
31510 else
31511 echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31514 ac_cv_lib_m_sin=no
31516 rm -f conftest.err conftest.$ac_objext \
31517 conftest$ac_exeext conftest.$ac_ext
31518 LIBS=$ac_check_lib_save_LIBS
31520 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31521 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31522 if test $ac_cv_lib_m_sin = yes; then
31523 libm="-lm"
31526 ac_save_LIBS="$LIBS"
31527 LIBS="$LIBS $libm"
31531 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31532 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31533 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31534 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31535 echo $ECHO_N "(cached) $ECHO_C" >&6
31536 else
31540 ac_ext=cc
31541 ac_cpp='$CXXCPP $CPPFLAGS'
31542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31546 cat >conftest.$ac_ext <<_ACEOF
31547 /* confdefs.h. */
31548 _ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h. */
31552 #include <math.h>
31553 #ifdef HAVE_IEEEFP_H
31554 #include <ieeefp.h>
31555 #endif
31558 main ()
31560 isinf(0);
31562 return 0;
31564 _ACEOF
31565 rm -f conftest.$ac_objext
31566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31567 (eval $ac_compile) 2>conftest.er1
31568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_cxx_werror_flag"
31575 || test ! -s conftest.err'
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); }; } &&
31581 { ac_try='test -s conftest.$ac_objext'
31582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583 (eval $ac_try) 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; }; then
31587 glibcxx_cv_func_isinf_use=yes
31588 else
31589 echo "$as_me: failed program was:" >&5
31590 sed 's/^/| /' conftest.$ac_ext >&5
31592 glibcxx_cv_func_isinf_use=no
31594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31595 ac_ext=c
31596 ac_cpp='$CPP $CPPFLAGS'
31597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31605 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31606 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31608 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31610 for ac_func in isinf
31612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31613 echo "$as_me:$LINENO: checking for $ac_func" >&5
31614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31615 if eval "test \"\${$as_ac_var+set}\" = set"; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617 else
31618 if test x$gcc_no_link = xyes; then
31619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31621 { (exit 1); exit 1; }; }
31623 cat >conftest.$ac_ext <<_ACEOF
31624 /* confdefs.h. */
31625 _ACEOF
31626 cat confdefs.h >>conftest.$ac_ext
31627 cat >>conftest.$ac_ext <<_ACEOF
31628 /* end confdefs.h. */
31629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31631 #define $ac_func innocuous_$ac_func
31633 /* System header to define __stub macros and hopefully few prototypes,
31634 which can conflict with char $ac_func (); below.
31635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31636 <limits.h> exists even on freestanding compilers. */
31638 #ifdef __STDC__
31639 # include <limits.h>
31640 #else
31641 # include <assert.h>
31642 #endif
31644 #undef $ac_func
31646 /* Override any gcc2 internal prototype to avoid an error. */
31647 #ifdef __cplusplus
31648 extern "C"
31650 #endif
31651 /* We use char because int might match the return type of a gcc2
31652 builtin and then its argument prototype would still apply. */
31653 char $ac_func ();
31654 /* The GNU C library defines this for functions which it implements
31655 to always fail with ENOSYS. Some functions are actually named
31656 something starting with __ and the normal name is an alias. */
31657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31658 choke me
31659 #else
31660 char (*f) () = $ac_func;
31661 #endif
31662 #ifdef __cplusplus
31664 #endif
31667 main ()
31669 return f != $ac_func;
31671 return 0;
31673 _ACEOF
31674 rm -f conftest.$ac_objext conftest$ac_exeext
31675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31676 (eval $ac_link) 2>conftest.er1
31677 ac_status=$?
31678 grep -v '^ *+' conftest.er1 >conftest.err
31679 rm -f conftest.er1
31680 cat conftest.err >&5
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); } &&
31683 { ac_try='test -z "$ac_c_werror_flag"
31684 || test ! -s conftest.err'
31685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31686 (eval $ac_try) 2>&5
31687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; } &&
31690 { ac_try='test -s conftest$ac_exeext'
31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692 (eval $ac_try) 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; }; then
31696 eval "$as_ac_var=yes"
31697 else
31698 echo "$as_me: failed program was:" >&5
31699 sed 's/^/| /' conftest.$ac_ext >&5
31701 eval "$as_ac_var=no"
31703 rm -f conftest.err conftest.$ac_objext \
31704 conftest$ac_exeext conftest.$ac_ext
31706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31708 if test `eval echo '${'$as_ac_var'}'` = yes; then
31709 cat >>confdefs.h <<_ACEOF
31710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31711 _ACEOF
31714 done
31716 else
31718 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31719 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31720 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31721 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31723 else
31727 ac_ext=cc
31728 ac_cpp='$CXXCPP $CPPFLAGS'
31729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31733 cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h. */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 #include <math.h>
31740 #ifdef HAVE_IEEEFP_H
31741 #include <ieeefp.h>
31742 #endif
31745 main ()
31747 _isinf(0);
31749 return 0;
31751 _ACEOF
31752 rm -f conftest.$ac_objext
31753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31754 (eval $ac_compile) 2>conftest.er1
31755 ac_status=$?
31756 grep -v '^ *+' conftest.er1 >conftest.err
31757 rm -f conftest.er1
31758 cat conftest.err >&5
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); } &&
31761 { ac_try='test -z "$ac_cxx_werror_flag"
31762 || test ! -s conftest.err'
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); }; } &&
31768 { ac_try='test -s conftest.$ac_objext'
31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770 (eval $ac_try) 2>&5
31771 ac_status=$?
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; }; then
31774 glibcxx_cv_func__isinf_use=yes
31775 else
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31779 glibcxx_cv_func__isinf_use=no
31781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31782 ac_ext=c
31783 ac_cpp='$CPP $CPPFLAGS'
31784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31792 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31793 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31795 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31797 for ac_func in _isinf
31799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31800 echo "$as_me:$LINENO: checking for $ac_func" >&5
31801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31802 if eval "test \"\${$as_ac_var+set}\" = set"; then
31803 echo $ECHO_N "(cached) $ECHO_C" >&6
31804 else
31805 if test x$gcc_no_link = xyes; then
31806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31808 { (exit 1); exit 1; }; }
31810 cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h. */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31818 #define $ac_func innocuous_$ac_func
31820 /* System header to define __stub macros and hopefully few prototypes,
31821 which can conflict with char $ac_func (); below.
31822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31823 <limits.h> exists even on freestanding compilers. */
31825 #ifdef __STDC__
31826 # include <limits.h>
31827 #else
31828 # include <assert.h>
31829 #endif
31831 #undef $ac_func
31833 /* Override any gcc2 internal prototype to avoid an error. */
31834 #ifdef __cplusplus
31835 extern "C"
31837 #endif
31838 /* We use char because int might match the return type of a gcc2
31839 builtin and then its argument prototype would still apply. */
31840 char $ac_func ();
31841 /* The GNU C library defines this for functions which it implements
31842 to always fail with ENOSYS. Some functions are actually named
31843 something starting with __ and the normal name is an alias. */
31844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31845 choke me
31846 #else
31847 char (*f) () = $ac_func;
31848 #endif
31849 #ifdef __cplusplus
31851 #endif
31854 main ()
31856 return f != $ac_func;
31858 return 0;
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31863 (eval $ac_link) 2>conftest.er1
31864 ac_status=$?
31865 grep -v '^ *+' conftest.er1 >conftest.err
31866 rm -f conftest.er1
31867 cat conftest.err >&5
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); } &&
31870 { ac_try='test -z "$ac_c_werror_flag"
31871 || test ! -s conftest.err'
31872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873 (eval $ac_try) 2>&5
31874 ac_status=$?
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; } &&
31877 { ac_try='test -s conftest$ac_exeext'
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31880 ac_status=$?
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; }; then
31883 eval "$as_ac_var=yes"
31884 else
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31888 eval "$as_ac_var=no"
31890 rm -f conftest.err conftest.$ac_objext \
31891 conftest$ac_exeext conftest.$ac_ext
31893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31895 if test `eval echo '${'$as_ac_var'}'` = yes; then
31896 cat >>confdefs.h <<_ACEOF
31897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31898 _ACEOF
31901 done
31908 echo "$as_me:$LINENO: checking for isnan declaration" >&5
31909 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31910 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31911 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31912 echo $ECHO_N "(cached) $ECHO_C" >&6
31913 else
31917 ac_ext=cc
31918 ac_cpp='$CXXCPP $CPPFLAGS'
31919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31923 cat >conftest.$ac_ext <<_ACEOF
31924 /* confdefs.h. */
31925 _ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h. */
31929 #include <math.h>
31930 #ifdef HAVE_IEEEFP_H
31931 #include <ieeefp.h>
31932 #endif
31935 main ()
31937 isnan(0);
31939 return 0;
31941 _ACEOF
31942 rm -f conftest.$ac_objext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31944 (eval $ac_compile) 2>conftest.er1
31945 ac_status=$?
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_cxx_werror_flag"
31952 || test ! -s conftest.err'
31953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954 (eval $ac_try) 2>&5
31955 ac_status=$?
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; } &&
31958 { ac_try='test -s conftest.$ac_objext'
31959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31960 (eval $ac_try) 2>&5
31961 ac_status=$?
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); }; }; then
31964 glibcxx_cv_func_isnan_use=yes
31965 else
31966 echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31969 glibcxx_cv_func_isnan_use=no
31971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31972 ac_ext=c
31973 ac_cpp='$CPP $CPPFLAGS'
31974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31982 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
31983 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
31985 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
31987 for ac_func in isnan
31989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31990 echo "$as_me:$LINENO: checking for $ac_func" >&5
31991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31992 if eval "test \"\${$as_ac_var+set}\" = set"; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31994 else
31995 if test x$gcc_no_link = xyes; then
31996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31998 { (exit 1); exit 1; }; }
32000 cat >conftest.$ac_ext <<_ACEOF
32001 /* confdefs.h. */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008 #define $ac_func innocuous_$ac_func
32010 /* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32015 #ifdef __STDC__
32016 # include <limits.h>
32017 #else
32018 # include <assert.h>
32019 #endif
32021 #undef $ac_func
32023 /* Override any gcc2 internal prototype to avoid an error. */
32024 #ifdef __cplusplus
32025 extern "C"
32027 #endif
32028 /* We use char because int might match the return type of a gcc2
32029 builtin and then its argument prototype would still apply. */
32030 char $ac_func ();
32031 /* The GNU C library defines this for functions which it implements
32032 to always fail with ENOSYS. Some functions are actually named
32033 something starting with __ and the normal name is an alias. */
32034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32035 choke me
32036 #else
32037 char (*f) () = $ac_func;
32038 #endif
32039 #ifdef __cplusplus
32041 #endif
32044 main ()
32046 return f != $ac_func;
32048 return 0;
32050 _ACEOF
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32053 (eval $ac_link) 2>conftest.er1
32054 ac_status=$?
32055 grep -v '^ *+' conftest.er1 >conftest.err
32056 rm -f conftest.er1
32057 cat conftest.err >&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } &&
32060 { ac_try='test -z "$ac_c_werror_flag"
32061 || test ! -s conftest.err'
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest$ac_exeext'
32068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069 (eval $ac_try) 2>&5
32070 ac_status=$?
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); }; }; then
32073 eval "$as_ac_var=yes"
32074 else
32075 echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32078 eval "$as_ac_var=no"
32080 rm -f conftest.err conftest.$ac_objext \
32081 conftest$ac_exeext conftest.$ac_ext
32083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32085 if test `eval echo '${'$as_ac_var'}'` = yes; then
32086 cat >>confdefs.h <<_ACEOF
32087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32088 _ACEOF
32091 done
32093 else
32095 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32096 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32097 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32098 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32099 echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32104 ac_ext=cc
32105 ac_cpp='$CXXCPP $CPPFLAGS'
32106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32110 cat >conftest.$ac_ext <<_ACEOF
32111 /* confdefs.h. */
32112 _ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h. */
32116 #include <math.h>
32117 #ifdef HAVE_IEEEFP_H
32118 #include <ieeefp.h>
32119 #endif
32122 main ()
32124 _isnan(0);
32126 return 0;
32128 _ACEOF
32129 rm -f conftest.$ac_objext
32130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32131 (eval $ac_compile) 2>conftest.er1
32132 ac_status=$?
32133 grep -v '^ *+' conftest.er1 >conftest.err
32134 rm -f conftest.er1
32135 cat conftest.err >&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try='test -z "$ac_cxx_werror_flag"
32139 || test ! -s conftest.err'
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); }; } &&
32145 { ac_try='test -s conftest.$ac_objext'
32146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32147 (eval $ac_try) 2>&5
32148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 glibcxx_cv_func__isnan_use=yes
32152 else
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 glibcxx_cv_func__isnan_use=no
32158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32159 ac_ext=c
32160 ac_cpp='$CPP $CPPFLAGS'
32161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32169 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32170 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32172 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32174 for ac_func in _isnan
32176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32177 echo "$as_me:$LINENO: checking for $ac_func" >&5
32178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32179 if eval "test \"\${$as_ac_var+set}\" = set"; then
32180 echo $ECHO_N "(cached) $ECHO_C" >&6
32181 else
32182 if test x$gcc_no_link = xyes; then
32183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32185 { (exit 1); exit 1; }; }
32187 cat >conftest.$ac_ext <<_ACEOF
32188 /* confdefs.h. */
32189 _ACEOF
32190 cat confdefs.h >>conftest.$ac_ext
32191 cat >>conftest.$ac_ext <<_ACEOF
32192 /* end confdefs.h. */
32193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32195 #define $ac_func innocuous_$ac_func
32197 /* System header to define __stub macros and hopefully few prototypes,
32198 which can conflict with char $ac_func (); below.
32199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32200 <limits.h> exists even on freestanding compilers. */
32202 #ifdef __STDC__
32203 # include <limits.h>
32204 #else
32205 # include <assert.h>
32206 #endif
32208 #undef $ac_func
32210 /* Override any gcc2 internal prototype to avoid an error. */
32211 #ifdef __cplusplus
32212 extern "C"
32214 #endif
32215 /* We use char because int might match the return type of a gcc2
32216 builtin and then its argument prototype would still apply. */
32217 char $ac_func ();
32218 /* The GNU C library defines this for functions which it implements
32219 to always fail with ENOSYS. Some functions are actually named
32220 something starting with __ and the normal name is an alias. */
32221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32222 choke me
32223 #else
32224 char (*f) () = $ac_func;
32225 #endif
32226 #ifdef __cplusplus
32228 #endif
32231 main ()
32233 return f != $ac_func;
32235 return 0;
32237 _ACEOF
32238 rm -f conftest.$ac_objext conftest$ac_exeext
32239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32240 (eval $ac_link) 2>conftest.er1
32241 ac_status=$?
32242 grep -v '^ *+' conftest.er1 >conftest.err
32243 rm -f conftest.er1
32244 cat conftest.err >&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); } &&
32247 { ac_try='test -z "$ac_c_werror_flag"
32248 || test ! -s conftest.err'
32249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250 (eval $ac_try) 2>&5
32251 ac_status=$?
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); }; } &&
32254 { ac_try='test -s conftest$ac_exeext'
32255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32256 (eval $ac_try) 2>&5
32257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; }; then
32260 eval "$as_ac_var=yes"
32261 else
32262 echo "$as_me: failed program was:" >&5
32263 sed 's/^/| /' conftest.$ac_ext >&5
32265 eval "$as_ac_var=no"
32267 rm -f conftest.err conftest.$ac_objext \
32268 conftest$ac_exeext conftest.$ac_ext
32270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32272 if test `eval echo '${'$as_ac_var'}'` = yes; then
32273 cat >>confdefs.h <<_ACEOF
32274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32275 _ACEOF
32278 done
32285 echo "$as_me:$LINENO: checking for finite declaration" >&5
32286 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32287 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32288 if test "${glibcxx_cv_func_finite_use+set}" = set; then
32289 echo $ECHO_N "(cached) $ECHO_C" >&6
32290 else
32294 ac_ext=cc
32295 ac_cpp='$CXXCPP $CPPFLAGS'
32296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32300 cat >conftest.$ac_ext <<_ACEOF
32301 /* confdefs.h. */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 #include <math.h>
32307 #ifdef HAVE_IEEEFP_H
32308 #include <ieeefp.h>
32309 #endif
32312 main ()
32314 finite(0);
32316 return 0;
32318 _ACEOF
32319 rm -f conftest.$ac_objext
32320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32321 (eval $ac_compile) 2>conftest.er1
32322 ac_status=$?
32323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
32328 { ac_try='test -z "$ac_cxx_werror_flag"
32329 || test ! -s conftest.err'
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; } &&
32335 { ac_try='test -s conftest.$ac_objext'
32336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337 (eval $ac_try) 2>&5
32338 ac_status=$?
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; }; then
32341 glibcxx_cv_func_finite_use=yes
32342 else
32343 echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32346 glibcxx_cv_func_finite_use=no
32348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32349 ac_ext=c
32350 ac_cpp='$CPP $CPPFLAGS'
32351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32359 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32360 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32362 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32364 for ac_func in finite
32366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32367 echo "$as_me:$LINENO: checking for $ac_func" >&5
32368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32369 if eval "test \"\${$as_ac_var+set}\" = set"; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32371 else
32372 if test x$gcc_no_link = xyes; then
32373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32375 { (exit 1); exit 1; }; }
32377 cat >conftest.$ac_ext <<_ACEOF
32378 /* confdefs.h. */
32379 _ACEOF
32380 cat confdefs.h >>conftest.$ac_ext
32381 cat >>conftest.$ac_ext <<_ACEOF
32382 /* end confdefs.h. */
32383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32385 #define $ac_func innocuous_$ac_func
32387 /* System header to define __stub macros and hopefully few prototypes,
32388 which can conflict with char $ac_func (); below.
32389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32390 <limits.h> exists even on freestanding compilers. */
32392 #ifdef __STDC__
32393 # include <limits.h>
32394 #else
32395 # include <assert.h>
32396 #endif
32398 #undef $ac_func
32400 /* Override any gcc2 internal prototype to avoid an error. */
32401 #ifdef __cplusplus
32402 extern "C"
32404 #endif
32405 /* We use char because int might match the return type of a gcc2
32406 builtin and then its argument prototype would still apply. */
32407 char $ac_func ();
32408 /* The GNU C library defines this for functions which it implements
32409 to always fail with ENOSYS. Some functions are actually named
32410 something starting with __ and the normal name is an alias. */
32411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32412 choke me
32413 #else
32414 char (*f) () = $ac_func;
32415 #endif
32416 #ifdef __cplusplus
32418 #endif
32421 main ()
32423 return f != $ac_func;
32425 return 0;
32427 _ACEOF
32428 rm -f conftest.$ac_objext conftest$ac_exeext
32429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32430 (eval $ac_link) 2>conftest.er1
32431 ac_status=$?
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } &&
32437 { ac_try='test -z "$ac_c_werror_flag"
32438 || test ! -s conftest.err'
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32441 ac_status=$?
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; } &&
32444 { ac_try='test -s conftest$ac_exeext'
32445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32446 (eval $ac_try) 2>&5
32447 ac_status=$?
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); }; }; then
32450 eval "$as_ac_var=yes"
32451 else
32452 echo "$as_me: failed program was:" >&5
32453 sed 's/^/| /' conftest.$ac_ext >&5
32455 eval "$as_ac_var=no"
32457 rm -f conftest.err conftest.$ac_objext \
32458 conftest$ac_exeext conftest.$ac_ext
32460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32462 if test `eval echo '${'$as_ac_var'}'` = yes; then
32463 cat >>confdefs.h <<_ACEOF
32464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32465 _ACEOF
32468 done
32470 else
32472 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32473 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32474 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32475 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32481 ac_ext=cc
32482 ac_cpp='$CXXCPP $CPPFLAGS'
32483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32487 cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h. */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32493 #include <math.h>
32494 #ifdef HAVE_IEEEFP_H
32495 #include <ieeefp.h>
32496 #endif
32499 main ()
32501 _finite(0);
32503 return 0;
32505 _ACEOF
32506 rm -f conftest.$ac_objext
32507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32508 (eval $ac_compile) 2>conftest.er1
32509 ac_status=$?
32510 grep -v '^ *+' conftest.er1 >conftest.err
32511 rm -f conftest.er1
32512 cat conftest.err >&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
32515 { ac_try='test -z "$ac_cxx_werror_flag"
32516 || test ! -s conftest.err'
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); }; } &&
32522 { ac_try='test -s conftest.$ac_objext'
32523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524 (eval $ac_try) 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; }; then
32528 glibcxx_cv_func__finite_use=yes
32529 else
32530 echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32533 glibcxx_cv_func__finite_use=no
32535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32536 ac_ext=c
32537 ac_cpp='$CPP $CPPFLAGS'
32538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32546 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32547 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32549 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32551 for ac_func in _finite
32553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32554 echo "$as_me:$LINENO: checking for $ac_func" >&5
32555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32556 if eval "test \"\${$as_ac_var+set}\" = set"; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559 if test x$gcc_no_link = xyes; then
32560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32562 { (exit 1); exit 1; }; }
32564 cat >conftest.$ac_ext <<_ACEOF
32565 /* confdefs.h. */
32566 _ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h. */
32570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32572 #define $ac_func innocuous_$ac_func
32574 /* System header to define __stub macros and hopefully few prototypes,
32575 which can conflict with char $ac_func (); below.
32576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32577 <limits.h> exists even on freestanding compilers. */
32579 #ifdef __STDC__
32580 # include <limits.h>
32581 #else
32582 # include <assert.h>
32583 #endif
32585 #undef $ac_func
32587 /* Override any gcc2 internal prototype to avoid an error. */
32588 #ifdef __cplusplus
32589 extern "C"
32591 #endif
32592 /* We use char because int might match the return type of a gcc2
32593 builtin and then its argument prototype would still apply. */
32594 char $ac_func ();
32595 /* The GNU C library defines this for functions which it implements
32596 to always fail with ENOSYS. Some functions are actually named
32597 something starting with __ and the normal name is an alias. */
32598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32599 choke me
32600 #else
32601 char (*f) () = $ac_func;
32602 #endif
32603 #ifdef __cplusplus
32605 #endif
32608 main ()
32610 return f != $ac_func;
32612 return 0;
32614 _ACEOF
32615 rm -f conftest.$ac_objext conftest$ac_exeext
32616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32617 (eval $ac_link) 2>conftest.er1
32618 ac_status=$?
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } &&
32624 { ac_try='test -z "$ac_c_werror_flag"
32625 || test ! -s conftest.err'
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest$ac_exeext'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; }; then
32637 eval "$as_ac_var=yes"
32638 else
32639 echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32642 eval "$as_ac_var=no"
32644 rm -f conftest.err conftest.$ac_objext \
32645 conftest$ac_exeext conftest.$ac_ext
32647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32649 if test `eval echo '${'$as_ac_var'}'` = yes; then
32650 cat >>confdefs.h <<_ACEOF
32651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32652 _ACEOF
32655 done
32662 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32663 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32664 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32665 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32667 else
32671 ac_ext=cc
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32677 cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h. */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32683 #include <math.h>
32685 main ()
32687 copysign(0, 0);
32689 return 0;
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32694 (eval $ac_compile) 2>conftest.er1
32695 ac_status=$?
32696 grep -v '^ *+' conftest.er1 >conftest.err
32697 rm -f conftest.er1
32698 cat conftest.err >&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } &&
32701 { ac_try='test -z "$ac_cxx_werror_flag"
32702 || test ! -s conftest.err'
32703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704 (eval $ac_try) 2>&5
32705 ac_status=$?
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); }; } &&
32708 { ac_try='test -s conftest.$ac_objext'
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; }; then
32714 glibcxx_cv_func_copysign_use=yes
32715 else
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32719 glibcxx_cv_func_copysign_use=no
32721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32722 ac_ext=c
32723 ac_cpp='$CPP $CPPFLAGS'
32724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32732 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32733 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32735 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32737 for ac_func in copysign
32739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32740 echo "$as_me:$LINENO: checking for $ac_func" >&5
32741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32742 if eval "test \"\${$as_ac_var+set}\" = set"; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32744 else
32745 if test x$gcc_no_link = xyes; then
32746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32748 { (exit 1); exit 1; }; }
32750 cat >conftest.$ac_ext <<_ACEOF
32751 /* confdefs.h. */
32752 _ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32758 #define $ac_func innocuous_$ac_func
32760 /* System header to define __stub macros and hopefully few prototypes,
32761 which can conflict with char $ac_func (); below.
32762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32763 <limits.h> exists even on freestanding compilers. */
32765 #ifdef __STDC__
32766 # include <limits.h>
32767 #else
32768 # include <assert.h>
32769 #endif
32771 #undef $ac_func
32773 /* Override any gcc2 internal prototype to avoid an error. */
32774 #ifdef __cplusplus
32775 extern "C"
32777 #endif
32778 /* We use char because int might match the return type of a gcc2
32779 builtin and then its argument prototype would still apply. */
32780 char $ac_func ();
32781 /* The GNU C library defines this for functions which it implements
32782 to always fail with ENOSYS. Some functions are actually named
32783 something starting with __ and the normal name is an alias. */
32784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32785 choke me
32786 #else
32787 char (*f) () = $ac_func;
32788 #endif
32789 #ifdef __cplusplus
32791 #endif
32794 main ()
32796 return f != $ac_func;
32798 return 0;
32800 _ACEOF
32801 rm -f conftest.$ac_objext conftest$ac_exeext
32802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32803 (eval $ac_link) 2>conftest.er1
32804 ac_status=$?
32805 grep -v '^ *+' conftest.er1 >conftest.err
32806 rm -f conftest.er1
32807 cat conftest.err >&5
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } &&
32810 { ac_try='test -z "$ac_c_werror_flag"
32811 || test ! -s conftest.err'
32812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 (eval $ac_try) 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; } &&
32817 { ac_try='test -s conftest$ac_exeext'
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32820 ac_status=$?
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; }; then
32823 eval "$as_ac_var=yes"
32824 else
32825 echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.$ac_ext >&5
32828 eval "$as_ac_var=no"
32830 rm -f conftest.err conftest.$ac_objext \
32831 conftest$ac_exeext conftest.$ac_ext
32833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32835 if test `eval echo '${'$as_ac_var'}'` = yes; then
32836 cat >>confdefs.h <<_ACEOF
32837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32838 _ACEOF
32841 done
32843 else
32845 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32846 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32847 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32848 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32850 else
32854 ac_ext=cc
32855 ac_cpp='$CXXCPP $CPPFLAGS'
32856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32860 cat >conftest.$ac_ext <<_ACEOF
32861 /* confdefs.h. */
32862 _ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h. */
32866 #include <math.h>
32868 main ()
32870 _copysign(0, 0);
32872 return 0;
32874 _ACEOF
32875 rm -f conftest.$ac_objext
32876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32877 (eval $ac_compile) 2>conftest.er1
32878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_cxx_werror_flag"
32885 || test ! -s conftest.err'
32886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 (eval $ac_try) 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; } &&
32891 { ac_try='test -s conftest.$ac_objext'
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897 glibcxx_cv_func__copysign_use=yes
32898 else
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 glibcxx_cv_func__copysign_use=no
32904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32905 ac_ext=c
32906 ac_cpp='$CPP $CPPFLAGS'
32907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32916 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32918 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32920 for ac_func in _copysign
32922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32923 echo "$as_me:$LINENO: checking for $ac_func" >&5
32924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32925 if eval "test \"\${$as_ac_var+set}\" = set"; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927 else
32928 if test x$gcc_no_link = xyes; then
32929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32931 { (exit 1); exit 1; }; }
32933 cat >conftest.$ac_ext <<_ACEOF
32934 /* confdefs.h. */
32935 _ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h. */
32939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32941 #define $ac_func innocuous_$ac_func
32943 /* System header to define __stub macros and hopefully few prototypes,
32944 which can conflict with char $ac_func (); below.
32945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32946 <limits.h> exists even on freestanding compilers. */
32948 #ifdef __STDC__
32949 # include <limits.h>
32950 #else
32951 # include <assert.h>
32952 #endif
32954 #undef $ac_func
32956 /* Override any gcc2 internal prototype to avoid an error. */
32957 #ifdef __cplusplus
32958 extern "C"
32960 #endif
32961 /* We use char because int might match the return type of a gcc2
32962 builtin and then its argument prototype would still apply. */
32963 char $ac_func ();
32964 /* The GNU C library defines this for functions which it implements
32965 to always fail with ENOSYS. Some functions are actually named
32966 something starting with __ and the normal name is an alias. */
32967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32968 choke me
32969 #else
32970 char (*f) () = $ac_func;
32971 #endif
32972 #ifdef __cplusplus
32974 #endif
32977 main ()
32979 return f != $ac_func;
32981 return 0;
32983 _ACEOF
32984 rm -f conftest.$ac_objext conftest$ac_exeext
32985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32986 (eval $ac_link) 2>conftest.er1
32987 ac_status=$?
32988 grep -v '^ *+' conftest.er1 >conftest.err
32989 rm -f conftest.er1
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_c_werror_flag"
32994 || test ! -s conftest.err'
32995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32996 (eval $ac_try) 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; } &&
33000 { ac_try='test -s conftest$ac_exeext'
33001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002 (eval $ac_try) 2>&5
33003 ac_status=$?
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); }; }; then
33006 eval "$as_ac_var=yes"
33007 else
33008 echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33011 eval "$as_ac_var=no"
33013 rm -f conftest.err conftest.$ac_objext \
33014 conftest$ac_exeext conftest.$ac_ext
33016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33018 if test `eval echo '${'$as_ac_var'}'` = yes; then
33019 cat >>confdefs.h <<_ACEOF
33020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33021 _ACEOF
33024 done
33031 echo "$as_me:$LINENO: checking for sincos declaration" >&5
33032 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33033 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33034 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33035 echo $ECHO_N "(cached) $ECHO_C" >&6
33036 else
33040 ac_ext=cc
33041 ac_cpp='$CXXCPP $CPPFLAGS'
33042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33046 cat >conftest.$ac_ext <<_ACEOF
33047 /* confdefs.h. */
33048 _ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h. */
33052 #include <math.h>
33054 main ()
33056 sincos(0, 0, 0);
33058 return 0;
33060 _ACEOF
33061 rm -f conftest.$ac_objext
33062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33063 (eval $ac_compile) 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_cxx_werror_flag"
33071 || test ! -s conftest.err'
33072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073 (eval $ac_try) 2>&5
33074 ac_status=$?
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); }; } &&
33077 { ac_try='test -s conftest.$ac_objext'
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33080 ac_status=$?
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; }; then
33083 glibcxx_cv_func_sincos_use=yes
33084 else
33085 echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33088 glibcxx_cv_func_sincos_use=no
33090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33091 ac_ext=c
33092 ac_cpp='$CPP $CPPFLAGS'
33093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33101 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33102 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33104 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33106 for ac_func in sincos
33108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33109 echo "$as_me:$LINENO: checking for $ac_func" >&5
33110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33111 if eval "test \"\${$as_ac_var+set}\" = set"; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 else
33114 if test x$gcc_no_link = xyes; then
33115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33117 { (exit 1); exit 1; }; }
33119 cat >conftest.$ac_ext <<_ACEOF
33120 /* confdefs.h. */
33121 _ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h. */
33125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33127 #define $ac_func innocuous_$ac_func
33129 /* System header to define __stub macros and hopefully few prototypes,
33130 which can conflict with char $ac_func (); below.
33131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33132 <limits.h> exists even on freestanding compilers. */
33134 #ifdef __STDC__
33135 # include <limits.h>
33136 #else
33137 # include <assert.h>
33138 #endif
33140 #undef $ac_func
33142 /* Override any gcc2 internal prototype to avoid an error. */
33143 #ifdef __cplusplus
33144 extern "C"
33146 #endif
33147 /* We use char because int might match the return type of a gcc2
33148 builtin and then its argument prototype would still apply. */
33149 char $ac_func ();
33150 /* The GNU C library defines this for functions which it implements
33151 to always fail with ENOSYS. Some functions are actually named
33152 something starting with __ and the normal name is an alias. */
33153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33154 choke me
33155 #else
33156 char (*f) () = $ac_func;
33157 #endif
33158 #ifdef __cplusplus
33160 #endif
33163 main ()
33165 return f != $ac_func;
33167 return 0;
33169 _ACEOF
33170 rm -f conftest.$ac_objext conftest$ac_exeext
33171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33172 (eval $ac_link) 2>conftest.er1
33173 ac_status=$?
33174 grep -v '^ *+' conftest.er1 >conftest.err
33175 rm -f conftest.er1
33176 cat conftest.err >&5
33177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178 (exit $ac_status); } &&
33179 { ac_try='test -z "$ac_c_werror_flag"
33180 || test ! -s conftest.err'
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest$ac_exeext'
33187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188 (eval $ac_try) 2>&5
33189 ac_status=$?
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); }; }; then
33192 eval "$as_ac_var=yes"
33193 else
33194 echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33197 eval "$as_ac_var=no"
33199 rm -f conftest.err conftest.$ac_objext \
33200 conftest$ac_exeext conftest.$ac_ext
33202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33204 if test `eval echo '${'$as_ac_var'}'` = yes; then
33205 cat >>confdefs.h <<_ACEOF
33206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33207 _ACEOF
33210 done
33212 else
33214 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33215 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33216 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33217 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219 else
33223 ac_ext=cc
33224 ac_cpp='$CXXCPP $CPPFLAGS'
33225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33229 cat >conftest.$ac_ext <<_ACEOF
33230 /* confdefs.h. */
33231 _ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h. */
33235 #include <math.h>
33237 main ()
33239 _sincos(0, 0, 0);
33241 return 0;
33243 _ACEOF
33244 rm -f conftest.$ac_objext
33245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33246 (eval $ac_compile) 2>conftest.er1
33247 ac_status=$?
33248 grep -v '^ *+' conftest.er1 >conftest.err
33249 rm -f conftest.er1
33250 cat conftest.err >&5
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); } &&
33253 { ac_try='test -z "$ac_cxx_werror_flag"
33254 || test ! -s conftest.err'
33255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33256 (eval $ac_try) 2>&5
33257 ac_status=$?
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); }; } &&
33260 { ac_try='test -s conftest.$ac_objext'
33261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33262 (eval $ac_try) 2>&5
33263 ac_status=$?
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); }; }; then
33266 glibcxx_cv_func__sincos_use=yes
33267 else
33268 echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 glibcxx_cv_func__sincos_use=no
33273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33274 ac_ext=c
33275 ac_cpp='$CPP $CPPFLAGS'
33276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33284 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33285 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33287 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33289 for ac_func in _sincos
33291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33292 echo "$as_me:$LINENO: checking for $ac_func" >&5
33293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33294 if eval "test \"\${$as_ac_var+set}\" = set"; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 else
33297 if test x$gcc_no_link = xyes; then
33298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33300 { (exit 1); exit 1; }; }
33302 cat >conftest.$ac_ext <<_ACEOF
33303 /* confdefs.h. */
33304 _ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33310 #define $ac_func innocuous_$ac_func
33312 /* System header to define __stub macros and hopefully few prototypes,
33313 which can conflict with char $ac_func (); below.
33314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33315 <limits.h> exists even on freestanding compilers. */
33317 #ifdef __STDC__
33318 # include <limits.h>
33319 #else
33320 # include <assert.h>
33321 #endif
33323 #undef $ac_func
33325 /* Override any gcc2 internal prototype to avoid an error. */
33326 #ifdef __cplusplus
33327 extern "C"
33329 #endif
33330 /* We use char because int might match the return type of a gcc2
33331 builtin and then its argument prototype would still apply. */
33332 char $ac_func ();
33333 /* The GNU C library defines this for functions which it implements
33334 to always fail with ENOSYS. Some functions are actually named
33335 something starting with __ and the normal name is an alias. */
33336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33337 choke me
33338 #else
33339 char (*f) () = $ac_func;
33340 #endif
33341 #ifdef __cplusplus
33343 #endif
33346 main ()
33348 return f != $ac_func;
33350 return 0;
33352 _ACEOF
33353 rm -f conftest.$ac_objext conftest$ac_exeext
33354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33355 (eval $ac_link) 2>conftest.er1
33356 ac_status=$?
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
33362 { ac_try='test -z "$ac_c_werror_flag"
33363 || test ! -s conftest.err'
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; } &&
33369 { ac_try='test -s conftest$ac_exeext'
33370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371 (eval $ac_try) 2>&5
33372 ac_status=$?
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); }; }; then
33375 eval "$as_ac_var=yes"
33376 else
33377 echo "$as_me: failed program was:" >&5
33378 sed 's/^/| /' conftest.$ac_ext >&5
33380 eval "$as_ac_var=no"
33382 rm -f conftest.err conftest.$ac_objext \
33383 conftest$ac_exeext conftest.$ac_ext
33385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33387 if test `eval echo '${'$as_ac_var'}'` = yes; then
33388 cat >>confdefs.h <<_ACEOF
33389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33390 _ACEOF
33393 done
33400 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33401 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33402 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33403 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33409 ac_ext=cc
33410 ac_cpp='$CXXCPP $CPPFLAGS'
33411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33415 cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h. */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 #include <math.h>
33422 #ifdef HAVE_IEEEFP_H
33423 #include <ieeefp.h>
33424 #endif
33427 main ()
33429 fpclass(0);
33431 return 0;
33433 _ACEOF
33434 rm -f conftest.$ac_objext
33435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33436 (eval $ac_compile) 2>conftest.er1
33437 ac_status=$?
33438 grep -v '^ *+' conftest.er1 >conftest.err
33439 rm -f conftest.er1
33440 cat conftest.err >&5
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); } &&
33443 { ac_try='test -z "$ac_cxx_werror_flag"
33444 || test ! -s conftest.err'
33445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33446 (eval $ac_try) 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; } &&
33450 { ac_try='test -s conftest.$ac_objext'
33451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33452 (eval $ac_try) 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; }; then
33456 glibcxx_cv_func_fpclass_use=yes
33457 else
33458 echo "$as_me: failed program was:" >&5
33459 sed 's/^/| /' conftest.$ac_ext >&5
33461 glibcxx_cv_func_fpclass_use=no
33463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33464 ac_ext=c
33465 ac_cpp='$CPP $CPPFLAGS'
33466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33474 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33475 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33477 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33479 for ac_func in fpclass
33481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33482 echo "$as_me:$LINENO: checking for $ac_func" >&5
33483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33484 if eval "test \"\${$as_ac_var+set}\" = set"; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33486 else
33487 if test x$gcc_no_link = xyes; then
33488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33490 { (exit 1); exit 1; }; }
33492 cat >conftest.$ac_ext <<_ACEOF
33493 /* confdefs.h. */
33494 _ACEOF
33495 cat confdefs.h >>conftest.$ac_ext
33496 cat >>conftest.$ac_ext <<_ACEOF
33497 /* end confdefs.h. */
33498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33500 #define $ac_func innocuous_$ac_func
33502 /* System header to define __stub macros and hopefully few prototypes,
33503 which can conflict with char $ac_func (); below.
33504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33505 <limits.h> exists even on freestanding compilers. */
33507 #ifdef __STDC__
33508 # include <limits.h>
33509 #else
33510 # include <assert.h>
33511 #endif
33513 #undef $ac_func
33515 /* Override any gcc2 internal prototype to avoid an error. */
33516 #ifdef __cplusplus
33517 extern "C"
33519 #endif
33520 /* We use char because int might match the return type of a gcc2
33521 builtin and then its argument prototype would still apply. */
33522 char $ac_func ();
33523 /* The GNU C library defines this for functions which it implements
33524 to always fail with ENOSYS. Some functions are actually named
33525 something starting with __ and the normal name is an alias. */
33526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33527 choke me
33528 #else
33529 char (*f) () = $ac_func;
33530 #endif
33531 #ifdef __cplusplus
33533 #endif
33536 main ()
33538 return f != $ac_func;
33540 return 0;
33542 _ACEOF
33543 rm -f conftest.$ac_objext conftest$ac_exeext
33544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33545 (eval $ac_link) 2>conftest.er1
33546 ac_status=$?
33547 grep -v '^ *+' conftest.er1 >conftest.err
33548 rm -f conftest.er1
33549 cat conftest.err >&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); } &&
33552 { ac_try='test -z "$ac_c_werror_flag"
33553 || test ! -s conftest.err'
33554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33555 (eval $ac_try) 2>&5
33556 ac_status=$?
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); }; } &&
33559 { ac_try='test -s conftest$ac_exeext'
33560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33561 (eval $ac_try) 2>&5
33562 ac_status=$?
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); }; }; then
33565 eval "$as_ac_var=yes"
33566 else
33567 echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33570 eval "$as_ac_var=no"
33572 rm -f conftest.err conftest.$ac_objext \
33573 conftest$ac_exeext conftest.$ac_ext
33575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33577 if test `eval echo '${'$as_ac_var'}'` = yes; then
33578 cat >>confdefs.h <<_ACEOF
33579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33580 _ACEOF
33583 done
33585 else
33587 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33588 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33589 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33590 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33592 else
33596 ac_ext=cc
33597 ac_cpp='$CXXCPP $CPPFLAGS'
33598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33602 cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h. */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h. */
33608 #include <math.h>
33609 #ifdef HAVE_IEEEFP_H
33610 #include <ieeefp.h>
33611 #endif
33614 main ()
33616 _fpclass(0);
33618 return 0;
33620 _ACEOF
33621 rm -f conftest.$ac_objext
33622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33623 (eval $ac_compile) 2>conftest.er1
33624 ac_status=$?
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_cxx_werror_flag"
33631 || test ! -s conftest.err'
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); }; } &&
33637 { ac_try='test -s conftest.$ac_objext'
33638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33639 (eval $ac_try) 2>&5
33640 ac_status=$?
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); }; }; then
33643 glibcxx_cv_func__fpclass_use=yes
33644 else
33645 echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33648 glibcxx_cv_func__fpclass_use=no
33650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33651 ac_ext=c
33652 ac_cpp='$CPP $CPPFLAGS'
33653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33661 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33662 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33664 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33666 for ac_func in _fpclass
33668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33669 echo "$as_me:$LINENO: checking for $ac_func" >&5
33670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33671 if eval "test \"\${$as_ac_var+set}\" = set"; then
33672 echo $ECHO_N "(cached) $ECHO_C" >&6
33673 else
33674 if test x$gcc_no_link = xyes; then
33675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33677 { (exit 1); exit 1; }; }
33679 cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h. */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33687 #define $ac_func innocuous_$ac_func
33689 /* System header to define __stub macros and hopefully few prototypes,
33690 which can conflict with char $ac_func (); below.
33691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33692 <limits.h> exists even on freestanding compilers. */
33694 #ifdef __STDC__
33695 # include <limits.h>
33696 #else
33697 # include <assert.h>
33698 #endif
33700 #undef $ac_func
33702 /* Override any gcc2 internal prototype to avoid an error. */
33703 #ifdef __cplusplus
33704 extern "C"
33706 #endif
33707 /* We use char because int might match the return type of a gcc2
33708 builtin and then its argument prototype would still apply. */
33709 char $ac_func ();
33710 /* The GNU C library defines this for functions which it implements
33711 to always fail with ENOSYS. Some functions are actually named
33712 something starting with __ and the normal name is an alias. */
33713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33714 choke me
33715 #else
33716 char (*f) () = $ac_func;
33717 #endif
33718 #ifdef __cplusplus
33720 #endif
33723 main ()
33725 return f != $ac_func;
33727 return 0;
33729 _ACEOF
33730 rm -f conftest.$ac_objext conftest$ac_exeext
33731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33732 (eval $ac_link) 2>conftest.er1
33733 ac_status=$?
33734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } &&
33739 { ac_try='test -z "$ac_c_werror_flag"
33740 || test ! -s conftest.err'
33741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33742 (eval $ac_try) 2>&5
33743 ac_status=$?
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); }; } &&
33746 { ac_try='test -s conftest$ac_exeext'
33747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748 (eval $ac_try) 2>&5
33749 ac_status=$?
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33752 eval "$as_ac_var=yes"
33753 else
33754 echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33757 eval "$as_ac_var=no"
33759 rm -f conftest.err conftest.$ac_objext \
33760 conftest$ac_exeext conftest.$ac_ext
33762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33764 if test `eval echo '${'$as_ac_var'}'` = yes; then
33765 cat >>confdefs.h <<_ACEOF
33766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33767 _ACEOF
33770 done
33777 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33778 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33779 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33780 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33781 echo $ECHO_N "(cached) $ECHO_C" >&6
33782 else
33786 ac_ext=cc
33787 ac_cpp='$CXXCPP $CPPFLAGS'
33788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33792 cat >conftest.$ac_ext <<_ACEOF
33793 /* confdefs.h. */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h. */
33798 #include <math.h>
33799 #ifdef HAVE_IEEEFP_H
33800 #include <ieeefp.h>
33801 #endif
33804 main ()
33806 qfpclass(0);
33808 return 0;
33810 _ACEOF
33811 rm -f conftest.$ac_objext
33812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33813 (eval $ac_compile) 2>conftest.er1
33814 ac_status=$?
33815 grep -v '^ *+' conftest.er1 >conftest.err
33816 rm -f conftest.er1
33817 cat conftest.err >&5
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); } &&
33820 { ac_try='test -z "$ac_cxx_werror_flag"
33821 || test ! -s conftest.err'
33822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33823 (eval $ac_try) 2>&5
33824 ac_status=$?
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); }; } &&
33827 { ac_try='test -s conftest.$ac_objext'
33828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33829 (eval $ac_try) 2>&5
33830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 glibcxx_cv_func_qfpclass_use=yes
33834 else
33835 echo "$as_me: failed program was:" >&5
33836 sed 's/^/| /' conftest.$ac_ext >&5
33838 glibcxx_cv_func_qfpclass_use=no
33840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33841 ac_ext=c
33842 ac_cpp='$CPP $CPPFLAGS'
33843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33851 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33852 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33854 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33856 for ac_func in qfpclass
33858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33859 echo "$as_me:$LINENO: checking for $ac_func" >&5
33860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33861 if eval "test \"\${$as_ac_var+set}\" = set"; then
33862 echo $ECHO_N "(cached) $ECHO_C" >&6
33863 else
33864 if test x$gcc_no_link = xyes; then
33865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33867 { (exit 1); exit 1; }; }
33869 cat >conftest.$ac_ext <<_ACEOF
33870 /* confdefs.h. */
33871 _ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h. */
33875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33877 #define $ac_func innocuous_$ac_func
33879 /* System header to define __stub macros and hopefully few prototypes,
33880 which can conflict with char $ac_func (); below.
33881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33882 <limits.h> exists even on freestanding compilers. */
33884 #ifdef __STDC__
33885 # include <limits.h>
33886 #else
33887 # include <assert.h>
33888 #endif
33890 #undef $ac_func
33892 /* Override any gcc2 internal prototype to avoid an error. */
33893 #ifdef __cplusplus
33894 extern "C"
33896 #endif
33897 /* We use char because int might match the return type of a gcc2
33898 builtin and then its argument prototype would still apply. */
33899 char $ac_func ();
33900 /* The GNU C library defines this for functions which it implements
33901 to always fail with ENOSYS. Some functions are actually named
33902 something starting with __ and the normal name is an alias. */
33903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33904 choke me
33905 #else
33906 char (*f) () = $ac_func;
33907 #endif
33908 #ifdef __cplusplus
33910 #endif
33913 main ()
33915 return f != $ac_func;
33917 return 0;
33919 _ACEOF
33920 rm -f conftest.$ac_objext conftest$ac_exeext
33921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33922 (eval $ac_link) 2>conftest.er1
33923 ac_status=$?
33924 grep -v '^ *+' conftest.er1 >conftest.err
33925 rm -f conftest.er1
33926 cat conftest.err >&5
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); } &&
33929 { ac_try='test -z "$ac_c_werror_flag"
33930 || test ! -s conftest.err'
33931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932 (eval $ac_try) 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest$ac_exeext'
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 eval "$as_ac_var=yes"
33943 else
33944 echo "$as_me: failed program was:" >&5
33945 sed 's/^/| /' conftest.$ac_ext >&5
33947 eval "$as_ac_var=no"
33949 rm -f conftest.err conftest.$ac_objext \
33950 conftest$ac_exeext conftest.$ac_ext
33952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33954 if test `eval echo '${'$as_ac_var'}'` = yes; then
33955 cat >>confdefs.h <<_ACEOF
33956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33957 _ACEOF
33960 done
33962 else
33964 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
33965 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
33966 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
33967 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
33968 echo $ECHO_N "(cached) $ECHO_C" >&6
33969 else
33973 ac_ext=cc
33974 ac_cpp='$CXXCPP $CPPFLAGS'
33975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33979 cat >conftest.$ac_ext <<_ACEOF
33980 /* confdefs.h. */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 #include <math.h>
33986 #ifdef HAVE_IEEEFP_H
33987 #include <ieeefp.h>
33988 #endif
33991 main ()
33993 _qfpclass(0);
33995 return 0;
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34000 (eval $ac_compile) 2>conftest.er1
34001 ac_status=$?
34002 grep -v '^ *+' conftest.er1 >conftest.err
34003 rm -f conftest.er1
34004 cat conftest.err >&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } &&
34007 { ac_try='test -z "$ac_cxx_werror_flag"
34008 || test ! -s conftest.err'
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); }; } &&
34014 { ac_try='test -s conftest.$ac_objext'
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; }; then
34020 glibcxx_cv_func__qfpclass_use=yes
34021 else
34022 echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34025 glibcxx_cv_func__qfpclass_use=no
34027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34028 ac_ext=c
34029 ac_cpp='$CPP $CPPFLAGS'
34030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34038 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34039 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34041 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34043 for ac_func in _qfpclass
34045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34046 echo "$as_me:$LINENO: checking for $ac_func" >&5
34047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34048 if eval "test \"\${$as_ac_var+set}\" = set"; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051 if test x$gcc_no_link = xyes; then
34052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34054 { (exit 1); exit 1; }; }
34056 cat >conftest.$ac_ext <<_ACEOF
34057 /* confdefs.h. */
34058 _ACEOF
34059 cat confdefs.h >>conftest.$ac_ext
34060 cat >>conftest.$ac_ext <<_ACEOF
34061 /* end confdefs.h. */
34062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34064 #define $ac_func innocuous_$ac_func
34066 /* System header to define __stub macros and hopefully few prototypes,
34067 which can conflict with char $ac_func (); below.
34068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34069 <limits.h> exists even on freestanding compilers. */
34071 #ifdef __STDC__
34072 # include <limits.h>
34073 #else
34074 # include <assert.h>
34075 #endif
34077 #undef $ac_func
34079 /* Override any gcc2 internal prototype to avoid an error. */
34080 #ifdef __cplusplus
34081 extern "C"
34083 #endif
34084 /* We use char because int might match the return type of a gcc2
34085 builtin and then its argument prototype would still apply. */
34086 char $ac_func ();
34087 /* The GNU C library defines this for functions which it implements
34088 to always fail with ENOSYS. Some functions are actually named
34089 something starting with __ and the normal name is an alias. */
34090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34091 choke me
34092 #else
34093 char (*f) () = $ac_func;
34094 #endif
34095 #ifdef __cplusplus
34097 #endif
34100 main ()
34102 return f != $ac_func;
34104 return 0;
34106 _ACEOF
34107 rm -f conftest.$ac_objext conftest$ac_exeext
34108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34109 (eval $ac_link) 2>conftest.er1
34110 ac_status=$?
34111 grep -v '^ *+' conftest.er1 >conftest.err
34112 rm -f conftest.er1
34113 cat conftest.err >&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); } &&
34116 { ac_try='test -z "$ac_c_werror_flag"
34117 || test ! -s conftest.err'
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34120 ac_status=$?
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; } &&
34123 { ac_try='test -s conftest$ac_exeext'
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; }; then
34129 eval "$as_ac_var=yes"
34130 else
34131 echo "$as_me: failed program was:" >&5
34132 sed 's/^/| /' conftest.$ac_ext >&5
34134 eval "$as_ac_var=no"
34136 rm -f conftest.err conftest.$ac_objext \
34137 conftest$ac_exeext conftest.$ac_ext
34139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34141 if test `eval echo '${'$as_ac_var'}'` = yes; then
34142 cat >>confdefs.h <<_ACEOF
34143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34144 _ACEOF
34147 done
34154 echo "$as_me:$LINENO: checking for hypot declaration" >&5
34155 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34156 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34157 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34158 echo $ECHO_N "(cached) $ECHO_C" >&6
34159 else
34163 ac_ext=cc
34164 ac_cpp='$CXXCPP $CPPFLAGS'
34165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34169 cat >conftest.$ac_ext <<_ACEOF
34170 /* confdefs.h. */
34171 _ACEOF
34172 cat confdefs.h >>conftest.$ac_ext
34173 cat >>conftest.$ac_ext <<_ACEOF
34174 /* end confdefs.h. */
34175 #include <math.h>
34177 main ()
34179 hypot(0, 0);
34181 return 0;
34183 _ACEOF
34184 rm -f conftest.$ac_objext
34185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34186 (eval $ac_compile) 2>conftest.er1
34187 ac_status=$?
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
34193 { ac_try='test -z "$ac_cxx_werror_flag"
34194 || test ! -s conftest.err'
34195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 (eval $ac_try) 2>&5
34197 ac_status=$?
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; } &&
34200 { ac_try='test -s conftest.$ac_objext'
34201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202 (eval $ac_try) 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; }; then
34206 glibcxx_cv_func_hypot_use=yes
34207 else
34208 echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34211 glibcxx_cv_func_hypot_use=no
34213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34214 ac_ext=c
34215 ac_cpp='$CPP $CPPFLAGS'
34216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34224 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34225 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34227 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34229 for ac_func in hypot
34231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34232 echo "$as_me:$LINENO: checking for $ac_func" >&5
34233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34234 if eval "test \"\${$as_ac_var+set}\" = set"; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34236 else
34237 if test x$gcc_no_link = xyes; then
34238 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34239 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34240 { (exit 1); exit 1; }; }
34242 cat >conftest.$ac_ext <<_ACEOF
34243 /* confdefs.h. */
34244 _ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h. */
34248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34250 #define $ac_func innocuous_$ac_func
34252 /* System header to define __stub macros and hopefully few prototypes,
34253 which can conflict with char $ac_func (); below.
34254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34255 <limits.h> exists even on freestanding compilers. */
34257 #ifdef __STDC__
34258 # include <limits.h>
34259 #else
34260 # include <assert.h>
34261 #endif
34263 #undef $ac_func
34265 /* Override any gcc2 internal prototype to avoid an error. */
34266 #ifdef __cplusplus
34267 extern "C"
34269 #endif
34270 /* We use char because int might match the return type of a gcc2
34271 builtin and then its argument prototype would still apply. */
34272 char $ac_func ();
34273 /* The GNU C library defines this for functions which it implements
34274 to always fail with ENOSYS. Some functions are actually named
34275 something starting with __ and the normal name is an alias. */
34276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34277 choke me
34278 #else
34279 char (*f) () = $ac_func;
34280 #endif
34281 #ifdef __cplusplus
34283 #endif
34286 main ()
34288 return f != $ac_func;
34290 return 0;
34292 _ACEOF
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34295 (eval $ac_link) 2>conftest.er1
34296 ac_status=$?
34297 grep -v '^ *+' conftest.er1 >conftest.err
34298 rm -f conftest.er1
34299 cat conftest.err >&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); } &&
34302 { ac_try='test -z "$ac_c_werror_flag"
34303 || test ! -s conftest.err'
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34306 ac_status=$?
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; } &&
34309 { ac_try='test -s conftest$ac_exeext'
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34312 ac_status=$?
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; }; then
34315 eval "$as_ac_var=yes"
34316 else
34317 echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34320 eval "$as_ac_var=no"
34322 rm -f conftest.err conftest.$ac_objext \
34323 conftest$ac_exeext conftest.$ac_ext
34325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34327 if test `eval echo '${'$as_ac_var'}'` = yes; then
34328 cat >>confdefs.h <<_ACEOF
34329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34330 _ACEOF
34333 done
34335 else
34337 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34338 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34339 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34340 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34341 echo $ECHO_N "(cached) $ECHO_C" >&6
34342 else
34346 ac_ext=cc
34347 ac_cpp='$CXXCPP $CPPFLAGS'
34348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34352 cat >conftest.$ac_ext <<_ACEOF
34353 /* confdefs.h. */
34354 _ACEOF
34355 cat confdefs.h >>conftest.$ac_ext
34356 cat >>conftest.$ac_ext <<_ACEOF
34357 /* end confdefs.h. */
34358 #include <math.h>
34360 main ()
34362 _hypot(0, 0);
34364 return 0;
34366 _ACEOF
34367 rm -f conftest.$ac_objext
34368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34369 (eval $ac_compile) 2>conftest.er1
34370 ac_status=$?
34371 grep -v '^ *+' conftest.er1 >conftest.err
34372 rm -f conftest.er1
34373 cat conftest.err >&5
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); } &&
34376 { ac_try='test -z "$ac_cxx_werror_flag"
34377 || test ! -s conftest.err'
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest.$ac_objext'
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34386 ac_status=$?
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; }; then
34389 glibcxx_cv_func__hypot_use=yes
34390 else
34391 echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34394 glibcxx_cv_func__hypot_use=no
34396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34397 ac_ext=c
34398 ac_cpp='$CPP $CPPFLAGS'
34399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34407 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34408 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34410 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34412 for ac_func in _hypot
34414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34415 echo "$as_me:$LINENO: checking for $ac_func" >&5
34416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34417 if eval "test \"\${$as_ac_var+set}\" = set"; then
34418 echo $ECHO_N "(cached) $ECHO_C" >&6
34419 else
34420 if test x$gcc_no_link = xyes; then
34421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34423 { (exit 1); exit 1; }; }
34425 cat >conftest.$ac_ext <<_ACEOF
34426 /* confdefs.h. */
34427 _ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34433 #define $ac_func innocuous_$ac_func
34435 /* System header to define __stub macros and hopefully few prototypes,
34436 which can conflict with char $ac_func (); below.
34437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34438 <limits.h> exists even on freestanding compilers. */
34440 #ifdef __STDC__
34441 # include <limits.h>
34442 #else
34443 # include <assert.h>
34444 #endif
34446 #undef $ac_func
34448 /* Override any gcc2 internal prototype to avoid an error. */
34449 #ifdef __cplusplus
34450 extern "C"
34452 #endif
34453 /* We use char because int might match the return type of a gcc2
34454 builtin and then its argument prototype would still apply. */
34455 char $ac_func ();
34456 /* The GNU C library defines this for functions which it implements
34457 to always fail with ENOSYS. Some functions are actually named
34458 something starting with __ and the normal name is an alias. */
34459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34460 choke me
34461 #else
34462 char (*f) () = $ac_func;
34463 #endif
34464 #ifdef __cplusplus
34466 #endif
34469 main ()
34471 return f != $ac_func;
34473 return 0;
34475 _ACEOF
34476 rm -f conftest.$ac_objext conftest$ac_exeext
34477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34478 (eval $ac_link) 2>conftest.er1
34479 ac_status=$?
34480 grep -v '^ *+' conftest.er1 >conftest.err
34481 rm -f conftest.er1
34482 cat conftest.err >&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); } &&
34485 { ac_try='test -z "$ac_c_werror_flag"
34486 || test ! -s conftest.err'
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; } &&
34492 { ac_try='test -s conftest$ac_exeext'
34493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34494 (eval $ac_try) 2>&5
34495 ac_status=$?
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); }; }; then
34498 eval "$as_ac_var=yes"
34499 else
34500 echo "$as_me: failed program was:" >&5
34501 sed 's/^/| /' conftest.$ac_ext >&5
34503 eval "$as_ac_var=no"
34505 rm -f conftest.err conftest.$ac_objext \
34506 conftest$ac_exeext conftest.$ac_ext
34508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34510 if test `eval echo '${'$as_ac_var'}'` = yes; then
34511 cat >>confdefs.h <<_ACEOF
34512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34513 _ACEOF
34516 done
34523 echo "$as_me:$LINENO: checking for float trig functions" >&5
34524 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34525 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34526 echo $ECHO_N "(cached) $ECHO_C" >&6
34527 else
34531 ac_ext=cc
34532 ac_cpp='$CXXCPP $CPPFLAGS'
34533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34537 cat >conftest.$ac_ext <<_ACEOF
34538 /* confdefs.h. */
34539 _ACEOF
34540 cat confdefs.h >>conftest.$ac_ext
34541 cat >>conftest.$ac_ext <<_ACEOF
34542 /* end confdefs.h. */
34543 #include <math.h>
34545 main ()
34547 `for x in acosf asinf atanf \
34548 cosf sinf tanf \
34549 coshf sinhf tanhf; do echo "$x (0);"; done`
34551 return 0;
34553 _ACEOF
34554 rm -f conftest.$ac_objext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34556 (eval $ac_compile) 2>conftest.er1
34557 ac_status=$?
34558 grep -v '^ *+' conftest.er1 >conftest.err
34559 rm -f conftest.er1
34560 cat conftest.err >&5
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } &&
34563 { ac_try='test -z "$ac_cxx_werror_flag"
34564 || test ! -s conftest.err'
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); }; } &&
34570 { ac_try='test -s conftest.$ac_objext'
34571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572 (eval $ac_try) 2>&5
34573 ac_status=$?
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); }; }; then
34576 glibcxx_cv_func_float_trig_use=yes
34577 else
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 glibcxx_cv_func_float_trig_use=no
34583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34584 ac_ext=c
34585 ac_cpp='$CPP $CPPFLAGS'
34586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34592 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34593 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34594 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34604 for ac_func in acosf asinf atanf \
34605 cosf sinf tanf \
34606 coshf sinhf tanhf
34608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34609 echo "$as_me:$LINENO: checking for $ac_func" >&5
34610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34611 if eval "test \"\${$as_ac_var+set}\" = set"; then
34612 echo $ECHO_N "(cached) $ECHO_C" >&6
34613 else
34614 if test x$gcc_no_link = xyes; then
34615 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34617 { (exit 1); exit 1; }; }
34619 cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h. */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34627 #define $ac_func innocuous_$ac_func
34629 /* System header to define __stub macros and hopefully few prototypes,
34630 which can conflict with char $ac_func (); below.
34631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34632 <limits.h> exists even on freestanding compilers. */
34634 #ifdef __STDC__
34635 # include <limits.h>
34636 #else
34637 # include <assert.h>
34638 #endif
34640 #undef $ac_func
34642 /* Override any gcc2 internal prototype to avoid an error. */
34643 #ifdef __cplusplus
34644 extern "C"
34646 #endif
34647 /* We use char because int might match the return type of a gcc2
34648 builtin and then its argument prototype would still apply. */
34649 char $ac_func ();
34650 /* The GNU C library defines this for functions which it implements
34651 to always fail with ENOSYS. Some functions are actually named
34652 something starting with __ and the normal name is an alias. */
34653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34654 choke me
34655 #else
34656 char (*f) () = $ac_func;
34657 #endif
34658 #ifdef __cplusplus
34660 #endif
34663 main ()
34665 return f != $ac_func;
34667 return 0;
34669 _ACEOF
34670 rm -f conftest.$ac_objext conftest$ac_exeext
34671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34672 (eval $ac_link) 2>conftest.er1
34673 ac_status=$?
34674 grep -v '^ *+' conftest.er1 >conftest.err
34675 rm -f conftest.er1
34676 cat conftest.err >&5
34677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); } &&
34679 { ac_try='test -z "$ac_c_werror_flag"
34680 || test ! -s conftest.err'
34681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34682 (eval $ac_try) 2>&5
34683 ac_status=$?
34684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685 (exit $ac_status); }; } &&
34686 { ac_try='test -s conftest$ac_exeext'
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; }; then
34692 eval "$as_ac_var=yes"
34693 else
34694 echo "$as_me: failed program was:" >&5
34695 sed 's/^/| /' conftest.$ac_ext >&5
34697 eval "$as_ac_var=no"
34699 rm -f conftest.err conftest.$ac_objext \
34700 conftest$ac_exeext conftest.$ac_ext
34702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34704 if test `eval echo '${'$as_ac_var'}'` = yes; then
34705 cat >>confdefs.h <<_ACEOF
34706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34707 _ACEOF
34710 done
34715 echo "$as_me:$LINENO: checking for float round functions" >&5
34716 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34717 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34718 echo $ECHO_N "(cached) $ECHO_C" >&6
34719 else
34723 ac_ext=cc
34724 ac_cpp='$CXXCPP $CPPFLAGS'
34725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34729 cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h. */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h. */
34735 #include <math.h>
34737 main ()
34739 `for x in ceilf floorf; do echo "$x (0);"; done`
34741 return 0;
34743 _ACEOF
34744 rm -f conftest.$ac_objext
34745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34746 (eval $ac_compile) 2>conftest.er1
34747 ac_status=$?
34748 grep -v '^ *+' conftest.er1 >conftest.err
34749 rm -f conftest.er1
34750 cat conftest.err >&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
34753 { ac_try='test -z "$ac_cxx_werror_flag"
34754 || test ! -s conftest.err'
34755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756 (eval $ac_try) 2>&5
34757 ac_status=$?
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); }; } &&
34760 { ac_try='test -s conftest.$ac_objext'
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34763 ac_status=$?
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; }; then
34766 glibcxx_cv_func_float_round_use=yes
34767 else
34768 echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34771 glibcxx_cv_func_float_round_use=no
34773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34774 ac_ext=c
34775 ac_cpp='$CPP $CPPFLAGS'
34776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34782 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34783 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34784 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34787 for ac_func in ceilf floorf
34789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34790 echo "$as_me:$LINENO: checking for $ac_func" >&5
34791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34792 if eval "test \"\${$as_ac_var+set}\" = set"; then
34793 echo $ECHO_N "(cached) $ECHO_C" >&6
34794 else
34795 if test x$gcc_no_link = xyes; then
34796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34798 { (exit 1); exit 1; }; }
34800 cat >conftest.$ac_ext <<_ACEOF
34801 /* confdefs.h. */
34802 _ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h. */
34806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34808 #define $ac_func innocuous_$ac_func
34810 /* System header to define __stub macros and hopefully few prototypes,
34811 which can conflict with char $ac_func (); below.
34812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34813 <limits.h> exists even on freestanding compilers. */
34815 #ifdef __STDC__
34816 # include <limits.h>
34817 #else
34818 # include <assert.h>
34819 #endif
34821 #undef $ac_func
34823 /* Override any gcc2 internal prototype to avoid an error. */
34824 #ifdef __cplusplus
34825 extern "C"
34827 #endif
34828 /* We use char because int might match the return type of a gcc2
34829 builtin and then its argument prototype would still apply. */
34830 char $ac_func ();
34831 /* The GNU C library defines this for functions which it implements
34832 to always fail with ENOSYS. Some functions are actually named
34833 something starting with __ and the normal name is an alias. */
34834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34835 choke me
34836 #else
34837 char (*f) () = $ac_func;
34838 #endif
34839 #ifdef __cplusplus
34841 #endif
34844 main ()
34846 return f != $ac_func;
34848 return 0;
34850 _ACEOF
34851 rm -f conftest.$ac_objext conftest$ac_exeext
34852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34853 (eval $ac_link) 2>conftest.er1
34854 ac_status=$?
34855 grep -v '^ *+' conftest.er1 >conftest.err
34856 rm -f conftest.er1
34857 cat conftest.err >&5
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); } &&
34860 { ac_try='test -z "$ac_c_werror_flag"
34861 || test ! -s conftest.err'
34862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34863 (eval $ac_try) 2>&5
34864 ac_status=$?
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); }; } &&
34867 { ac_try='test -s conftest$ac_exeext'
34868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869 (eval $ac_try) 2>&5
34870 ac_status=$?
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); }; }; then
34873 eval "$as_ac_var=yes"
34874 else
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34878 eval "$as_ac_var=no"
34880 rm -f conftest.err conftest.$ac_objext \
34881 conftest$ac_exeext conftest.$ac_ext
34883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34885 if test `eval echo '${'$as_ac_var'}'` = yes; then
34886 cat >>confdefs.h <<_ACEOF
34887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34888 _ACEOF
34891 done
34897 echo "$as_me:$LINENO: checking for expf declaration" >&5
34898 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34899 if test x${glibcxx_cv_func_expf_use+set} != xset; then
34900 if test "${glibcxx_cv_func_expf_use+set}" = set; then
34901 echo $ECHO_N "(cached) $ECHO_C" >&6
34902 else
34906 ac_ext=cc
34907 ac_cpp='$CXXCPP $CPPFLAGS'
34908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34912 cat >conftest.$ac_ext <<_ACEOF
34913 /* confdefs.h. */
34914 _ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34918 #include <math.h>
34919 #ifdef HAVE_IEEEFP_H
34920 #include <ieeefp.h>
34921 #endif
34924 main ()
34926 expf(0);
34928 return 0;
34930 _ACEOF
34931 rm -f conftest.$ac_objext
34932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34933 (eval $ac_compile) 2>conftest.er1
34934 ac_status=$?
34935 grep -v '^ *+' conftest.er1 >conftest.err
34936 rm -f conftest.er1
34937 cat conftest.err >&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); } &&
34940 { ac_try='test -z "$ac_cxx_werror_flag"
34941 || test ! -s conftest.err'
34942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34943 (eval $ac_try) 2>&5
34944 ac_status=$?
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; } &&
34947 { ac_try='test -s conftest.$ac_objext'
34948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949 (eval $ac_try) 2>&5
34950 ac_status=$?
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); }; }; then
34953 glibcxx_cv_func_expf_use=yes
34954 else
34955 echo "$as_me: failed program was:" >&5
34956 sed 's/^/| /' conftest.$ac_ext >&5
34958 glibcxx_cv_func_expf_use=no
34960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34961 ac_ext=c
34962 ac_cpp='$CPP $CPPFLAGS'
34963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34971 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
34972 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
34974 if test x$glibcxx_cv_func_expf_use = x"yes"; then
34976 for ac_func in expf
34978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34979 echo "$as_me:$LINENO: checking for $ac_func" >&5
34980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34981 if eval "test \"\${$as_ac_var+set}\" = set"; then
34982 echo $ECHO_N "(cached) $ECHO_C" >&6
34983 else
34984 if test x$gcc_no_link = xyes; then
34985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34987 { (exit 1); exit 1; }; }
34989 cat >conftest.$ac_ext <<_ACEOF
34990 /* confdefs.h. */
34991 _ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34997 #define $ac_func innocuous_$ac_func
34999 /* System header to define __stub macros and hopefully few prototypes,
35000 which can conflict with char $ac_func (); below.
35001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35002 <limits.h> exists even on freestanding compilers. */
35004 #ifdef __STDC__
35005 # include <limits.h>
35006 #else
35007 # include <assert.h>
35008 #endif
35010 #undef $ac_func
35012 /* Override any gcc2 internal prototype to avoid an error. */
35013 #ifdef __cplusplus
35014 extern "C"
35016 #endif
35017 /* We use char because int might match the return type of a gcc2
35018 builtin and then its argument prototype would still apply. */
35019 char $ac_func ();
35020 /* The GNU C library defines this for functions which it implements
35021 to always fail with ENOSYS. Some functions are actually named
35022 something starting with __ and the normal name is an alias. */
35023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35024 choke me
35025 #else
35026 char (*f) () = $ac_func;
35027 #endif
35028 #ifdef __cplusplus
35030 #endif
35033 main ()
35035 return f != $ac_func;
35037 return 0;
35039 _ACEOF
35040 rm -f conftest.$ac_objext conftest$ac_exeext
35041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35042 (eval $ac_link) 2>conftest.er1
35043 ac_status=$?
35044 grep -v '^ *+' conftest.er1 >conftest.err
35045 rm -f conftest.er1
35046 cat conftest.err >&5
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); } &&
35049 { ac_try='test -z "$ac_c_werror_flag"
35050 || test ! -s conftest.err'
35051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35052 (eval $ac_try) 2>&5
35053 ac_status=$?
35054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055 (exit $ac_status); }; } &&
35056 { ac_try='test -s conftest$ac_exeext'
35057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35058 (eval $ac_try) 2>&5
35059 ac_status=$?
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); }; }; then
35062 eval "$as_ac_var=yes"
35063 else
35064 echo "$as_me: failed program was:" >&5
35065 sed 's/^/| /' conftest.$ac_ext >&5
35067 eval "$as_ac_var=no"
35069 rm -f conftest.err conftest.$ac_objext \
35070 conftest$ac_exeext conftest.$ac_ext
35072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35074 if test `eval echo '${'$as_ac_var'}'` = yes; then
35075 cat >>confdefs.h <<_ACEOF
35076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35077 _ACEOF
35080 done
35082 else
35084 echo "$as_me:$LINENO: checking for _expf declaration" >&5
35085 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35086 if test x${glibcxx_cv_func__expf_use+set} != xset; then
35087 if test "${glibcxx_cv_func__expf_use+set}" = set; then
35088 echo $ECHO_N "(cached) $ECHO_C" >&6
35089 else
35093 ac_ext=cc
35094 ac_cpp='$CXXCPP $CPPFLAGS'
35095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35099 cat >conftest.$ac_ext <<_ACEOF
35100 /* confdefs.h. */
35101 _ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h. */
35105 #include <math.h>
35106 #ifdef HAVE_IEEEFP_H
35107 #include <ieeefp.h>
35108 #endif
35111 main ()
35113 _expf(0);
35115 return 0;
35117 _ACEOF
35118 rm -f conftest.$ac_objext
35119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35120 (eval $ac_compile) 2>conftest.er1
35121 ac_status=$?
35122 grep -v '^ *+' conftest.er1 >conftest.err
35123 rm -f conftest.er1
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
35127 { ac_try='test -z "$ac_cxx_werror_flag"
35128 || test ! -s conftest.err'
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); }; } &&
35134 { ac_try='test -s conftest.$ac_objext'
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; }; then
35140 glibcxx_cv_func__expf_use=yes
35141 else
35142 echo "$as_me: failed program was:" >&5
35143 sed 's/^/| /' conftest.$ac_ext >&5
35145 glibcxx_cv_func__expf_use=no
35147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35148 ac_ext=c
35149 ac_cpp='$CPP $CPPFLAGS'
35150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35158 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35159 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35161 if test x$glibcxx_cv_func__expf_use = x"yes"; then
35163 for ac_func in _expf
35165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35166 echo "$as_me:$LINENO: checking for $ac_func" >&5
35167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35168 if eval "test \"\${$as_ac_var+set}\" = set"; then
35169 echo $ECHO_N "(cached) $ECHO_C" >&6
35170 else
35171 if test x$gcc_no_link = xyes; then
35172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35174 { (exit 1); exit 1; }; }
35176 cat >conftest.$ac_ext <<_ACEOF
35177 /* confdefs.h. */
35178 _ACEOF
35179 cat confdefs.h >>conftest.$ac_ext
35180 cat >>conftest.$ac_ext <<_ACEOF
35181 /* end confdefs.h. */
35182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35184 #define $ac_func innocuous_$ac_func
35186 /* System header to define __stub macros and hopefully few prototypes,
35187 which can conflict with char $ac_func (); below.
35188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35189 <limits.h> exists even on freestanding compilers. */
35191 #ifdef __STDC__
35192 # include <limits.h>
35193 #else
35194 # include <assert.h>
35195 #endif
35197 #undef $ac_func
35199 /* Override any gcc2 internal prototype to avoid an error. */
35200 #ifdef __cplusplus
35201 extern "C"
35203 #endif
35204 /* We use char because int might match the return type of a gcc2
35205 builtin and then its argument prototype would still apply. */
35206 char $ac_func ();
35207 /* The GNU C library defines this for functions which it implements
35208 to always fail with ENOSYS. Some functions are actually named
35209 something starting with __ and the normal name is an alias. */
35210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35211 choke me
35212 #else
35213 char (*f) () = $ac_func;
35214 #endif
35215 #ifdef __cplusplus
35217 #endif
35220 main ()
35222 return f != $ac_func;
35224 return 0;
35226 _ACEOF
35227 rm -f conftest.$ac_objext conftest$ac_exeext
35228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35229 (eval $ac_link) 2>conftest.er1
35230 ac_status=$?
35231 grep -v '^ *+' conftest.er1 >conftest.err
35232 rm -f conftest.er1
35233 cat conftest.err >&5
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); } &&
35236 { ac_try='test -z "$ac_c_werror_flag"
35237 || test ! -s conftest.err'
35238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35239 (eval $ac_try) 2>&5
35240 ac_status=$?
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); }; } &&
35243 { ac_try='test -s conftest$ac_exeext'
35244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35245 (eval $ac_try) 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
35249 eval "$as_ac_var=yes"
35250 else
35251 echo "$as_me: failed program was:" >&5
35252 sed 's/^/| /' conftest.$ac_ext >&5
35254 eval "$as_ac_var=no"
35256 rm -f conftest.err conftest.$ac_objext \
35257 conftest$ac_exeext conftest.$ac_ext
35259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35261 if test `eval echo '${'$as_ac_var'}'` = yes; then
35262 cat >>confdefs.h <<_ACEOF
35263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35264 _ACEOF
35267 done
35274 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35275 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35276 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35277 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35278 echo $ECHO_N "(cached) $ECHO_C" >&6
35279 else
35283 ac_ext=cc
35284 ac_cpp='$CXXCPP $CPPFLAGS'
35285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35289 cat >conftest.$ac_ext <<_ACEOF
35290 /* confdefs.h. */
35291 _ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h. */
35295 #include <math.h>
35296 #ifdef HAVE_IEEEFP_H
35297 #include <ieeefp.h>
35298 #endif
35301 main ()
35303 isnanf(0);
35305 return 0;
35307 _ACEOF
35308 rm -f conftest.$ac_objext
35309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35310 (eval $ac_compile) 2>conftest.er1
35311 ac_status=$?
35312 grep -v '^ *+' conftest.er1 >conftest.err
35313 rm -f conftest.er1
35314 cat conftest.err >&5
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); } &&
35317 { ac_try='test -z "$ac_cxx_werror_flag"
35318 || test ! -s conftest.err'
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; } &&
35324 { ac_try='test -s conftest.$ac_objext'
35325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326 (eval $ac_try) 2>&5
35327 ac_status=$?
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); }; }; then
35330 glibcxx_cv_func_isnanf_use=yes
35331 else
35332 echo "$as_me: failed program was:" >&5
35333 sed 's/^/| /' conftest.$ac_ext >&5
35335 glibcxx_cv_func_isnanf_use=no
35337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35338 ac_ext=c
35339 ac_cpp='$CPP $CPPFLAGS'
35340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35348 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35349 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35351 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35353 for ac_func in isnanf
35355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35356 echo "$as_me:$LINENO: checking for $ac_func" >&5
35357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35358 if eval "test \"\${$as_ac_var+set}\" = set"; then
35359 echo $ECHO_N "(cached) $ECHO_C" >&6
35360 else
35361 if test x$gcc_no_link = xyes; then
35362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35364 { (exit 1); exit 1; }; }
35366 cat >conftest.$ac_ext <<_ACEOF
35367 /* confdefs.h. */
35368 _ACEOF
35369 cat confdefs.h >>conftest.$ac_ext
35370 cat >>conftest.$ac_ext <<_ACEOF
35371 /* end confdefs.h. */
35372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35374 #define $ac_func innocuous_$ac_func
35376 /* System header to define __stub macros and hopefully few prototypes,
35377 which can conflict with char $ac_func (); below.
35378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35379 <limits.h> exists even on freestanding compilers. */
35381 #ifdef __STDC__
35382 # include <limits.h>
35383 #else
35384 # include <assert.h>
35385 #endif
35387 #undef $ac_func
35389 /* Override any gcc2 internal prototype to avoid an error. */
35390 #ifdef __cplusplus
35391 extern "C"
35393 #endif
35394 /* We use char because int might match the return type of a gcc2
35395 builtin and then its argument prototype would still apply. */
35396 char $ac_func ();
35397 /* The GNU C library defines this for functions which it implements
35398 to always fail with ENOSYS. Some functions are actually named
35399 something starting with __ and the normal name is an alias. */
35400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35401 choke me
35402 #else
35403 char (*f) () = $ac_func;
35404 #endif
35405 #ifdef __cplusplus
35407 #endif
35410 main ()
35412 return f != $ac_func;
35414 return 0;
35416 _ACEOF
35417 rm -f conftest.$ac_objext conftest$ac_exeext
35418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35419 (eval $ac_link) 2>conftest.er1
35420 ac_status=$?
35421 grep -v '^ *+' conftest.er1 >conftest.err
35422 rm -f conftest.er1
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } &&
35426 { ac_try='test -z "$ac_c_werror_flag"
35427 || test ! -s conftest.err'
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; } &&
35433 { ac_try='test -s conftest$ac_exeext'
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; }; then
35439 eval "$as_ac_var=yes"
35440 else
35441 echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35444 eval "$as_ac_var=no"
35446 rm -f conftest.err conftest.$ac_objext \
35447 conftest$ac_exeext conftest.$ac_ext
35449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35451 if test `eval echo '${'$as_ac_var'}'` = yes; then
35452 cat >>confdefs.h <<_ACEOF
35453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35454 _ACEOF
35457 done
35459 else
35461 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35462 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35463 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35464 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35465 echo $ECHO_N "(cached) $ECHO_C" >&6
35466 else
35470 ac_ext=cc
35471 ac_cpp='$CXXCPP $CPPFLAGS'
35472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35476 cat >conftest.$ac_ext <<_ACEOF
35477 /* confdefs.h. */
35478 _ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h. */
35482 #include <math.h>
35483 #ifdef HAVE_IEEEFP_H
35484 #include <ieeefp.h>
35485 #endif
35488 main ()
35490 _isnanf(0);
35492 return 0;
35494 _ACEOF
35495 rm -f conftest.$ac_objext
35496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35497 (eval $ac_compile) 2>conftest.er1
35498 ac_status=$?
35499 grep -v '^ *+' conftest.er1 >conftest.err
35500 rm -f conftest.er1
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } &&
35504 { ac_try='test -z "$ac_cxx_werror_flag"
35505 || test ! -s conftest.err'
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); }; } &&
35511 { ac_try='test -s conftest.$ac_objext'
35512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35513 (eval $ac_try) 2>&5
35514 ac_status=$?
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); }; }; then
35517 glibcxx_cv_func__isnanf_use=yes
35518 else
35519 echo "$as_me: failed program was:" >&5
35520 sed 's/^/| /' conftest.$ac_ext >&5
35522 glibcxx_cv_func__isnanf_use=no
35524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35525 ac_ext=c
35526 ac_cpp='$CPP $CPPFLAGS'
35527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35535 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35536 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35538 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35540 for ac_func in _isnanf
35542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35543 echo "$as_me:$LINENO: checking for $ac_func" >&5
35544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35545 if eval "test \"\${$as_ac_var+set}\" = set"; then
35546 echo $ECHO_N "(cached) $ECHO_C" >&6
35547 else
35548 if test x$gcc_no_link = xyes; then
35549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35551 { (exit 1); exit 1; }; }
35553 cat >conftest.$ac_ext <<_ACEOF
35554 /* confdefs.h. */
35555 _ACEOF
35556 cat confdefs.h >>conftest.$ac_ext
35557 cat >>conftest.$ac_ext <<_ACEOF
35558 /* end confdefs.h. */
35559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35561 #define $ac_func innocuous_$ac_func
35563 /* System header to define __stub macros and hopefully few prototypes,
35564 which can conflict with char $ac_func (); below.
35565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35566 <limits.h> exists even on freestanding compilers. */
35568 #ifdef __STDC__
35569 # include <limits.h>
35570 #else
35571 # include <assert.h>
35572 #endif
35574 #undef $ac_func
35576 /* Override any gcc2 internal prototype to avoid an error. */
35577 #ifdef __cplusplus
35578 extern "C"
35580 #endif
35581 /* We use char because int might match the return type of a gcc2
35582 builtin and then its argument prototype would still apply. */
35583 char $ac_func ();
35584 /* The GNU C library defines this for functions which it implements
35585 to always fail with ENOSYS. Some functions are actually named
35586 something starting with __ and the normal name is an alias. */
35587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35588 choke me
35589 #else
35590 char (*f) () = $ac_func;
35591 #endif
35592 #ifdef __cplusplus
35594 #endif
35597 main ()
35599 return f != $ac_func;
35601 return 0;
35603 _ACEOF
35604 rm -f conftest.$ac_objext conftest$ac_exeext
35605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35606 (eval $ac_link) 2>conftest.er1
35607 ac_status=$?
35608 grep -v '^ *+' conftest.er1 >conftest.err
35609 rm -f conftest.er1
35610 cat conftest.err >&5
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); } &&
35613 { ac_try='test -z "$ac_c_werror_flag"
35614 || test ! -s conftest.err'
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; } &&
35620 { ac_try='test -s conftest$ac_exeext'
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; }; then
35626 eval "$as_ac_var=yes"
35627 else
35628 echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35631 eval "$as_ac_var=no"
35633 rm -f conftest.err conftest.$ac_objext \
35634 conftest$ac_exeext conftest.$ac_ext
35636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35638 if test `eval echo '${'$as_ac_var'}'` = yes; then
35639 cat >>confdefs.h <<_ACEOF
35640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35641 _ACEOF
35644 done
35651 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35652 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35653 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35654 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35655 echo $ECHO_N "(cached) $ECHO_C" >&6
35656 else
35660 ac_ext=cc
35661 ac_cpp='$CXXCPP $CPPFLAGS'
35662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h. */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 #include <math.h>
35673 #ifdef HAVE_IEEEFP_H
35674 #include <ieeefp.h>
35675 #endif
35678 main ()
35680 isinff(0);
35682 return 0;
35684 _ACEOF
35685 rm -f conftest.$ac_objext
35686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35687 (eval $ac_compile) 2>conftest.er1
35688 ac_status=$?
35689 grep -v '^ *+' conftest.er1 >conftest.err
35690 rm -f conftest.er1
35691 cat conftest.err >&5
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); } &&
35694 { ac_try='test -z "$ac_cxx_werror_flag"
35695 || test ! -s conftest.err'
35696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35697 (eval $ac_try) 2>&5
35698 ac_status=$?
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); }; } &&
35701 { ac_try='test -s conftest.$ac_objext'
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; }; then
35707 glibcxx_cv_func_isinff_use=yes
35708 else
35709 echo "$as_me: failed program was:" >&5
35710 sed 's/^/| /' conftest.$ac_ext >&5
35712 glibcxx_cv_func_isinff_use=no
35714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35715 ac_ext=c
35716 ac_cpp='$CPP $CPPFLAGS'
35717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35725 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35726 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35728 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35730 for ac_func in isinff
35732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35733 echo "$as_me:$LINENO: checking for $ac_func" >&5
35734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35735 if eval "test \"\${$as_ac_var+set}\" = set"; then
35736 echo $ECHO_N "(cached) $ECHO_C" >&6
35737 else
35738 if test x$gcc_no_link = xyes; then
35739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35741 { (exit 1); exit 1; }; }
35743 cat >conftest.$ac_ext <<_ACEOF
35744 /* confdefs.h. */
35745 _ACEOF
35746 cat confdefs.h >>conftest.$ac_ext
35747 cat >>conftest.$ac_ext <<_ACEOF
35748 /* end confdefs.h. */
35749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35751 #define $ac_func innocuous_$ac_func
35753 /* System header to define __stub macros and hopefully few prototypes,
35754 which can conflict with char $ac_func (); below.
35755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35756 <limits.h> exists even on freestanding compilers. */
35758 #ifdef __STDC__
35759 # include <limits.h>
35760 #else
35761 # include <assert.h>
35762 #endif
35764 #undef $ac_func
35766 /* Override any gcc2 internal prototype to avoid an error. */
35767 #ifdef __cplusplus
35768 extern "C"
35770 #endif
35771 /* We use char because int might match the return type of a gcc2
35772 builtin and then its argument prototype would still apply. */
35773 char $ac_func ();
35774 /* The GNU C library defines this for functions which it implements
35775 to always fail with ENOSYS. Some functions are actually named
35776 something starting with __ and the normal name is an alias. */
35777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35778 choke me
35779 #else
35780 char (*f) () = $ac_func;
35781 #endif
35782 #ifdef __cplusplus
35784 #endif
35787 main ()
35789 return f != $ac_func;
35791 return 0;
35793 _ACEOF
35794 rm -f conftest.$ac_objext conftest$ac_exeext
35795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796 (eval $ac_link) 2>conftest.er1
35797 ac_status=$?
35798 grep -v '^ *+' conftest.er1 >conftest.err
35799 rm -f conftest.er1
35800 cat conftest.err >&5
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); } &&
35803 { ac_try='test -z "$ac_c_werror_flag"
35804 || test ! -s conftest.err'
35805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806 (eval $ac_try) 2>&5
35807 ac_status=$?
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; } &&
35810 { ac_try='test -s conftest$ac_exeext'
35811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812 (eval $ac_try) 2>&5
35813 ac_status=$?
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); }; }; then
35816 eval "$as_ac_var=yes"
35817 else
35818 echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35821 eval "$as_ac_var=no"
35823 rm -f conftest.err conftest.$ac_objext \
35824 conftest$ac_exeext conftest.$ac_ext
35826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35828 if test `eval echo '${'$as_ac_var'}'` = yes; then
35829 cat >>confdefs.h <<_ACEOF
35830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35831 _ACEOF
35834 done
35836 else
35838 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35839 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35840 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35841 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35842 echo $ECHO_N "(cached) $ECHO_C" >&6
35843 else
35847 ac_ext=cc
35848 ac_cpp='$CXXCPP $CPPFLAGS'
35849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35853 cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h. */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h. */
35859 #include <math.h>
35860 #ifdef HAVE_IEEEFP_H
35861 #include <ieeefp.h>
35862 #endif
35865 main ()
35867 _isinff(0);
35869 return 0;
35871 _ACEOF
35872 rm -f conftest.$ac_objext
35873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35874 (eval $ac_compile) 2>conftest.er1
35875 ac_status=$?
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } &&
35881 { ac_try='test -z "$ac_cxx_werror_flag"
35882 || test ! -s conftest.err'
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); }; } &&
35888 { ac_try='test -s conftest.$ac_objext'
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35891 ac_status=$?
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; }; then
35894 glibcxx_cv_func__isinff_use=yes
35895 else
35896 echo "$as_me: failed program was:" >&5
35897 sed 's/^/| /' conftest.$ac_ext >&5
35899 glibcxx_cv_func__isinff_use=no
35901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35902 ac_ext=c
35903 ac_cpp='$CPP $CPPFLAGS'
35904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35912 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35913 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35915 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35917 for ac_func in _isinff
35919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35920 echo "$as_me:$LINENO: checking for $ac_func" >&5
35921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35922 if eval "test \"\${$as_ac_var+set}\" = set"; then
35923 echo $ECHO_N "(cached) $ECHO_C" >&6
35924 else
35925 if test x$gcc_no_link = xyes; then
35926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35928 { (exit 1); exit 1; }; }
35930 cat >conftest.$ac_ext <<_ACEOF
35931 /* confdefs.h. */
35932 _ACEOF
35933 cat confdefs.h >>conftest.$ac_ext
35934 cat >>conftest.$ac_ext <<_ACEOF
35935 /* end confdefs.h. */
35936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35938 #define $ac_func innocuous_$ac_func
35940 /* System header to define __stub macros and hopefully few prototypes,
35941 which can conflict with char $ac_func (); below.
35942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35943 <limits.h> exists even on freestanding compilers. */
35945 #ifdef __STDC__
35946 # include <limits.h>
35947 #else
35948 # include <assert.h>
35949 #endif
35951 #undef $ac_func
35953 /* Override any gcc2 internal prototype to avoid an error. */
35954 #ifdef __cplusplus
35955 extern "C"
35957 #endif
35958 /* We use char because int might match the return type of a gcc2
35959 builtin and then its argument prototype would still apply. */
35960 char $ac_func ();
35961 /* The GNU C library defines this for functions which it implements
35962 to always fail with ENOSYS. Some functions are actually named
35963 something starting with __ and the normal name is an alias. */
35964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35965 choke me
35966 #else
35967 char (*f) () = $ac_func;
35968 #endif
35969 #ifdef __cplusplus
35971 #endif
35974 main ()
35976 return f != $ac_func;
35978 return 0;
35980 _ACEOF
35981 rm -f conftest.$ac_objext conftest$ac_exeext
35982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35983 (eval $ac_link) 2>conftest.er1
35984 ac_status=$?
35985 grep -v '^ *+' conftest.er1 >conftest.err
35986 rm -f conftest.er1
35987 cat conftest.err >&5
35988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989 (exit $ac_status); } &&
35990 { ac_try='test -z "$ac_c_werror_flag"
35991 || test ! -s conftest.err'
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; } &&
35997 { ac_try='test -s conftest$ac_exeext'
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; }; then
36003 eval "$as_ac_var=yes"
36004 else
36005 echo "$as_me: failed program was:" >&5
36006 sed 's/^/| /' conftest.$ac_ext >&5
36008 eval "$as_ac_var=no"
36010 rm -f conftest.err conftest.$ac_objext \
36011 conftest$ac_exeext conftest.$ac_ext
36013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36015 if test `eval echo '${'$as_ac_var'}'` = yes; then
36016 cat >>confdefs.h <<_ACEOF
36017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36018 _ACEOF
36021 done
36028 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36029 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36030 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36031 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36032 echo $ECHO_N "(cached) $ECHO_C" >&6
36033 else
36037 ac_ext=cc
36038 ac_cpp='$CXXCPP $CPPFLAGS'
36039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36043 cat >conftest.$ac_ext <<_ACEOF
36044 /* confdefs.h. */
36045 _ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36049 #include <math.h>
36051 main ()
36053 atan2f(0, 0);
36055 return 0;
36057 _ACEOF
36058 rm -f conftest.$ac_objext
36059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36060 (eval $ac_compile) 2>conftest.er1
36061 ac_status=$?
36062 grep -v '^ *+' conftest.er1 >conftest.err
36063 rm -f conftest.er1
36064 cat conftest.err >&5
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); } &&
36067 { ac_try='test -z "$ac_cxx_werror_flag"
36068 || test ! -s conftest.err'
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36071 ac_status=$?
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; } &&
36074 { ac_try='test -s conftest.$ac_objext'
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 glibcxx_cv_func_atan2f_use=yes
36081 else
36082 echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36085 glibcxx_cv_func_atan2f_use=no
36087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36088 ac_ext=c
36089 ac_cpp='$CPP $CPPFLAGS'
36090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36098 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36099 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36101 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36103 for ac_func in atan2f
36105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36106 echo "$as_me:$LINENO: checking for $ac_func" >&5
36107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36108 if eval "test \"\${$as_ac_var+set}\" = set"; then
36109 echo $ECHO_N "(cached) $ECHO_C" >&6
36110 else
36111 if test x$gcc_no_link = xyes; then
36112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36114 { (exit 1); exit 1; }; }
36116 cat >conftest.$ac_ext <<_ACEOF
36117 /* confdefs.h. */
36118 _ACEOF
36119 cat confdefs.h >>conftest.$ac_ext
36120 cat >>conftest.$ac_ext <<_ACEOF
36121 /* end confdefs.h. */
36122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36124 #define $ac_func innocuous_$ac_func
36126 /* System header to define __stub macros and hopefully few prototypes,
36127 which can conflict with char $ac_func (); below.
36128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36129 <limits.h> exists even on freestanding compilers. */
36131 #ifdef __STDC__
36132 # include <limits.h>
36133 #else
36134 # include <assert.h>
36135 #endif
36137 #undef $ac_func
36139 /* Override any gcc2 internal prototype to avoid an error. */
36140 #ifdef __cplusplus
36141 extern "C"
36143 #endif
36144 /* We use char because int might match the return type of a gcc2
36145 builtin and then its argument prototype would still apply. */
36146 char $ac_func ();
36147 /* The GNU C library defines this for functions which it implements
36148 to always fail with ENOSYS. Some functions are actually named
36149 something starting with __ and the normal name is an alias. */
36150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36151 choke me
36152 #else
36153 char (*f) () = $ac_func;
36154 #endif
36155 #ifdef __cplusplus
36157 #endif
36160 main ()
36162 return f != $ac_func;
36164 return 0;
36166 _ACEOF
36167 rm -f conftest.$ac_objext conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169 (eval $ac_link) 2>conftest.er1
36170 ac_status=$?
36171 grep -v '^ *+' conftest.er1 >conftest.err
36172 rm -f conftest.er1
36173 cat conftest.err >&5
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } &&
36176 { ac_try='test -z "$ac_c_werror_flag"
36177 || test ! -s conftest.err'
36178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179 (eval $ac_try) 2>&5
36180 ac_status=$?
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; } &&
36183 { ac_try='test -s conftest$ac_exeext'
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36186 ac_status=$?
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; }; then
36189 eval "$as_ac_var=yes"
36190 else
36191 echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36194 eval "$as_ac_var=no"
36196 rm -f conftest.err conftest.$ac_objext \
36197 conftest$ac_exeext conftest.$ac_ext
36199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36201 if test `eval echo '${'$as_ac_var'}'` = yes; then
36202 cat >>confdefs.h <<_ACEOF
36203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36204 _ACEOF
36207 done
36209 else
36211 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36212 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36213 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36214 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36215 echo $ECHO_N "(cached) $ECHO_C" >&6
36216 else
36220 ac_ext=cc
36221 ac_cpp='$CXXCPP $CPPFLAGS'
36222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36226 cat >conftest.$ac_ext <<_ACEOF
36227 /* confdefs.h. */
36228 _ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h. */
36232 #include <math.h>
36234 main ()
36236 _atan2f(0, 0);
36238 return 0;
36240 _ACEOF
36241 rm -f conftest.$ac_objext
36242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36243 (eval $ac_compile) 2>conftest.er1
36244 ac_status=$?
36245 grep -v '^ *+' conftest.er1 >conftest.err
36246 rm -f conftest.er1
36247 cat conftest.err >&5
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); } &&
36250 { ac_try='test -z "$ac_cxx_werror_flag"
36251 || test ! -s conftest.err'
36252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253 (eval $ac_try) 2>&5
36254 ac_status=$?
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; } &&
36257 { ac_try='test -s conftest.$ac_objext'
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36260 ac_status=$?
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; }; then
36263 glibcxx_cv_func__atan2f_use=yes
36264 else
36265 echo "$as_me: failed program was:" >&5
36266 sed 's/^/| /' conftest.$ac_ext >&5
36268 glibcxx_cv_func__atan2f_use=no
36270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36271 ac_ext=c
36272 ac_cpp='$CPP $CPPFLAGS'
36273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36281 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36282 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36284 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36286 for ac_func in _atan2f
36288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36289 echo "$as_me:$LINENO: checking for $ac_func" >&5
36290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36291 if eval "test \"\${$as_ac_var+set}\" = set"; then
36292 echo $ECHO_N "(cached) $ECHO_C" >&6
36293 else
36294 if test x$gcc_no_link = xyes; then
36295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36297 { (exit 1); exit 1; }; }
36299 cat >conftest.$ac_ext <<_ACEOF
36300 /* confdefs.h. */
36301 _ACEOF
36302 cat confdefs.h >>conftest.$ac_ext
36303 cat >>conftest.$ac_ext <<_ACEOF
36304 /* end confdefs.h. */
36305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36307 #define $ac_func innocuous_$ac_func
36309 /* System header to define __stub macros and hopefully few prototypes,
36310 which can conflict with char $ac_func (); below.
36311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36312 <limits.h> exists even on freestanding compilers. */
36314 #ifdef __STDC__
36315 # include <limits.h>
36316 #else
36317 # include <assert.h>
36318 #endif
36320 #undef $ac_func
36322 /* Override any gcc2 internal prototype to avoid an error. */
36323 #ifdef __cplusplus
36324 extern "C"
36326 #endif
36327 /* We use char because int might match the return type of a gcc2
36328 builtin and then its argument prototype would still apply. */
36329 char $ac_func ();
36330 /* The GNU C library defines this for functions which it implements
36331 to always fail with ENOSYS. Some functions are actually named
36332 something starting with __ and the normal name is an alias. */
36333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36334 choke me
36335 #else
36336 char (*f) () = $ac_func;
36337 #endif
36338 #ifdef __cplusplus
36340 #endif
36343 main ()
36345 return f != $ac_func;
36347 return 0;
36349 _ACEOF
36350 rm -f conftest.$ac_objext conftest$ac_exeext
36351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36352 (eval $ac_link) 2>conftest.er1
36353 ac_status=$?
36354 grep -v '^ *+' conftest.er1 >conftest.err
36355 rm -f conftest.er1
36356 cat conftest.err >&5
36357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358 (exit $ac_status); } &&
36359 { ac_try='test -z "$ac_c_werror_flag"
36360 || test ! -s conftest.err'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; } &&
36366 { ac_try='test -s conftest$ac_exeext'
36367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368 (eval $ac_try) 2>&5
36369 ac_status=$?
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); }; }; then
36372 eval "$as_ac_var=yes"
36373 else
36374 echo "$as_me: failed program was:" >&5
36375 sed 's/^/| /' conftest.$ac_ext >&5
36377 eval "$as_ac_var=no"
36379 rm -f conftest.err conftest.$ac_objext \
36380 conftest$ac_exeext conftest.$ac_ext
36382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36384 if test `eval echo '${'$as_ac_var'}'` = yes; then
36385 cat >>confdefs.h <<_ACEOF
36386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36387 _ACEOF
36390 done
36397 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36398 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36399 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36400 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36401 echo $ECHO_N "(cached) $ECHO_C" >&6
36402 else
36406 ac_ext=cc
36407 ac_cpp='$CXXCPP $CPPFLAGS'
36408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36412 cat >conftest.$ac_ext <<_ACEOF
36413 /* confdefs.h. */
36414 _ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36418 #include <math.h>
36419 #ifdef HAVE_IEEEFP_H
36420 #include <ieeefp.h>
36421 #endif
36424 main ()
36426 fabsf(0);
36428 return 0;
36430 _ACEOF
36431 rm -f conftest.$ac_objext
36432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36433 (eval $ac_compile) 2>conftest.er1
36434 ac_status=$?
36435 grep -v '^ *+' conftest.er1 >conftest.err
36436 rm -f conftest.er1
36437 cat conftest.err >&5
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); } &&
36440 { ac_try='test -z "$ac_cxx_werror_flag"
36441 || test ! -s conftest.err'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36444 ac_status=$?
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; } &&
36447 { ac_try='test -s conftest.$ac_objext'
36448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449 (eval $ac_try) 2>&5
36450 ac_status=$?
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); }; }; then
36453 glibcxx_cv_func_fabsf_use=yes
36454 else
36455 echo "$as_me: failed program was:" >&5
36456 sed 's/^/| /' conftest.$ac_ext >&5
36458 glibcxx_cv_func_fabsf_use=no
36460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36461 ac_ext=c
36462 ac_cpp='$CPP $CPPFLAGS'
36463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36471 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36472 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36474 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36476 for ac_func in fabsf
36478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36479 echo "$as_me:$LINENO: checking for $ac_func" >&5
36480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36481 if eval "test \"\${$as_ac_var+set}\" = set"; then
36482 echo $ECHO_N "(cached) $ECHO_C" >&6
36483 else
36484 if test x$gcc_no_link = xyes; then
36485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36487 { (exit 1); exit 1; }; }
36489 cat >conftest.$ac_ext <<_ACEOF
36490 /* confdefs.h. */
36491 _ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h. */
36495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36497 #define $ac_func innocuous_$ac_func
36499 /* System header to define __stub macros and hopefully few prototypes,
36500 which can conflict with char $ac_func (); below.
36501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36502 <limits.h> exists even on freestanding compilers. */
36504 #ifdef __STDC__
36505 # include <limits.h>
36506 #else
36507 # include <assert.h>
36508 #endif
36510 #undef $ac_func
36512 /* Override any gcc2 internal prototype to avoid an error. */
36513 #ifdef __cplusplus
36514 extern "C"
36516 #endif
36517 /* We use char because int might match the return type of a gcc2
36518 builtin and then its argument prototype would still apply. */
36519 char $ac_func ();
36520 /* The GNU C library defines this for functions which it implements
36521 to always fail with ENOSYS. Some functions are actually named
36522 something starting with __ and the normal name is an alias. */
36523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36524 choke me
36525 #else
36526 char (*f) () = $ac_func;
36527 #endif
36528 #ifdef __cplusplus
36530 #endif
36533 main ()
36535 return f != $ac_func;
36537 return 0;
36539 _ACEOF
36540 rm -f conftest.$ac_objext conftest$ac_exeext
36541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36542 (eval $ac_link) 2>conftest.er1
36543 ac_status=$?
36544 grep -v '^ *+' conftest.er1 >conftest.err
36545 rm -f conftest.er1
36546 cat conftest.err >&5
36547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); } &&
36549 { ac_try='test -z "$ac_c_werror_flag"
36550 || test ! -s conftest.err'
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36553 ac_status=$?
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; } &&
36556 { ac_try='test -s conftest$ac_exeext'
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; }; then
36562 eval "$as_ac_var=yes"
36563 else
36564 echo "$as_me: failed program was:" >&5
36565 sed 's/^/| /' conftest.$ac_ext >&5
36567 eval "$as_ac_var=no"
36569 rm -f conftest.err conftest.$ac_objext \
36570 conftest$ac_exeext conftest.$ac_ext
36572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36574 if test `eval echo '${'$as_ac_var'}'` = yes; then
36575 cat >>confdefs.h <<_ACEOF
36576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36577 _ACEOF
36580 done
36582 else
36584 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36585 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36586 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36587 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36588 echo $ECHO_N "(cached) $ECHO_C" >&6
36589 else
36593 ac_ext=cc
36594 ac_cpp='$CXXCPP $CPPFLAGS'
36595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36599 cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h. */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h. */
36605 #include <math.h>
36606 #ifdef HAVE_IEEEFP_H
36607 #include <ieeefp.h>
36608 #endif
36611 main ()
36613 _fabsf(0);
36615 return 0;
36617 _ACEOF
36618 rm -f conftest.$ac_objext
36619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36620 (eval $ac_compile) 2>conftest.er1
36621 ac_status=$?
36622 grep -v '^ *+' conftest.er1 >conftest.err
36623 rm -f conftest.er1
36624 cat conftest.err >&5
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); } &&
36627 { ac_try='test -z "$ac_cxx_werror_flag"
36628 || test ! -s conftest.err'
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); }; } &&
36634 { ac_try='test -s conftest.$ac_objext'
36635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36636 (eval $ac_try) 2>&5
36637 ac_status=$?
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); }; }; then
36640 glibcxx_cv_func__fabsf_use=yes
36641 else
36642 echo "$as_me: failed program was:" >&5
36643 sed 's/^/| /' conftest.$ac_ext >&5
36645 glibcxx_cv_func__fabsf_use=no
36647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36648 ac_ext=c
36649 ac_cpp='$CPP $CPPFLAGS'
36650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36658 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36659 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36661 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36663 for ac_func in _fabsf
36665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36666 echo "$as_me:$LINENO: checking for $ac_func" >&5
36667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36668 if eval "test \"\${$as_ac_var+set}\" = set"; then
36669 echo $ECHO_N "(cached) $ECHO_C" >&6
36670 else
36671 if test x$gcc_no_link = xyes; then
36672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36674 { (exit 1); exit 1; }; }
36676 cat >conftest.$ac_ext <<_ACEOF
36677 /* confdefs.h. */
36678 _ACEOF
36679 cat confdefs.h >>conftest.$ac_ext
36680 cat >>conftest.$ac_ext <<_ACEOF
36681 /* end confdefs.h. */
36682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36684 #define $ac_func innocuous_$ac_func
36686 /* System header to define __stub macros and hopefully few prototypes,
36687 which can conflict with char $ac_func (); below.
36688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36689 <limits.h> exists even on freestanding compilers. */
36691 #ifdef __STDC__
36692 # include <limits.h>
36693 #else
36694 # include <assert.h>
36695 #endif
36697 #undef $ac_func
36699 /* Override any gcc2 internal prototype to avoid an error. */
36700 #ifdef __cplusplus
36701 extern "C"
36703 #endif
36704 /* We use char because int might match the return type of a gcc2
36705 builtin and then its argument prototype would still apply. */
36706 char $ac_func ();
36707 /* The GNU C library defines this for functions which it implements
36708 to always fail with ENOSYS. Some functions are actually named
36709 something starting with __ and the normal name is an alias. */
36710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36711 choke me
36712 #else
36713 char (*f) () = $ac_func;
36714 #endif
36715 #ifdef __cplusplus
36717 #endif
36720 main ()
36722 return f != $ac_func;
36724 return 0;
36726 _ACEOF
36727 rm -f conftest.$ac_objext conftest$ac_exeext
36728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36729 (eval $ac_link) 2>conftest.er1
36730 ac_status=$?
36731 grep -v '^ *+' conftest.er1 >conftest.err
36732 rm -f conftest.er1
36733 cat conftest.err >&5
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); } &&
36736 { ac_try='test -z "$ac_c_werror_flag"
36737 || test ! -s conftest.err'
36738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36739 (eval $ac_try) 2>&5
36740 ac_status=$?
36741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742 (exit $ac_status); }; } &&
36743 { ac_try='test -s conftest$ac_exeext'
36744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36745 (eval $ac_try) 2>&5
36746 ac_status=$?
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); }; }; then
36749 eval "$as_ac_var=yes"
36750 else
36751 echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36754 eval "$as_ac_var=no"
36756 rm -f conftest.err conftest.$ac_objext \
36757 conftest$ac_exeext conftest.$ac_ext
36759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36761 if test `eval echo '${'$as_ac_var'}'` = yes; then
36762 cat >>confdefs.h <<_ACEOF
36763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36764 _ACEOF
36767 done
36774 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36775 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36776 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36777 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36778 echo $ECHO_N "(cached) $ECHO_C" >&6
36779 else
36783 ac_ext=cc
36784 ac_cpp='$CXXCPP $CPPFLAGS'
36785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36789 cat >conftest.$ac_ext <<_ACEOF
36790 /* confdefs.h. */
36791 _ACEOF
36792 cat confdefs.h >>conftest.$ac_ext
36793 cat >>conftest.$ac_ext <<_ACEOF
36794 /* end confdefs.h. */
36795 #include <math.h>
36797 main ()
36799 fmodf(0, 0);
36801 return 0;
36803 _ACEOF
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806 (eval $ac_compile) 2>conftest.er1
36807 ac_status=$?
36808 grep -v '^ *+' conftest.er1 >conftest.err
36809 rm -f conftest.er1
36810 cat conftest.err >&5
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
36813 { ac_try='test -z "$ac_cxx_werror_flag"
36814 || test ! -s conftest.err'
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36817 ac_status=$?
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; } &&
36820 { ac_try='test -s conftest.$ac_objext'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36823 ac_status=$?
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36826 glibcxx_cv_func_fmodf_use=yes
36827 else
36828 echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36831 glibcxx_cv_func_fmodf_use=no
36833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36834 ac_ext=c
36835 ac_cpp='$CPP $CPPFLAGS'
36836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36844 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36845 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36847 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36849 for ac_func in fmodf
36851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36852 echo "$as_me:$LINENO: checking for $ac_func" >&5
36853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36854 if eval "test \"\${$as_ac_var+set}\" = set"; then
36855 echo $ECHO_N "(cached) $ECHO_C" >&6
36856 else
36857 if test x$gcc_no_link = xyes; then
36858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36860 { (exit 1); exit 1; }; }
36862 cat >conftest.$ac_ext <<_ACEOF
36863 /* confdefs.h. */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h. */
36868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36870 #define $ac_func innocuous_$ac_func
36872 /* System header to define __stub macros and hopefully few prototypes,
36873 which can conflict with char $ac_func (); below.
36874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36875 <limits.h> exists even on freestanding compilers. */
36877 #ifdef __STDC__
36878 # include <limits.h>
36879 #else
36880 # include <assert.h>
36881 #endif
36883 #undef $ac_func
36885 /* Override any gcc2 internal prototype to avoid an error. */
36886 #ifdef __cplusplus
36887 extern "C"
36889 #endif
36890 /* We use char because int might match the return type of a gcc2
36891 builtin and then its argument prototype would still apply. */
36892 char $ac_func ();
36893 /* The GNU C library defines this for functions which it implements
36894 to always fail with ENOSYS. Some functions are actually named
36895 something starting with __ and the normal name is an alias. */
36896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36897 choke me
36898 #else
36899 char (*f) () = $ac_func;
36900 #endif
36901 #ifdef __cplusplus
36903 #endif
36906 main ()
36908 return f != $ac_func;
36910 return 0;
36912 _ACEOF
36913 rm -f conftest.$ac_objext conftest$ac_exeext
36914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36915 (eval $ac_link) 2>conftest.er1
36916 ac_status=$?
36917 grep -v '^ *+' conftest.er1 >conftest.err
36918 rm -f conftest.er1
36919 cat conftest.err >&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); } &&
36922 { ac_try='test -z "$ac_c_werror_flag"
36923 || test ! -s conftest.err'
36924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925 (eval $ac_try) 2>&5
36926 ac_status=$?
36927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); }; } &&
36929 { ac_try='test -s conftest$ac_exeext'
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36932 ac_status=$?
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; }; then
36935 eval "$as_ac_var=yes"
36936 else
36937 echo "$as_me: failed program was:" >&5
36938 sed 's/^/| /' conftest.$ac_ext >&5
36940 eval "$as_ac_var=no"
36942 rm -f conftest.err conftest.$ac_objext \
36943 conftest$ac_exeext conftest.$ac_ext
36945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36947 if test `eval echo '${'$as_ac_var'}'` = yes; then
36948 cat >>confdefs.h <<_ACEOF
36949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36950 _ACEOF
36953 done
36955 else
36957 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
36958 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
36959 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
36960 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
36961 echo $ECHO_N "(cached) $ECHO_C" >&6
36962 else
36966 ac_ext=cc
36967 ac_cpp='$CXXCPP $CPPFLAGS'
36968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36972 cat >conftest.$ac_ext <<_ACEOF
36973 /* confdefs.h. */
36974 _ACEOF
36975 cat confdefs.h >>conftest.$ac_ext
36976 cat >>conftest.$ac_ext <<_ACEOF
36977 /* end confdefs.h. */
36978 #include <math.h>
36980 main ()
36982 _fmodf(0, 0);
36984 return 0;
36986 _ACEOF
36987 rm -f conftest.$ac_objext
36988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36989 (eval $ac_compile) 2>conftest.er1
36990 ac_status=$?
36991 grep -v '^ *+' conftest.er1 >conftest.err
36992 rm -f conftest.er1
36993 cat conftest.err >&5
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); } &&
36996 { ac_try='test -z "$ac_cxx_werror_flag"
36997 || test ! -s conftest.err'
36998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36999 (eval $ac_try) 2>&5
37000 ac_status=$?
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); }; } &&
37003 { ac_try='test -s conftest.$ac_objext'
37004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37005 (eval $ac_try) 2>&5
37006 ac_status=$?
37007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008 (exit $ac_status); }; }; then
37009 glibcxx_cv_func__fmodf_use=yes
37010 else
37011 echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37014 glibcxx_cv_func__fmodf_use=no
37016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37017 ac_ext=c
37018 ac_cpp='$CPP $CPPFLAGS'
37019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37027 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37028 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37030 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37032 for ac_func in _fmodf
37034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37035 echo "$as_me:$LINENO: checking for $ac_func" >&5
37036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37037 if eval "test \"\${$as_ac_var+set}\" = set"; then
37038 echo $ECHO_N "(cached) $ECHO_C" >&6
37039 else
37040 if test x$gcc_no_link = xyes; then
37041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37043 { (exit 1); exit 1; }; }
37045 cat >conftest.$ac_ext <<_ACEOF
37046 /* confdefs.h. */
37047 _ACEOF
37048 cat confdefs.h >>conftest.$ac_ext
37049 cat >>conftest.$ac_ext <<_ACEOF
37050 /* end confdefs.h. */
37051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37053 #define $ac_func innocuous_$ac_func
37055 /* System header to define __stub macros and hopefully few prototypes,
37056 which can conflict with char $ac_func (); below.
37057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37058 <limits.h> exists even on freestanding compilers. */
37060 #ifdef __STDC__
37061 # include <limits.h>
37062 #else
37063 # include <assert.h>
37064 #endif
37066 #undef $ac_func
37068 /* Override any gcc2 internal prototype to avoid an error. */
37069 #ifdef __cplusplus
37070 extern "C"
37072 #endif
37073 /* We use char because int might match the return type of a gcc2
37074 builtin and then its argument prototype would still apply. */
37075 char $ac_func ();
37076 /* The GNU C library defines this for functions which it implements
37077 to always fail with ENOSYS. Some functions are actually named
37078 something starting with __ and the normal name is an alias. */
37079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37080 choke me
37081 #else
37082 char (*f) () = $ac_func;
37083 #endif
37084 #ifdef __cplusplus
37086 #endif
37089 main ()
37091 return f != $ac_func;
37093 return 0;
37095 _ACEOF
37096 rm -f conftest.$ac_objext conftest$ac_exeext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37098 (eval $ac_link) 2>conftest.er1
37099 ac_status=$?
37100 grep -v '^ *+' conftest.er1 >conftest.err
37101 rm -f conftest.er1
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
37105 { ac_try='test -z "$ac_c_werror_flag"
37106 || test ! -s conftest.err'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37109 ac_status=$?
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; } &&
37112 { ac_try='test -s conftest$ac_exeext'
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37115 ac_status=$?
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; }; then
37118 eval "$as_ac_var=yes"
37119 else
37120 echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37123 eval "$as_ac_var=no"
37125 rm -f conftest.err conftest.$ac_objext \
37126 conftest$ac_exeext conftest.$ac_ext
37128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37130 if test `eval echo '${'$as_ac_var'}'` = yes; then
37131 cat >>confdefs.h <<_ACEOF
37132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37133 _ACEOF
37136 done
37143 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37144 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37145 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37146 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37147 echo $ECHO_N "(cached) $ECHO_C" >&6
37148 else
37152 ac_ext=cc
37153 ac_cpp='$CXXCPP $CPPFLAGS'
37154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37158 cat >conftest.$ac_ext <<_ACEOF
37159 /* confdefs.h. */
37160 _ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h. */
37164 #include <math.h>
37166 main ()
37168 frexpf(0, 0);
37170 return 0;
37172 _ACEOF
37173 rm -f conftest.$ac_objext
37174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37175 (eval $ac_compile) 2>conftest.er1
37176 ac_status=$?
37177 grep -v '^ *+' conftest.er1 >conftest.err
37178 rm -f conftest.er1
37179 cat conftest.err >&5
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); } &&
37182 { ac_try='test -z "$ac_cxx_werror_flag"
37183 || test ! -s conftest.err'
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37186 ac_status=$?
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; } &&
37189 { ac_try='test -s conftest.$ac_objext'
37190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191 (eval $ac_try) 2>&5
37192 ac_status=$?
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); }; }; then
37195 glibcxx_cv_func_frexpf_use=yes
37196 else
37197 echo "$as_me: failed program was:" >&5
37198 sed 's/^/| /' conftest.$ac_ext >&5
37200 glibcxx_cv_func_frexpf_use=no
37202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37203 ac_ext=c
37204 ac_cpp='$CPP $CPPFLAGS'
37205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37213 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37214 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37216 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37218 for ac_func in frexpf
37220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37221 echo "$as_me:$LINENO: checking for $ac_func" >&5
37222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37223 if eval "test \"\${$as_ac_var+set}\" = set"; then
37224 echo $ECHO_N "(cached) $ECHO_C" >&6
37225 else
37226 if test x$gcc_no_link = xyes; then
37227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37229 { (exit 1); exit 1; }; }
37231 cat >conftest.$ac_ext <<_ACEOF
37232 /* confdefs.h. */
37233 _ACEOF
37234 cat confdefs.h >>conftest.$ac_ext
37235 cat >>conftest.$ac_ext <<_ACEOF
37236 /* end confdefs.h. */
37237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37239 #define $ac_func innocuous_$ac_func
37241 /* System header to define __stub macros and hopefully few prototypes,
37242 which can conflict with char $ac_func (); below.
37243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37244 <limits.h> exists even on freestanding compilers. */
37246 #ifdef __STDC__
37247 # include <limits.h>
37248 #else
37249 # include <assert.h>
37250 #endif
37252 #undef $ac_func
37254 /* Override any gcc2 internal prototype to avoid an error. */
37255 #ifdef __cplusplus
37256 extern "C"
37258 #endif
37259 /* We use char because int might match the return type of a gcc2
37260 builtin and then its argument prototype would still apply. */
37261 char $ac_func ();
37262 /* The GNU C library defines this for functions which it implements
37263 to always fail with ENOSYS. Some functions are actually named
37264 something starting with __ and the normal name is an alias. */
37265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37266 choke me
37267 #else
37268 char (*f) () = $ac_func;
37269 #endif
37270 #ifdef __cplusplus
37272 #endif
37275 main ()
37277 return f != $ac_func;
37279 return 0;
37281 _ACEOF
37282 rm -f conftest.$ac_objext conftest$ac_exeext
37283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37284 (eval $ac_link) 2>conftest.er1
37285 ac_status=$?
37286 grep -v '^ *+' conftest.er1 >conftest.err
37287 rm -f conftest.er1
37288 cat conftest.err >&5
37289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290 (exit $ac_status); } &&
37291 { ac_try='test -z "$ac_c_werror_flag"
37292 || test ! -s conftest.err'
37293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 (eval $ac_try) 2>&5
37295 ac_status=$?
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); }; } &&
37298 { ac_try='test -s conftest$ac_exeext'
37299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300 (eval $ac_try) 2>&5
37301 ac_status=$?
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); }; }; then
37304 eval "$as_ac_var=yes"
37305 else
37306 echo "$as_me: failed program was:" >&5
37307 sed 's/^/| /' conftest.$ac_ext >&5
37309 eval "$as_ac_var=no"
37311 rm -f conftest.err conftest.$ac_objext \
37312 conftest$ac_exeext conftest.$ac_ext
37314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37316 if test `eval echo '${'$as_ac_var'}'` = yes; then
37317 cat >>confdefs.h <<_ACEOF
37318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37319 _ACEOF
37322 done
37324 else
37326 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37327 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37328 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37329 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37330 echo $ECHO_N "(cached) $ECHO_C" >&6
37331 else
37335 ac_ext=cc
37336 ac_cpp='$CXXCPP $CPPFLAGS'
37337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37341 cat >conftest.$ac_ext <<_ACEOF
37342 /* confdefs.h. */
37343 _ACEOF
37344 cat confdefs.h >>conftest.$ac_ext
37345 cat >>conftest.$ac_ext <<_ACEOF
37346 /* end confdefs.h. */
37347 #include <math.h>
37349 main ()
37351 _frexpf(0, 0);
37353 return 0;
37355 _ACEOF
37356 rm -f conftest.$ac_objext
37357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37358 (eval $ac_compile) 2>conftest.er1
37359 ac_status=$?
37360 grep -v '^ *+' conftest.er1 >conftest.err
37361 rm -f conftest.er1
37362 cat conftest.err >&5
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); } &&
37365 { ac_try='test -z "$ac_cxx_werror_flag"
37366 || test ! -s conftest.err'
37367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37368 (eval $ac_try) 2>&5
37369 ac_status=$?
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); }; } &&
37372 { ac_try='test -s conftest.$ac_objext'
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37375 ac_status=$?
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 glibcxx_cv_func__frexpf_use=yes
37379 else
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 glibcxx_cv_func__frexpf_use=no
37385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37386 ac_ext=c
37387 ac_cpp='$CPP $CPPFLAGS'
37388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37396 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37397 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37399 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37401 for ac_func in _frexpf
37403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37404 echo "$as_me:$LINENO: checking for $ac_func" >&5
37405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37406 if eval "test \"\${$as_ac_var+set}\" = set"; then
37407 echo $ECHO_N "(cached) $ECHO_C" >&6
37408 else
37409 if test x$gcc_no_link = xyes; then
37410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37412 { (exit 1); exit 1; }; }
37414 cat >conftest.$ac_ext <<_ACEOF
37415 /* confdefs.h. */
37416 _ACEOF
37417 cat confdefs.h >>conftest.$ac_ext
37418 cat >>conftest.$ac_ext <<_ACEOF
37419 /* end confdefs.h. */
37420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37422 #define $ac_func innocuous_$ac_func
37424 /* System header to define __stub macros and hopefully few prototypes,
37425 which can conflict with char $ac_func (); below.
37426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37427 <limits.h> exists even on freestanding compilers. */
37429 #ifdef __STDC__
37430 # include <limits.h>
37431 #else
37432 # include <assert.h>
37433 #endif
37435 #undef $ac_func
37437 /* Override any gcc2 internal prototype to avoid an error. */
37438 #ifdef __cplusplus
37439 extern "C"
37441 #endif
37442 /* We use char because int might match the return type of a gcc2
37443 builtin and then its argument prototype would still apply. */
37444 char $ac_func ();
37445 /* The GNU C library defines this for functions which it implements
37446 to always fail with ENOSYS. Some functions are actually named
37447 something starting with __ and the normal name is an alias. */
37448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37449 choke me
37450 #else
37451 char (*f) () = $ac_func;
37452 #endif
37453 #ifdef __cplusplus
37455 #endif
37458 main ()
37460 return f != $ac_func;
37462 return 0;
37464 _ACEOF
37465 rm -f conftest.$ac_objext conftest$ac_exeext
37466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37467 (eval $ac_link) 2>conftest.er1
37468 ac_status=$?
37469 grep -v '^ *+' conftest.er1 >conftest.err
37470 rm -f conftest.er1
37471 cat conftest.err >&5
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } &&
37474 { ac_try='test -z "$ac_c_werror_flag"
37475 || test ! -s conftest.err'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37478 ac_status=$?
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; } &&
37481 { ac_try='test -s conftest$ac_exeext'
37482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37483 (eval $ac_try) 2>&5
37484 ac_status=$?
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 eval "$as_ac_var=yes"
37488 else
37489 echo "$as_me: failed program was:" >&5
37490 sed 's/^/| /' conftest.$ac_ext >&5
37492 eval "$as_ac_var=no"
37494 rm -f conftest.err conftest.$ac_objext \
37495 conftest$ac_exeext conftest.$ac_ext
37497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37499 if test `eval echo '${'$as_ac_var'}'` = yes; then
37500 cat >>confdefs.h <<_ACEOF
37501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37502 _ACEOF
37505 done
37512 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37513 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37514 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37515 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37516 echo $ECHO_N "(cached) $ECHO_C" >&6
37517 else
37521 ac_ext=cc
37522 ac_cpp='$CXXCPP $CPPFLAGS'
37523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37527 cat >conftest.$ac_ext <<_ACEOF
37528 /* confdefs.h. */
37529 _ACEOF
37530 cat confdefs.h >>conftest.$ac_ext
37531 cat >>conftest.$ac_ext <<_ACEOF
37532 /* end confdefs.h. */
37533 #include <math.h>
37535 main ()
37537 hypotf(0, 0);
37539 return 0;
37541 _ACEOF
37542 rm -f conftest.$ac_objext
37543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37544 (eval $ac_compile) 2>conftest.er1
37545 ac_status=$?
37546 grep -v '^ *+' conftest.er1 >conftest.err
37547 rm -f conftest.er1
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } &&
37551 { ac_try='test -z "$ac_cxx_werror_flag"
37552 || test ! -s conftest.err'
37553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554 (eval $ac_try) 2>&5
37555 ac_status=$?
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); }; } &&
37558 { ac_try='test -s conftest.$ac_objext'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37561 ac_status=$?
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; }; then
37564 glibcxx_cv_func_hypotf_use=yes
37565 else
37566 echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37569 glibcxx_cv_func_hypotf_use=no
37571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37572 ac_ext=c
37573 ac_cpp='$CPP $CPPFLAGS'
37574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37582 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37583 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37585 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37587 for ac_func in hypotf
37589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37590 echo "$as_me:$LINENO: checking for $ac_func" >&5
37591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37592 if eval "test \"\${$as_ac_var+set}\" = set"; then
37593 echo $ECHO_N "(cached) $ECHO_C" >&6
37594 else
37595 if test x$gcc_no_link = xyes; then
37596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37598 { (exit 1); exit 1; }; }
37600 cat >conftest.$ac_ext <<_ACEOF
37601 /* confdefs.h. */
37602 _ACEOF
37603 cat confdefs.h >>conftest.$ac_ext
37604 cat >>conftest.$ac_ext <<_ACEOF
37605 /* end confdefs.h. */
37606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37608 #define $ac_func innocuous_$ac_func
37610 /* System header to define __stub macros and hopefully few prototypes,
37611 which can conflict with char $ac_func (); below.
37612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37613 <limits.h> exists even on freestanding compilers. */
37615 #ifdef __STDC__
37616 # include <limits.h>
37617 #else
37618 # include <assert.h>
37619 #endif
37621 #undef $ac_func
37623 /* Override any gcc2 internal prototype to avoid an error. */
37624 #ifdef __cplusplus
37625 extern "C"
37627 #endif
37628 /* We use char because int might match the return type of a gcc2
37629 builtin and then its argument prototype would still apply. */
37630 char $ac_func ();
37631 /* The GNU C library defines this for functions which it implements
37632 to always fail with ENOSYS. Some functions are actually named
37633 something starting with __ and the normal name is an alias. */
37634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37635 choke me
37636 #else
37637 char (*f) () = $ac_func;
37638 #endif
37639 #ifdef __cplusplus
37641 #endif
37644 main ()
37646 return f != $ac_func;
37648 return 0;
37650 _ACEOF
37651 rm -f conftest.$ac_objext conftest$ac_exeext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37653 (eval $ac_link) 2>conftest.er1
37654 ac_status=$?
37655 grep -v '^ *+' conftest.er1 >conftest.err
37656 rm -f conftest.er1
37657 cat conftest.err >&5
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); } &&
37660 { ac_try='test -z "$ac_c_werror_flag"
37661 || test ! -s conftest.err'
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest$ac_exeext'
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 eval "$as_ac_var=yes"
37674 else
37675 echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37678 eval "$as_ac_var=no"
37680 rm -f conftest.err conftest.$ac_objext \
37681 conftest$ac_exeext conftest.$ac_ext
37683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37685 if test `eval echo '${'$as_ac_var'}'` = yes; then
37686 cat >>confdefs.h <<_ACEOF
37687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37688 _ACEOF
37691 done
37693 else
37695 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37696 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37697 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37698 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37699 echo $ECHO_N "(cached) $ECHO_C" >&6
37700 else
37704 ac_ext=cc
37705 ac_cpp='$CXXCPP $CPPFLAGS'
37706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37710 cat >conftest.$ac_ext <<_ACEOF
37711 /* confdefs.h. */
37712 _ACEOF
37713 cat confdefs.h >>conftest.$ac_ext
37714 cat >>conftest.$ac_ext <<_ACEOF
37715 /* end confdefs.h. */
37716 #include <math.h>
37718 main ()
37720 _hypotf(0, 0);
37722 return 0;
37724 _ACEOF
37725 rm -f conftest.$ac_objext
37726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37727 (eval $ac_compile) 2>conftest.er1
37728 ac_status=$?
37729 grep -v '^ *+' conftest.er1 >conftest.err
37730 rm -f conftest.er1
37731 cat conftest.err >&5
37732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); } &&
37734 { ac_try='test -z "$ac_cxx_werror_flag"
37735 || test ! -s conftest.err'
37736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37737 (eval $ac_try) 2>&5
37738 ac_status=$?
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); }; } &&
37741 { ac_try='test -s conftest.$ac_objext'
37742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37743 (eval $ac_try) 2>&5
37744 ac_status=$?
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); }; }; then
37747 glibcxx_cv_func__hypotf_use=yes
37748 else
37749 echo "$as_me: failed program was:" >&5
37750 sed 's/^/| /' conftest.$ac_ext >&5
37752 glibcxx_cv_func__hypotf_use=no
37754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37755 ac_ext=c
37756 ac_cpp='$CPP $CPPFLAGS'
37757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37765 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37766 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37768 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37770 for ac_func in _hypotf
37772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37773 echo "$as_me:$LINENO: checking for $ac_func" >&5
37774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37775 if eval "test \"\${$as_ac_var+set}\" = set"; then
37776 echo $ECHO_N "(cached) $ECHO_C" >&6
37777 else
37778 if test x$gcc_no_link = xyes; then
37779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37781 { (exit 1); exit 1; }; }
37783 cat >conftest.$ac_ext <<_ACEOF
37784 /* confdefs.h. */
37785 _ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h. */
37789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37791 #define $ac_func innocuous_$ac_func
37793 /* System header to define __stub macros and hopefully few prototypes,
37794 which can conflict with char $ac_func (); below.
37795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37796 <limits.h> exists even on freestanding compilers. */
37798 #ifdef __STDC__
37799 # include <limits.h>
37800 #else
37801 # include <assert.h>
37802 #endif
37804 #undef $ac_func
37806 /* Override any gcc2 internal prototype to avoid an error. */
37807 #ifdef __cplusplus
37808 extern "C"
37810 #endif
37811 /* We use char because int might match the return type of a gcc2
37812 builtin and then its argument prototype would still apply. */
37813 char $ac_func ();
37814 /* The GNU C library defines this for functions which it implements
37815 to always fail with ENOSYS. Some functions are actually named
37816 something starting with __ and the normal name is an alias. */
37817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37818 choke me
37819 #else
37820 char (*f) () = $ac_func;
37821 #endif
37822 #ifdef __cplusplus
37824 #endif
37827 main ()
37829 return f != $ac_func;
37831 return 0;
37833 _ACEOF
37834 rm -f conftest.$ac_objext conftest$ac_exeext
37835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37836 (eval $ac_link) 2>conftest.er1
37837 ac_status=$?
37838 grep -v '^ *+' conftest.er1 >conftest.err
37839 rm -f conftest.er1
37840 cat conftest.err >&5
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); } &&
37843 { ac_try='test -z "$ac_c_werror_flag"
37844 || test ! -s conftest.err'
37845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37846 (eval $ac_try) 2>&5
37847 ac_status=$?
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); }; } &&
37850 { ac_try='test -s conftest$ac_exeext'
37851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37852 (eval $ac_try) 2>&5
37853 ac_status=$?
37854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855 (exit $ac_status); }; }; then
37856 eval "$as_ac_var=yes"
37857 else
37858 echo "$as_me: failed program was:" >&5
37859 sed 's/^/| /' conftest.$ac_ext >&5
37861 eval "$as_ac_var=no"
37863 rm -f conftest.err conftest.$ac_objext \
37864 conftest$ac_exeext conftest.$ac_ext
37866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37868 if test `eval echo '${'$as_ac_var'}'` = yes; then
37869 cat >>confdefs.h <<_ACEOF
37870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37871 _ACEOF
37874 done
37881 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37882 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37883 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37884 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37886 else
37890 ac_ext=cc
37891 ac_cpp='$CXXCPP $CPPFLAGS'
37892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37896 cat >conftest.$ac_ext <<_ACEOF
37897 /* confdefs.h. */
37898 _ACEOF
37899 cat confdefs.h >>conftest.$ac_ext
37900 cat >>conftest.$ac_ext <<_ACEOF
37901 /* end confdefs.h. */
37902 #include <math.h>
37904 main ()
37906 ldexpf(0, 0);
37908 return 0;
37910 _ACEOF
37911 rm -f conftest.$ac_objext
37912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37913 (eval $ac_compile) 2>conftest.er1
37914 ac_status=$?
37915 grep -v '^ *+' conftest.er1 >conftest.err
37916 rm -f conftest.er1
37917 cat conftest.err >&5
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); } &&
37920 { ac_try='test -z "$ac_cxx_werror_flag"
37921 || test ! -s conftest.err'
37922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923 (eval $ac_try) 2>&5
37924 ac_status=$?
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); }; } &&
37927 { ac_try='test -s conftest.$ac_objext'
37928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37929 (eval $ac_try) 2>&5
37930 ac_status=$?
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); }; }; then
37933 glibcxx_cv_func_ldexpf_use=yes
37934 else
37935 echo "$as_me: failed program was:" >&5
37936 sed 's/^/| /' conftest.$ac_ext >&5
37938 glibcxx_cv_func_ldexpf_use=no
37940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37941 ac_ext=c
37942 ac_cpp='$CPP $CPPFLAGS'
37943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37951 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
37952 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
37954 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
37956 for ac_func in ldexpf
37958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37959 echo "$as_me:$LINENO: checking for $ac_func" >&5
37960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37961 if eval "test \"\${$as_ac_var+set}\" = set"; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37963 else
37964 if test x$gcc_no_link = xyes; then
37965 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37967 { (exit 1); exit 1; }; }
37969 cat >conftest.$ac_ext <<_ACEOF
37970 /* confdefs.h. */
37971 _ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h. */
37975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37977 #define $ac_func innocuous_$ac_func
37979 /* System header to define __stub macros and hopefully few prototypes,
37980 which can conflict with char $ac_func (); below.
37981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37982 <limits.h> exists even on freestanding compilers. */
37984 #ifdef __STDC__
37985 # include <limits.h>
37986 #else
37987 # include <assert.h>
37988 #endif
37990 #undef $ac_func
37992 /* Override any gcc2 internal prototype to avoid an error. */
37993 #ifdef __cplusplus
37994 extern "C"
37996 #endif
37997 /* We use char because int might match the return type of a gcc2
37998 builtin and then its argument prototype would still apply. */
37999 char $ac_func ();
38000 /* The GNU C library defines this for functions which it implements
38001 to always fail with ENOSYS. Some functions are actually named
38002 something starting with __ and the normal name is an alias. */
38003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38004 choke me
38005 #else
38006 char (*f) () = $ac_func;
38007 #endif
38008 #ifdef __cplusplus
38010 #endif
38013 main ()
38015 return f != $ac_func;
38017 return 0;
38019 _ACEOF
38020 rm -f conftest.$ac_objext conftest$ac_exeext
38021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38022 (eval $ac_link) 2>conftest.er1
38023 ac_status=$?
38024 grep -v '^ *+' conftest.er1 >conftest.err
38025 rm -f conftest.er1
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } &&
38029 { ac_try='test -z "$ac_c_werror_flag"
38030 || test ! -s conftest.err'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38033 ac_status=$?
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; } &&
38036 { ac_try='test -s conftest$ac_exeext'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38039 ac_status=$?
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; }; then
38042 eval "$as_ac_var=yes"
38043 else
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38047 eval "$as_ac_var=no"
38049 rm -f conftest.err conftest.$ac_objext \
38050 conftest$ac_exeext conftest.$ac_ext
38052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38054 if test `eval echo '${'$as_ac_var'}'` = yes; then
38055 cat >>confdefs.h <<_ACEOF
38056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38057 _ACEOF
38060 done
38062 else
38064 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38065 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38066 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38067 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38068 echo $ECHO_N "(cached) $ECHO_C" >&6
38069 else
38073 ac_ext=cc
38074 ac_cpp='$CXXCPP $CPPFLAGS'
38075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38079 cat >conftest.$ac_ext <<_ACEOF
38080 /* confdefs.h. */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38085 #include <math.h>
38087 main ()
38089 _ldexpf(0, 0);
38091 return 0;
38093 _ACEOF
38094 rm -f conftest.$ac_objext
38095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38096 (eval $ac_compile) 2>conftest.er1
38097 ac_status=$?
38098 grep -v '^ *+' conftest.er1 >conftest.err
38099 rm -f conftest.er1
38100 cat conftest.err >&5
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); } &&
38103 { ac_try='test -z "$ac_cxx_werror_flag"
38104 || test ! -s conftest.err'
38105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38106 (eval $ac_try) 2>&5
38107 ac_status=$?
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); }; } &&
38110 { ac_try='test -s conftest.$ac_objext'
38111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112 (eval $ac_try) 2>&5
38113 ac_status=$?
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; }; then
38116 glibcxx_cv_func__ldexpf_use=yes
38117 else
38118 echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38121 glibcxx_cv_func__ldexpf_use=no
38123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38124 ac_ext=c
38125 ac_cpp='$CPP $CPPFLAGS'
38126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38134 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38135 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38137 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38139 for ac_func in _ldexpf
38141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38142 echo "$as_me:$LINENO: checking for $ac_func" >&5
38143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38144 if eval "test \"\${$as_ac_var+set}\" = set"; then
38145 echo $ECHO_N "(cached) $ECHO_C" >&6
38146 else
38147 if test x$gcc_no_link = xyes; then
38148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38150 { (exit 1); exit 1; }; }
38152 cat >conftest.$ac_ext <<_ACEOF
38153 /* confdefs.h. */
38154 _ACEOF
38155 cat confdefs.h >>conftest.$ac_ext
38156 cat >>conftest.$ac_ext <<_ACEOF
38157 /* end confdefs.h. */
38158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38160 #define $ac_func innocuous_$ac_func
38162 /* System header to define __stub macros and hopefully few prototypes,
38163 which can conflict with char $ac_func (); below.
38164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38165 <limits.h> exists even on freestanding compilers. */
38167 #ifdef __STDC__
38168 # include <limits.h>
38169 #else
38170 # include <assert.h>
38171 #endif
38173 #undef $ac_func
38175 /* Override any gcc2 internal prototype to avoid an error. */
38176 #ifdef __cplusplus
38177 extern "C"
38179 #endif
38180 /* We use char because int might match the return type of a gcc2
38181 builtin and then its argument prototype would still apply. */
38182 char $ac_func ();
38183 /* The GNU C library defines this for functions which it implements
38184 to always fail with ENOSYS. Some functions are actually named
38185 something starting with __ and the normal name is an alias. */
38186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38187 choke me
38188 #else
38189 char (*f) () = $ac_func;
38190 #endif
38191 #ifdef __cplusplus
38193 #endif
38196 main ()
38198 return f != $ac_func;
38200 return 0;
38202 _ACEOF
38203 rm -f conftest.$ac_objext conftest$ac_exeext
38204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38205 (eval $ac_link) 2>conftest.er1
38206 ac_status=$?
38207 grep -v '^ *+' conftest.er1 >conftest.err
38208 rm -f conftest.er1
38209 cat conftest.err >&5
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } &&
38212 { ac_try='test -z "$ac_c_werror_flag"
38213 || test ! -s conftest.err'
38214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38215 (eval $ac_try) 2>&5
38216 ac_status=$?
38217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); }; } &&
38219 { ac_try='test -s conftest$ac_exeext'
38220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38221 (eval $ac_try) 2>&5
38222 ac_status=$?
38223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224 (exit $ac_status); }; }; then
38225 eval "$as_ac_var=yes"
38226 else
38227 echo "$as_me: failed program was:" >&5
38228 sed 's/^/| /' conftest.$ac_ext >&5
38230 eval "$as_ac_var=no"
38232 rm -f conftest.err conftest.$ac_objext \
38233 conftest$ac_exeext conftest.$ac_ext
38235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38237 if test `eval echo '${'$as_ac_var'}'` = yes; then
38238 cat >>confdefs.h <<_ACEOF
38239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38240 _ACEOF
38243 done
38250 echo "$as_me:$LINENO: checking for logf declaration" >&5
38251 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38252 if test x${glibcxx_cv_func_logf_use+set} != xset; then
38253 if test "${glibcxx_cv_func_logf_use+set}" = set; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 else
38259 ac_ext=cc
38260 ac_cpp='$CXXCPP $CPPFLAGS'
38261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38265 cat >conftest.$ac_ext <<_ACEOF
38266 /* confdefs.h. */
38267 _ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h. */
38271 #include <math.h>
38272 #ifdef HAVE_IEEEFP_H
38273 #include <ieeefp.h>
38274 #endif
38277 main ()
38279 logf(0);
38281 return 0;
38283 _ACEOF
38284 rm -f conftest.$ac_objext
38285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38286 (eval $ac_compile) 2>conftest.er1
38287 ac_status=$?
38288 grep -v '^ *+' conftest.er1 >conftest.err
38289 rm -f conftest.er1
38290 cat conftest.err >&5
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); } &&
38293 { ac_try='test -z "$ac_cxx_werror_flag"
38294 || test ! -s conftest.err'
38295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38296 (eval $ac_try) 2>&5
38297 ac_status=$?
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); }; } &&
38300 { ac_try='test -s conftest.$ac_objext'
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; }; then
38306 glibcxx_cv_func_logf_use=yes
38307 else
38308 echo "$as_me: failed program was:" >&5
38309 sed 's/^/| /' conftest.$ac_ext >&5
38311 glibcxx_cv_func_logf_use=no
38313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38314 ac_ext=c
38315 ac_cpp='$CPP $CPPFLAGS'
38316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38324 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38325 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38327 if test x$glibcxx_cv_func_logf_use = x"yes"; then
38329 for ac_func in logf
38331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38332 echo "$as_me:$LINENO: checking for $ac_func" >&5
38333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38334 if eval "test \"\${$as_ac_var+set}\" = set"; then
38335 echo $ECHO_N "(cached) $ECHO_C" >&6
38336 else
38337 if test x$gcc_no_link = xyes; then
38338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38340 { (exit 1); exit 1; }; }
38342 cat >conftest.$ac_ext <<_ACEOF
38343 /* confdefs.h. */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h. */
38348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38350 #define $ac_func innocuous_$ac_func
38352 /* System header to define __stub macros and hopefully few prototypes,
38353 which can conflict with char $ac_func (); below.
38354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38355 <limits.h> exists even on freestanding compilers. */
38357 #ifdef __STDC__
38358 # include <limits.h>
38359 #else
38360 # include <assert.h>
38361 #endif
38363 #undef $ac_func
38365 /* Override any gcc2 internal prototype to avoid an error. */
38366 #ifdef __cplusplus
38367 extern "C"
38369 #endif
38370 /* We use char because int might match the return type of a gcc2
38371 builtin and then its argument prototype would still apply. */
38372 char $ac_func ();
38373 /* The GNU C library defines this for functions which it implements
38374 to always fail with ENOSYS. Some functions are actually named
38375 something starting with __ and the normal name is an alias. */
38376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38377 choke me
38378 #else
38379 char (*f) () = $ac_func;
38380 #endif
38381 #ifdef __cplusplus
38383 #endif
38386 main ()
38388 return f != $ac_func;
38390 return 0;
38392 _ACEOF
38393 rm -f conftest.$ac_objext conftest$ac_exeext
38394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38395 (eval $ac_link) 2>conftest.er1
38396 ac_status=$?
38397 grep -v '^ *+' conftest.er1 >conftest.err
38398 rm -f conftest.er1
38399 cat conftest.err >&5
38400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401 (exit $ac_status); } &&
38402 { ac_try='test -z "$ac_c_werror_flag"
38403 || test ! -s conftest.err'
38404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38405 (eval $ac_try) 2>&5
38406 ac_status=$?
38407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38408 (exit $ac_status); }; } &&
38409 { ac_try='test -s conftest$ac_exeext'
38410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38411 (eval $ac_try) 2>&5
38412 ac_status=$?
38413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414 (exit $ac_status); }; }; then
38415 eval "$as_ac_var=yes"
38416 else
38417 echo "$as_me: failed program was:" >&5
38418 sed 's/^/| /' conftest.$ac_ext >&5
38420 eval "$as_ac_var=no"
38422 rm -f conftest.err conftest.$ac_objext \
38423 conftest$ac_exeext conftest.$ac_ext
38425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38427 if test `eval echo '${'$as_ac_var'}'` = yes; then
38428 cat >>confdefs.h <<_ACEOF
38429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38430 _ACEOF
38433 done
38435 else
38437 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38438 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38439 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38440 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38441 echo $ECHO_N "(cached) $ECHO_C" >&6
38442 else
38446 ac_ext=cc
38447 ac_cpp='$CXXCPP $CPPFLAGS'
38448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38452 cat >conftest.$ac_ext <<_ACEOF
38453 /* confdefs.h. */
38454 _ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h. */
38458 #include <math.h>
38459 #ifdef HAVE_IEEEFP_H
38460 #include <ieeefp.h>
38461 #endif
38464 main ()
38466 _logf(0);
38468 return 0;
38470 _ACEOF
38471 rm -f conftest.$ac_objext
38472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38473 (eval $ac_compile) 2>conftest.er1
38474 ac_status=$?
38475 grep -v '^ *+' conftest.er1 >conftest.err
38476 rm -f conftest.er1
38477 cat conftest.err >&5
38478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479 (exit $ac_status); } &&
38480 { ac_try='test -z "$ac_cxx_werror_flag"
38481 || test ! -s conftest.err'
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); }; } &&
38487 { ac_try='test -s conftest.$ac_objext'
38488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489 (eval $ac_try) 2>&5
38490 ac_status=$?
38491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492 (exit $ac_status); }; }; then
38493 glibcxx_cv_func__logf_use=yes
38494 else
38495 echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38498 glibcxx_cv_func__logf_use=no
38500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38501 ac_ext=c
38502 ac_cpp='$CPP $CPPFLAGS'
38503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38511 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38512 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38514 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38516 for ac_func in _logf
38518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38519 echo "$as_me:$LINENO: checking for $ac_func" >&5
38520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38521 if eval "test \"\${$as_ac_var+set}\" = set"; then
38522 echo $ECHO_N "(cached) $ECHO_C" >&6
38523 else
38524 if test x$gcc_no_link = xyes; then
38525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38527 { (exit 1); exit 1; }; }
38529 cat >conftest.$ac_ext <<_ACEOF
38530 /* confdefs.h. */
38531 _ACEOF
38532 cat confdefs.h >>conftest.$ac_ext
38533 cat >>conftest.$ac_ext <<_ACEOF
38534 /* end confdefs.h. */
38535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38537 #define $ac_func innocuous_$ac_func
38539 /* System header to define __stub macros and hopefully few prototypes,
38540 which can conflict with char $ac_func (); below.
38541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38542 <limits.h> exists even on freestanding compilers. */
38544 #ifdef __STDC__
38545 # include <limits.h>
38546 #else
38547 # include <assert.h>
38548 #endif
38550 #undef $ac_func
38552 /* Override any gcc2 internal prototype to avoid an error. */
38553 #ifdef __cplusplus
38554 extern "C"
38556 #endif
38557 /* We use char because int might match the return type of a gcc2
38558 builtin and then its argument prototype would still apply. */
38559 char $ac_func ();
38560 /* The GNU C library defines this for functions which it implements
38561 to always fail with ENOSYS. Some functions are actually named
38562 something starting with __ and the normal name is an alias. */
38563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38564 choke me
38565 #else
38566 char (*f) () = $ac_func;
38567 #endif
38568 #ifdef __cplusplus
38570 #endif
38573 main ()
38575 return f != $ac_func;
38577 return 0;
38579 _ACEOF
38580 rm -f conftest.$ac_objext conftest$ac_exeext
38581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38582 (eval $ac_link) 2>conftest.er1
38583 ac_status=$?
38584 grep -v '^ *+' conftest.er1 >conftest.err
38585 rm -f conftest.er1
38586 cat conftest.err >&5
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } &&
38589 { ac_try='test -z "$ac_c_werror_flag"
38590 || test ! -s conftest.err'
38591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592 (eval $ac_try) 2>&5
38593 ac_status=$?
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); }; } &&
38596 { ac_try='test -s conftest$ac_exeext'
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; }; then
38602 eval "$as_ac_var=yes"
38603 else
38604 echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38607 eval "$as_ac_var=no"
38609 rm -f conftest.err conftest.$ac_objext \
38610 conftest$ac_exeext conftest.$ac_ext
38612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38614 if test `eval echo '${'$as_ac_var'}'` = yes; then
38615 cat >>confdefs.h <<_ACEOF
38616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38617 _ACEOF
38620 done
38627 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38628 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38629 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38630 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38631 echo $ECHO_N "(cached) $ECHO_C" >&6
38632 else
38636 ac_ext=cc
38637 ac_cpp='$CXXCPP $CPPFLAGS'
38638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38642 cat >conftest.$ac_ext <<_ACEOF
38643 /* confdefs.h. */
38644 _ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h. */
38648 #include <math.h>
38649 #ifdef HAVE_IEEEFP_H
38650 #include <ieeefp.h>
38651 #endif
38654 main ()
38656 log10f(0);
38658 return 0;
38660 _ACEOF
38661 rm -f conftest.$ac_objext
38662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38663 (eval $ac_compile) 2>conftest.er1
38664 ac_status=$?
38665 grep -v '^ *+' conftest.er1 >conftest.err
38666 rm -f conftest.er1
38667 cat conftest.err >&5
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); } &&
38670 { ac_try='test -z "$ac_cxx_werror_flag"
38671 || test ! -s conftest.err'
38672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38673 (eval $ac_try) 2>&5
38674 ac_status=$?
38675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); }; } &&
38677 { ac_try='test -s conftest.$ac_objext'
38678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38679 (eval $ac_try) 2>&5
38680 ac_status=$?
38681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682 (exit $ac_status); }; }; then
38683 glibcxx_cv_func_log10f_use=yes
38684 else
38685 echo "$as_me: failed program was:" >&5
38686 sed 's/^/| /' conftest.$ac_ext >&5
38688 glibcxx_cv_func_log10f_use=no
38690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38691 ac_ext=c
38692 ac_cpp='$CPP $CPPFLAGS'
38693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38701 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38702 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38704 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38706 for ac_func in log10f
38708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38709 echo "$as_me:$LINENO: checking for $ac_func" >&5
38710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38711 if eval "test \"\${$as_ac_var+set}\" = set"; then
38712 echo $ECHO_N "(cached) $ECHO_C" >&6
38713 else
38714 if test x$gcc_no_link = xyes; then
38715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38717 { (exit 1); exit 1; }; }
38719 cat >conftest.$ac_ext <<_ACEOF
38720 /* confdefs.h. */
38721 _ACEOF
38722 cat confdefs.h >>conftest.$ac_ext
38723 cat >>conftest.$ac_ext <<_ACEOF
38724 /* end confdefs.h. */
38725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38727 #define $ac_func innocuous_$ac_func
38729 /* System header to define __stub macros and hopefully few prototypes,
38730 which can conflict with char $ac_func (); below.
38731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38732 <limits.h> exists even on freestanding compilers. */
38734 #ifdef __STDC__
38735 # include <limits.h>
38736 #else
38737 # include <assert.h>
38738 #endif
38740 #undef $ac_func
38742 /* Override any gcc2 internal prototype to avoid an error. */
38743 #ifdef __cplusplus
38744 extern "C"
38746 #endif
38747 /* We use char because int might match the return type of a gcc2
38748 builtin and then its argument prototype would still apply. */
38749 char $ac_func ();
38750 /* The GNU C library defines this for functions which it implements
38751 to always fail with ENOSYS. Some functions are actually named
38752 something starting with __ and the normal name is an alias. */
38753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38754 choke me
38755 #else
38756 char (*f) () = $ac_func;
38757 #endif
38758 #ifdef __cplusplus
38760 #endif
38763 main ()
38765 return f != $ac_func;
38767 return 0;
38769 _ACEOF
38770 rm -f conftest.$ac_objext conftest$ac_exeext
38771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38772 (eval $ac_link) 2>conftest.er1
38773 ac_status=$?
38774 grep -v '^ *+' conftest.er1 >conftest.err
38775 rm -f conftest.er1
38776 cat conftest.err >&5
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); } &&
38779 { ac_try='test -z "$ac_c_werror_flag"
38780 || test ! -s conftest.err'
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; } &&
38786 { ac_try='test -s conftest$ac_exeext'
38787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38788 (eval $ac_try) 2>&5
38789 ac_status=$?
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); }; }; then
38792 eval "$as_ac_var=yes"
38793 else
38794 echo "$as_me: failed program was:" >&5
38795 sed 's/^/| /' conftest.$ac_ext >&5
38797 eval "$as_ac_var=no"
38799 rm -f conftest.err conftest.$ac_objext \
38800 conftest$ac_exeext conftest.$ac_ext
38802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38804 if test `eval echo '${'$as_ac_var'}'` = yes; then
38805 cat >>confdefs.h <<_ACEOF
38806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38807 _ACEOF
38810 done
38812 else
38814 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38815 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38816 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38817 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38819 else
38823 ac_ext=cc
38824 ac_cpp='$CXXCPP $CPPFLAGS'
38825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38829 cat >conftest.$ac_ext <<_ACEOF
38830 /* confdefs.h. */
38831 _ACEOF
38832 cat confdefs.h >>conftest.$ac_ext
38833 cat >>conftest.$ac_ext <<_ACEOF
38834 /* end confdefs.h. */
38835 #include <math.h>
38836 #ifdef HAVE_IEEEFP_H
38837 #include <ieeefp.h>
38838 #endif
38841 main ()
38843 _log10f(0);
38845 return 0;
38847 _ACEOF
38848 rm -f conftest.$ac_objext
38849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38850 (eval $ac_compile) 2>conftest.er1
38851 ac_status=$?
38852 grep -v '^ *+' conftest.er1 >conftest.err
38853 rm -f conftest.er1
38854 cat conftest.err >&5
38855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856 (exit $ac_status); } &&
38857 { ac_try='test -z "$ac_cxx_werror_flag"
38858 || test ! -s conftest.err'
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); }; } &&
38864 { ac_try='test -s conftest.$ac_objext'
38865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866 (eval $ac_try) 2>&5
38867 ac_status=$?
38868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869 (exit $ac_status); }; }; then
38870 glibcxx_cv_func__log10f_use=yes
38871 else
38872 echo "$as_me: failed program was:" >&5
38873 sed 's/^/| /' conftest.$ac_ext >&5
38875 glibcxx_cv_func__log10f_use=no
38877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38878 ac_ext=c
38879 ac_cpp='$CPP $CPPFLAGS'
38880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38888 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38889 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38891 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38893 for ac_func in _log10f
38895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38896 echo "$as_me:$LINENO: checking for $ac_func" >&5
38897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38898 if eval "test \"\${$as_ac_var+set}\" = set"; then
38899 echo $ECHO_N "(cached) $ECHO_C" >&6
38900 else
38901 if test x$gcc_no_link = xyes; then
38902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38904 { (exit 1); exit 1; }; }
38906 cat >conftest.$ac_ext <<_ACEOF
38907 /* confdefs.h. */
38908 _ACEOF
38909 cat confdefs.h >>conftest.$ac_ext
38910 cat >>conftest.$ac_ext <<_ACEOF
38911 /* end confdefs.h. */
38912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38914 #define $ac_func innocuous_$ac_func
38916 /* System header to define __stub macros and hopefully few prototypes,
38917 which can conflict with char $ac_func (); below.
38918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38919 <limits.h> exists even on freestanding compilers. */
38921 #ifdef __STDC__
38922 # include <limits.h>
38923 #else
38924 # include <assert.h>
38925 #endif
38927 #undef $ac_func
38929 /* Override any gcc2 internal prototype to avoid an error. */
38930 #ifdef __cplusplus
38931 extern "C"
38933 #endif
38934 /* We use char because int might match the return type of a gcc2
38935 builtin and then its argument prototype would still apply. */
38936 char $ac_func ();
38937 /* The GNU C library defines this for functions which it implements
38938 to always fail with ENOSYS. Some functions are actually named
38939 something starting with __ and the normal name is an alias. */
38940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38941 choke me
38942 #else
38943 char (*f) () = $ac_func;
38944 #endif
38945 #ifdef __cplusplus
38947 #endif
38950 main ()
38952 return f != $ac_func;
38954 return 0;
38956 _ACEOF
38957 rm -f conftest.$ac_objext conftest$ac_exeext
38958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38959 (eval $ac_link) 2>conftest.er1
38960 ac_status=$?
38961 grep -v '^ *+' conftest.er1 >conftest.err
38962 rm -f conftest.er1
38963 cat conftest.err >&5
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); } &&
38966 { ac_try='test -z "$ac_c_werror_flag"
38967 || test ! -s conftest.err'
38968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969 (eval $ac_try) 2>&5
38970 ac_status=$?
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); }; } &&
38973 { ac_try='test -s conftest$ac_exeext'
38974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975 (eval $ac_try) 2>&5
38976 ac_status=$?
38977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978 (exit $ac_status); }; }; then
38979 eval "$as_ac_var=yes"
38980 else
38981 echo "$as_me: failed program was:" >&5
38982 sed 's/^/| /' conftest.$ac_ext >&5
38984 eval "$as_ac_var=no"
38986 rm -f conftest.err conftest.$ac_objext \
38987 conftest$ac_exeext conftest.$ac_ext
38989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38991 if test `eval echo '${'$as_ac_var'}'` = yes; then
38992 cat >>confdefs.h <<_ACEOF
38993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38994 _ACEOF
38997 done
39004 echo "$as_me:$LINENO: checking for modff declaration" >&5
39005 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39006 if test x${glibcxx_cv_func_modff_use+set} != xset; then
39007 if test "${glibcxx_cv_func_modff_use+set}" = set; then
39008 echo $ECHO_N "(cached) $ECHO_C" >&6
39009 else
39013 ac_ext=cc
39014 ac_cpp='$CXXCPP $CPPFLAGS'
39015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39019 cat >conftest.$ac_ext <<_ACEOF
39020 /* confdefs.h. */
39021 _ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h. */
39025 #include <math.h>
39027 main ()
39029 modff(0, 0);
39031 return 0;
39033 _ACEOF
39034 rm -f conftest.$ac_objext
39035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39036 (eval $ac_compile) 2>conftest.er1
39037 ac_status=$?
39038 grep -v '^ *+' conftest.er1 >conftest.err
39039 rm -f conftest.er1
39040 cat conftest.err >&5
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); } &&
39043 { ac_try='test -z "$ac_cxx_werror_flag"
39044 || test ! -s conftest.err'
39045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39046 (eval $ac_try) 2>&5
39047 ac_status=$?
39048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); }; } &&
39050 { ac_try='test -s conftest.$ac_objext'
39051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39052 (eval $ac_try) 2>&5
39053 ac_status=$?
39054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055 (exit $ac_status); }; }; then
39056 glibcxx_cv_func_modff_use=yes
39057 else
39058 echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39061 glibcxx_cv_func_modff_use=no
39063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39064 ac_ext=c
39065 ac_cpp='$CPP $CPPFLAGS'
39066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39074 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39075 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39077 if test x$glibcxx_cv_func_modff_use = x"yes"; then
39079 for ac_func in modff
39081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39082 echo "$as_me:$LINENO: checking for $ac_func" >&5
39083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39084 if eval "test \"\${$as_ac_var+set}\" = set"; then
39085 echo $ECHO_N "(cached) $ECHO_C" >&6
39086 else
39087 if test x$gcc_no_link = xyes; then
39088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39090 { (exit 1); exit 1; }; }
39092 cat >conftest.$ac_ext <<_ACEOF
39093 /* confdefs.h. */
39094 _ACEOF
39095 cat confdefs.h >>conftest.$ac_ext
39096 cat >>conftest.$ac_ext <<_ACEOF
39097 /* end confdefs.h. */
39098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39100 #define $ac_func innocuous_$ac_func
39102 /* System header to define __stub macros and hopefully few prototypes,
39103 which can conflict with char $ac_func (); below.
39104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39105 <limits.h> exists even on freestanding compilers. */
39107 #ifdef __STDC__
39108 # include <limits.h>
39109 #else
39110 # include <assert.h>
39111 #endif
39113 #undef $ac_func
39115 /* Override any gcc2 internal prototype to avoid an error. */
39116 #ifdef __cplusplus
39117 extern "C"
39119 #endif
39120 /* We use char because int might match the return type of a gcc2
39121 builtin and then its argument prototype would still apply. */
39122 char $ac_func ();
39123 /* The GNU C library defines this for functions which it implements
39124 to always fail with ENOSYS. Some functions are actually named
39125 something starting with __ and the normal name is an alias. */
39126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39127 choke me
39128 #else
39129 char (*f) () = $ac_func;
39130 #endif
39131 #ifdef __cplusplus
39133 #endif
39136 main ()
39138 return f != $ac_func;
39140 return 0;
39142 _ACEOF
39143 rm -f conftest.$ac_objext conftest$ac_exeext
39144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39145 (eval $ac_link) 2>conftest.er1
39146 ac_status=$?
39147 grep -v '^ *+' conftest.er1 >conftest.err
39148 rm -f conftest.er1
39149 cat conftest.err >&5
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); } &&
39152 { ac_try='test -z "$ac_c_werror_flag"
39153 || test ! -s conftest.err'
39154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155 (eval $ac_try) 2>&5
39156 ac_status=$?
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); }; } &&
39159 { ac_try='test -s conftest$ac_exeext'
39160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39161 (eval $ac_try) 2>&5
39162 ac_status=$?
39163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39164 (exit $ac_status); }; }; then
39165 eval "$as_ac_var=yes"
39166 else
39167 echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39170 eval "$as_ac_var=no"
39172 rm -f conftest.err conftest.$ac_objext \
39173 conftest$ac_exeext conftest.$ac_ext
39175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39177 if test `eval echo '${'$as_ac_var'}'` = yes; then
39178 cat >>confdefs.h <<_ACEOF
39179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39180 _ACEOF
39183 done
39185 else
39187 echo "$as_me:$LINENO: checking for _modff declaration" >&5
39188 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39189 if test x${glibcxx_cv_func__modff_use+set} != xset; then
39190 if test "${glibcxx_cv_func__modff_use+set}" = set; then
39191 echo $ECHO_N "(cached) $ECHO_C" >&6
39192 else
39196 ac_ext=cc
39197 ac_cpp='$CXXCPP $CPPFLAGS'
39198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39202 cat >conftest.$ac_ext <<_ACEOF
39203 /* confdefs.h. */
39204 _ACEOF
39205 cat confdefs.h >>conftest.$ac_ext
39206 cat >>conftest.$ac_ext <<_ACEOF
39207 /* end confdefs.h. */
39208 #include <math.h>
39210 main ()
39212 _modff(0, 0);
39214 return 0;
39216 _ACEOF
39217 rm -f conftest.$ac_objext
39218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39219 (eval $ac_compile) 2>conftest.er1
39220 ac_status=$?
39221 grep -v '^ *+' conftest.er1 >conftest.err
39222 rm -f conftest.er1
39223 cat conftest.err >&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); } &&
39226 { ac_try='test -z "$ac_cxx_werror_flag"
39227 || test ! -s conftest.err'
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39230 ac_status=$?
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; } &&
39233 { ac_try='test -s conftest.$ac_objext'
39234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39235 (eval $ac_try) 2>&5
39236 ac_status=$?
39237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39238 (exit $ac_status); }; }; then
39239 glibcxx_cv_func__modff_use=yes
39240 else
39241 echo "$as_me: failed program was:" >&5
39242 sed 's/^/| /' conftest.$ac_ext >&5
39244 glibcxx_cv_func__modff_use=no
39246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39247 ac_ext=c
39248 ac_cpp='$CPP $CPPFLAGS'
39249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39257 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39258 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39260 if test x$glibcxx_cv_func__modff_use = x"yes"; then
39262 for ac_func in _modff
39264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39265 echo "$as_me:$LINENO: checking for $ac_func" >&5
39266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39267 if eval "test \"\${$as_ac_var+set}\" = set"; then
39268 echo $ECHO_N "(cached) $ECHO_C" >&6
39269 else
39270 if test x$gcc_no_link = xyes; then
39271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39273 { (exit 1); exit 1; }; }
39275 cat >conftest.$ac_ext <<_ACEOF
39276 /* confdefs.h. */
39277 _ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h. */
39281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39283 #define $ac_func innocuous_$ac_func
39285 /* System header to define __stub macros and hopefully few prototypes,
39286 which can conflict with char $ac_func (); below.
39287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39288 <limits.h> exists even on freestanding compilers. */
39290 #ifdef __STDC__
39291 # include <limits.h>
39292 #else
39293 # include <assert.h>
39294 #endif
39296 #undef $ac_func
39298 /* Override any gcc2 internal prototype to avoid an error. */
39299 #ifdef __cplusplus
39300 extern "C"
39302 #endif
39303 /* We use char because int might match the return type of a gcc2
39304 builtin and then its argument prototype would still apply. */
39305 char $ac_func ();
39306 /* The GNU C library defines this for functions which it implements
39307 to always fail with ENOSYS. Some functions are actually named
39308 something starting with __ and the normal name is an alias. */
39309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39310 choke me
39311 #else
39312 char (*f) () = $ac_func;
39313 #endif
39314 #ifdef __cplusplus
39316 #endif
39319 main ()
39321 return f != $ac_func;
39323 return 0;
39325 _ACEOF
39326 rm -f conftest.$ac_objext conftest$ac_exeext
39327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39328 (eval $ac_link) 2>conftest.er1
39329 ac_status=$?
39330 grep -v '^ *+' conftest.er1 >conftest.err
39331 rm -f conftest.er1
39332 cat conftest.err >&5
39333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334 (exit $ac_status); } &&
39335 { ac_try='test -z "$ac_c_werror_flag"
39336 || test ! -s conftest.err'
39337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39338 (eval $ac_try) 2>&5
39339 ac_status=$?
39340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341 (exit $ac_status); }; } &&
39342 { ac_try='test -s conftest$ac_exeext'
39343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39344 (eval $ac_try) 2>&5
39345 ac_status=$?
39346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39347 (exit $ac_status); }; }; then
39348 eval "$as_ac_var=yes"
39349 else
39350 echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39353 eval "$as_ac_var=no"
39355 rm -f conftest.err conftest.$ac_objext \
39356 conftest$ac_exeext conftest.$ac_ext
39358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39360 if test `eval echo '${'$as_ac_var'}'` = yes; then
39361 cat >>confdefs.h <<_ACEOF
39362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39363 _ACEOF
39366 done
39373 echo "$as_me:$LINENO: checking for powf declaration" >&5
39374 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39375 if test x${glibcxx_cv_func_powf_use+set} != xset; then
39376 if test "${glibcxx_cv_func_powf_use+set}" = set; then
39377 echo $ECHO_N "(cached) $ECHO_C" >&6
39378 else
39382 ac_ext=cc
39383 ac_cpp='$CXXCPP $CPPFLAGS'
39384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39388 cat >conftest.$ac_ext <<_ACEOF
39389 /* confdefs.h. */
39390 _ACEOF
39391 cat confdefs.h >>conftest.$ac_ext
39392 cat >>conftest.$ac_ext <<_ACEOF
39393 /* end confdefs.h. */
39394 #include <math.h>
39396 main ()
39398 powf(0, 0);
39400 return 0;
39402 _ACEOF
39403 rm -f conftest.$ac_objext
39404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39405 (eval $ac_compile) 2>conftest.er1
39406 ac_status=$?
39407 grep -v '^ *+' conftest.er1 >conftest.err
39408 rm -f conftest.er1
39409 cat conftest.err >&5
39410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411 (exit $ac_status); } &&
39412 { ac_try='test -z "$ac_cxx_werror_flag"
39413 || test ! -s conftest.err'
39414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415 (eval $ac_try) 2>&5
39416 ac_status=$?
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); }; } &&
39419 { ac_try='test -s conftest.$ac_objext'
39420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39421 (eval $ac_try) 2>&5
39422 ac_status=$?
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); }; }; then
39425 glibcxx_cv_func_powf_use=yes
39426 else
39427 echo "$as_me: failed program was:" >&5
39428 sed 's/^/| /' conftest.$ac_ext >&5
39430 glibcxx_cv_func_powf_use=no
39432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39433 ac_ext=c
39434 ac_cpp='$CPP $CPPFLAGS'
39435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39443 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39444 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39446 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39448 for ac_func in powf
39450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39451 echo "$as_me:$LINENO: checking for $ac_func" >&5
39452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39453 if eval "test \"\${$as_ac_var+set}\" = set"; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39455 else
39456 if test x$gcc_no_link = xyes; then
39457 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39459 { (exit 1); exit 1; }; }
39461 cat >conftest.$ac_ext <<_ACEOF
39462 /* confdefs.h. */
39463 _ACEOF
39464 cat confdefs.h >>conftest.$ac_ext
39465 cat >>conftest.$ac_ext <<_ACEOF
39466 /* end confdefs.h. */
39467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39469 #define $ac_func innocuous_$ac_func
39471 /* System header to define __stub macros and hopefully few prototypes,
39472 which can conflict with char $ac_func (); below.
39473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39474 <limits.h> exists even on freestanding compilers. */
39476 #ifdef __STDC__
39477 # include <limits.h>
39478 #else
39479 # include <assert.h>
39480 #endif
39482 #undef $ac_func
39484 /* Override any gcc2 internal prototype to avoid an error. */
39485 #ifdef __cplusplus
39486 extern "C"
39488 #endif
39489 /* We use char because int might match the return type of a gcc2
39490 builtin and then its argument prototype would still apply. */
39491 char $ac_func ();
39492 /* The GNU C library defines this for functions which it implements
39493 to always fail with ENOSYS. Some functions are actually named
39494 something starting with __ and the normal name is an alias. */
39495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39496 choke me
39497 #else
39498 char (*f) () = $ac_func;
39499 #endif
39500 #ifdef __cplusplus
39502 #endif
39505 main ()
39507 return f != $ac_func;
39509 return 0;
39511 _ACEOF
39512 rm -f conftest.$ac_objext conftest$ac_exeext
39513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39514 (eval $ac_link) 2>conftest.er1
39515 ac_status=$?
39516 grep -v '^ *+' conftest.er1 >conftest.err
39517 rm -f conftest.er1
39518 cat conftest.err >&5
39519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 (exit $ac_status); } &&
39521 { ac_try='test -z "$ac_c_werror_flag"
39522 || test ! -s conftest.err'
39523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524 (eval $ac_try) 2>&5
39525 ac_status=$?
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; } &&
39528 { ac_try='test -s conftest$ac_exeext'
39529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530 (eval $ac_try) 2>&5
39531 ac_status=$?
39532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533 (exit $ac_status); }; }; then
39534 eval "$as_ac_var=yes"
39535 else
39536 echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39539 eval "$as_ac_var=no"
39541 rm -f conftest.err conftest.$ac_objext \
39542 conftest$ac_exeext conftest.$ac_ext
39544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39546 if test `eval echo '${'$as_ac_var'}'` = yes; then
39547 cat >>confdefs.h <<_ACEOF
39548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39549 _ACEOF
39552 done
39554 else
39556 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39557 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39558 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39559 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39560 echo $ECHO_N "(cached) $ECHO_C" >&6
39561 else
39565 ac_ext=cc
39566 ac_cpp='$CXXCPP $CPPFLAGS'
39567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39571 cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h. */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39577 #include <math.h>
39579 main ()
39581 _powf(0, 0);
39583 return 0;
39585 _ACEOF
39586 rm -f conftest.$ac_objext
39587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39588 (eval $ac_compile) 2>conftest.er1
39589 ac_status=$?
39590 grep -v '^ *+' conftest.er1 >conftest.err
39591 rm -f conftest.er1
39592 cat conftest.err >&5
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); } &&
39595 { ac_try='test -z "$ac_cxx_werror_flag"
39596 || test ! -s conftest.err'
39597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39598 (eval $ac_try) 2>&5
39599 ac_status=$?
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); }; } &&
39602 { ac_try='test -s conftest.$ac_objext'
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39605 ac_status=$?
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; }; then
39608 glibcxx_cv_func__powf_use=yes
39609 else
39610 echo "$as_me: failed program was:" >&5
39611 sed 's/^/| /' conftest.$ac_ext >&5
39613 glibcxx_cv_func__powf_use=no
39615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39616 ac_ext=c
39617 ac_cpp='$CPP $CPPFLAGS'
39618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39626 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39627 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39629 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39631 for ac_func in _powf
39633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39634 echo "$as_me:$LINENO: checking for $ac_func" >&5
39635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39636 if eval "test \"\${$as_ac_var+set}\" = set"; then
39637 echo $ECHO_N "(cached) $ECHO_C" >&6
39638 else
39639 if test x$gcc_no_link = xyes; then
39640 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39642 { (exit 1); exit 1; }; }
39644 cat >conftest.$ac_ext <<_ACEOF
39645 /* confdefs.h. */
39646 _ACEOF
39647 cat confdefs.h >>conftest.$ac_ext
39648 cat >>conftest.$ac_ext <<_ACEOF
39649 /* end confdefs.h. */
39650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39652 #define $ac_func innocuous_$ac_func
39654 /* System header to define __stub macros and hopefully few prototypes,
39655 which can conflict with char $ac_func (); below.
39656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39657 <limits.h> exists even on freestanding compilers. */
39659 #ifdef __STDC__
39660 # include <limits.h>
39661 #else
39662 # include <assert.h>
39663 #endif
39665 #undef $ac_func
39667 /* Override any gcc2 internal prototype to avoid an error. */
39668 #ifdef __cplusplus
39669 extern "C"
39671 #endif
39672 /* We use char because int might match the return type of a gcc2
39673 builtin and then its argument prototype would still apply. */
39674 char $ac_func ();
39675 /* The GNU C library defines this for functions which it implements
39676 to always fail with ENOSYS. Some functions are actually named
39677 something starting with __ and the normal name is an alias. */
39678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39679 choke me
39680 #else
39681 char (*f) () = $ac_func;
39682 #endif
39683 #ifdef __cplusplus
39685 #endif
39688 main ()
39690 return f != $ac_func;
39692 return 0;
39694 _ACEOF
39695 rm -f conftest.$ac_objext conftest$ac_exeext
39696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39697 (eval $ac_link) 2>conftest.er1
39698 ac_status=$?
39699 grep -v '^ *+' conftest.er1 >conftest.err
39700 rm -f conftest.er1
39701 cat conftest.err >&5
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); } &&
39704 { ac_try='test -z "$ac_c_werror_flag"
39705 || test ! -s conftest.err'
39706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39707 (eval $ac_try) 2>&5
39708 ac_status=$?
39709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710 (exit $ac_status); }; } &&
39711 { ac_try='test -s conftest$ac_exeext'
39712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39713 (eval $ac_try) 2>&5
39714 ac_status=$?
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); }; }; then
39717 eval "$as_ac_var=yes"
39718 else
39719 echo "$as_me: failed program was:" >&5
39720 sed 's/^/| /' conftest.$ac_ext >&5
39722 eval "$as_ac_var=no"
39724 rm -f conftest.err conftest.$ac_objext \
39725 conftest$ac_exeext conftest.$ac_ext
39727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39729 if test `eval echo '${'$as_ac_var'}'` = yes; then
39730 cat >>confdefs.h <<_ACEOF
39731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39732 _ACEOF
39735 done
39742 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39743 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39744 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39745 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39746 echo $ECHO_N "(cached) $ECHO_C" >&6
39747 else
39751 ac_ext=cc
39752 ac_cpp='$CXXCPP $CPPFLAGS'
39753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39757 cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h. */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h. */
39763 #include <math.h>
39764 #ifdef HAVE_IEEEFP_H
39765 #include <ieeefp.h>
39766 #endif
39769 main ()
39771 sqrtf(0);
39773 return 0;
39775 _ACEOF
39776 rm -f conftest.$ac_objext
39777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39778 (eval $ac_compile) 2>conftest.er1
39779 ac_status=$?
39780 grep -v '^ *+' conftest.er1 >conftest.err
39781 rm -f conftest.er1
39782 cat conftest.err >&5
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); } &&
39785 { ac_try='test -z "$ac_cxx_werror_flag"
39786 || test ! -s conftest.err'
39787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39788 (eval $ac_try) 2>&5
39789 ac_status=$?
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); }; } &&
39792 { ac_try='test -s conftest.$ac_objext'
39793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39794 (eval $ac_try) 2>&5
39795 ac_status=$?
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); }; }; then
39798 glibcxx_cv_func_sqrtf_use=yes
39799 else
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39803 glibcxx_cv_func_sqrtf_use=no
39805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39806 ac_ext=c
39807 ac_cpp='$CPP $CPPFLAGS'
39808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39816 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39817 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39819 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39821 for ac_func in sqrtf
39823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39824 echo "$as_me:$LINENO: checking for $ac_func" >&5
39825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39826 if eval "test \"\${$as_ac_var+set}\" = set"; then
39827 echo $ECHO_N "(cached) $ECHO_C" >&6
39828 else
39829 if test x$gcc_no_link = xyes; then
39830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39832 { (exit 1); exit 1; }; }
39834 cat >conftest.$ac_ext <<_ACEOF
39835 /* confdefs.h. */
39836 _ACEOF
39837 cat confdefs.h >>conftest.$ac_ext
39838 cat >>conftest.$ac_ext <<_ACEOF
39839 /* end confdefs.h. */
39840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39842 #define $ac_func innocuous_$ac_func
39844 /* System header to define __stub macros and hopefully few prototypes,
39845 which can conflict with char $ac_func (); below.
39846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39847 <limits.h> exists even on freestanding compilers. */
39849 #ifdef __STDC__
39850 # include <limits.h>
39851 #else
39852 # include <assert.h>
39853 #endif
39855 #undef $ac_func
39857 /* Override any gcc2 internal prototype to avoid an error. */
39858 #ifdef __cplusplus
39859 extern "C"
39861 #endif
39862 /* We use char because int might match the return type of a gcc2
39863 builtin and then its argument prototype would still apply. */
39864 char $ac_func ();
39865 /* The GNU C library defines this for functions which it implements
39866 to always fail with ENOSYS. Some functions are actually named
39867 something starting with __ and the normal name is an alias. */
39868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39869 choke me
39870 #else
39871 char (*f) () = $ac_func;
39872 #endif
39873 #ifdef __cplusplus
39875 #endif
39878 main ()
39880 return f != $ac_func;
39882 return 0;
39884 _ACEOF
39885 rm -f conftest.$ac_objext conftest$ac_exeext
39886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39887 (eval $ac_link) 2>conftest.er1
39888 ac_status=$?
39889 grep -v '^ *+' conftest.er1 >conftest.err
39890 rm -f conftest.er1
39891 cat conftest.err >&5
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); } &&
39894 { ac_try='test -z "$ac_c_werror_flag"
39895 || test ! -s conftest.err'
39896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897 (eval $ac_try) 2>&5
39898 ac_status=$?
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); }; } &&
39901 { ac_try='test -s conftest$ac_exeext'
39902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39903 (eval $ac_try) 2>&5
39904 ac_status=$?
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); }; }; then
39907 eval "$as_ac_var=yes"
39908 else
39909 echo "$as_me: failed program was:" >&5
39910 sed 's/^/| /' conftest.$ac_ext >&5
39912 eval "$as_ac_var=no"
39914 rm -f conftest.err conftest.$ac_objext \
39915 conftest$ac_exeext conftest.$ac_ext
39917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39919 if test `eval echo '${'$as_ac_var'}'` = yes; then
39920 cat >>confdefs.h <<_ACEOF
39921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39922 _ACEOF
39925 done
39927 else
39929 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
39930 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
39931 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
39932 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
39933 echo $ECHO_N "(cached) $ECHO_C" >&6
39934 else
39938 ac_ext=cc
39939 ac_cpp='$CXXCPP $CPPFLAGS'
39940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39944 cat >conftest.$ac_ext <<_ACEOF
39945 /* confdefs.h. */
39946 _ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h. */
39950 #include <math.h>
39951 #ifdef HAVE_IEEEFP_H
39952 #include <ieeefp.h>
39953 #endif
39956 main ()
39958 _sqrtf(0);
39960 return 0;
39962 _ACEOF
39963 rm -f conftest.$ac_objext
39964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39965 (eval $ac_compile) 2>conftest.er1
39966 ac_status=$?
39967 grep -v '^ *+' conftest.er1 >conftest.err
39968 rm -f conftest.er1
39969 cat conftest.err >&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); } &&
39972 { ac_try='test -z "$ac_cxx_werror_flag"
39973 || test ! -s conftest.err'
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); }; } &&
39979 { ac_try='test -s conftest.$ac_objext'
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; }; then
39985 glibcxx_cv_func__sqrtf_use=yes
39986 else
39987 echo "$as_me: failed program was:" >&5
39988 sed 's/^/| /' conftest.$ac_ext >&5
39990 glibcxx_cv_func__sqrtf_use=no
39992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39993 ac_ext=c
39994 ac_cpp='$CPP $CPPFLAGS'
39995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40003 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40004 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40006 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40008 for ac_func in _sqrtf
40010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40011 echo "$as_me:$LINENO: checking for $ac_func" >&5
40012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40013 if eval "test \"\${$as_ac_var+set}\" = set"; then
40014 echo $ECHO_N "(cached) $ECHO_C" >&6
40015 else
40016 if test x$gcc_no_link = xyes; then
40017 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40019 { (exit 1); exit 1; }; }
40021 cat >conftest.$ac_ext <<_ACEOF
40022 /* confdefs.h. */
40023 _ACEOF
40024 cat confdefs.h >>conftest.$ac_ext
40025 cat >>conftest.$ac_ext <<_ACEOF
40026 /* end confdefs.h. */
40027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40029 #define $ac_func innocuous_$ac_func
40031 /* System header to define __stub macros and hopefully few prototypes,
40032 which can conflict with char $ac_func (); below.
40033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40034 <limits.h> exists even on freestanding compilers. */
40036 #ifdef __STDC__
40037 # include <limits.h>
40038 #else
40039 # include <assert.h>
40040 #endif
40042 #undef $ac_func
40044 /* Override any gcc2 internal prototype to avoid an error. */
40045 #ifdef __cplusplus
40046 extern "C"
40048 #endif
40049 /* We use char because int might match the return type of a gcc2
40050 builtin and then its argument prototype would still apply. */
40051 char $ac_func ();
40052 /* The GNU C library defines this for functions which it implements
40053 to always fail with ENOSYS. Some functions are actually named
40054 something starting with __ and the normal name is an alias. */
40055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40056 choke me
40057 #else
40058 char (*f) () = $ac_func;
40059 #endif
40060 #ifdef __cplusplus
40062 #endif
40065 main ()
40067 return f != $ac_func;
40069 return 0;
40071 _ACEOF
40072 rm -f conftest.$ac_objext conftest$ac_exeext
40073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40074 (eval $ac_link) 2>conftest.er1
40075 ac_status=$?
40076 grep -v '^ *+' conftest.er1 >conftest.err
40077 rm -f conftest.er1
40078 cat conftest.err >&5
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } &&
40081 { ac_try='test -z "$ac_c_werror_flag"
40082 || test ! -s conftest.err'
40083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40084 (eval $ac_try) 2>&5
40085 ac_status=$?
40086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087 (exit $ac_status); }; } &&
40088 { ac_try='test -s conftest$ac_exeext'
40089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40090 (eval $ac_try) 2>&5
40091 ac_status=$?
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); }; }; then
40094 eval "$as_ac_var=yes"
40095 else
40096 echo "$as_me: failed program was:" >&5
40097 sed 's/^/| /' conftest.$ac_ext >&5
40099 eval "$as_ac_var=no"
40101 rm -f conftest.err conftest.$ac_objext \
40102 conftest$ac_exeext conftest.$ac_ext
40104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40106 if test `eval echo '${'$as_ac_var'}'` = yes; then
40107 cat >>confdefs.h <<_ACEOF
40108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40109 _ACEOF
40112 done
40119 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40120 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40121 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40122 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40123 echo $ECHO_N "(cached) $ECHO_C" >&6
40124 else
40128 ac_ext=cc
40129 ac_cpp='$CXXCPP $CPPFLAGS'
40130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40134 cat >conftest.$ac_ext <<_ACEOF
40135 /* confdefs.h. */
40136 _ACEOF
40137 cat confdefs.h >>conftest.$ac_ext
40138 cat >>conftest.$ac_ext <<_ACEOF
40139 /* end confdefs.h. */
40140 #include <math.h>
40142 main ()
40144 sincosf(0, 0, 0);
40146 return 0;
40148 _ACEOF
40149 rm -f conftest.$ac_objext
40150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40151 (eval $ac_compile) 2>conftest.er1
40152 ac_status=$?
40153 grep -v '^ *+' conftest.er1 >conftest.err
40154 rm -f conftest.er1
40155 cat conftest.err >&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } &&
40158 { ac_try='test -z "$ac_cxx_werror_flag"
40159 || test ! -s conftest.err'
40160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40161 (eval $ac_try) 2>&5
40162 ac_status=$?
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); }; } &&
40165 { ac_try='test -s conftest.$ac_objext'
40166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40167 (eval $ac_try) 2>&5
40168 ac_status=$?
40169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170 (exit $ac_status); }; }; then
40171 glibcxx_cv_func_sincosf_use=yes
40172 else
40173 echo "$as_me: failed program was:" >&5
40174 sed 's/^/| /' conftest.$ac_ext >&5
40176 glibcxx_cv_func_sincosf_use=no
40178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40179 ac_ext=c
40180 ac_cpp='$CPP $CPPFLAGS'
40181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40189 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40190 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40192 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40194 for ac_func in sincosf
40196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40197 echo "$as_me:$LINENO: checking for $ac_func" >&5
40198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40199 if eval "test \"\${$as_ac_var+set}\" = set"; then
40200 echo $ECHO_N "(cached) $ECHO_C" >&6
40201 else
40202 if test x$gcc_no_link = xyes; then
40203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40205 { (exit 1); exit 1; }; }
40207 cat >conftest.$ac_ext <<_ACEOF
40208 /* confdefs.h. */
40209 _ACEOF
40210 cat confdefs.h >>conftest.$ac_ext
40211 cat >>conftest.$ac_ext <<_ACEOF
40212 /* end confdefs.h. */
40213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40215 #define $ac_func innocuous_$ac_func
40217 /* System header to define __stub macros and hopefully few prototypes,
40218 which can conflict with char $ac_func (); below.
40219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40220 <limits.h> exists even on freestanding compilers. */
40222 #ifdef __STDC__
40223 # include <limits.h>
40224 #else
40225 # include <assert.h>
40226 #endif
40228 #undef $ac_func
40230 /* Override any gcc2 internal prototype to avoid an error. */
40231 #ifdef __cplusplus
40232 extern "C"
40234 #endif
40235 /* We use char because int might match the return type of a gcc2
40236 builtin and then its argument prototype would still apply. */
40237 char $ac_func ();
40238 /* The GNU C library defines this for functions which it implements
40239 to always fail with ENOSYS. Some functions are actually named
40240 something starting with __ and the normal name is an alias. */
40241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40242 choke me
40243 #else
40244 char (*f) () = $ac_func;
40245 #endif
40246 #ifdef __cplusplus
40248 #endif
40251 main ()
40253 return f != $ac_func;
40255 return 0;
40257 _ACEOF
40258 rm -f conftest.$ac_objext conftest$ac_exeext
40259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40260 (eval $ac_link) 2>conftest.er1
40261 ac_status=$?
40262 grep -v '^ *+' conftest.er1 >conftest.err
40263 rm -f conftest.er1
40264 cat conftest.err >&5
40265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266 (exit $ac_status); } &&
40267 { ac_try='test -z "$ac_c_werror_flag"
40268 || test ! -s conftest.err'
40269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40270 (eval $ac_try) 2>&5
40271 ac_status=$?
40272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273 (exit $ac_status); }; } &&
40274 { ac_try='test -s conftest$ac_exeext'
40275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40276 (eval $ac_try) 2>&5
40277 ac_status=$?
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); }; }; then
40280 eval "$as_ac_var=yes"
40281 else
40282 echo "$as_me: failed program was:" >&5
40283 sed 's/^/| /' conftest.$ac_ext >&5
40285 eval "$as_ac_var=no"
40287 rm -f conftest.err conftest.$ac_objext \
40288 conftest$ac_exeext conftest.$ac_ext
40290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40292 if test `eval echo '${'$as_ac_var'}'` = yes; then
40293 cat >>confdefs.h <<_ACEOF
40294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40295 _ACEOF
40298 done
40300 else
40302 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40303 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40304 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40305 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40306 echo $ECHO_N "(cached) $ECHO_C" >&6
40307 else
40311 ac_ext=cc
40312 ac_cpp='$CXXCPP $CPPFLAGS'
40313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40317 cat >conftest.$ac_ext <<_ACEOF
40318 /* confdefs.h. */
40319 _ACEOF
40320 cat confdefs.h >>conftest.$ac_ext
40321 cat >>conftest.$ac_ext <<_ACEOF
40322 /* end confdefs.h. */
40323 #include <math.h>
40325 main ()
40327 _sincosf(0, 0, 0);
40329 return 0;
40331 _ACEOF
40332 rm -f conftest.$ac_objext
40333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40334 (eval $ac_compile) 2>conftest.er1
40335 ac_status=$?
40336 grep -v '^ *+' conftest.er1 >conftest.err
40337 rm -f conftest.er1
40338 cat conftest.err >&5
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); } &&
40341 { ac_try='test -z "$ac_cxx_werror_flag"
40342 || test ! -s conftest.err'
40343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40344 (eval $ac_try) 2>&5
40345 ac_status=$?
40346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347 (exit $ac_status); }; } &&
40348 { ac_try='test -s conftest.$ac_objext'
40349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40350 (eval $ac_try) 2>&5
40351 ac_status=$?
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); }; }; then
40354 glibcxx_cv_func__sincosf_use=yes
40355 else
40356 echo "$as_me: failed program was:" >&5
40357 sed 's/^/| /' conftest.$ac_ext >&5
40359 glibcxx_cv_func__sincosf_use=no
40361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40362 ac_ext=c
40363 ac_cpp='$CPP $CPPFLAGS'
40364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40372 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40373 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40375 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40377 for ac_func in _sincosf
40379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40380 echo "$as_me:$LINENO: checking for $ac_func" >&5
40381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40382 if eval "test \"\${$as_ac_var+set}\" = set"; then
40383 echo $ECHO_N "(cached) $ECHO_C" >&6
40384 else
40385 if test x$gcc_no_link = xyes; then
40386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40388 { (exit 1); exit 1; }; }
40390 cat >conftest.$ac_ext <<_ACEOF
40391 /* confdefs.h. */
40392 _ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h. */
40396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40398 #define $ac_func innocuous_$ac_func
40400 /* System header to define __stub macros and hopefully few prototypes,
40401 which can conflict with char $ac_func (); below.
40402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40403 <limits.h> exists even on freestanding compilers. */
40405 #ifdef __STDC__
40406 # include <limits.h>
40407 #else
40408 # include <assert.h>
40409 #endif
40411 #undef $ac_func
40413 /* Override any gcc2 internal prototype to avoid an error. */
40414 #ifdef __cplusplus
40415 extern "C"
40417 #endif
40418 /* We use char because int might match the return type of a gcc2
40419 builtin and then its argument prototype would still apply. */
40420 char $ac_func ();
40421 /* The GNU C library defines this for functions which it implements
40422 to always fail with ENOSYS. Some functions are actually named
40423 something starting with __ and the normal name is an alias. */
40424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40425 choke me
40426 #else
40427 char (*f) () = $ac_func;
40428 #endif
40429 #ifdef __cplusplus
40431 #endif
40434 main ()
40436 return f != $ac_func;
40438 return 0;
40440 _ACEOF
40441 rm -f conftest.$ac_objext conftest$ac_exeext
40442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40443 (eval $ac_link) 2>conftest.er1
40444 ac_status=$?
40445 grep -v '^ *+' conftest.er1 >conftest.err
40446 rm -f conftest.er1
40447 cat conftest.err >&5
40448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40449 (exit $ac_status); } &&
40450 { ac_try='test -z "$ac_c_werror_flag"
40451 || test ! -s conftest.err'
40452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40453 (eval $ac_try) 2>&5
40454 ac_status=$?
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); }; } &&
40457 { ac_try='test -s conftest$ac_exeext'
40458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40459 (eval $ac_try) 2>&5
40460 ac_status=$?
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); }; }; then
40463 eval "$as_ac_var=yes"
40464 else
40465 echo "$as_me: failed program was:" >&5
40466 sed 's/^/| /' conftest.$ac_ext >&5
40468 eval "$as_ac_var=no"
40470 rm -f conftest.err conftest.$ac_objext \
40471 conftest$ac_exeext conftest.$ac_ext
40473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40475 if test `eval echo '${'$as_ac_var'}'` = yes; then
40476 cat >>confdefs.h <<_ACEOF
40477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40478 _ACEOF
40481 done
40488 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40489 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40490 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40491 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40492 echo $ECHO_N "(cached) $ECHO_C" >&6
40493 else
40497 ac_ext=cc
40498 ac_cpp='$CXXCPP $CPPFLAGS'
40499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40503 cat >conftest.$ac_ext <<_ACEOF
40504 /* confdefs.h. */
40505 _ACEOF
40506 cat confdefs.h >>conftest.$ac_ext
40507 cat >>conftest.$ac_ext <<_ACEOF
40508 /* end confdefs.h. */
40509 #include <math.h>
40510 #ifdef HAVE_IEEEFP_H
40511 #include <ieeefp.h>
40512 #endif
40515 main ()
40517 finitef(0);
40519 return 0;
40521 _ACEOF
40522 rm -f conftest.$ac_objext
40523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40524 (eval $ac_compile) 2>conftest.er1
40525 ac_status=$?
40526 grep -v '^ *+' conftest.er1 >conftest.err
40527 rm -f conftest.er1
40528 cat conftest.err >&5
40529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); } &&
40531 { ac_try='test -z "$ac_cxx_werror_flag"
40532 || test ! -s conftest.err'
40533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40534 (eval $ac_try) 2>&5
40535 ac_status=$?
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); }; } &&
40538 { ac_try='test -s conftest.$ac_objext'
40539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40540 (eval $ac_try) 2>&5
40541 ac_status=$?
40542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40543 (exit $ac_status); }; }; then
40544 glibcxx_cv_func_finitef_use=yes
40545 else
40546 echo "$as_me: failed program was:" >&5
40547 sed 's/^/| /' conftest.$ac_ext >&5
40549 glibcxx_cv_func_finitef_use=no
40551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40552 ac_ext=c
40553 ac_cpp='$CPP $CPPFLAGS'
40554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40562 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40563 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40565 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40567 for ac_func in finitef
40569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40570 echo "$as_me:$LINENO: checking for $ac_func" >&5
40571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40572 if eval "test \"\${$as_ac_var+set}\" = set"; then
40573 echo $ECHO_N "(cached) $ECHO_C" >&6
40574 else
40575 if test x$gcc_no_link = xyes; then
40576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40578 { (exit 1); exit 1; }; }
40580 cat >conftest.$ac_ext <<_ACEOF
40581 /* confdefs.h. */
40582 _ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h. */
40586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40588 #define $ac_func innocuous_$ac_func
40590 /* System header to define __stub macros and hopefully few prototypes,
40591 which can conflict with char $ac_func (); below.
40592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40593 <limits.h> exists even on freestanding compilers. */
40595 #ifdef __STDC__
40596 # include <limits.h>
40597 #else
40598 # include <assert.h>
40599 #endif
40601 #undef $ac_func
40603 /* Override any gcc2 internal prototype to avoid an error. */
40604 #ifdef __cplusplus
40605 extern "C"
40607 #endif
40608 /* We use char because int might match the return type of a gcc2
40609 builtin and then its argument prototype would still apply. */
40610 char $ac_func ();
40611 /* The GNU C library defines this for functions which it implements
40612 to always fail with ENOSYS. Some functions are actually named
40613 something starting with __ and the normal name is an alias. */
40614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40615 choke me
40616 #else
40617 char (*f) () = $ac_func;
40618 #endif
40619 #ifdef __cplusplus
40621 #endif
40624 main ()
40626 return f != $ac_func;
40628 return 0;
40630 _ACEOF
40631 rm -f conftest.$ac_objext conftest$ac_exeext
40632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40633 (eval $ac_link) 2>conftest.er1
40634 ac_status=$?
40635 grep -v '^ *+' conftest.er1 >conftest.err
40636 rm -f conftest.er1
40637 cat conftest.err >&5
40638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639 (exit $ac_status); } &&
40640 { ac_try='test -z "$ac_c_werror_flag"
40641 || test ! -s conftest.err'
40642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40643 (eval $ac_try) 2>&5
40644 ac_status=$?
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); }; } &&
40647 { ac_try='test -s conftest$ac_exeext'
40648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40649 (eval $ac_try) 2>&5
40650 ac_status=$?
40651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652 (exit $ac_status); }; }; then
40653 eval "$as_ac_var=yes"
40654 else
40655 echo "$as_me: failed program was:" >&5
40656 sed 's/^/| /' conftest.$ac_ext >&5
40658 eval "$as_ac_var=no"
40660 rm -f conftest.err conftest.$ac_objext \
40661 conftest$ac_exeext conftest.$ac_ext
40663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40665 if test `eval echo '${'$as_ac_var'}'` = yes; then
40666 cat >>confdefs.h <<_ACEOF
40667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40668 _ACEOF
40671 done
40673 else
40675 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40676 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40677 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40678 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40679 echo $ECHO_N "(cached) $ECHO_C" >&6
40680 else
40684 ac_ext=cc
40685 ac_cpp='$CXXCPP $CPPFLAGS'
40686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40690 cat >conftest.$ac_ext <<_ACEOF
40691 /* confdefs.h. */
40692 _ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h. */
40696 #include <math.h>
40697 #ifdef HAVE_IEEEFP_H
40698 #include <ieeefp.h>
40699 #endif
40702 main ()
40704 _finitef(0);
40706 return 0;
40708 _ACEOF
40709 rm -f conftest.$ac_objext
40710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40711 (eval $ac_compile) 2>conftest.er1
40712 ac_status=$?
40713 grep -v '^ *+' conftest.er1 >conftest.err
40714 rm -f conftest.er1
40715 cat conftest.err >&5
40716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717 (exit $ac_status); } &&
40718 { ac_try='test -z "$ac_cxx_werror_flag"
40719 || test ! -s conftest.err'
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); }; } &&
40725 { ac_try='test -s conftest.$ac_objext'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40728 ac_status=$?
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; }; then
40731 glibcxx_cv_func__finitef_use=yes
40732 else
40733 echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40736 glibcxx_cv_func__finitef_use=no
40738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40739 ac_ext=c
40740 ac_cpp='$CPP $CPPFLAGS'
40741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40749 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40750 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40752 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40754 for ac_func in _finitef
40756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40757 echo "$as_me:$LINENO: checking for $ac_func" >&5
40758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40759 if eval "test \"\${$as_ac_var+set}\" = set"; then
40760 echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762 if test x$gcc_no_link = xyes; then
40763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40765 { (exit 1); exit 1; }; }
40767 cat >conftest.$ac_ext <<_ACEOF
40768 /* confdefs.h. */
40769 _ACEOF
40770 cat confdefs.h >>conftest.$ac_ext
40771 cat >>conftest.$ac_ext <<_ACEOF
40772 /* end confdefs.h. */
40773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40775 #define $ac_func innocuous_$ac_func
40777 /* System header to define __stub macros and hopefully few prototypes,
40778 which can conflict with char $ac_func (); below.
40779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40780 <limits.h> exists even on freestanding compilers. */
40782 #ifdef __STDC__
40783 # include <limits.h>
40784 #else
40785 # include <assert.h>
40786 #endif
40788 #undef $ac_func
40790 /* Override any gcc2 internal prototype to avoid an error. */
40791 #ifdef __cplusplus
40792 extern "C"
40794 #endif
40795 /* We use char because int might match the return type of a gcc2
40796 builtin and then its argument prototype would still apply. */
40797 char $ac_func ();
40798 /* The GNU C library defines this for functions which it implements
40799 to always fail with ENOSYS. Some functions are actually named
40800 something starting with __ and the normal name is an alias. */
40801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40802 choke me
40803 #else
40804 char (*f) () = $ac_func;
40805 #endif
40806 #ifdef __cplusplus
40808 #endif
40811 main ()
40813 return f != $ac_func;
40815 return 0;
40817 _ACEOF
40818 rm -f conftest.$ac_objext conftest$ac_exeext
40819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40820 (eval $ac_link) 2>conftest.er1
40821 ac_status=$?
40822 grep -v '^ *+' conftest.er1 >conftest.err
40823 rm -f conftest.er1
40824 cat conftest.err >&5
40825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826 (exit $ac_status); } &&
40827 { ac_try='test -z "$ac_c_werror_flag"
40828 || test ! -s conftest.err'
40829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40830 (eval $ac_try) 2>&5
40831 ac_status=$?
40832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40833 (exit $ac_status); }; } &&
40834 { ac_try='test -s conftest$ac_exeext'
40835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40836 (eval $ac_try) 2>&5
40837 ac_status=$?
40838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40839 (exit $ac_status); }; }; then
40840 eval "$as_ac_var=yes"
40841 else
40842 echo "$as_me: failed program was:" >&5
40843 sed 's/^/| /' conftest.$ac_ext >&5
40845 eval "$as_ac_var=no"
40847 rm -f conftest.err conftest.$ac_objext \
40848 conftest$ac_exeext conftest.$ac_ext
40850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40852 if test `eval echo '${'$as_ac_var'}'` = yes; then
40853 cat >>confdefs.h <<_ACEOF
40854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40855 _ACEOF
40858 done
40865 echo "$as_me:$LINENO: checking for long double trig functions" >&5
40866 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40867 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40868 echo $ECHO_N "(cached) $ECHO_C" >&6
40869 else
40873 ac_ext=cc
40874 ac_cpp='$CXXCPP $CPPFLAGS'
40875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40879 cat >conftest.$ac_ext <<_ACEOF
40880 /* confdefs.h. */
40881 _ACEOF
40882 cat confdefs.h >>conftest.$ac_ext
40883 cat >>conftest.$ac_ext <<_ACEOF
40884 /* end confdefs.h. */
40885 #include <math.h>
40887 main ()
40889 `for x in acosl asinl atanl \
40890 cosl sinl tanl \
40891 coshl sinhl tanhl; do echo "$x (0);"; done`
40893 return 0;
40895 _ACEOF
40896 rm -f conftest.$ac_objext
40897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40898 (eval $ac_compile) 2>conftest.er1
40899 ac_status=$?
40900 grep -v '^ *+' conftest.er1 >conftest.err
40901 rm -f conftest.er1
40902 cat conftest.err >&5
40903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904 (exit $ac_status); } &&
40905 { ac_try='test -z "$ac_cxx_werror_flag"
40906 || test ! -s conftest.err'
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); }; } &&
40912 { ac_try='test -s conftest.$ac_objext'
40913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40914 (eval $ac_try) 2>&5
40915 ac_status=$?
40916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917 (exit $ac_status); }; }; then
40918 glibcxx_cv_func_long_double_trig_use=yes
40919 else
40920 echo "$as_me: failed program was:" >&5
40921 sed 's/^/| /' conftest.$ac_ext >&5
40923 glibcxx_cv_func_long_double_trig_use=no
40925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40926 ac_ext=c
40927 ac_cpp='$CPP $CPPFLAGS'
40928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40934 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
40935 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
40936 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40946 for ac_func in acosl asinl atanl \
40947 cosl sinl tanl \
40948 coshl sinhl tanhl
40950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40951 echo "$as_me:$LINENO: checking for $ac_func" >&5
40952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40953 if eval "test \"\${$as_ac_var+set}\" = set"; then
40954 echo $ECHO_N "(cached) $ECHO_C" >&6
40955 else
40956 if test x$gcc_no_link = xyes; then
40957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40959 { (exit 1); exit 1; }; }
40961 cat >conftest.$ac_ext <<_ACEOF
40962 /* confdefs.h. */
40963 _ACEOF
40964 cat confdefs.h >>conftest.$ac_ext
40965 cat >>conftest.$ac_ext <<_ACEOF
40966 /* end confdefs.h. */
40967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40969 #define $ac_func innocuous_$ac_func
40971 /* System header to define __stub macros and hopefully few prototypes,
40972 which can conflict with char $ac_func (); below.
40973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40974 <limits.h> exists even on freestanding compilers. */
40976 #ifdef __STDC__
40977 # include <limits.h>
40978 #else
40979 # include <assert.h>
40980 #endif
40982 #undef $ac_func
40984 /* Override any gcc2 internal prototype to avoid an error. */
40985 #ifdef __cplusplus
40986 extern "C"
40988 #endif
40989 /* We use char because int might match the return type of a gcc2
40990 builtin and then its argument prototype would still apply. */
40991 char $ac_func ();
40992 /* The GNU C library defines this for functions which it implements
40993 to always fail with ENOSYS. Some functions are actually named
40994 something starting with __ and the normal name is an alias. */
40995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40996 choke me
40997 #else
40998 char (*f) () = $ac_func;
40999 #endif
41000 #ifdef __cplusplus
41002 #endif
41005 main ()
41007 return f != $ac_func;
41009 return 0;
41011 _ACEOF
41012 rm -f conftest.$ac_objext conftest$ac_exeext
41013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41014 (eval $ac_link) 2>conftest.er1
41015 ac_status=$?
41016 grep -v '^ *+' conftest.er1 >conftest.err
41017 rm -f conftest.er1
41018 cat conftest.err >&5
41019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41020 (exit $ac_status); } &&
41021 { ac_try='test -z "$ac_c_werror_flag"
41022 || test ! -s conftest.err'
41023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41024 (eval $ac_try) 2>&5
41025 ac_status=$?
41026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41027 (exit $ac_status); }; } &&
41028 { ac_try='test -s conftest$ac_exeext'
41029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41030 (eval $ac_try) 2>&5
41031 ac_status=$?
41032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41033 (exit $ac_status); }; }; then
41034 eval "$as_ac_var=yes"
41035 else
41036 echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41039 eval "$as_ac_var=no"
41041 rm -f conftest.err conftest.$ac_objext \
41042 conftest$ac_exeext conftest.$ac_ext
41044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41046 if test `eval echo '${'$as_ac_var'}'` = yes; then
41047 cat >>confdefs.h <<_ACEOF
41048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41049 _ACEOF
41052 done
41057 echo "$as_me:$LINENO: checking for long double round functions" >&5
41058 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41059 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41060 echo $ECHO_N "(cached) $ECHO_C" >&6
41061 else
41065 ac_ext=cc
41066 ac_cpp='$CXXCPP $CPPFLAGS'
41067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41071 cat >conftest.$ac_ext <<_ACEOF
41072 /* confdefs.h. */
41073 _ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h. */
41077 #include <math.h>
41079 main ()
41081 `for x in ceill floorl; do echo "$x (0);"; done`
41083 return 0;
41085 _ACEOF
41086 rm -f conftest.$ac_objext
41087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41088 (eval $ac_compile) 2>conftest.er1
41089 ac_status=$?
41090 grep -v '^ *+' conftest.er1 >conftest.err
41091 rm -f conftest.er1
41092 cat conftest.err >&5
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); } &&
41095 { ac_try='test -z "$ac_cxx_werror_flag"
41096 || test ! -s conftest.err'
41097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41098 (eval $ac_try) 2>&5
41099 ac_status=$?
41100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101 (exit $ac_status); }; } &&
41102 { ac_try='test -s conftest.$ac_objext'
41103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41104 (eval $ac_try) 2>&5
41105 ac_status=$?
41106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107 (exit $ac_status); }; }; then
41108 glibcxx_cv_func_long_double_round_use=yes
41109 else
41110 echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41113 glibcxx_cv_func_long_double_round_use=no
41115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41116 ac_ext=c
41117 ac_cpp='$CPP $CPPFLAGS'
41118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41124 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41125 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41126 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41129 for ac_func in ceill floorl
41131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41132 echo "$as_me:$LINENO: checking for $ac_func" >&5
41133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41134 if eval "test \"\${$as_ac_var+set}\" = set"; then
41135 echo $ECHO_N "(cached) $ECHO_C" >&6
41136 else
41137 if test x$gcc_no_link = xyes; then
41138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41140 { (exit 1); exit 1; }; }
41142 cat >conftest.$ac_ext <<_ACEOF
41143 /* confdefs.h. */
41144 _ACEOF
41145 cat confdefs.h >>conftest.$ac_ext
41146 cat >>conftest.$ac_ext <<_ACEOF
41147 /* end confdefs.h. */
41148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41150 #define $ac_func innocuous_$ac_func
41152 /* System header to define __stub macros and hopefully few prototypes,
41153 which can conflict with char $ac_func (); below.
41154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41155 <limits.h> exists even on freestanding compilers. */
41157 #ifdef __STDC__
41158 # include <limits.h>
41159 #else
41160 # include <assert.h>
41161 #endif
41163 #undef $ac_func
41165 /* Override any gcc2 internal prototype to avoid an error. */
41166 #ifdef __cplusplus
41167 extern "C"
41169 #endif
41170 /* We use char because int might match the return type of a gcc2
41171 builtin and then its argument prototype would still apply. */
41172 char $ac_func ();
41173 /* The GNU C library defines this for functions which it implements
41174 to always fail with ENOSYS. Some functions are actually named
41175 something starting with __ and the normal name is an alias. */
41176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41177 choke me
41178 #else
41179 char (*f) () = $ac_func;
41180 #endif
41181 #ifdef __cplusplus
41183 #endif
41186 main ()
41188 return f != $ac_func;
41190 return 0;
41192 _ACEOF
41193 rm -f conftest.$ac_objext conftest$ac_exeext
41194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41195 (eval $ac_link) 2>conftest.er1
41196 ac_status=$?
41197 grep -v '^ *+' conftest.er1 >conftest.err
41198 rm -f conftest.er1
41199 cat conftest.err >&5
41200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41201 (exit $ac_status); } &&
41202 { ac_try='test -z "$ac_c_werror_flag"
41203 || test ! -s conftest.err'
41204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41205 (eval $ac_try) 2>&5
41206 ac_status=$?
41207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208 (exit $ac_status); }; } &&
41209 { ac_try='test -s conftest$ac_exeext'
41210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41211 (eval $ac_try) 2>&5
41212 ac_status=$?
41213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41214 (exit $ac_status); }; }; then
41215 eval "$as_ac_var=yes"
41216 else
41217 echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41220 eval "$as_ac_var=no"
41222 rm -f conftest.err conftest.$ac_objext \
41223 conftest$ac_exeext conftest.$ac_ext
41225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41227 if test `eval echo '${'$as_ac_var'}'` = yes; then
41228 cat >>confdefs.h <<_ACEOF
41229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41230 _ACEOF
41233 done
41239 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41240 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41241 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41242 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41243 echo $ECHO_N "(cached) $ECHO_C" >&6
41244 else
41248 ac_ext=cc
41249 ac_cpp='$CXXCPP $CPPFLAGS'
41250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41254 cat >conftest.$ac_ext <<_ACEOF
41255 /* confdefs.h. */
41256 _ACEOF
41257 cat confdefs.h >>conftest.$ac_ext
41258 cat >>conftest.$ac_ext <<_ACEOF
41259 /* end confdefs.h. */
41260 #include <math.h>
41261 #ifdef HAVE_IEEEFP_H
41262 #include <ieeefp.h>
41263 #endif
41266 main ()
41268 isnanl(0);
41270 return 0;
41272 _ACEOF
41273 rm -f conftest.$ac_objext
41274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41275 (eval $ac_compile) 2>conftest.er1
41276 ac_status=$?
41277 grep -v '^ *+' conftest.er1 >conftest.err
41278 rm -f conftest.er1
41279 cat conftest.err >&5
41280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281 (exit $ac_status); } &&
41282 { ac_try='test -z "$ac_cxx_werror_flag"
41283 || test ! -s conftest.err'
41284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41285 (eval $ac_try) 2>&5
41286 ac_status=$?
41287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288 (exit $ac_status); }; } &&
41289 { ac_try='test -s conftest.$ac_objext'
41290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291 (eval $ac_try) 2>&5
41292 ac_status=$?
41293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294 (exit $ac_status); }; }; then
41295 glibcxx_cv_func_isnanl_use=yes
41296 else
41297 echo "$as_me: failed program was:" >&5
41298 sed 's/^/| /' conftest.$ac_ext >&5
41300 glibcxx_cv_func_isnanl_use=no
41302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41303 ac_ext=c
41304 ac_cpp='$CPP $CPPFLAGS'
41305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41313 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41314 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41316 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41318 for ac_func in isnanl
41320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41321 echo "$as_me:$LINENO: checking for $ac_func" >&5
41322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41323 if eval "test \"\${$as_ac_var+set}\" = set"; then
41324 echo $ECHO_N "(cached) $ECHO_C" >&6
41325 else
41326 if test x$gcc_no_link = xyes; then
41327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41329 { (exit 1); exit 1; }; }
41331 cat >conftest.$ac_ext <<_ACEOF
41332 /* confdefs.h. */
41333 _ACEOF
41334 cat confdefs.h >>conftest.$ac_ext
41335 cat >>conftest.$ac_ext <<_ACEOF
41336 /* end confdefs.h. */
41337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41339 #define $ac_func innocuous_$ac_func
41341 /* System header to define __stub macros and hopefully few prototypes,
41342 which can conflict with char $ac_func (); below.
41343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41344 <limits.h> exists even on freestanding compilers. */
41346 #ifdef __STDC__
41347 # include <limits.h>
41348 #else
41349 # include <assert.h>
41350 #endif
41352 #undef $ac_func
41354 /* Override any gcc2 internal prototype to avoid an error. */
41355 #ifdef __cplusplus
41356 extern "C"
41358 #endif
41359 /* We use char because int might match the return type of a gcc2
41360 builtin and then its argument prototype would still apply. */
41361 char $ac_func ();
41362 /* The GNU C library defines this for functions which it implements
41363 to always fail with ENOSYS. Some functions are actually named
41364 something starting with __ and the normal name is an alias. */
41365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41366 choke me
41367 #else
41368 char (*f) () = $ac_func;
41369 #endif
41370 #ifdef __cplusplus
41372 #endif
41375 main ()
41377 return f != $ac_func;
41379 return 0;
41381 _ACEOF
41382 rm -f conftest.$ac_objext conftest$ac_exeext
41383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41384 (eval $ac_link) 2>conftest.er1
41385 ac_status=$?
41386 grep -v '^ *+' conftest.er1 >conftest.err
41387 rm -f conftest.er1
41388 cat conftest.err >&5
41389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41390 (exit $ac_status); } &&
41391 { ac_try='test -z "$ac_c_werror_flag"
41392 || test ! -s conftest.err'
41393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41394 (eval $ac_try) 2>&5
41395 ac_status=$?
41396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397 (exit $ac_status); }; } &&
41398 { ac_try='test -s conftest$ac_exeext'
41399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41400 (eval $ac_try) 2>&5
41401 ac_status=$?
41402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); }; }; then
41404 eval "$as_ac_var=yes"
41405 else
41406 echo "$as_me: failed program was:" >&5
41407 sed 's/^/| /' conftest.$ac_ext >&5
41409 eval "$as_ac_var=no"
41411 rm -f conftest.err conftest.$ac_objext \
41412 conftest$ac_exeext conftest.$ac_ext
41414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41416 if test `eval echo '${'$as_ac_var'}'` = yes; then
41417 cat >>confdefs.h <<_ACEOF
41418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41419 _ACEOF
41422 done
41424 else
41426 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41427 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41428 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41429 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41430 echo $ECHO_N "(cached) $ECHO_C" >&6
41431 else
41435 ac_ext=cc
41436 ac_cpp='$CXXCPP $CPPFLAGS'
41437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41441 cat >conftest.$ac_ext <<_ACEOF
41442 /* confdefs.h. */
41443 _ACEOF
41444 cat confdefs.h >>conftest.$ac_ext
41445 cat >>conftest.$ac_ext <<_ACEOF
41446 /* end confdefs.h. */
41447 #include <math.h>
41448 #ifdef HAVE_IEEEFP_H
41449 #include <ieeefp.h>
41450 #endif
41453 main ()
41455 _isnanl(0);
41457 return 0;
41459 _ACEOF
41460 rm -f conftest.$ac_objext
41461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41462 (eval $ac_compile) 2>conftest.er1
41463 ac_status=$?
41464 grep -v '^ *+' conftest.er1 >conftest.err
41465 rm -f conftest.er1
41466 cat conftest.err >&5
41467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41468 (exit $ac_status); } &&
41469 { ac_try='test -z "$ac_cxx_werror_flag"
41470 || test ! -s conftest.err'
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); }; } &&
41476 { ac_try='test -s conftest.$ac_objext'
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41479 ac_status=$?
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; }; then
41482 glibcxx_cv_func__isnanl_use=yes
41483 else
41484 echo "$as_me: failed program was:" >&5
41485 sed 's/^/| /' conftest.$ac_ext >&5
41487 glibcxx_cv_func__isnanl_use=no
41489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41490 ac_ext=c
41491 ac_cpp='$CPP $CPPFLAGS'
41492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41500 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41501 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41503 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41505 for ac_func in _isnanl
41507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41508 echo "$as_me:$LINENO: checking for $ac_func" >&5
41509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41510 if eval "test \"\${$as_ac_var+set}\" = set"; then
41511 echo $ECHO_N "(cached) $ECHO_C" >&6
41512 else
41513 if test x$gcc_no_link = xyes; then
41514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41516 { (exit 1); exit 1; }; }
41518 cat >conftest.$ac_ext <<_ACEOF
41519 /* confdefs.h. */
41520 _ACEOF
41521 cat confdefs.h >>conftest.$ac_ext
41522 cat >>conftest.$ac_ext <<_ACEOF
41523 /* end confdefs.h. */
41524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41526 #define $ac_func innocuous_$ac_func
41528 /* System header to define __stub macros and hopefully few prototypes,
41529 which can conflict with char $ac_func (); below.
41530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41531 <limits.h> exists even on freestanding compilers. */
41533 #ifdef __STDC__
41534 # include <limits.h>
41535 #else
41536 # include <assert.h>
41537 #endif
41539 #undef $ac_func
41541 /* Override any gcc2 internal prototype to avoid an error. */
41542 #ifdef __cplusplus
41543 extern "C"
41545 #endif
41546 /* We use char because int might match the return type of a gcc2
41547 builtin and then its argument prototype would still apply. */
41548 char $ac_func ();
41549 /* The GNU C library defines this for functions which it implements
41550 to always fail with ENOSYS. Some functions are actually named
41551 something starting with __ and the normal name is an alias. */
41552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41553 choke me
41554 #else
41555 char (*f) () = $ac_func;
41556 #endif
41557 #ifdef __cplusplus
41559 #endif
41562 main ()
41564 return f != $ac_func;
41566 return 0;
41568 _ACEOF
41569 rm -f conftest.$ac_objext conftest$ac_exeext
41570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41571 (eval $ac_link) 2>conftest.er1
41572 ac_status=$?
41573 grep -v '^ *+' conftest.er1 >conftest.err
41574 rm -f conftest.er1
41575 cat conftest.err >&5
41576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41577 (exit $ac_status); } &&
41578 { ac_try='test -z "$ac_c_werror_flag"
41579 || test ! -s conftest.err'
41580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41581 (eval $ac_try) 2>&5
41582 ac_status=$?
41583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41584 (exit $ac_status); }; } &&
41585 { ac_try='test -s conftest$ac_exeext'
41586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41587 (eval $ac_try) 2>&5
41588 ac_status=$?
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); }; }; then
41591 eval "$as_ac_var=yes"
41592 else
41593 echo "$as_me: failed program was:" >&5
41594 sed 's/^/| /' conftest.$ac_ext >&5
41596 eval "$as_ac_var=no"
41598 rm -f conftest.err conftest.$ac_objext \
41599 conftest$ac_exeext conftest.$ac_ext
41601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41603 if test `eval echo '${'$as_ac_var'}'` = yes; then
41604 cat >>confdefs.h <<_ACEOF
41605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41606 _ACEOF
41609 done
41616 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41617 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41618 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41619 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41620 echo $ECHO_N "(cached) $ECHO_C" >&6
41621 else
41625 ac_ext=cc
41626 ac_cpp='$CXXCPP $CPPFLAGS'
41627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41631 cat >conftest.$ac_ext <<_ACEOF
41632 /* confdefs.h. */
41633 _ACEOF
41634 cat confdefs.h >>conftest.$ac_ext
41635 cat >>conftest.$ac_ext <<_ACEOF
41636 /* end confdefs.h. */
41637 #include <math.h>
41638 #ifdef HAVE_IEEEFP_H
41639 #include <ieeefp.h>
41640 #endif
41643 main ()
41645 isinfl(0);
41647 return 0;
41649 _ACEOF
41650 rm -f conftest.$ac_objext
41651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41652 (eval $ac_compile) 2>conftest.er1
41653 ac_status=$?
41654 grep -v '^ *+' conftest.er1 >conftest.err
41655 rm -f conftest.er1
41656 cat conftest.err >&5
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); } &&
41659 { ac_try='test -z "$ac_cxx_werror_flag"
41660 || test ! -s conftest.err'
41661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662 (eval $ac_try) 2>&5
41663 ac_status=$?
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); }; } &&
41666 { ac_try='test -s conftest.$ac_objext'
41667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41668 (eval $ac_try) 2>&5
41669 ac_status=$?
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); }; }; then
41672 glibcxx_cv_func_isinfl_use=yes
41673 else
41674 echo "$as_me: failed program was:" >&5
41675 sed 's/^/| /' conftest.$ac_ext >&5
41677 glibcxx_cv_func_isinfl_use=no
41679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41680 ac_ext=c
41681 ac_cpp='$CPP $CPPFLAGS'
41682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41690 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41691 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41693 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41695 for ac_func in isinfl
41697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41698 echo "$as_me:$LINENO: checking for $ac_func" >&5
41699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41700 if eval "test \"\${$as_ac_var+set}\" = set"; then
41701 echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703 if test x$gcc_no_link = xyes; then
41704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41706 { (exit 1); exit 1; }; }
41708 cat >conftest.$ac_ext <<_ACEOF
41709 /* confdefs.h. */
41710 _ACEOF
41711 cat confdefs.h >>conftest.$ac_ext
41712 cat >>conftest.$ac_ext <<_ACEOF
41713 /* end confdefs.h. */
41714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41716 #define $ac_func innocuous_$ac_func
41718 /* System header to define __stub macros and hopefully few prototypes,
41719 which can conflict with char $ac_func (); below.
41720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41721 <limits.h> exists even on freestanding compilers. */
41723 #ifdef __STDC__
41724 # include <limits.h>
41725 #else
41726 # include <assert.h>
41727 #endif
41729 #undef $ac_func
41731 /* Override any gcc2 internal prototype to avoid an error. */
41732 #ifdef __cplusplus
41733 extern "C"
41735 #endif
41736 /* We use char because int might match the return type of a gcc2
41737 builtin and then its argument prototype would still apply. */
41738 char $ac_func ();
41739 /* The GNU C library defines this for functions which it implements
41740 to always fail with ENOSYS. Some functions are actually named
41741 something starting with __ and the normal name is an alias. */
41742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41743 choke me
41744 #else
41745 char (*f) () = $ac_func;
41746 #endif
41747 #ifdef __cplusplus
41749 #endif
41752 main ()
41754 return f != $ac_func;
41756 return 0;
41758 _ACEOF
41759 rm -f conftest.$ac_objext conftest$ac_exeext
41760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41761 (eval $ac_link) 2>conftest.er1
41762 ac_status=$?
41763 grep -v '^ *+' conftest.er1 >conftest.err
41764 rm -f conftest.er1
41765 cat conftest.err >&5
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); } &&
41768 { ac_try='test -z "$ac_c_werror_flag"
41769 || test ! -s conftest.err'
41770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41771 (eval $ac_try) 2>&5
41772 ac_status=$?
41773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41774 (exit $ac_status); }; } &&
41775 { ac_try='test -s conftest$ac_exeext'
41776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41777 (eval $ac_try) 2>&5
41778 ac_status=$?
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); }; }; then
41781 eval "$as_ac_var=yes"
41782 else
41783 echo "$as_me: failed program was:" >&5
41784 sed 's/^/| /' conftest.$ac_ext >&5
41786 eval "$as_ac_var=no"
41788 rm -f conftest.err conftest.$ac_objext \
41789 conftest$ac_exeext conftest.$ac_ext
41791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41793 if test `eval echo '${'$as_ac_var'}'` = yes; then
41794 cat >>confdefs.h <<_ACEOF
41795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41796 _ACEOF
41799 done
41801 else
41803 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41804 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41805 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41806 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41807 echo $ECHO_N "(cached) $ECHO_C" >&6
41808 else
41812 ac_ext=cc
41813 ac_cpp='$CXXCPP $CPPFLAGS'
41814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41818 cat >conftest.$ac_ext <<_ACEOF
41819 /* confdefs.h. */
41820 _ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h. */
41824 #include <math.h>
41825 #ifdef HAVE_IEEEFP_H
41826 #include <ieeefp.h>
41827 #endif
41830 main ()
41832 _isinfl(0);
41834 return 0;
41836 _ACEOF
41837 rm -f conftest.$ac_objext
41838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41839 (eval $ac_compile) 2>conftest.er1
41840 ac_status=$?
41841 grep -v '^ *+' conftest.er1 >conftest.err
41842 rm -f conftest.er1
41843 cat conftest.err >&5
41844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845 (exit $ac_status); } &&
41846 { ac_try='test -z "$ac_cxx_werror_flag"
41847 || test ! -s conftest.err'
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); }; } &&
41853 { ac_try='test -s conftest.$ac_objext'
41854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41855 (eval $ac_try) 2>&5
41856 ac_status=$?
41857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41858 (exit $ac_status); }; }; then
41859 glibcxx_cv_func__isinfl_use=yes
41860 else
41861 echo "$as_me: failed program was:" >&5
41862 sed 's/^/| /' conftest.$ac_ext >&5
41864 glibcxx_cv_func__isinfl_use=no
41866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41867 ac_ext=c
41868 ac_cpp='$CPP $CPPFLAGS'
41869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41877 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41878 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41880 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41882 for ac_func in _isinfl
41884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41885 echo "$as_me:$LINENO: checking for $ac_func" >&5
41886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41887 if eval "test \"\${$as_ac_var+set}\" = set"; then
41888 echo $ECHO_N "(cached) $ECHO_C" >&6
41889 else
41890 if test x$gcc_no_link = xyes; then
41891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41893 { (exit 1); exit 1; }; }
41895 cat >conftest.$ac_ext <<_ACEOF
41896 /* confdefs.h. */
41897 _ACEOF
41898 cat confdefs.h >>conftest.$ac_ext
41899 cat >>conftest.$ac_ext <<_ACEOF
41900 /* end confdefs.h. */
41901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41903 #define $ac_func innocuous_$ac_func
41905 /* System header to define __stub macros and hopefully few prototypes,
41906 which can conflict with char $ac_func (); below.
41907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41908 <limits.h> exists even on freestanding compilers. */
41910 #ifdef __STDC__
41911 # include <limits.h>
41912 #else
41913 # include <assert.h>
41914 #endif
41916 #undef $ac_func
41918 /* Override any gcc2 internal prototype to avoid an error. */
41919 #ifdef __cplusplus
41920 extern "C"
41922 #endif
41923 /* We use char because int might match the return type of a gcc2
41924 builtin and then its argument prototype would still apply. */
41925 char $ac_func ();
41926 /* The GNU C library defines this for functions which it implements
41927 to always fail with ENOSYS. Some functions are actually named
41928 something starting with __ and the normal name is an alias. */
41929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41930 choke me
41931 #else
41932 char (*f) () = $ac_func;
41933 #endif
41934 #ifdef __cplusplus
41936 #endif
41939 main ()
41941 return f != $ac_func;
41943 return 0;
41945 _ACEOF
41946 rm -f conftest.$ac_objext conftest$ac_exeext
41947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41948 (eval $ac_link) 2>conftest.er1
41949 ac_status=$?
41950 grep -v '^ *+' conftest.er1 >conftest.err
41951 rm -f conftest.er1
41952 cat conftest.err >&5
41953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41954 (exit $ac_status); } &&
41955 { ac_try='test -z "$ac_c_werror_flag"
41956 || test ! -s conftest.err'
41957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41958 (eval $ac_try) 2>&5
41959 ac_status=$?
41960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41961 (exit $ac_status); }; } &&
41962 { ac_try='test -s conftest$ac_exeext'
41963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41964 (eval $ac_try) 2>&5
41965 ac_status=$?
41966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41967 (exit $ac_status); }; }; then
41968 eval "$as_ac_var=yes"
41969 else
41970 echo "$as_me: failed program was:" >&5
41971 sed 's/^/| /' conftest.$ac_ext >&5
41973 eval "$as_ac_var=no"
41975 rm -f conftest.err conftest.$ac_objext \
41976 conftest$ac_exeext conftest.$ac_ext
41978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41980 if test `eval echo '${'$as_ac_var'}'` = yes; then
41981 cat >>confdefs.h <<_ACEOF
41982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41983 _ACEOF
41986 done
41993 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
41994 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
41995 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
41996 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
41997 echo $ECHO_N "(cached) $ECHO_C" >&6
41998 else
42002 ac_ext=cc
42003 ac_cpp='$CXXCPP $CPPFLAGS'
42004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42008 cat >conftest.$ac_ext <<_ACEOF
42009 /* confdefs.h. */
42010 _ACEOF
42011 cat confdefs.h >>conftest.$ac_ext
42012 cat >>conftest.$ac_ext <<_ACEOF
42013 /* end confdefs.h. */
42014 #include <math.h>
42016 main ()
42018 copysignl(0, 0);
42020 return 0;
42022 _ACEOF
42023 rm -f conftest.$ac_objext
42024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42025 (eval $ac_compile) 2>conftest.er1
42026 ac_status=$?
42027 grep -v '^ *+' conftest.er1 >conftest.err
42028 rm -f conftest.er1
42029 cat conftest.err >&5
42030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031 (exit $ac_status); } &&
42032 { ac_try='test -z "$ac_cxx_werror_flag"
42033 || test ! -s conftest.err'
42034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42035 (eval $ac_try) 2>&5
42036 ac_status=$?
42037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038 (exit $ac_status); }; } &&
42039 { ac_try='test -s conftest.$ac_objext'
42040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42041 (eval $ac_try) 2>&5
42042 ac_status=$?
42043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044 (exit $ac_status); }; }; then
42045 glibcxx_cv_func_copysignl_use=yes
42046 else
42047 echo "$as_me: failed program was:" >&5
42048 sed 's/^/| /' conftest.$ac_ext >&5
42050 glibcxx_cv_func_copysignl_use=no
42052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42053 ac_ext=c
42054 ac_cpp='$CPP $CPPFLAGS'
42055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42063 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42064 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42066 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42068 for ac_func in copysignl
42070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42071 echo "$as_me:$LINENO: checking for $ac_func" >&5
42072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42073 if eval "test \"\${$as_ac_var+set}\" = set"; then
42074 echo $ECHO_N "(cached) $ECHO_C" >&6
42075 else
42076 if test x$gcc_no_link = xyes; then
42077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42079 { (exit 1); exit 1; }; }
42081 cat >conftest.$ac_ext <<_ACEOF
42082 /* confdefs.h. */
42083 _ACEOF
42084 cat confdefs.h >>conftest.$ac_ext
42085 cat >>conftest.$ac_ext <<_ACEOF
42086 /* end confdefs.h. */
42087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42089 #define $ac_func innocuous_$ac_func
42091 /* System header to define __stub macros and hopefully few prototypes,
42092 which can conflict with char $ac_func (); below.
42093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42094 <limits.h> exists even on freestanding compilers. */
42096 #ifdef __STDC__
42097 # include <limits.h>
42098 #else
42099 # include <assert.h>
42100 #endif
42102 #undef $ac_func
42104 /* Override any gcc2 internal prototype to avoid an error. */
42105 #ifdef __cplusplus
42106 extern "C"
42108 #endif
42109 /* We use char because int might match the return type of a gcc2
42110 builtin and then its argument prototype would still apply. */
42111 char $ac_func ();
42112 /* The GNU C library defines this for functions which it implements
42113 to always fail with ENOSYS. Some functions are actually named
42114 something starting with __ and the normal name is an alias. */
42115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42116 choke me
42117 #else
42118 char (*f) () = $ac_func;
42119 #endif
42120 #ifdef __cplusplus
42122 #endif
42125 main ()
42127 return f != $ac_func;
42129 return 0;
42131 _ACEOF
42132 rm -f conftest.$ac_objext conftest$ac_exeext
42133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42134 (eval $ac_link) 2>conftest.er1
42135 ac_status=$?
42136 grep -v '^ *+' conftest.er1 >conftest.err
42137 rm -f conftest.er1
42138 cat conftest.err >&5
42139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140 (exit $ac_status); } &&
42141 { ac_try='test -z "$ac_c_werror_flag"
42142 || test ! -s conftest.err'
42143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144 (eval $ac_try) 2>&5
42145 ac_status=$?
42146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); }; } &&
42148 { ac_try='test -s conftest$ac_exeext'
42149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42150 (eval $ac_try) 2>&5
42151 ac_status=$?
42152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153 (exit $ac_status); }; }; then
42154 eval "$as_ac_var=yes"
42155 else
42156 echo "$as_me: failed program was:" >&5
42157 sed 's/^/| /' conftest.$ac_ext >&5
42159 eval "$as_ac_var=no"
42161 rm -f conftest.err conftest.$ac_objext \
42162 conftest$ac_exeext conftest.$ac_ext
42164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42166 if test `eval echo '${'$as_ac_var'}'` = yes; then
42167 cat >>confdefs.h <<_ACEOF
42168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42169 _ACEOF
42172 done
42174 else
42176 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42177 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42178 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42179 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42180 echo $ECHO_N "(cached) $ECHO_C" >&6
42181 else
42185 ac_ext=cc
42186 ac_cpp='$CXXCPP $CPPFLAGS'
42187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42191 cat >conftest.$ac_ext <<_ACEOF
42192 /* confdefs.h. */
42193 _ACEOF
42194 cat confdefs.h >>conftest.$ac_ext
42195 cat >>conftest.$ac_ext <<_ACEOF
42196 /* end confdefs.h. */
42197 #include <math.h>
42199 main ()
42201 _copysignl(0, 0);
42203 return 0;
42205 _ACEOF
42206 rm -f conftest.$ac_objext
42207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42208 (eval $ac_compile) 2>conftest.er1
42209 ac_status=$?
42210 grep -v '^ *+' conftest.er1 >conftest.err
42211 rm -f conftest.er1
42212 cat conftest.err >&5
42213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214 (exit $ac_status); } &&
42215 { ac_try='test -z "$ac_cxx_werror_flag"
42216 || test ! -s conftest.err'
42217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42218 (eval $ac_try) 2>&5
42219 ac_status=$?
42220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221 (exit $ac_status); }; } &&
42222 { ac_try='test -s conftest.$ac_objext'
42223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42224 (eval $ac_try) 2>&5
42225 ac_status=$?
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); }; }; then
42228 glibcxx_cv_func__copysignl_use=yes
42229 else
42230 echo "$as_me: failed program was:" >&5
42231 sed 's/^/| /' conftest.$ac_ext >&5
42233 glibcxx_cv_func__copysignl_use=no
42235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42236 ac_ext=c
42237 ac_cpp='$CPP $CPPFLAGS'
42238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42246 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42247 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42249 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42251 for ac_func in _copysignl
42253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42254 echo "$as_me:$LINENO: checking for $ac_func" >&5
42255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42256 if eval "test \"\${$as_ac_var+set}\" = set"; then
42257 echo $ECHO_N "(cached) $ECHO_C" >&6
42258 else
42259 if test x$gcc_no_link = xyes; then
42260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42262 { (exit 1); exit 1; }; }
42264 cat >conftest.$ac_ext <<_ACEOF
42265 /* confdefs.h. */
42266 _ACEOF
42267 cat confdefs.h >>conftest.$ac_ext
42268 cat >>conftest.$ac_ext <<_ACEOF
42269 /* end confdefs.h. */
42270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42272 #define $ac_func innocuous_$ac_func
42274 /* System header to define __stub macros and hopefully few prototypes,
42275 which can conflict with char $ac_func (); below.
42276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42277 <limits.h> exists even on freestanding compilers. */
42279 #ifdef __STDC__
42280 # include <limits.h>
42281 #else
42282 # include <assert.h>
42283 #endif
42285 #undef $ac_func
42287 /* Override any gcc2 internal prototype to avoid an error. */
42288 #ifdef __cplusplus
42289 extern "C"
42291 #endif
42292 /* We use char because int might match the return type of a gcc2
42293 builtin and then its argument prototype would still apply. */
42294 char $ac_func ();
42295 /* The GNU C library defines this for functions which it implements
42296 to always fail with ENOSYS. Some functions are actually named
42297 something starting with __ and the normal name is an alias. */
42298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42299 choke me
42300 #else
42301 char (*f) () = $ac_func;
42302 #endif
42303 #ifdef __cplusplus
42305 #endif
42308 main ()
42310 return f != $ac_func;
42312 return 0;
42314 _ACEOF
42315 rm -f conftest.$ac_objext conftest$ac_exeext
42316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42317 (eval $ac_link) 2>conftest.er1
42318 ac_status=$?
42319 grep -v '^ *+' conftest.er1 >conftest.err
42320 rm -f conftest.er1
42321 cat conftest.err >&5
42322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323 (exit $ac_status); } &&
42324 { ac_try='test -z "$ac_c_werror_flag"
42325 || test ! -s conftest.err'
42326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42327 (eval $ac_try) 2>&5
42328 ac_status=$?
42329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330 (exit $ac_status); }; } &&
42331 { ac_try='test -s conftest$ac_exeext'
42332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42333 (eval $ac_try) 2>&5
42334 ac_status=$?
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); }; }; then
42337 eval "$as_ac_var=yes"
42338 else
42339 echo "$as_me: failed program was:" >&5
42340 sed 's/^/| /' conftest.$ac_ext >&5
42342 eval "$as_ac_var=no"
42344 rm -f conftest.err conftest.$ac_objext \
42345 conftest$ac_exeext conftest.$ac_ext
42347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42349 if test `eval echo '${'$as_ac_var'}'` = yes; then
42350 cat >>confdefs.h <<_ACEOF
42351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42352 _ACEOF
42355 done
42362 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42363 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42364 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42365 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42366 echo $ECHO_N "(cached) $ECHO_C" >&6
42367 else
42371 ac_ext=cc
42372 ac_cpp='$CXXCPP $CPPFLAGS'
42373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42377 cat >conftest.$ac_ext <<_ACEOF
42378 /* confdefs.h. */
42379 _ACEOF
42380 cat confdefs.h >>conftest.$ac_ext
42381 cat >>conftest.$ac_ext <<_ACEOF
42382 /* end confdefs.h. */
42383 #include <math.h>
42385 main ()
42387 atan2l(0, 0);
42389 return 0;
42391 _ACEOF
42392 rm -f conftest.$ac_objext
42393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42394 (eval $ac_compile) 2>conftest.er1
42395 ac_status=$?
42396 grep -v '^ *+' conftest.er1 >conftest.err
42397 rm -f conftest.er1
42398 cat conftest.err >&5
42399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400 (exit $ac_status); } &&
42401 { ac_try='test -z "$ac_cxx_werror_flag"
42402 || test ! -s conftest.err'
42403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42404 (eval $ac_try) 2>&5
42405 ac_status=$?
42406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42407 (exit $ac_status); }; } &&
42408 { ac_try='test -s conftest.$ac_objext'
42409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42410 (eval $ac_try) 2>&5
42411 ac_status=$?
42412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42413 (exit $ac_status); }; }; then
42414 glibcxx_cv_func_atan2l_use=yes
42415 else
42416 echo "$as_me: failed program was:" >&5
42417 sed 's/^/| /' conftest.$ac_ext >&5
42419 glibcxx_cv_func_atan2l_use=no
42421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42422 ac_ext=c
42423 ac_cpp='$CPP $CPPFLAGS'
42424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42432 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42433 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42435 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42437 for ac_func in atan2l
42439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42440 echo "$as_me:$LINENO: checking for $ac_func" >&5
42441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42442 if eval "test \"\${$as_ac_var+set}\" = set"; then
42443 echo $ECHO_N "(cached) $ECHO_C" >&6
42444 else
42445 if test x$gcc_no_link = xyes; then
42446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42448 { (exit 1); exit 1; }; }
42450 cat >conftest.$ac_ext <<_ACEOF
42451 /* confdefs.h. */
42452 _ACEOF
42453 cat confdefs.h >>conftest.$ac_ext
42454 cat >>conftest.$ac_ext <<_ACEOF
42455 /* end confdefs.h. */
42456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42458 #define $ac_func innocuous_$ac_func
42460 /* System header to define __stub macros and hopefully few prototypes,
42461 which can conflict with char $ac_func (); below.
42462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42463 <limits.h> exists even on freestanding compilers. */
42465 #ifdef __STDC__
42466 # include <limits.h>
42467 #else
42468 # include <assert.h>
42469 #endif
42471 #undef $ac_func
42473 /* Override any gcc2 internal prototype to avoid an error. */
42474 #ifdef __cplusplus
42475 extern "C"
42477 #endif
42478 /* We use char because int might match the return type of a gcc2
42479 builtin and then its argument prototype would still apply. */
42480 char $ac_func ();
42481 /* The GNU C library defines this for functions which it implements
42482 to always fail with ENOSYS. Some functions are actually named
42483 something starting with __ and the normal name is an alias. */
42484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42485 choke me
42486 #else
42487 char (*f) () = $ac_func;
42488 #endif
42489 #ifdef __cplusplus
42491 #endif
42494 main ()
42496 return f != $ac_func;
42498 return 0;
42500 _ACEOF
42501 rm -f conftest.$ac_objext conftest$ac_exeext
42502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42503 (eval $ac_link) 2>conftest.er1
42504 ac_status=$?
42505 grep -v '^ *+' conftest.er1 >conftest.err
42506 rm -f conftest.er1
42507 cat conftest.err >&5
42508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509 (exit $ac_status); } &&
42510 { ac_try='test -z "$ac_c_werror_flag"
42511 || test ! -s conftest.err'
42512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42513 (eval $ac_try) 2>&5
42514 ac_status=$?
42515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42516 (exit $ac_status); }; } &&
42517 { ac_try='test -s conftest$ac_exeext'
42518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42519 (eval $ac_try) 2>&5
42520 ac_status=$?
42521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42522 (exit $ac_status); }; }; then
42523 eval "$as_ac_var=yes"
42524 else
42525 echo "$as_me: failed program was:" >&5
42526 sed 's/^/| /' conftest.$ac_ext >&5
42528 eval "$as_ac_var=no"
42530 rm -f conftest.err conftest.$ac_objext \
42531 conftest$ac_exeext conftest.$ac_ext
42533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42535 if test `eval echo '${'$as_ac_var'}'` = yes; then
42536 cat >>confdefs.h <<_ACEOF
42537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42538 _ACEOF
42541 done
42543 else
42545 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42546 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42547 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42548 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42549 echo $ECHO_N "(cached) $ECHO_C" >&6
42550 else
42554 ac_ext=cc
42555 ac_cpp='$CXXCPP $CPPFLAGS'
42556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42560 cat >conftest.$ac_ext <<_ACEOF
42561 /* confdefs.h. */
42562 _ACEOF
42563 cat confdefs.h >>conftest.$ac_ext
42564 cat >>conftest.$ac_ext <<_ACEOF
42565 /* end confdefs.h. */
42566 #include <math.h>
42568 main ()
42570 _atan2l(0, 0);
42572 return 0;
42574 _ACEOF
42575 rm -f conftest.$ac_objext
42576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42577 (eval $ac_compile) 2>conftest.er1
42578 ac_status=$?
42579 grep -v '^ *+' conftest.er1 >conftest.err
42580 rm -f conftest.er1
42581 cat conftest.err >&5
42582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); } &&
42584 { ac_try='test -z "$ac_cxx_werror_flag"
42585 || test ! -s conftest.err'
42586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42587 (eval $ac_try) 2>&5
42588 ac_status=$?
42589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590 (exit $ac_status); }; } &&
42591 { ac_try='test -s conftest.$ac_objext'
42592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42593 (eval $ac_try) 2>&5
42594 ac_status=$?
42595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); }; }; then
42597 glibcxx_cv_func__atan2l_use=yes
42598 else
42599 echo "$as_me: failed program was:" >&5
42600 sed 's/^/| /' conftest.$ac_ext >&5
42602 glibcxx_cv_func__atan2l_use=no
42604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42605 ac_ext=c
42606 ac_cpp='$CPP $CPPFLAGS'
42607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42615 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42616 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42618 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42620 for ac_func in _atan2l
42622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42623 echo "$as_me:$LINENO: checking for $ac_func" >&5
42624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42625 if eval "test \"\${$as_ac_var+set}\" = set"; then
42626 echo $ECHO_N "(cached) $ECHO_C" >&6
42627 else
42628 if test x$gcc_no_link = xyes; then
42629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42631 { (exit 1); exit 1; }; }
42633 cat >conftest.$ac_ext <<_ACEOF
42634 /* confdefs.h. */
42635 _ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h. */
42639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42641 #define $ac_func innocuous_$ac_func
42643 /* System header to define __stub macros and hopefully few prototypes,
42644 which can conflict with char $ac_func (); below.
42645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42646 <limits.h> exists even on freestanding compilers. */
42648 #ifdef __STDC__
42649 # include <limits.h>
42650 #else
42651 # include <assert.h>
42652 #endif
42654 #undef $ac_func
42656 /* Override any gcc2 internal prototype to avoid an error. */
42657 #ifdef __cplusplus
42658 extern "C"
42660 #endif
42661 /* We use char because int might match the return type of a gcc2
42662 builtin and then its argument prototype would still apply. */
42663 char $ac_func ();
42664 /* The GNU C library defines this for functions which it implements
42665 to always fail with ENOSYS. Some functions are actually named
42666 something starting with __ and the normal name is an alias. */
42667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42668 choke me
42669 #else
42670 char (*f) () = $ac_func;
42671 #endif
42672 #ifdef __cplusplus
42674 #endif
42677 main ()
42679 return f != $ac_func;
42681 return 0;
42683 _ACEOF
42684 rm -f conftest.$ac_objext conftest$ac_exeext
42685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42686 (eval $ac_link) 2>conftest.er1
42687 ac_status=$?
42688 grep -v '^ *+' conftest.er1 >conftest.err
42689 rm -f conftest.er1
42690 cat conftest.err >&5
42691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42692 (exit $ac_status); } &&
42693 { ac_try='test -z "$ac_c_werror_flag"
42694 || test ! -s conftest.err'
42695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42696 (eval $ac_try) 2>&5
42697 ac_status=$?
42698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699 (exit $ac_status); }; } &&
42700 { ac_try='test -s conftest$ac_exeext'
42701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42702 (eval $ac_try) 2>&5
42703 ac_status=$?
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); }; }; then
42706 eval "$as_ac_var=yes"
42707 else
42708 echo "$as_me: failed program was:" >&5
42709 sed 's/^/| /' conftest.$ac_ext >&5
42711 eval "$as_ac_var=no"
42713 rm -f conftest.err conftest.$ac_objext \
42714 conftest$ac_exeext conftest.$ac_ext
42716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42718 if test `eval echo '${'$as_ac_var'}'` = yes; then
42719 cat >>confdefs.h <<_ACEOF
42720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42721 _ACEOF
42724 done
42731 echo "$as_me:$LINENO: checking for expl declaration" >&5
42732 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42733 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42734 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42735 echo $ECHO_N "(cached) $ECHO_C" >&6
42736 else
42740 ac_ext=cc
42741 ac_cpp='$CXXCPP $CPPFLAGS'
42742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42746 cat >conftest.$ac_ext <<_ACEOF
42747 /* confdefs.h. */
42748 _ACEOF
42749 cat confdefs.h >>conftest.$ac_ext
42750 cat >>conftest.$ac_ext <<_ACEOF
42751 /* end confdefs.h. */
42752 #include <math.h>
42753 #ifdef HAVE_IEEEFP_H
42754 #include <ieeefp.h>
42755 #endif
42758 main ()
42760 expl(0);
42762 return 0;
42764 _ACEOF
42765 rm -f conftest.$ac_objext
42766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42767 (eval $ac_compile) 2>conftest.er1
42768 ac_status=$?
42769 grep -v '^ *+' conftest.er1 >conftest.err
42770 rm -f conftest.er1
42771 cat conftest.err >&5
42772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42773 (exit $ac_status); } &&
42774 { ac_try='test -z "$ac_cxx_werror_flag"
42775 || test ! -s conftest.err'
42776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777 (eval $ac_try) 2>&5
42778 ac_status=$?
42779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780 (exit $ac_status); }; } &&
42781 { ac_try='test -s conftest.$ac_objext'
42782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42783 (eval $ac_try) 2>&5
42784 ac_status=$?
42785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42786 (exit $ac_status); }; }; then
42787 glibcxx_cv_func_expl_use=yes
42788 else
42789 echo "$as_me: failed program was:" >&5
42790 sed 's/^/| /' conftest.$ac_ext >&5
42792 glibcxx_cv_func_expl_use=no
42794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42795 ac_ext=c
42796 ac_cpp='$CPP $CPPFLAGS'
42797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42805 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42806 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42808 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42810 for ac_func in expl
42812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42813 echo "$as_me:$LINENO: checking for $ac_func" >&5
42814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42815 if eval "test \"\${$as_ac_var+set}\" = set"; then
42816 echo $ECHO_N "(cached) $ECHO_C" >&6
42817 else
42818 if test x$gcc_no_link = xyes; then
42819 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42821 { (exit 1); exit 1; }; }
42823 cat >conftest.$ac_ext <<_ACEOF
42824 /* confdefs.h. */
42825 _ACEOF
42826 cat confdefs.h >>conftest.$ac_ext
42827 cat >>conftest.$ac_ext <<_ACEOF
42828 /* end confdefs.h. */
42829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42831 #define $ac_func innocuous_$ac_func
42833 /* System header to define __stub macros and hopefully few prototypes,
42834 which can conflict with char $ac_func (); below.
42835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42836 <limits.h> exists even on freestanding compilers. */
42838 #ifdef __STDC__
42839 # include <limits.h>
42840 #else
42841 # include <assert.h>
42842 #endif
42844 #undef $ac_func
42846 /* Override any gcc2 internal prototype to avoid an error. */
42847 #ifdef __cplusplus
42848 extern "C"
42850 #endif
42851 /* We use char because int might match the return type of a gcc2
42852 builtin and then its argument prototype would still apply. */
42853 char $ac_func ();
42854 /* The GNU C library defines this for functions which it implements
42855 to always fail with ENOSYS. Some functions are actually named
42856 something starting with __ and the normal name is an alias. */
42857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42858 choke me
42859 #else
42860 char (*f) () = $ac_func;
42861 #endif
42862 #ifdef __cplusplus
42864 #endif
42867 main ()
42869 return f != $ac_func;
42871 return 0;
42873 _ACEOF
42874 rm -f conftest.$ac_objext conftest$ac_exeext
42875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42876 (eval $ac_link) 2>conftest.er1
42877 ac_status=$?
42878 grep -v '^ *+' conftest.er1 >conftest.err
42879 rm -f conftest.er1
42880 cat conftest.err >&5
42881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882 (exit $ac_status); } &&
42883 { ac_try='test -z "$ac_c_werror_flag"
42884 || test ! -s conftest.err'
42885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42886 (eval $ac_try) 2>&5
42887 ac_status=$?
42888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42889 (exit $ac_status); }; } &&
42890 { ac_try='test -s conftest$ac_exeext'
42891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42892 (eval $ac_try) 2>&5
42893 ac_status=$?
42894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42895 (exit $ac_status); }; }; then
42896 eval "$as_ac_var=yes"
42897 else
42898 echo "$as_me: failed program was:" >&5
42899 sed 's/^/| /' conftest.$ac_ext >&5
42901 eval "$as_ac_var=no"
42903 rm -f conftest.err conftest.$ac_objext \
42904 conftest$ac_exeext conftest.$ac_ext
42906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42908 if test `eval echo '${'$as_ac_var'}'` = yes; then
42909 cat >>confdefs.h <<_ACEOF
42910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42911 _ACEOF
42914 done
42916 else
42918 echo "$as_me:$LINENO: checking for _expl declaration" >&5
42919 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42920 if test x${glibcxx_cv_func__expl_use+set} != xset; then
42921 if test "${glibcxx_cv_func__expl_use+set}" = set; then
42922 echo $ECHO_N "(cached) $ECHO_C" >&6
42923 else
42927 ac_ext=cc
42928 ac_cpp='$CXXCPP $CPPFLAGS'
42929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42933 cat >conftest.$ac_ext <<_ACEOF
42934 /* confdefs.h. */
42935 _ACEOF
42936 cat confdefs.h >>conftest.$ac_ext
42937 cat >>conftest.$ac_ext <<_ACEOF
42938 /* end confdefs.h. */
42939 #include <math.h>
42940 #ifdef HAVE_IEEEFP_H
42941 #include <ieeefp.h>
42942 #endif
42945 main ()
42947 _expl(0);
42949 return 0;
42951 _ACEOF
42952 rm -f conftest.$ac_objext
42953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42954 (eval $ac_compile) 2>conftest.er1
42955 ac_status=$?
42956 grep -v '^ *+' conftest.er1 >conftest.err
42957 rm -f conftest.er1
42958 cat conftest.err >&5
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); } &&
42961 { ac_try='test -z "$ac_cxx_werror_flag"
42962 || test ! -s conftest.err'
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); }; } &&
42968 { ac_try='test -s conftest.$ac_objext'
42969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42970 (eval $ac_try) 2>&5
42971 ac_status=$?
42972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973 (exit $ac_status); }; }; then
42974 glibcxx_cv_func__expl_use=yes
42975 else
42976 echo "$as_me: failed program was:" >&5
42977 sed 's/^/| /' conftest.$ac_ext >&5
42979 glibcxx_cv_func__expl_use=no
42981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42982 ac_ext=c
42983 ac_cpp='$CPP $CPPFLAGS'
42984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42992 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
42993 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
42995 if test x$glibcxx_cv_func__expl_use = x"yes"; then
42997 for ac_func in _expl
42999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43000 echo "$as_me:$LINENO: checking for $ac_func" >&5
43001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43002 if eval "test \"\${$as_ac_var+set}\" = set"; then
43003 echo $ECHO_N "(cached) $ECHO_C" >&6
43004 else
43005 if test x$gcc_no_link = xyes; then
43006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43008 { (exit 1); exit 1; }; }
43010 cat >conftest.$ac_ext <<_ACEOF
43011 /* confdefs.h. */
43012 _ACEOF
43013 cat confdefs.h >>conftest.$ac_ext
43014 cat >>conftest.$ac_ext <<_ACEOF
43015 /* end confdefs.h. */
43016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43018 #define $ac_func innocuous_$ac_func
43020 /* System header to define __stub macros and hopefully few prototypes,
43021 which can conflict with char $ac_func (); below.
43022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43023 <limits.h> exists even on freestanding compilers. */
43025 #ifdef __STDC__
43026 # include <limits.h>
43027 #else
43028 # include <assert.h>
43029 #endif
43031 #undef $ac_func
43033 /* Override any gcc2 internal prototype to avoid an error. */
43034 #ifdef __cplusplus
43035 extern "C"
43037 #endif
43038 /* We use char because int might match the return type of a gcc2
43039 builtin and then its argument prototype would still apply. */
43040 char $ac_func ();
43041 /* The GNU C library defines this for functions which it implements
43042 to always fail with ENOSYS. Some functions are actually named
43043 something starting with __ and the normal name is an alias. */
43044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43045 choke me
43046 #else
43047 char (*f) () = $ac_func;
43048 #endif
43049 #ifdef __cplusplus
43051 #endif
43054 main ()
43056 return f != $ac_func;
43058 return 0;
43060 _ACEOF
43061 rm -f conftest.$ac_objext conftest$ac_exeext
43062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43063 (eval $ac_link) 2>conftest.er1
43064 ac_status=$?
43065 grep -v '^ *+' conftest.er1 >conftest.err
43066 rm -f conftest.er1
43067 cat conftest.err >&5
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); } &&
43070 { ac_try='test -z "$ac_c_werror_flag"
43071 || test ! -s conftest.err'
43072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43073 (eval $ac_try) 2>&5
43074 ac_status=$?
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); }; } &&
43077 { ac_try='test -s conftest$ac_exeext'
43078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43079 (eval $ac_try) 2>&5
43080 ac_status=$?
43081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082 (exit $ac_status); }; }; then
43083 eval "$as_ac_var=yes"
43084 else
43085 echo "$as_me: failed program was:" >&5
43086 sed 's/^/| /' conftest.$ac_ext >&5
43088 eval "$as_ac_var=no"
43090 rm -f conftest.err conftest.$ac_objext \
43091 conftest$ac_exeext conftest.$ac_ext
43093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43095 if test `eval echo '${'$as_ac_var'}'` = yes; then
43096 cat >>confdefs.h <<_ACEOF
43097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43098 _ACEOF
43101 done
43108 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43109 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43110 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43111 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43112 echo $ECHO_N "(cached) $ECHO_C" >&6
43113 else
43117 ac_ext=cc
43118 ac_cpp='$CXXCPP $CPPFLAGS'
43119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43123 cat >conftest.$ac_ext <<_ACEOF
43124 /* confdefs.h. */
43125 _ACEOF
43126 cat confdefs.h >>conftest.$ac_ext
43127 cat >>conftest.$ac_ext <<_ACEOF
43128 /* end confdefs.h. */
43129 #include <math.h>
43130 #ifdef HAVE_IEEEFP_H
43131 #include <ieeefp.h>
43132 #endif
43135 main ()
43137 fabsl(0);
43139 return 0;
43141 _ACEOF
43142 rm -f conftest.$ac_objext
43143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43144 (eval $ac_compile) 2>conftest.er1
43145 ac_status=$?
43146 grep -v '^ *+' conftest.er1 >conftest.err
43147 rm -f conftest.er1
43148 cat conftest.err >&5
43149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150 (exit $ac_status); } &&
43151 { ac_try='test -z "$ac_cxx_werror_flag"
43152 || test ! -s conftest.err'
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43154 (eval $ac_try) 2>&5
43155 ac_status=$?
43156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; } &&
43158 { ac_try='test -s conftest.$ac_objext'
43159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43160 (eval $ac_try) 2>&5
43161 ac_status=$?
43162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43163 (exit $ac_status); }; }; then
43164 glibcxx_cv_func_fabsl_use=yes
43165 else
43166 echo "$as_me: failed program was:" >&5
43167 sed 's/^/| /' conftest.$ac_ext >&5
43169 glibcxx_cv_func_fabsl_use=no
43171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43172 ac_ext=c
43173 ac_cpp='$CPP $CPPFLAGS'
43174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43182 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43183 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43185 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43187 for ac_func in fabsl
43189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43190 echo "$as_me:$LINENO: checking for $ac_func" >&5
43191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43192 if eval "test \"\${$as_ac_var+set}\" = set"; then
43193 echo $ECHO_N "(cached) $ECHO_C" >&6
43194 else
43195 if test x$gcc_no_link = xyes; then
43196 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43198 { (exit 1); exit 1; }; }
43200 cat >conftest.$ac_ext <<_ACEOF
43201 /* confdefs.h. */
43202 _ACEOF
43203 cat confdefs.h >>conftest.$ac_ext
43204 cat >>conftest.$ac_ext <<_ACEOF
43205 /* end confdefs.h. */
43206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43208 #define $ac_func innocuous_$ac_func
43210 /* System header to define __stub macros and hopefully few prototypes,
43211 which can conflict with char $ac_func (); below.
43212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43213 <limits.h> exists even on freestanding compilers. */
43215 #ifdef __STDC__
43216 # include <limits.h>
43217 #else
43218 # include <assert.h>
43219 #endif
43221 #undef $ac_func
43223 /* Override any gcc2 internal prototype to avoid an error. */
43224 #ifdef __cplusplus
43225 extern "C"
43227 #endif
43228 /* We use char because int might match the return type of a gcc2
43229 builtin and then its argument prototype would still apply. */
43230 char $ac_func ();
43231 /* The GNU C library defines this for functions which it implements
43232 to always fail with ENOSYS. Some functions are actually named
43233 something starting with __ and the normal name is an alias. */
43234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43235 choke me
43236 #else
43237 char (*f) () = $ac_func;
43238 #endif
43239 #ifdef __cplusplus
43241 #endif
43244 main ()
43246 return f != $ac_func;
43248 return 0;
43250 _ACEOF
43251 rm -f conftest.$ac_objext conftest$ac_exeext
43252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43253 (eval $ac_link) 2>conftest.er1
43254 ac_status=$?
43255 grep -v '^ *+' conftest.er1 >conftest.err
43256 rm -f conftest.er1
43257 cat conftest.err >&5
43258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259 (exit $ac_status); } &&
43260 { ac_try='test -z "$ac_c_werror_flag"
43261 || test ! -s conftest.err'
43262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43263 (eval $ac_try) 2>&5
43264 ac_status=$?
43265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43266 (exit $ac_status); }; } &&
43267 { ac_try='test -s conftest$ac_exeext'
43268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43269 (eval $ac_try) 2>&5
43270 ac_status=$?
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); }; }; then
43273 eval "$as_ac_var=yes"
43274 else
43275 echo "$as_me: failed program was:" >&5
43276 sed 's/^/| /' conftest.$ac_ext >&5
43278 eval "$as_ac_var=no"
43280 rm -f conftest.err conftest.$ac_objext \
43281 conftest$ac_exeext conftest.$ac_ext
43283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43285 if test `eval echo '${'$as_ac_var'}'` = yes; then
43286 cat >>confdefs.h <<_ACEOF
43287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43288 _ACEOF
43291 done
43293 else
43295 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43296 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43297 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43298 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43299 echo $ECHO_N "(cached) $ECHO_C" >&6
43300 else
43304 ac_ext=cc
43305 ac_cpp='$CXXCPP $CPPFLAGS'
43306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43310 cat >conftest.$ac_ext <<_ACEOF
43311 /* confdefs.h. */
43312 _ACEOF
43313 cat confdefs.h >>conftest.$ac_ext
43314 cat >>conftest.$ac_ext <<_ACEOF
43315 /* end confdefs.h. */
43316 #include <math.h>
43317 #ifdef HAVE_IEEEFP_H
43318 #include <ieeefp.h>
43319 #endif
43322 main ()
43324 _fabsl(0);
43326 return 0;
43328 _ACEOF
43329 rm -f conftest.$ac_objext
43330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43331 (eval $ac_compile) 2>conftest.er1
43332 ac_status=$?
43333 grep -v '^ *+' conftest.er1 >conftest.err
43334 rm -f conftest.er1
43335 cat conftest.err >&5
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); } &&
43338 { ac_try='test -z "$ac_cxx_werror_flag"
43339 || test ! -s conftest.err'
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); }; } &&
43345 { ac_try='test -s conftest.$ac_objext'
43346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43347 (eval $ac_try) 2>&5
43348 ac_status=$?
43349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43350 (exit $ac_status); }; }; then
43351 glibcxx_cv_func__fabsl_use=yes
43352 else
43353 echo "$as_me: failed program was:" >&5
43354 sed 's/^/| /' conftest.$ac_ext >&5
43356 glibcxx_cv_func__fabsl_use=no
43358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43359 ac_ext=c
43360 ac_cpp='$CPP $CPPFLAGS'
43361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43369 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43370 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43372 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43374 for ac_func in _fabsl
43376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43377 echo "$as_me:$LINENO: checking for $ac_func" >&5
43378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43379 if eval "test \"\${$as_ac_var+set}\" = set"; then
43380 echo $ECHO_N "(cached) $ECHO_C" >&6
43381 else
43382 if test x$gcc_no_link = xyes; then
43383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43385 { (exit 1); exit 1; }; }
43387 cat >conftest.$ac_ext <<_ACEOF
43388 /* confdefs.h. */
43389 _ACEOF
43390 cat confdefs.h >>conftest.$ac_ext
43391 cat >>conftest.$ac_ext <<_ACEOF
43392 /* end confdefs.h. */
43393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43395 #define $ac_func innocuous_$ac_func
43397 /* System header to define __stub macros and hopefully few prototypes,
43398 which can conflict with char $ac_func (); below.
43399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43400 <limits.h> exists even on freestanding compilers. */
43402 #ifdef __STDC__
43403 # include <limits.h>
43404 #else
43405 # include <assert.h>
43406 #endif
43408 #undef $ac_func
43410 /* Override any gcc2 internal prototype to avoid an error. */
43411 #ifdef __cplusplus
43412 extern "C"
43414 #endif
43415 /* We use char because int might match the return type of a gcc2
43416 builtin and then its argument prototype would still apply. */
43417 char $ac_func ();
43418 /* The GNU C library defines this for functions which it implements
43419 to always fail with ENOSYS. Some functions are actually named
43420 something starting with __ and the normal name is an alias. */
43421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43422 choke me
43423 #else
43424 char (*f) () = $ac_func;
43425 #endif
43426 #ifdef __cplusplus
43428 #endif
43431 main ()
43433 return f != $ac_func;
43435 return 0;
43437 _ACEOF
43438 rm -f conftest.$ac_objext conftest$ac_exeext
43439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43440 (eval $ac_link) 2>conftest.er1
43441 ac_status=$?
43442 grep -v '^ *+' conftest.er1 >conftest.err
43443 rm -f conftest.er1
43444 cat conftest.err >&5
43445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43446 (exit $ac_status); } &&
43447 { ac_try='test -z "$ac_c_werror_flag"
43448 || test ! -s conftest.err'
43449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43450 (eval $ac_try) 2>&5
43451 ac_status=$?
43452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43453 (exit $ac_status); }; } &&
43454 { ac_try='test -s conftest$ac_exeext'
43455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43456 (eval $ac_try) 2>&5
43457 ac_status=$?
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); }; }; then
43460 eval "$as_ac_var=yes"
43461 else
43462 echo "$as_me: failed program was:" >&5
43463 sed 's/^/| /' conftest.$ac_ext >&5
43465 eval "$as_ac_var=no"
43467 rm -f conftest.err conftest.$ac_objext \
43468 conftest$ac_exeext conftest.$ac_ext
43470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43472 if test `eval echo '${'$as_ac_var'}'` = yes; then
43473 cat >>confdefs.h <<_ACEOF
43474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43475 _ACEOF
43478 done
43485 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43486 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43487 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43488 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43489 echo $ECHO_N "(cached) $ECHO_C" >&6
43490 else
43494 ac_ext=cc
43495 ac_cpp='$CXXCPP $CPPFLAGS'
43496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43500 cat >conftest.$ac_ext <<_ACEOF
43501 /* confdefs.h. */
43502 _ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h. */
43506 #include <math.h>
43508 main ()
43510 fmodl(0, 0);
43512 return 0;
43514 _ACEOF
43515 rm -f conftest.$ac_objext
43516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43517 (eval $ac_compile) 2>conftest.er1
43518 ac_status=$?
43519 grep -v '^ *+' conftest.er1 >conftest.err
43520 rm -f conftest.er1
43521 cat conftest.err >&5
43522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43523 (exit $ac_status); } &&
43524 { ac_try='test -z "$ac_cxx_werror_flag"
43525 || test ! -s conftest.err'
43526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43527 (eval $ac_try) 2>&5
43528 ac_status=$?
43529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43530 (exit $ac_status); }; } &&
43531 { ac_try='test -s conftest.$ac_objext'
43532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43533 (eval $ac_try) 2>&5
43534 ac_status=$?
43535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43536 (exit $ac_status); }; }; then
43537 glibcxx_cv_func_fmodl_use=yes
43538 else
43539 echo "$as_me: failed program was:" >&5
43540 sed 's/^/| /' conftest.$ac_ext >&5
43542 glibcxx_cv_func_fmodl_use=no
43544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43545 ac_ext=c
43546 ac_cpp='$CPP $CPPFLAGS'
43547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43555 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43556 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43558 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43560 for ac_func in fmodl
43562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43563 echo "$as_me:$LINENO: checking for $ac_func" >&5
43564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43565 if eval "test \"\${$as_ac_var+set}\" = set"; then
43566 echo $ECHO_N "(cached) $ECHO_C" >&6
43567 else
43568 if test x$gcc_no_link = xyes; then
43569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43571 { (exit 1); exit 1; }; }
43573 cat >conftest.$ac_ext <<_ACEOF
43574 /* confdefs.h. */
43575 _ACEOF
43576 cat confdefs.h >>conftest.$ac_ext
43577 cat >>conftest.$ac_ext <<_ACEOF
43578 /* end confdefs.h. */
43579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43581 #define $ac_func innocuous_$ac_func
43583 /* System header to define __stub macros and hopefully few prototypes,
43584 which can conflict with char $ac_func (); below.
43585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43586 <limits.h> exists even on freestanding compilers. */
43588 #ifdef __STDC__
43589 # include <limits.h>
43590 #else
43591 # include <assert.h>
43592 #endif
43594 #undef $ac_func
43596 /* Override any gcc2 internal prototype to avoid an error. */
43597 #ifdef __cplusplus
43598 extern "C"
43600 #endif
43601 /* We use char because int might match the return type of a gcc2
43602 builtin and then its argument prototype would still apply. */
43603 char $ac_func ();
43604 /* The GNU C library defines this for functions which it implements
43605 to always fail with ENOSYS. Some functions are actually named
43606 something starting with __ and the normal name is an alias. */
43607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43608 choke me
43609 #else
43610 char (*f) () = $ac_func;
43611 #endif
43612 #ifdef __cplusplus
43614 #endif
43617 main ()
43619 return f != $ac_func;
43621 return 0;
43623 _ACEOF
43624 rm -f conftest.$ac_objext conftest$ac_exeext
43625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43626 (eval $ac_link) 2>conftest.er1
43627 ac_status=$?
43628 grep -v '^ *+' conftest.er1 >conftest.err
43629 rm -f conftest.er1
43630 cat conftest.err >&5
43631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43632 (exit $ac_status); } &&
43633 { ac_try='test -z "$ac_c_werror_flag"
43634 || test ! -s conftest.err'
43635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43636 (eval $ac_try) 2>&5
43637 ac_status=$?
43638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639 (exit $ac_status); }; } &&
43640 { ac_try='test -s conftest$ac_exeext'
43641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43642 (eval $ac_try) 2>&5
43643 ac_status=$?
43644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43645 (exit $ac_status); }; }; then
43646 eval "$as_ac_var=yes"
43647 else
43648 echo "$as_me: failed program was:" >&5
43649 sed 's/^/| /' conftest.$ac_ext >&5
43651 eval "$as_ac_var=no"
43653 rm -f conftest.err conftest.$ac_objext \
43654 conftest$ac_exeext conftest.$ac_ext
43656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43658 if test `eval echo '${'$as_ac_var'}'` = yes; then
43659 cat >>confdefs.h <<_ACEOF
43660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43661 _ACEOF
43664 done
43666 else
43668 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43669 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43670 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43671 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43672 echo $ECHO_N "(cached) $ECHO_C" >&6
43673 else
43677 ac_ext=cc
43678 ac_cpp='$CXXCPP $CPPFLAGS'
43679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43683 cat >conftest.$ac_ext <<_ACEOF
43684 /* confdefs.h. */
43685 _ACEOF
43686 cat confdefs.h >>conftest.$ac_ext
43687 cat >>conftest.$ac_ext <<_ACEOF
43688 /* end confdefs.h. */
43689 #include <math.h>
43691 main ()
43693 _fmodl(0, 0);
43695 return 0;
43697 _ACEOF
43698 rm -f conftest.$ac_objext
43699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43700 (eval $ac_compile) 2>conftest.er1
43701 ac_status=$?
43702 grep -v '^ *+' conftest.er1 >conftest.err
43703 rm -f conftest.er1
43704 cat conftest.err >&5
43705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43706 (exit $ac_status); } &&
43707 { ac_try='test -z "$ac_cxx_werror_flag"
43708 || test ! -s conftest.err'
43709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43710 (eval $ac_try) 2>&5
43711 ac_status=$?
43712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713 (exit $ac_status); }; } &&
43714 { ac_try='test -s conftest.$ac_objext'
43715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43716 (eval $ac_try) 2>&5
43717 ac_status=$?
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); }; }; then
43720 glibcxx_cv_func__fmodl_use=yes
43721 else
43722 echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43725 glibcxx_cv_func__fmodl_use=no
43727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43728 ac_ext=c
43729 ac_cpp='$CPP $CPPFLAGS'
43730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43738 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43739 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43741 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43743 for ac_func in _fmodl
43745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43746 echo "$as_me:$LINENO: checking for $ac_func" >&5
43747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43748 if eval "test \"\${$as_ac_var+set}\" = set"; then
43749 echo $ECHO_N "(cached) $ECHO_C" >&6
43750 else
43751 if test x$gcc_no_link = xyes; then
43752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43754 { (exit 1); exit 1; }; }
43756 cat >conftest.$ac_ext <<_ACEOF
43757 /* confdefs.h. */
43758 _ACEOF
43759 cat confdefs.h >>conftest.$ac_ext
43760 cat >>conftest.$ac_ext <<_ACEOF
43761 /* end confdefs.h. */
43762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43764 #define $ac_func innocuous_$ac_func
43766 /* System header to define __stub macros and hopefully few prototypes,
43767 which can conflict with char $ac_func (); below.
43768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43769 <limits.h> exists even on freestanding compilers. */
43771 #ifdef __STDC__
43772 # include <limits.h>
43773 #else
43774 # include <assert.h>
43775 #endif
43777 #undef $ac_func
43779 /* Override any gcc2 internal prototype to avoid an error. */
43780 #ifdef __cplusplus
43781 extern "C"
43783 #endif
43784 /* We use char because int might match the return type of a gcc2
43785 builtin and then its argument prototype would still apply. */
43786 char $ac_func ();
43787 /* The GNU C library defines this for functions which it implements
43788 to always fail with ENOSYS. Some functions are actually named
43789 something starting with __ and the normal name is an alias. */
43790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43791 choke me
43792 #else
43793 char (*f) () = $ac_func;
43794 #endif
43795 #ifdef __cplusplus
43797 #endif
43800 main ()
43802 return f != $ac_func;
43804 return 0;
43806 _ACEOF
43807 rm -f conftest.$ac_objext conftest$ac_exeext
43808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43809 (eval $ac_link) 2>conftest.er1
43810 ac_status=$?
43811 grep -v '^ *+' conftest.er1 >conftest.err
43812 rm -f conftest.er1
43813 cat conftest.err >&5
43814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815 (exit $ac_status); } &&
43816 { ac_try='test -z "$ac_c_werror_flag"
43817 || test ! -s conftest.err'
43818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43819 (eval $ac_try) 2>&5
43820 ac_status=$?
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); }; } &&
43823 { ac_try='test -s conftest$ac_exeext'
43824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43825 (eval $ac_try) 2>&5
43826 ac_status=$?
43827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; }; then
43829 eval "$as_ac_var=yes"
43830 else
43831 echo "$as_me: failed program was:" >&5
43832 sed 's/^/| /' conftest.$ac_ext >&5
43834 eval "$as_ac_var=no"
43836 rm -f conftest.err conftest.$ac_objext \
43837 conftest$ac_exeext conftest.$ac_ext
43839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43841 if test `eval echo '${'$as_ac_var'}'` = yes; then
43842 cat >>confdefs.h <<_ACEOF
43843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43844 _ACEOF
43847 done
43854 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43855 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43856 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43857 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43858 echo $ECHO_N "(cached) $ECHO_C" >&6
43859 else
43863 ac_ext=cc
43864 ac_cpp='$CXXCPP $CPPFLAGS'
43865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43869 cat >conftest.$ac_ext <<_ACEOF
43870 /* confdefs.h. */
43871 _ACEOF
43872 cat confdefs.h >>conftest.$ac_ext
43873 cat >>conftest.$ac_ext <<_ACEOF
43874 /* end confdefs.h. */
43875 #include <math.h>
43877 main ()
43879 frexpl(0, 0);
43881 return 0;
43883 _ACEOF
43884 rm -f conftest.$ac_objext
43885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43886 (eval $ac_compile) 2>conftest.er1
43887 ac_status=$?
43888 grep -v '^ *+' conftest.er1 >conftest.err
43889 rm -f conftest.er1
43890 cat conftest.err >&5
43891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43892 (exit $ac_status); } &&
43893 { ac_try='test -z "$ac_cxx_werror_flag"
43894 || test ! -s conftest.err'
43895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43896 (eval $ac_try) 2>&5
43897 ac_status=$?
43898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43899 (exit $ac_status); }; } &&
43900 { ac_try='test -s conftest.$ac_objext'
43901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43902 (eval $ac_try) 2>&5
43903 ac_status=$?
43904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43905 (exit $ac_status); }; }; then
43906 glibcxx_cv_func_frexpl_use=yes
43907 else
43908 echo "$as_me: failed program was:" >&5
43909 sed 's/^/| /' conftest.$ac_ext >&5
43911 glibcxx_cv_func_frexpl_use=no
43913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43914 ac_ext=c
43915 ac_cpp='$CPP $CPPFLAGS'
43916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43924 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43925 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43927 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
43929 for ac_func in frexpl
43931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43932 echo "$as_me:$LINENO: checking for $ac_func" >&5
43933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43934 if eval "test \"\${$as_ac_var+set}\" = set"; then
43935 echo $ECHO_N "(cached) $ECHO_C" >&6
43936 else
43937 if test x$gcc_no_link = xyes; then
43938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43940 { (exit 1); exit 1; }; }
43942 cat >conftest.$ac_ext <<_ACEOF
43943 /* confdefs.h. */
43944 _ACEOF
43945 cat confdefs.h >>conftest.$ac_ext
43946 cat >>conftest.$ac_ext <<_ACEOF
43947 /* end confdefs.h. */
43948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43950 #define $ac_func innocuous_$ac_func
43952 /* System header to define __stub macros and hopefully few prototypes,
43953 which can conflict with char $ac_func (); below.
43954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43955 <limits.h> exists even on freestanding compilers. */
43957 #ifdef __STDC__
43958 # include <limits.h>
43959 #else
43960 # include <assert.h>
43961 #endif
43963 #undef $ac_func
43965 /* Override any gcc2 internal prototype to avoid an error. */
43966 #ifdef __cplusplus
43967 extern "C"
43969 #endif
43970 /* We use char because int might match the return type of a gcc2
43971 builtin and then its argument prototype would still apply. */
43972 char $ac_func ();
43973 /* The GNU C library defines this for functions which it implements
43974 to always fail with ENOSYS. Some functions are actually named
43975 something starting with __ and the normal name is an alias. */
43976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43977 choke me
43978 #else
43979 char (*f) () = $ac_func;
43980 #endif
43981 #ifdef __cplusplus
43983 #endif
43986 main ()
43988 return f != $ac_func;
43990 return 0;
43992 _ACEOF
43993 rm -f conftest.$ac_objext conftest$ac_exeext
43994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43995 (eval $ac_link) 2>conftest.er1
43996 ac_status=$?
43997 grep -v '^ *+' conftest.er1 >conftest.err
43998 rm -f conftest.er1
43999 cat conftest.err >&5
44000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001 (exit $ac_status); } &&
44002 { ac_try='test -z "$ac_c_werror_flag"
44003 || test ! -s conftest.err'
44004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44005 (eval $ac_try) 2>&5
44006 ac_status=$?
44007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44008 (exit $ac_status); }; } &&
44009 { ac_try='test -s conftest$ac_exeext'
44010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44011 (eval $ac_try) 2>&5
44012 ac_status=$?
44013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44014 (exit $ac_status); }; }; then
44015 eval "$as_ac_var=yes"
44016 else
44017 echo "$as_me: failed program was:" >&5
44018 sed 's/^/| /' conftest.$ac_ext >&5
44020 eval "$as_ac_var=no"
44022 rm -f conftest.err conftest.$ac_objext \
44023 conftest$ac_exeext conftest.$ac_ext
44025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44027 if test `eval echo '${'$as_ac_var'}'` = yes; then
44028 cat >>confdefs.h <<_ACEOF
44029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44030 _ACEOF
44033 done
44035 else
44037 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44038 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44039 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44040 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44041 echo $ECHO_N "(cached) $ECHO_C" >&6
44042 else
44046 ac_ext=cc
44047 ac_cpp='$CXXCPP $CPPFLAGS'
44048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44052 cat >conftest.$ac_ext <<_ACEOF
44053 /* confdefs.h. */
44054 _ACEOF
44055 cat confdefs.h >>conftest.$ac_ext
44056 cat >>conftest.$ac_ext <<_ACEOF
44057 /* end confdefs.h. */
44058 #include <math.h>
44060 main ()
44062 _frexpl(0, 0);
44064 return 0;
44066 _ACEOF
44067 rm -f conftest.$ac_objext
44068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44069 (eval $ac_compile) 2>conftest.er1
44070 ac_status=$?
44071 grep -v '^ *+' conftest.er1 >conftest.err
44072 rm -f conftest.er1
44073 cat conftest.err >&5
44074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075 (exit $ac_status); } &&
44076 { ac_try='test -z "$ac_cxx_werror_flag"
44077 || test ! -s conftest.err'
44078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44079 (eval $ac_try) 2>&5
44080 ac_status=$?
44081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44082 (exit $ac_status); }; } &&
44083 { ac_try='test -s conftest.$ac_objext'
44084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44085 (eval $ac_try) 2>&5
44086 ac_status=$?
44087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44088 (exit $ac_status); }; }; then
44089 glibcxx_cv_func__frexpl_use=yes
44090 else
44091 echo "$as_me: failed program was:" >&5
44092 sed 's/^/| /' conftest.$ac_ext >&5
44094 glibcxx_cv_func__frexpl_use=no
44096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44097 ac_ext=c
44098 ac_cpp='$CPP $CPPFLAGS'
44099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44107 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44108 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44110 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44112 for ac_func in _frexpl
44114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44115 echo "$as_me:$LINENO: checking for $ac_func" >&5
44116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44117 if eval "test \"\${$as_ac_var+set}\" = set"; then
44118 echo $ECHO_N "(cached) $ECHO_C" >&6
44119 else
44120 if test x$gcc_no_link = xyes; then
44121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44123 { (exit 1); exit 1; }; }
44125 cat >conftest.$ac_ext <<_ACEOF
44126 /* confdefs.h. */
44127 _ACEOF
44128 cat confdefs.h >>conftest.$ac_ext
44129 cat >>conftest.$ac_ext <<_ACEOF
44130 /* end confdefs.h. */
44131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44133 #define $ac_func innocuous_$ac_func
44135 /* System header to define __stub macros and hopefully few prototypes,
44136 which can conflict with char $ac_func (); below.
44137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44138 <limits.h> exists even on freestanding compilers. */
44140 #ifdef __STDC__
44141 # include <limits.h>
44142 #else
44143 # include <assert.h>
44144 #endif
44146 #undef $ac_func
44148 /* Override any gcc2 internal prototype to avoid an error. */
44149 #ifdef __cplusplus
44150 extern "C"
44152 #endif
44153 /* We use char because int might match the return type of a gcc2
44154 builtin and then its argument prototype would still apply. */
44155 char $ac_func ();
44156 /* The GNU C library defines this for functions which it implements
44157 to always fail with ENOSYS. Some functions are actually named
44158 something starting with __ and the normal name is an alias. */
44159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44160 choke me
44161 #else
44162 char (*f) () = $ac_func;
44163 #endif
44164 #ifdef __cplusplus
44166 #endif
44169 main ()
44171 return f != $ac_func;
44173 return 0;
44175 _ACEOF
44176 rm -f conftest.$ac_objext conftest$ac_exeext
44177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44178 (eval $ac_link) 2>conftest.er1
44179 ac_status=$?
44180 grep -v '^ *+' conftest.er1 >conftest.err
44181 rm -f conftest.er1
44182 cat conftest.err >&5
44183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184 (exit $ac_status); } &&
44185 { ac_try='test -z "$ac_c_werror_flag"
44186 || test ! -s conftest.err'
44187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44188 (eval $ac_try) 2>&5
44189 ac_status=$?
44190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44191 (exit $ac_status); }; } &&
44192 { ac_try='test -s conftest$ac_exeext'
44193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44194 (eval $ac_try) 2>&5
44195 ac_status=$?
44196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44197 (exit $ac_status); }; }; then
44198 eval "$as_ac_var=yes"
44199 else
44200 echo "$as_me: failed program was:" >&5
44201 sed 's/^/| /' conftest.$ac_ext >&5
44203 eval "$as_ac_var=no"
44205 rm -f conftest.err conftest.$ac_objext \
44206 conftest$ac_exeext conftest.$ac_ext
44208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44210 if test `eval echo '${'$as_ac_var'}'` = yes; then
44211 cat >>confdefs.h <<_ACEOF
44212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44213 _ACEOF
44216 done
44223 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44224 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44225 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44226 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44227 echo $ECHO_N "(cached) $ECHO_C" >&6
44228 else
44232 ac_ext=cc
44233 ac_cpp='$CXXCPP $CPPFLAGS'
44234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44238 cat >conftest.$ac_ext <<_ACEOF
44239 /* confdefs.h. */
44240 _ACEOF
44241 cat confdefs.h >>conftest.$ac_ext
44242 cat >>conftest.$ac_ext <<_ACEOF
44243 /* end confdefs.h. */
44244 #include <math.h>
44246 main ()
44248 hypotl(0, 0);
44250 return 0;
44252 _ACEOF
44253 rm -f conftest.$ac_objext
44254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44255 (eval $ac_compile) 2>conftest.er1
44256 ac_status=$?
44257 grep -v '^ *+' conftest.er1 >conftest.err
44258 rm -f conftest.er1
44259 cat conftest.err >&5
44260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44261 (exit $ac_status); } &&
44262 { ac_try='test -z "$ac_cxx_werror_flag"
44263 || test ! -s conftest.err'
44264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44265 (eval $ac_try) 2>&5
44266 ac_status=$?
44267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268 (exit $ac_status); }; } &&
44269 { ac_try='test -s conftest.$ac_objext'
44270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271 (eval $ac_try) 2>&5
44272 ac_status=$?
44273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274 (exit $ac_status); }; }; then
44275 glibcxx_cv_func_hypotl_use=yes
44276 else
44277 echo "$as_me: failed program was:" >&5
44278 sed 's/^/| /' conftest.$ac_ext >&5
44280 glibcxx_cv_func_hypotl_use=no
44282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44283 ac_ext=c
44284 ac_cpp='$CPP $CPPFLAGS'
44285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44293 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44294 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44296 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44298 for ac_func in hypotl
44300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44301 echo "$as_me:$LINENO: checking for $ac_func" >&5
44302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44303 if eval "test \"\${$as_ac_var+set}\" = set"; then
44304 echo $ECHO_N "(cached) $ECHO_C" >&6
44305 else
44306 if test x$gcc_no_link = xyes; then
44307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44309 { (exit 1); exit 1; }; }
44311 cat >conftest.$ac_ext <<_ACEOF
44312 /* confdefs.h. */
44313 _ACEOF
44314 cat confdefs.h >>conftest.$ac_ext
44315 cat >>conftest.$ac_ext <<_ACEOF
44316 /* end confdefs.h. */
44317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44319 #define $ac_func innocuous_$ac_func
44321 /* System header to define __stub macros and hopefully few prototypes,
44322 which can conflict with char $ac_func (); below.
44323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44324 <limits.h> exists even on freestanding compilers. */
44326 #ifdef __STDC__
44327 # include <limits.h>
44328 #else
44329 # include <assert.h>
44330 #endif
44332 #undef $ac_func
44334 /* Override any gcc2 internal prototype to avoid an error. */
44335 #ifdef __cplusplus
44336 extern "C"
44338 #endif
44339 /* We use char because int might match the return type of a gcc2
44340 builtin and then its argument prototype would still apply. */
44341 char $ac_func ();
44342 /* The GNU C library defines this for functions which it implements
44343 to always fail with ENOSYS. Some functions are actually named
44344 something starting with __ and the normal name is an alias. */
44345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44346 choke me
44347 #else
44348 char (*f) () = $ac_func;
44349 #endif
44350 #ifdef __cplusplus
44352 #endif
44355 main ()
44357 return f != $ac_func;
44359 return 0;
44361 _ACEOF
44362 rm -f conftest.$ac_objext conftest$ac_exeext
44363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44364 (eval $ac_link) 2>conftest.er1
44365 ac_status=$?
44366 grep -v '^ *+' conftest.er1 >conftest.err
44367 rm -f conftest.er1
44368 cat conftest.err >&5
44369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44370 (exit $ac_status); } &&
44371 { ac_try='test -z "$ac_c_werror_flag"
44372 || test ! -s conftest.err'
44373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44374 (eval $ac_try) 2>&5
44375 ac_status=$?
44376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44377 (exit $ac_status); }; } &&
44378 { ac_try='test -s conftest$ac_exeext'
44379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44380 (eval $ac_try) 2>&5
44381 ac_status=$?
44382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44383 (exit $ac_status); }; }; then
44384 eval "$as_ac_var=yes"
44385 else
44386 echo "$as_me: failed program was:" >&5
44387 sed 's/^/| /' conftest.$ac_ext >&5
44389 eval "$as_ac_var=no"
44391 rm -f conftest.err conftest.$ac_objext \
44392 conftest$ac_exeext conftest.$ac_ext
44394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44396 if test `eval echo '${'$as_ac_var'}'` = yes; then
44397 cat >>confdefs.h <<_ACEOF
44398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44399 _ACEOF
44402 done
44404 else
44406 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44407 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44408 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44409 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44410 echo $ECHO_N "(cached) $ECHO_C" >&6
44411 else
44415 ac_ext=cc
44416 ac_cpp='$CXXCPP $CPPFLAGS'
44417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44421 cat >conftest.$ac_ext <<_ACEOF
44422 /* confdefs.h. */
44423 _ACEOF
44424 cat confdefs.h >>conftest.$ac_ext
44425 cat >>conftest.$ac_ext <<_ACEOF
44426 /* end confdefs.h. */
44427 #include <math.h>
44429 main ()
44431 _hypotl(0, 0);
44433 return 0;
44435 _ACEOF
44436 rm -f conftest.$ac_objext
44437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44438 (eval $ac_compile) 2>conftest.er1
44439 ac_status=$?
44440 grep -v '^ *+' conftest.er1 >conftest.err
44441 rm -f conftest.er1
44442 cat conftest.err >&5
44443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); } &&
44445 { ac_try='test -z "$ac_cxx_werror_flag"
44446 || test ! -s conftest.err'
44447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44448 (eval $ac_try) 2>&5
44449 ac_status=$?
44450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44451 (exit $ac_status); }; } &&
44452 { ac_try='test -s conftest.$ac_objext'
44453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44454 (eval $ac_try) 2>&5
44455 ac_status=$?
44456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44457 (exit $ac_status); }; }; then
44458 glibcxx_cv_func__hypotl_use=yes
44459 else
44460 echo "$as_me: failed program was:" >&5
44461 sed 's/^/| /' conftest.$ac_ext >&5
44463 glibcxx_cv_func__hypotl_use=no
44465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44466 ac_ext=c
44467 ac_cpp='$CPP $CPPFLAGS'
44468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44476 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44477 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44479 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44481 for ac_func in _hypotl
44483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44484 echo "$as_me:$LINENO: checking for $ac_func" >&5
44485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44486 if eval "test \"\${$as_ac_var+set}\" = set"; then
44487 echo $ECHO_N "(cached) $ECHO_C" >&6
44488 else
44489 if test x$gcc_no_link = xyes; then
44490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44492 { (exit 1); exit 1; }; }
44494 cat >conftest.$ac_ext <<_ACEOF
44495 /* confdefs.h. */
44496 _ACEOF
44497 cat confdefs.h >>conftest.$ac_ext
44498 cat >>conftest.$ac_ext <<_ACEOF
44499 /* end confdefs.h. */
44500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44502 #define $ac_func innocuous_$ac_func
44504 /* System header to define __stub macros and hopefully few prototypes,
44505 which can conflict with char $ac_func (); below.
44506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44507 <limits.h> exists even on freestanding compilers. */
44509 #ifdef __STDC__
44510 # include <limits.h>
44511 #else
44512 # include <assert.h>
44513 #endif
44515 #undef $ac_func
44517 /* Override any gcc2 internal prototype to avoid an error. */
44518 #ifdef __cplusplus
44519 extern "C"
44521 #endif
44522 /* We use char because int might match the return type of a gcc2
44523 builtin and then its argument prototype would still apply. */
44524 char $ac_func ();
44525 /* The GNU C library defines this for functions which it implements
44526 to always fail with ENOSYS. Some functions are actually named
44527 something starting with __ and the normal name is an alias. */
44528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44529 choke me
44530 #else
44531 char (*f) () = $ac_func;
44532 #endif
44533 #ifdef __cplusplus
44535 #endif
44538 main ()
44540 return f != $ac_func;
44542 return 0;
44544 _ACEOF
44545 rm -f conftest.$ac_objext conftest$ac_exeext
44546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44547 (eval $ac_link) 2>conftest.er1
44548 ac_status=$?
44549 grep -v '^ *+' conftest.er1 >conftest.err
44550 rm -f conftest.er1
44551 cat conftest.err >&5
44552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44553 (exit $ac_status); } &&
44554 { ac_try='test -z "$ac_c_werror_flag"
44555 || test ! -s conftest.err'
44556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44557 (eval $ac_try) 2>&5
44558 ac_status=$?
44559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560 (exit $ac_status); }; } &&
44561 { ac_try='test -s conftest$ac_exeext'
44562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44563 (eval $ac_try) 2>&5
44564 ac_status=$?
44565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566 (exit $ac_status); }; }; then
44567 eval "$as_ac_var=yes"
44568 else
44569 echo "$as_me: failed program was:" >&5
44570 sed 's/^/| /' conftest.$ac_ext >&5
44572 eval "$as_ac_var=no"
44574 rm -f conftest.err conftest.$ac_objext \
44575 conftest$ac_exeext conftest.$ac_ext
44577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44579 if test `eval echo '${'$as_ac_var'}'` = yes; then
44580 cat >>confdefs.h <<_ACEOF
44581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44582 _ACEOF
44585 done
44592 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44593 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44594 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44595 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44596 echo $ECHO_N "(cached) $ECHO_C" >&6
44597 else
44601 ac_ext=cc
44602 ac_cpp='$CXXCPP $CPPFLAGS'
44603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44607 cat >conftest.$ac_ext <<_ACEOF
44608 /* confdefs.h. */
44609 _ACEOF
44610 cat confdefs.h >>conftest.$ac_ext
44611 cat >>conftest.$ac_ext <<_ACEOF
44612 /* end confdefs.h. */
44613 #include <math.h>
44615 main ()
44617 ldexpl(0, 0);
44619 return 0;
44621 _ACEOF
44622 rm -f conftest.$ac_objext
44623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44624 (eval $ac_compile) 2>conftest.er1
44625 ac_status=$?
44626 grep -v '^ *+' conftest.er1 >conftest.err
44627 rm -f conftest.er1
44628 cat conftest.err >&5
44629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44630 (exit $ac_status); } &&
44631 { ac_try='test -z "$ac_cxx_werror_flag"
44632 || test ! -s conftest.err'
44633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44634 (eval $ac_try) 2>&5
44635 ac_status=$?
44636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44637 (exit $ac_status); }; } &&
44638 { ac_try='test -s conftest.$ac_objext'
44639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44640 (eval $ac_try) 2>&5
44641 ac_status=$?
44642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44643 (exit $ac_status); }; }; then
44644 glibcxx_cv_func_ldexpl_use=yes
44645 else
44646 echo "$as_me: failed program was:" >&5
44647 sed 's/^/| /' conftest.$ac_ext >&5
44649 glibcxx_cv_func_ldexpl_use=no
44651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44652 ac_ext=c
44653 ac_cpp='$CPP $CPPFLAGS'
44654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44662 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44663 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44665 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44667 for ac_func in ldexpl
44669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44670 echo "$as_me:$LINENO: checking for $ac_func" >&5
44671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44672 if eval "test \"\${$as_ac_var+set}\" = set"; then
44673 echo $ECHO_N "(cached) $ECHO_C" >&6
44674 else
44675 if test x$gcc_no_link = xyes; then
44676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44678 { (exit 1); exit 1; }; }
44680 cat >conftest.$ac_ext <<_ACEOF
44681 /* confdefs.h. */
44682 _ACEOF
44683 cat confdefs.h >>conftest.$ac_ext
44684 cat >>conftest.$ac_ext <<_ACEOF
44685 /* end confdefs.h. */
44686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44688 #define $ac_func innocuous_$ac_func
44690 /* System header to define __stub macros and hopefully few prototypes,
44691 which can conflict with char $ac_func (); below.
44692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44693 <limits.h> exists even on freestanding compilers. */
44695 #ifdef __STDC__
44696 # include <limits.h>
44697 #else
44698 # include <assert.h>
44699 #endif
44701 #undef $ac_func
44703 /* Override any gcc2 internal prototype to avoid an error. */
44704 #ifdef __cplusplus
44705 extern "C"
44707 #endif
44708 /* We use char because int might match the return type of a gcc2
44709 builtin and then its argument prototype would still apply. */
44710 char $ac_func ();
44711 /* The GNU C library defines this for functions which it implements
44712 to always fail with ENOSYS. Some functions are actually named
44713 something starting with __ and the normal name is an alias. */
44714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44715 choke me
44716 #else
44717 char (*f) () = $ac_func;
44718 #endif
44719 #ifdef __cplusplus
44721 #endif
44724 main ()
44726 return f != $ac_func;
44728 return 0;
44730 _ACEOF
44731 rm -f conftest.$ac_objext conftest$ac_exeext
44732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44733 (eval $ac_link) 2>conftest.er1
44734 ac_status=$?
44735 grep -v '^ *+' conftest.er1 >conftest.err
44736 rm -f conftest.er1
44737 cat conftest.err >&5
44738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739 (exit $ac_status); } &&
44740 { ac_try='test -z "$ac_c_werror_flag"
44741 || test ! -s conftest.err'
44742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44743 (eval $ac_try) 2>&5
44744 ac_status=$?
44745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44746 (exit $ac_status); }; } &&
44747 { ac_try='test -s conftest$ac_exeext'
44748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44749 (eval $ac_try) 2>&5
44750 ac_status=$?
44751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752 (exit $ac_status); }; }; then
44753 eval "$as_ac_var=yes"
44754 else
44755 echo "$as_me: failed program was:" >&5
44756 sed 's/^/| /' conftest.$ac_ext >&5
44758 eval "$as_ac_var=no"
44760 rm -f conftest.err conftest.$ac_objext \
44761 conftest$ac_exeext conftest.$ac_ext
44763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44765 if test `eval echo '${'$as_ac_var'}'` = yes; then
44766 cat >>confdefs.h <<_ACEOF
44767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44768 _ACEOF
44771 done
44773 else
44775 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44776 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44777 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44778 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44779 echo $ECHO_N "(cached) $ECHO_C" >&6
44780 else
44784 ac_ext=cc
44785 ac_cpp='$CXXCPP $CPPFLAGS'
44786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44790 cat >conftest.$ac_ext <<_ACEOF
44791 /* confdefs.h. */
44792 _ACEOF
44793 cat confdefs.h >>conftest.$ac_ext
44794 cat >>conftest.$ac_ext <<_ACEOF
44795 /* end confdefs.h. */
44796 #include <math.h>
44798 main ()
44800 _ldexpl(0, 0);
44802 return 0;
44804 _ACEOF
44805 rm -f conftest.$ac_objext
44806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44807 (eval $ac_compile) 2>conftest.er1
44808 ac_status=$?
44809 grep -v '^ *+' conftest.er1 >conftest.err
44810 rm -f conftest.er1
44811 cat conftest.err >&5
44812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813 (exit $ac_status); } &&
44814 { ac_try='test -z "$ac_cxx_werror_flag"
44815 || test ! -s conftest.err'
44816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44817 (eval $ac_try) 2>&5
44818 ac_status=$?
44819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44820 (exit $ac_status); }; } &&
44821 { ac_try='test -s conftest.$ac_objext'
44822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44823 (eval $ac_try) 2>&5
44824 ac_status=$?
44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826 (exit $ac_status); }; }; then
44827 glibcxx_cv_func__ldexpl_use=yes
44828 else
44829 echo "$as_me: failed program was:" >&5
44830 sed 's/^/| /' conftest.$ac_ext >&5
44832 glibcxx_cv_func__ldexpl_use=no
44834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44835 ac_ext=c
44836 ac_cpp='$CPP $CPPFLAGS'
44837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44845 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44846 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44848 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44850 for ac_func in _ldexpl
44852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44853 echo "$as_me:$LINENO: checking for $ac_func" >&5
44854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44855 if eval "test \"\${$as_ac_var+set}\" = set"; then
44856 echo $ECHO_N "(cached) $ECHO_C" >&6
44857 else
44858 if test x$gcc_no_link = xyes; then
44859 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44861 { (exit 1); exit 1; }; }
44863 cat >conftest.$ac_ext <<_ACEOF
44864 /* confdefs.h. */
44865 _ACEOF
44866 cat confdefs.h >>conftest.$ac_ext
44867 cat >>conftest.$ac_ext <<_ACEOF
44868 /* end confdefs.h. */
44869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44871 #define $ac_func innocuous_$ac_func
44873 /* System header to define __stub macros and hopefully few prototypes,
44874 which can conflict with char $ac_func (); below.
44875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44876 <limits.h> exists even on freestanding compilers. */
44878 #ifdef __STDC__
44879 # include <limits.h>
44880 #else
44881 # include <assert.h>
44882 #endif
44884 #undef $ac_func
44886 /* Override any gcc2 internal prototype to avoid an error. */
44887 #ifdef __cplusplus
44888 extern "C"
44890 #endif
44891 /* We use char because int might match the return type of a gcc2
44892 builtin and then its argument prototype would still apply. */
44893 char $ac_func ();
44894 /* The GNU C library defines this for functions which it implements
44895 to always fail with ENOSYS. Some functions are actually named
44896 something starting with __ and the normal name is an alias. */
44897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44898 choke me
44899 #else
44900 char (*f) () = $ac_func;
44901 #endif
44902 #ifdef __cplusplus
44904 #endif
44907 main ()
44909 return f != $ac_func;
44911 return 0;
44913 _ACEOF
44914 rm -f conftest.$ac_objext conftest$ac_exeext
44915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44916 (eval $ac_link) 2>conftest.er1
44917 ac_status=$?
44918 grep -v '^ *+' conftest.er1 >conftest.err
44919 rm -f conftest.er1
44920 cat conftest.err >&5
44921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44922 (exit $ac_status); } &&
44923 { ac_try='test -z "$ac_c_werror_flag"
44924 || test ! -s conftest.err'
44925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44926 (eval $ac_try) 2>&5
44927 ac_status=$?
44928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44929 (exit $ac_status); }; } &&
44930 { ac_try='test -s conftest$ac_exeext'
44931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44932 (eval $ac_try) 2>&5
44933 ac_status=$?
44934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44935 (exit $ac_status); }; }; then
44936 eval "$as_ac_var=yes"
44937 else
44938 echo "$as_me: failed program was:" >&5
44939 sed 's/^/| /' conftest.$ac_ext >&5
44941 eval "$as_ac_var=no"
44943 rm -f conftest.err conftest.$ac_objext \
44944 conftest$ac_exeext conftest.$ac_ext
44946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44948 if test `eval echo '${'$as_ac_var'}'` = yes; then
44949 cat >>confdefs.h <<_ACEOF
44950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44951 _ACEOF
44954 done
44961 echo "$as_me:$LINENO: checking for logl declaration" >&5
44962 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
44963 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44964 if test "${glibcxx_cv_func_logl_use+set}" = set; then
44965 echo $ECHO_N "(cached) $ECHO_C" >&6
44966 else
44970 ac_ext=cc
44971 ac_cpp='$CXXCPP $CPPFLAGS'
44972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44976 cat >conftest.$ac_ext <<_ACEOF
44977 /* confdefs.h. */
44978 _ACEOF
44979 cat confdefs.h >>conftest.$ac_ext
44980 cat >>conftest.$ac_ext <<_ACEOF
44981 /* end confdefs.h. */
44982 #include <math.h>
44983 #ifdef HAVE_IEEEFP_H
44984 #include <ieeefp.h>
44985 #endif
44988 main ()
44990 logl(0);
44992 return 0;
44994 _ACEOF
44995 rm -f conftest.$ac_objext
44996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44997 (eval $ac_compile) 2>conftest.er1
44998 ac_status=$?
44999 grep -v '^ *+' conftest.er1 >conftest.err
45000 rm -f conftest.er1
45001 cat conftest.err >&5
45002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45003 (exit $ac_status); } &&
45004 { ac_try='test -z "$ac_cxx_werror_flag"
45005 || test ! -s conftest.err'
45006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45007 (eval $ac_try) 2>&5
45008 ac_status=$?
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); }; } &&
45011 { ac_try='test -s conftest.$ac_objext'
45012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45013 (eval $ac_try) 2>&5
45014 ac_status=$?
45015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45016 (exit $ac_status); }; }; then
45017 glibcxx_cv_func_logl_use=yes
45018 else
45019 echo "$as_me: failed program was:" >&5
45020 sed 's/^/| /' conftest.$ac_ext >&5
45022 glibcxx_cv_func_logl_use=no
45024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45025 ac_ext=c
45026 ac_cpp='$CPP $CPPFLAGS'
45027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45035 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45036 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45038 if test x$glibcxx_cv_func_logl_use = x"yes"; then
45040 for ac_func in logl
45042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45043 echo "$as_me:$LINENO: checking for $ac_func" >&5
45044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45045 if eval "test \"\${$as_ac_var+set}\" = set"; then
45046 echo $ECHO_N "(cached) $ECHO_C" >&6
45047 else
45048 if test x$gcc_no_link = xyes; then
45049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45051 { (exit 1); exit 1; }; }
45053 cat >conftest.$ac_ext <<_ACEOF
45054 /* confdefs.h. */
45055 _ACEOF
45056 cat confdefs.h >>conftest.$ac_ext
45057 cat >>conftest.$ac_ext <<_ACEOF
45058 /* end confdefs.h. */
45059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45061 #define $ac_func innocuous_$ac_func
45063 /* System header to define __stub macros and hopefully few prototypes,
45064 which can conflict with char $ac_func (); below.
45065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45066 <limits.h> exists even on freestanding compilers. */
45068 #ifdef __STDC__
45069 # include <limits.h>
45070 #else
45071 # include <assert.h>
45072 #endif
45074 #undef $ac_func
45076 /* Override any gcc2 internal prototype to avoid an error. */
45077 #ifdef __cplusplus
45078 extern "C"
45080 #endif
45081 /* We use char because int might match the return type of a gcc2
45082 builtin and then its argument prototype would still apply. */
45083 char $ac_func ();
45084 /* The GNU C library defines this for functions which it implements
45085 to always fail with ENOSYS. Some functions are actually named
45086 something starting with __ and the normal name is an alias. */
45087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45088 choke me
45089 #else
45090 char (*f) () = $ac_func;
45091 #endif
45092 #ifdef __cplusplus
45094 #endif
45097 main ()
45099 return f != $ac_func;
45101 return 0;
45103 _ACEOF
45104 rm -f conftest.$ac_objext conftest$ac_exeext
45105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45106 (eval $ac_link) 2>conftest.er1
45107 ac_status=$?
45108 grep -v '^ *+' conftest.er1 >conftest.err
45109 rm -f conftest.er1
45110 cat conftest.err >&5
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); } &&
45113 { ac_try='test -z "$ac_c_werror_flag"
45114 || test ! -s conftest.err'
45115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45116 (eval $ac_try) 2>&5
45117 ac_status=$?
45118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119 (exit $ac_status); }; } &&
45120 { ac_try='test -s conftest$ac_exeext'
45121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45122 (eval $ac_try) 2>&5
45123 ac_status=$?
45124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45125 (exit $ac_status); }; }; then
45126 eval "$as_ac_var=yes"
45127 else
45128 echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45131 eval "$as_ac_var=no"
45133 rm -f conftest.err conftest.$ac_objext \
45134 conftest$ac_exeext conftest.$ac_ext
45136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45138 if test `eval echo '${'$as_ac_var'}'` = yes; then
45139 cat >>confdefs.h <<_ACEOF
45140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45141 _ACEOF
45144 done
45146 else
45148 echo "$as_me:$LINENO: checking for _logl declaration" >&5
45149 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45150 if test x${glibcxx_cv_func__logl_use+set} != xset; then
45151 if test "${glibcxx_cv_func__logl_use+set}" = set; then
45152 echo $ECHO_N "(cached) $ECHO_C" >&6
45153 else
45157 ac_ext=cc
45158 ac_cpp='$CXXCPP $CPPFLAGS'
45159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45163 cat >conftest.$ac_ext <<_ACEOF
45164 /* confdefs.h. */
45165 _ACEOF
45166 cat confdefs.h >>conftest.$ac_ext
45167 cat >>conftest.$ac_ext <<_ACEOF
45168 /* end confdefs.h. */
45169 #include <math.h>
45170 #ifdef HAVE_IEEEFP_H
45171 #include <ieeefp.h>
45172 #endif
45175 main ()
45177 _logl(0);
45179 return 0;
45181 _ACEOF
45182 rm -f conftest.$ac_objext
45183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45184 (eval $ac_compile) 2>conftest.er1
45185 ac_status=$?
45186 grep -v '^ *+' conftest.er1 >conftest.err
45187 rm -f conftest.er1
45188 cat conftest.err >&5
45189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45190 (exit $ac_status); } &&
45191 { ac_try='test -z "$ac_cxx_werror_flag"
45192 || test ! -s conftest.err'
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); }; } &&
45198 { ac_try='test -s conftest.$ac_objext'
45199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200 (eval $ac_try) 2>&5
45201 ac_status=$?
45202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 (exit $ac_status); }; }; then
45204 glibcxx_cv_func__logl_use=yes
45205 else
45206 echo "$as_me: failed program was:" >&5
45207 sed 's/^/| /' conftest.$ac_ext >&5
45209 glibcxx_cv_func__logl_use=no
45211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45212 ac_ext=c
45213 ac_cpp='$CPP $CPPFLAGS'
45214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45222 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45223 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45225 if test x$glibcxx_cv_func__logl_use = x"yes"; then
45227 for ac_func in _logl
45229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45230 echo "$as_me:$LINENO: checking for $ac_func" >&5
45231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45232 if eval "test \"\${$as_ac_var+set}\" = set"; then
45233 echo $ECHO_N "(cached) $ECHO_C" >&6
45234 else
45235 if test x$gcc_no_link = xyes; then
45236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45238 { (exit 1); exit 1; }; }
45240 cat >conftest.$ac_ext <<_ACEOF
45241 /* confdefs.h. */
45242 _ACEOF
45243 cat confdefs.h >>conftest.$ac_ext
45244 cat >>conftest.$ac_ext <<_ACEOF
45245 /* end confdefs.h. */
45246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45248 #define $ac_func innocuous_$ac_func
45250 /* System header to define __stub macros and hopefully few prototypes,
45251 which can conflict with char $ac_func (); below.
45252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45253 <limits.h> exists even on freestanding compilers. */
45255 #ifdef __STDC__
45256 # include <limits.h>
45257 #else
45258 # include <assert.h>
45259 #endif
45261 #undef $ac_func
45263 /* Override any gcc2 internal prototype to avoid an error. */
45264 #ifdef __cplusplus
45265 extern "C"
45267 #endif
45268 /* We use char because int might match the return type of a gcc2
45269 builtin and then its argument prototype would still apply. */
45270 char $ac_func ();
45271 /* The GNU C library defines this for functions which it implements
45272 to always fail with ENOSYS. Some functions are actually named
45273 something starting with __ and the normal name is an alias. */
45274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45275 choke me
45276 #else
45277 char (*f) () = $ac_func;
45278 #endif
45279 #ifdef __cplusplus
45281 #endif
45284 main ()
45286 return f != $ac_func;
45288 return 0;
45290 _ACEOF
45291 rm -f conftest.$ac_objext conftest$ac_exeext
45292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45293 (eval $ac_link) 2>conftest.er1
45294 ac_status=$?
45295 grep -v '^ *+' conftest.er1 >conftest.err
45296 rm -f conftest.er1
45297 cat conftest.err >&5
45298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299 (exit $ac_status); } &&
45300 { ac_try='test -z "$ac_c_werror_flag"
45301 || test ! -s conftest.err'
45302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45303 (eval $ac_try) 2>&5
45304 ac_status=$?
45305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45306 (exit $ac_status); }; } &&
45307 { ac_try='test -s conftest$ac_exeext'
45308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45309 (eval $ac_try) 2>&5
45310 ac_status=$?
45311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312 (exit $ac_status); }; }; then
45313 eval "$as_ac_var=yes"
45314 else
45315 echo "$as_me: failed program was:" >&5
45316 sed 's/^/| /' conftest.$ac_ext >&5
45318 eval "$as_ac_var=no"
45320 rm -f conftest.err conftest.$ac_objext \
45321 conftest$ac_exeext conftest.$ac_ext
45323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45325 if test `eval echo '${'$as_ac_var'}'` = yes; then
45326 cat >>confdefs.h <<_ACEOF
45327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45328 _ACEOF
45331 done
45338 echo "$as_me:$LINENO: checking for log10l declaration" >&5
45339 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45340 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45341 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45342 echo $ECHO_N "(cached) $ECHO_C" >&6
45343 else
45347 ac_ext=cc
45348 ac_cpp='$CXXCPP $CPPFLAGS'
45349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45353 cat >conftest.$ac_ext <<_ACEOF
45354 /* confdefs.h. */
45355 _ACEOF
45356 cat confdefs.h >>conftest.$ac_ext
45357 cat >>conftest.$ac_ext <<_ACEOF
45358 /* end confdefs.h. */
45359 #include <math.h>
45360 #ifdef HAVE_IEEEFP_H
45361 #include <ieeefp.h>
45362 #endif
45365 main ()
45367 log10l(0);
45369 return 0;
45371 _ACEOF
45372 rm -f conftest.$ac_objext
45373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45374 (eval $ac_compile) 2>conftest.er1
45375 ac_status=$?
45376 grep -v '^ *+' conftest.er1 >conftest.err
45377 rm -f conftest.er1
45378 cat conftest.err >&5
45379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45380 (exit $ac_status); } &&
45381 { ac_try='test -z "$ac_cxx_werror_flag"
45382 || test ! -s conftest.err'
45383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45384 (eval $ac_try) 2>&5
45385 ac_status=$?
45386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45387 (exit $ac_status); }; } &&
45388 { ac_try='test -s conftest.$ac_objext'
45389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45390 (eval $ac_try) 2>&5
45391 ac_status=$?
45392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45393 (exit $ac_status); }; }; then
45394 glibcxx_cv_func_log10l_use=yes
45395 else
45396 echo "$as_me: failed program was:" >&5
45397 sed 's/^/| /' conftest.$ac_ext >&5
45399 glibcxx_cv_func_log10l_use=no
45401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45402 ac_ext=c
45403 ac_cpp='$CPP $CPPFLAGS'
45404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45412 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45413 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45415 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45417 for ac_func in log10l
45419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45420 echo "$as_me:$LINENO: checking for $ac_func" >&5
45421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45422 if eval "test \"\${$as_ac_var+set}\" = set"; then
45423 echo $ECHO_N "(cached) $ECHO_C" >&6
45424 else
45425 if test x$gcc_no_link = xyes; then
45426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45428 { (exit 1); exit 1; }; }
45430 cat >conftest.$ac_ext <<_ACEOF
45431 /* confdefs.h. */
45432 _ACEOF
45433 cat confdefs.h >>conftest.$ac_ext
45434 cat >>conftest.$ac_ext <<_ACEOF
45435 /* end confdefs.h. */
45436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45438 #define $ac_func innocuous_$ac_func
45440 /* System header to define __stub macros and hopefully few prototypes,
45441 which can conflict with char $ac_func (); below.
45442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45443 <limits.h> exists even on freestanding compilers. */
45445 #ifdef __STDC__
45446 # include <limits.h>
45447 #else
45448 # include <assert.h>
45449 #endif
45451 #undef $ac_func
45453 /* Override any gcc2 internal prototype to avoid an error. */
45454 #ifdef __cplusplus
45455 extern "C"
45457 #endif
45458 /* We use char because int might match the return type of a gcc2
45459 builtin and then its argument prototype would still apply. */
45460 char $ac_func ();
45461 /* The GNU C library defines this for functions which it implements
45462 to always fail with ENOSYS. Some functions are actually named
45463 something starting with __ and the normal name is an alias. */
45464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45465 choke me
45466 #else
45467 char (*f) () = $ac_func;
45468 #endif
45469 #ifdef __cplusplus
45471 #endif
45474 main ()
45476 return f != $ac_func;
45478 return 0;
45480 _ACEOF
45481 rm -f conftest.$ac_objext conftest$ac_exeext
45482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45483 (eval $ac_link) 2>conftest.er1
45484 ac_status=$?
45485 grep -v '^ *+' conftest.er1 >conftest.err
45486 rm -f conftest.er1
45487 cat conftest.err >&5
45488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45489 (exit $ac_status); } &&
45490 { ac_try='test -z "$ac_c_werror_flag"
45491 || test ! -s conftest.err'
45492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45493 (eval $ac_try) 2>&5
45494 ac_status=$?
45495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45496 (exit $ac_status); }; } &&
45497 { ac_try='test -s conftest$ac_exeext'
45498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45499 (eval $ac_try) 2>&5
45500 ac_status=$?
45501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45502 (exit $ac_status); }; }; then
45503 eval "$as_ac_var=yes"
45504 else
45505 echo "$as_me: failed program was:" >&5
45506 sed 's/^/| /' conftest.$ac_ext >&5
45508 eval "$as_ac_var=no"
45510 rm -f conftest.err conftest.$ac_objext \
45511 conftest$ac_exeext conftest.$ac_ext
45513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45515 if test `eval echo '${'$as_ac_var'}'` = yes; then
45516 cat >>confdefs.h <<_ACEOF
45517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45518 _ACEOF
45521 done
45523 else
45525 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45526 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45527 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45528 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45529 echo $ECHO_N "(cached) $ECHO_C" >&6
45530 else
45534 ac_ext=cc
45535 ac_cpp='$CXXCPP $CPPFLAGS'
45536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45540 cat >conftest.$ac_ext <<_ACEOF
45541 /* confdefs.h. */
45542 _ACEOF
45543 cat confdefs.h >>conftest.$ac_ext
45544 cat >>conftest.$ac_ext <<_ACEOF
45545 /* end confdefs.h. */
45546 #include <math.h>
45547 #ifdef HAVE_IEEEFP_H
45548 #include <ieeefp.h>
45549 #endif
45552 main ()
45554 _log10l(0);
45556 return 0;
45558 _ACEOF
45559 rm -f conftest.$ac_objext
45560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45561 (eval $ac_compile) 2>conftest.er1
45562 ac_status=$?
45563 grep -v '^ *+' conftest.er1 >conftest.err
45564 rm -f conftest.er1
45565 cat conftest.err >&5
45566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45567 (exit $ac_status); } &&
45568 { ac_try='test -z "$ac_cxx_werror_flag"
45569 || test ! -s conftest.err'
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); }; } &&
45575 { ac_try='test -s conftest.$ac_objext'
45576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45577 (eval $ac_try) 2>&5
45578 ac_status=$?
45579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45580 (exit $ac_status); }; }; then
45581 glibcxx_cv_func__log10l_use=yes
45582 else
45583 echo "$as_me: failed program was:" >&5
45584 sed 's/^/| /' conftest.$ac_ext >&5
45586 glibcxx_cv_func__log10l_use=no
45588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45589 ac_ext=c
45590 ac_cpp='$CPP $CPPFLAGS'
45591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45599 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45600 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45602 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45604 for ac_func in _log10l
45606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45607 echo "$as_me:$LINENO: checking for $ac_func" >&5
45608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45609 if eval "test \"\${$as_ac_var+set}\" = set"; then
45610 echo $ECHO_N "(cached) $ECHO_C" >&6
45611 else
45612 if test x$gcc_no_link = xyes; then
45613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45615 { (exit 1); exit 1; }; }
45617 cat >conftest.$ac_ext <<_ACEOF
45618 /* confdefs.h. */
45619 _ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h. */
45623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45625 #define $ac_func innocuous_$ac_func
45627 /* System header to define __stub macros and hopefully few prototypes,
45628 which can conflict with char $ac_func (); below.
45629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45630 <limits.h> exists even on freestanding compilers. */
45632 #ifdef __STDC__
45633 # include <limits.h>
45634 #else
45635 # include <assert.h>
45636 #endif
45638 #undef $ac_func
45640 /* Override any gcc2 internal prototype to avoid an error. */
45641 #ifdef __cplusplus
45642 extern "C"
45644 #endif
45645 /* We use char because int might match the return type of a gcc2
45646 builtin and then its argument prototype would still apply. */
45647 char $ac_func ();
45648 /* The GNU C library defines this for functions which it implements
45649 to always fail with ENOSYS. Some functions are actually named
45650 something starting with __ and the normal name is an alias. */
45651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45652 choke me
45653 #else
45654 char (*f) () = $ac_func;
45655 #endif
45656 #ifdef __cplusplus
45658 #endif
45661 main ()
45663 return f != $ac_func;
45665 return 0;
45667 _ACEOF
45668 rm -f conftest.$ac_objext conftest$ac_exeext
45669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45670 (eval $ac_link) 2>conftest.er1
45671 ac_status=$?
45672 grep -v '^ *+' conftest.er1 >conftest.err
45673 rm -f conftest.er1
45674 cat conftest.err >&5
45675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45676 (exit $ac_status); } &&
45677 { ac_try='test -z "$ac_c_werror_flag"
45678 || test ! -s conftest.err'
45679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45680 (eval $ac_try) 2>&5
45681 ac_status=$?
45682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683 (exit $ac_status); }; } &&
45684 { ac_try='test -s conftest$ac_exeext'
45685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686 (eval $ac_try) 2>&5
45687 ac_status=$?
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; }; then
45690 eval "$as_ac_var=yes"
45691 else
45692 echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45695 eval "$as_ac_var=no"
45697 rm -f conftest.err conftest.$ac_objext \
45698 conftest$ac_exeext conftest.$ac_ext
45700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45702 if test `eval echo '${'$as_ac_var'}'` = yes; then
45703 cat >>confdefs.h <<_ACEOF
45704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45705 _ACEOF
45708 done
45715 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45716 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45717 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45718 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45719 echo $ECHO_N "(cached) $ECHO_C" >&6
45720 else
45724 ac_ext=cc
45725 ac_cpp='$CXXCPP $CPPFLAGS'
45726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45730 cat >conftest.$ac_ext <<_ACEOF
45731 /* confdefs.h. */
45732 _ACEOF
45733 cat confdefs.h >>conftest.$ac_ext
45734 cat >>conftest.$ac_ext <<_ACEOF
45735 /* end confdefs.h. */
45736 #include <math.h>
45738 main ()
45740 modfl(0, 0);
45742 return 0;
45744 _ACEOF
45745 rm -f conftest.$ac_objext
45746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45747 (eval $ac_compile) 2>conftest.er1
45748 ac_status=$?
45749 grep -v '^ *+' conftest.er1 >conftest.err
45750 rm -f conftest.er1
45751 cat conftest.err >&5
45752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45753 (exit $ac_status); } &&
45754 { ac_try='test -z "$ac_cxx_werror_flag"
45755 || test ! -s conftest.err'
45756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45757 (eval $ac_try) 2>&5
45758 ac_status=$?
45759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45760 (exit $ac_status); }; } &&
45761 { ac_try='test -s conftest.$ac_objext'
45762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45763 (eval $ac_try) 2>&5
45764 ac_status=$?
45765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45766 (exit $ac_status); }; }; then
45767 glibcxx_cv_func_modfl_use=yes
45768 else
45769 echo "$as_me: failed program was:" >&5
45770 sed 's/^/| /' conftest.$ac_ext >&5
45772 glibcxx_cv_func_modfl_use=no
45774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45775 ac_ext=c
45776 ac_cpp='$CPP $CPPFLAGS'
45777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45785 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45786 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45788 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45790 for ac_func in modfl
45792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45793 echo "$as_me:$LINENO: checking for $ac_func" >&5
45794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45795 if eval "test \"\${$as_ac_var+set}\" = set"; then
45796 echo $ECHO_N "(cached) $ECHO_C" >&6
45797 else
45798 if test x$gcc_no_link = xyes; then
45799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45801 { (exit 1); exit 1; }; }
45803 cat >conftest.$ac_ext <<_ACEOF
45804 /* confdefs.h. */
45805 _ACEOF
45806 cat confdefs.h >>conftest.$ac_ext
45807 cat >>conftest.$ac_ext <<_ACEOF
45808 /* end confdefs.h. */
45809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45811 #define $ac_func innocuous_$ac_func
45813 /* System header to define __stub macros and hopefully few prototypes,
45814 which can conflict with char $ac_func (); below.
45815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45816 <limits.h> exists even on freestanding compilers. */
45818 #ifdef __STDC__
45819 # include <limits.h>
45820 #else
45821 # include <assert.h>
45822 #endif
45824 #undef $ac_func
45826 /* Override any gcc2 internal prototype to avoid an error. */
45827 #ifdef __cplusplus
45828 extern "C"
45830 #endif
45831 /* We use char because int might match the return type of a gcc2
45832 builtin and then its argument prototype would still apply. */
45833 char $ac_func ();
45834 /* The GNU C library defines this for functions which it implements
45835 to always fail with ENOSYS. Some functions are actually named
45836 something starting with __ and the normal name is an alias. */
45837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45838 choke me
45839 #else
45840 char (*f) () = $ac_func;
45841 #endif
45842 #ifdef __cplusplus
45844 #endif
45847 main ()
45849 return f != $ac_func;
45851 return 0;
45853 _ACEOF
45854 rm -f conftest.$ac_objext conftest$ac_exeext
45855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45856 (eval $ac_link) 2>conftest.er1
45857 ac_status=$?
45858 grep -v '^ *+' conftest.er1 >conftest.err
45859 rm -f conftest.er1
45860 cat conftest.err >&5
45861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45862 (exit $ac_status); } &&
45863 { ac_try='test -z "$ac_c_werror_flag"
45864 || test ! -s conftest.err'
45865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45866 (eval $ac_try) 2>&5
45867 ac_status=$?
45868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45869 (exit $ac_status); }; } &&
45870 { ac_try='test -s conftest$ac_exeext'
45871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45872 (eval $ac_try) 2>&5
45873 ac_status=$?
45874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45875 (exit $ac_status); }; }; then
45876 eval "$as_ac_var=yes"
45877 else
45878 echo "$as_me: failed program was:" >&5
45879 sed 's/^/| /' conftest.$ac_ext >&5
45881 eval "$as_ac_var=no"
45883 rm -f conftest.err conftest.$ac_objext \
45884 conftest$ac_exeext conftest.$ac_ext
45886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45888 if test `eval echo '${'$as_ac_var'}'` = yes; then
45889 cat >>confdefs.h <<_ACEOF
45890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45891 _ACEOF
45894 done
45896 else
45898 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45899 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45900 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45901 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45902 echo $ECHO_N "(cached) $ECHO_C" >&6
45903 else
45907 ac_ext=cc
45908 ac_cpp='$CXXCPP $CPPFLAGS'
45909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45913 cat >conftest.$ac_ext <<_ACEOF
45914 /* confdefs.h. */
45915 _ACEOF
45916 cat confdefs.h >>conftest.$ac_ext
45917 cat >>conftest.$ac_ext <<_ACEOF
45918 /* end confdefs.h. */
45919 #include <math.h>
45921 main ()
45923 _modfl(0, 0);
45925 return 0;
45927 _ACEOF
45928 rm -f conftest.$ac_objext
45929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45930 (eval $ac_compile) 2>conftest.er1
45931 ac_status=$?
45932 grep -v '^ *+' conftest.er1 >conftest.err
45933 rm -f conftest.er1
45934 cat conftest.err >&5
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); } &&
45937 { ac_try='test -z "$ac_cxx_werror_flag"
45938 || test ! -s conftest.err'
45939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45940 (eval $ac_try) 2>&5
45941 ac_status=$?
45942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45943 (exit $ac_status); }; } &&
45944 { ac_try='test -s conftest.$ac_objext'
45945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946 (eval $ac_try) 2>&5
45947 ac_status=$?
45948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949 (exit $ac_status); }; }; then
45950 glibcxx_cv_func__modfl_use=yes
45951 else
45952 echo "$as_me: failed program was:" >&5
45953 sed 's/^/| /' conftest.$ac_ext >&5
45955 glibcxx_cv_func__modfl_use=no
45957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45958 ac_ext=c
45959 ac_cpp='$CPP $CPPFLAGS'
45960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45968 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
45969 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
45971 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
45973 for ac_func in _modfl
45975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45976 echo "$as_me:$LINENO: checking for $ac_func" >&5
45977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45978 if eval "test \"\${$as_ac_var+set}\" = set"; then
45979 echo $ECHO_N "(cached) $ECHO_C" >&6
45980 else
45981 if test x$gcc_no_link = xyes; then
45982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45984 { (exit 1); exit 1; }; }
45986 cat >conftest.$ac_ext <<_ACEOF
45987 /* confdefs.h. */
45988 _ACEOF
45989 cat confdefs.h >>conftest.$ac_ext
45990 cat >>conftest.$ac_ext <<_ACEOF
45991 /* end confdefs.h. */
45992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45994 #define $ac_func innocuous_$ac_func
45996 /* System header to define __stub macros and hopefully few prototypes,
45997 which can conflict with char $ac_func (); below.
45998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45999 <limits.h> exists even on freestanding compilers. */
46001 #ifdef __STDC__
46002 # include <limits.h>
46003 #else
46004 # include <assert.h>
46005 #endif
46007 #undef $ac_func
46009 /* Override any gcc2 internal prototype to avoid an error. */
46010 #ifdef __cplusplus
46011 extern "C"
46013 #endif
46014 /* We use char because int might match the return type of a gcc2
46015 builtin and then its argument prototype would still apply. */
46016 char $ac_func ();
46017 /* The GNU C library defines this for functions which it implements
46018 to always fail with ENOSYS. Some functions are actually named
46019 something starting with __ and the normal name is an alias. */
46020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46021 choke me
46022 #else
46023 char (*f) () = $ac_func;
46024 #endif
46025 #ifdef __cplusplus
46027 #endif
46030 main ()
46032 return f != $ac_func;
46034 return 0;
46036 _ACEOF
46037 rm -f conftest.$ac_objext conftest$ac_exeext
46038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46039 (eval $ac_link) 2>conftest.er1
46040 ac_status=$?
46041 grep -v '^ *+' conftest.er1 >conftest.err
46042 rm -f conftest.er1
46043 cat conftest.err >&5
46044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46045 (exit $ac_status); } &&
46046 { ac_try='test -z "$ac_c_werror_flag"
46047 || test ! -s conftest.err'
46048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46049 (eval $ac_try) 2>&5
46050 ac_status=$?
46051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052 (exit $ac_status); }; } &&
46053 { ac_try='test -s conftest$ac_exeext'
46054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46055 (eval $ac_try) 2>&5
46056 ac_status=$?
46057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46058 (exit $ac_status); }; }; then
46059 eval "$as_ac_var=yes"
46060 else
46061 echo "$as_me: failed program was:" >&5
46062 sed 's/^/| /' conftest.$ac_ext >&5
46064 eval "$as_ac_var=no"
46066 rm -f conftest.err conftest.$ac_objext \
46067 conftest$ac_exeext conftest.$ac_ext
46069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46071 if test `eval echo '${'$as_ac_var'}'` = yes; then
46072 cat >>confdefs.h <<_ACEOF
46073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46074 _ACEOF
46077 done
46084 echo "$as_me:$LINENO: checking for powl declaration" >&5
46085 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46086 if test x${glibcxx_cv_func_powl_use+set} != xset; then
46087 if test "${glibcxx_cv_func_powl_use+set}" = set; then
46088 echo $ECHO_N "(cached) $ECHO_C" >&6
46089 else
46093 ac_ext=cc
46094 ac_cpp='$CXXCPP $CPPFLAGS'
46095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46099 cat >conftest.$ac_ext <<_ACEOF
46100 /* confdefs.h. */
46101 _ACEOF
46102 cat confdefs.h >>conftest.$ac_ext
46103 cat >>conftest.$ac_ext <<_ACEOF
46104 /* end confdefs.h. */
46105 #include <math.h>
46107 main ()
46109 powl(0, 0);
46111 return 0;
46113 _ACEOF
46114 rm -f conftest.$ac_objext
46115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46116 (eval $ac_compile) 2>conftest.er1
46117 ac_status=$?
46118 grep -v '^ *+' conftest.er1 >conftest.err
46119 rm -f conftest.er1
46120 cat conftest.err >&5
46121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122 (exit $ac_status); } &&
46123 { ac_try='test -z "$ac_cxx_werror_flag"
46124 || test ! -s conftest.err'
46125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46126 (eval $ac_try) 2>&5
46127 ac_status=$?
46128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46129 (exit $ac_status); }; } &&
46130 { ac_try='test -s conftest.$ac_objext'
46131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46132 (eval $ac_try) 2>&5
46133 ac_status=$?
46134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46135 (exit $ac_status); }; }; then
46136 glibcxx_cv_func_powl_use=yes
46137 else
46138 echo "$as_me: failed program was:" >&5
46139 sed 's/^/| /' conftest.$ac_ext >&5
46141 glibcxx_cv_func_powl_use=no
46143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46144 ac_ext=c
46145 ac_cpp='$CPP $CPPFLAGS'
46146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46154 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46155 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46157 if test x$glibcxx_cv_func_powl_use = x"yes"; then
46159 for ac_func in powl
46161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46162 echo "$as_me:$LINENO: checking for $ac_func" >&5
46163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46164 if eval "test \"\${$as_ac_var+set}\" = set"; then
46165 echo $ECHO_N "(cached) $ECHO_C" >&6
46166 else
46167 if test x$gcc_no_link = xyes; then
46168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46170 { (exit 1); exit 1; }; }
46172 cat >conftest.$ac_ext <<_ACEOF
46173 /* confdefs.h. */
46174 _ACEOF
46175 cat confdefs.h >>conftest.$ac_ext
46176 cat >>conftest.$ac_ext <<_ACEOF
46177 /* end confdefs.h. */
46178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46180 #define $ac_func innocuous_$ac_func
46182 /* System header to define __stub macros and hopefully few prototypes,
46183 which can conflict with char $ac_func (); below.
46184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46185 <limits.h> exists even on freestanding compilers. */
46187 #ifdef __STDC__
46188 # include <limits.h>
46189 #else
46190 # include <assert.h>
46191 #endif
46193 #undef $ac_func
46195 /* Override any gcc2 internal prototype to avoid an error. */
46196 #ifdef __cplusplus
46197 extern "C"
46199 #endif
46200 /* We use char because int might match the return type of a gcc2
46201 builtin and then its argument prototype would still apply. */
46202 char $ac_func ();
46203 /* The GNU C library defines this for functions which it implements
46204 to always fail with ENOSYS. Some functions are actually named
46205 something starting with __ and the normal name is an alias. */
46206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46207 choke me
46208 #else
46209 char (*f) () = $ac_func;
46210 #endif
46211 #ifdef __cplusplus
46213 #endif
46216 main ()
46218 return f != $ac_func;
46220 return 0;
46222 _ACEOF
46223 rm -f conftest.$ac_objext conftest$ac_exeext
46224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46225 (eval $ac_link) 2>conftest.er1
46226 ac_status=$?
46227 grep -v '^ *+' conftest.er1 >conftest.err
46228 rm -f conftest.er1
46229 cat conftest.err >&5
46230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46231 (exit $ac_status); } &&
46232 { ac_try='test -z "$ac_c_werror_flag"
46233 || test ! -s conftest.err'
46234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46235 (eval $ac_try) 2>&5
46236 ac_status=$?
46237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46238 (exit $ac_status); }; } &&
46239 { ac_try='test -s conftest$ac_exeext'
46240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46241 (eval $ac_try) 2>&5
46242 ac_status=$?
46243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244 (exit $ac_status); }; }; then
46245 eval "$as_ac_var=yes"
46246 else
46247 echo "$as_me: failed program was:" >&5
46248 sed 's/^/| /' conftest.$ac_ext >&5
46250 eval "$as_ac_var=no"
46252 rm -f conftest.err conftest.$ac_objext \
46253 conftest$ac_exeext conftest.$ac_ext
46255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46257 if test `eval echo '${'$as_ac_var'}'` = yes; then
46258 cat >>confdefs.h <<_ACEOF
46259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46260 _ACEOF
46263 done
46265 else
46267 echo "$as_me:$LINENO: checking for _powl declaration" >&5
46268 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46269 if test x${glibcxx_cv_func__powl_use+set} != xset; then
46270 if test "${glibcxx_cv_func__powl_use+set}" = set; then
46271 echo $ECHO_N "(cached) $ECHO_C" >&6
46272 else
46276 ac_ext=cc
46277 ac_cpp='$CXXCPP $CPPFLAGS'
46278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46282 cat >conftest.$ac_ext <<_ACEOF
46283 /* confdefs.h. */
46284 _ACEOF
46285 cat confdefs.h >>conftest.$ac_ext
46286 cat >>conftest.$ac_ext <<_ACEOF
46287 /* end confdefs.h. */
46288 #include <math.h>
46290 main ()
46292 _powl(0, 0);
46294 return 0;
46296 _ACEOF
46297 rm -f conftest.$ac_objext
46298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46299 (eval $ac_compile) 2>conftest.er1
46300 ac_status=$?
46301 grep -v '^ *+' conftest.er1 >conftest.err
46302 rm -f conftest.er1
46303 cat conftest.err >&5
46304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46305 (exit $ac_status); } &&
46306 { ac_try='test -z "$ac_cxx_werror_flag"
46307 || test ! -s conftest.err'
46308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46309 (eval $ac_try) 2>&5
46310 ac_status=$?
46311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46312 (exit $ac_status); }; } &&
46313 { ac_try='test -s conftest.$ac_objext'
46314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46315 (eval $ac_try) 2>&5
46316 ac_status=$?
46317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46318 (exit $ac_status); }; }; then
46319 glibcxx_cv_func__powl_use=yes
46320 else
46321 echo "$as_me: failed program was:" >&5
46322 sed 's/^/| /' conftest.$ac_ext >&5
46324 glibcxx_cv_func__powl_use=no
46326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46327 ac_ext=c
46328 ac_cpp='$CPP $CPPFLAGS'
46329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46337 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46338 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46340 if test x$glibcxx_cv_func__powl_use = x"yes"; then
46342 for ac_func in _powl
46344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46345 echo "$as_me:$LINENO: checking for $ac_func" >&5
46346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46347 if eval "test \"\${$as_ac_var+set}\" = set"; then
46348 echo $ECHO_N "(cached) $ECHO_C" >&6
46349 else
46350 if test x$gcc_no_link = xyes; then
46351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46353 { (exit 1); exit 1; }; }
46355 cat >conftest.$ac_ext <<_ACEOF
46356 /* confdefs.h. */
46357 _ACEOF
46358 cat confdefs.h >>conftest.$ac_ext
46359 cat >>conftest.$ac_ext <<_ACEOF
46360 /* end confdefs.h. */
46361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46363 #define $ac_func innocuous_$ac_func
46365 /* System header to define __stub macros and hopefully few prototypes,
46366 which can conflict with char $ac_func (); below.
46367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46368 <limits.h> exists even on freestanding compilers. */
46370 #ifdef __STDC__
46371 # include <limits.h>
46372 #else
46373 # include <assert.h>
46374 #endif
46376 #undef $ac_func
46378 /* Override any gcc2 internal prototype to avoid an error. */
46379 #ifdef __cplusplus
46380 extern "C"
46382 #endif
46383 /* We use char because int might match the return type of a gcc2
46384 builtin and then its argument prototype would still apply. */
46385 char $ac_func ();
46386 /* The GNU C library defines this for functions which it implements
46387 to always fail with ENOSYS. Some functions are actually named
46388 something starting with __ and the normal name is an alias. */
46389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46390 choke me
46391 #else
46392 char (*f) () = $ac_func;
46393 #endif
46394 #ifdef __cplusplus
46396 #endif
46399 main ()
46401 return f != $ac_func;
46403 return 0;
46405 _ACEOF
46406 rm -f conftest.$ac_objext conftest$ac_exeext
46407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46408 (eval $ac_link) 2>conftest.er1
46409 ac_status=$?
46410 grep -v '^ *+' conftest.er1 >conftest.err
46411 rm -f conftest.er1
46412 cat conftest.err >&5
46413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46414 (exit $ac_status); } &&
46415 { ac_try='test -z "$ac_c_werror_flag"
46416 || test ! -s conftest.err'
46417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46418 (eval $ac_try) 2>&5
46419 ac_status=$?
46420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46421 (exit $ac_status); }; } &&
46422 { ac_try='test -s conftest$ac_exeext'
46423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46424 (eval $ac_try) 2>&5
46425 ac_status=$?
46426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46427 (exit $ac_status); }; }; then
46428 eval "$as_ac_var=yes"
46429 else
46430 echo "$as_me: failed program was:" >&5
46431 sed 's/^/| /' conftest.$ac_ext >&5
46433 eval "$as_ac_var=no"
46435 rm -f conftest.err conftest.$ac_objext \
46436 conftest$ac_exeext conftest.$ac_ext
46438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46440 if test `eval echo '${'$as_ac_var'}'` = yes; then
46441 cat >>confdefs.h <<_ACEOF
46442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46443 _ACEOF
46446 done
46453 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46454 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46455 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46456 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46457 echo $ECHO_N "(cached) $ECHO_C" >&6
46458 else
46462 ac_ext=cc
46463 ac_cpp='$CXXCPP $CPPFLAGS'
46464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46468 cat >conftest.$ac_ext <<_ACEOF
46469 /* confdefs.h. */
46470 _ACEOF
46471 cat confdefs.h >>conftest.$ac_ext
46472 cat >>conftest.$ac_ext <<_ACEOF
46473 /* end confdefs.h. */
46474 #include <math.h>
46475 #ifdef HAVE_IEEEFP_H
46476 #include <ieeefp.h>
46477 #endif
46480 main ()
46482 sqrtl(0);
46484 return 0;
46486 _ACEOF
46487 rm -f conftest.$ac_objext
46488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46489 (eval $ac_compile) 2>conftest.er1
46490 ac_status=$?
46491 grep -v '^ *+' conftest.er1 >conftest.err
46492 rm -f conftest.er1
46493 cat conftest.err >&5
46494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495 (exit $ac_status); } &&
46496 { ac_try='test -z "$ac_cxx_werror_flag"
46497 || test ! -s conftest.err'
46498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46499 (eval $ac_try) 2>&5
46500 ac_status=$?
46501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46502 (exit $ac_status); }; } &&
46503 { ac_try='test -s conftest.$ac_objext'
46504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46505 (eval $ac_try) 2>&5
46506 ac_status=$?
46507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508 (exit $ac_status); }; }; then
46509 glibcxx_cv_func_sqrtl_use=yes
46510 else
46511 echo "$as_me: failed program was:" >&5
46512 sed 's/^/| /' conftest.$ac_ext >&5
46514 glibcxx_cv_func_sqrtl_use=no
46516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46517 ac_ext=c
46518 ac_cpp='$CPP $CPPFLAGS'
46519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46527 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46528 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46530 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46532 for ac_func in sqrtl
46534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46535 echo "$as_me:$LINENO: checking for $ac_func" >&5
46536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46537 if eval "test \"\${$as_ac_var+set}\" = set"; then
46538 echo $ECHO_N "(cached) $ECHO_C" >&6
46539 else
46540 if test x$gcc_no_link = xyes; then
46541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46543 { (exit 1); exit 1; }; }
46545 cat >conftest.$ac_ext <<_ACEOF
46546 /* confdefs.h. */
46547 _ACEOF
46548 cat confdefs.h >>conftest.$ac_ext
46549 cat >>conftest.$ac_ext <<_ACEOF
46550 /* end confdefs.h. */
46551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46553 #define $ac_func innocuous_$ac_func
46555 /* System header to define __stub macros and hopefully few prototypes,
46556 which can conflict with char $ac_func (); below.
46557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46558 <limits.h> exists even on freestanding compilers. */
46560 #ifdef __STDC__
46561 # include <limits.h>
46562 #else
46563 # include <assert.h>
46564 #endif
46566 #undef $ac_func
46568 /* Override any gcc2 internal prototype to avoid an error. */
46569 #ifdef __cplusplus
46570 extern "C"
46572 #endif
46573 /* We use char because int might match the return type of a gcc2
46574 builtin and then its argument prototype would still apply. */
46575 char $ac_func ();
46576 /* The GNU C library defines this for functions which it implements
46577 to always fail with ENOSYS. Some functions are actually named
46578 something starting with __ and the normal name is an alias. */
46579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46580 choke me
46581 #else
46582 char (*f) () = $ac_func;
46583 #endif
46584 #ifdef __cplusplus
46586 #endif
46589 main ()
46591 return f != $ac_func;
46593 return 0;
46595 _ACEOF
46596 rm -f conftest.$ac_objext conftest$ac_exeext
46597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46598 (eval $ac_link) 2>conftest.er1
46599 ac_status=$?
46600 grep -v '^ *+' conftest.er1 >conftest.err
46601 rm -f conftest.er1
46602 cat conftest.err >&5
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); } &&
46605 { ac_try='test -z "$ac_c_werror_flag"
46606 || test ! -s conftest.err'
46607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46608 (eval $ac_try) 2>&5
46609 ac_status=$?
46610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611 (exit $ac_status); }; } &&
46612 { ac_try='test -s conftest$ac_exeext'
46613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46614 (eval $ac_try) 2>&5
46615 ac_status=$?
46616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46617 (exit $ac_status); }; }; then
46618 eval "$as_ac_var=yes"
46619 else
46620 echo "$as_me: failed program was:" >&5
46621 sed 's/^/| /' conftest.$ac_ext >&5
46623 eval "$as_ac_var=no"
46625 rm -f conftest.err conftest.$ac_objext \
46626 conftest$ac_exeext conftest.$ac_ext
46628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46630 if test `eval echo '${'$as_ac_var'}'` = yes; then
46631 cat >>confdefs.h <<_ACEOF
46632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46633 _ACEOF
46636 done
46638 else
46640 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46641 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46642 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46643 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46644 echo $ECHO_N "(cached) $ECHO_C" >&6
46645 else
46649 ac_ext=cc
46650 ac_cpp='$CXXCPP $CPPFLAGS'
46651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46655 cat >conftest.$ac_ext <<_ACEOF
46656 /* confdefs.h. */
46657 _ACEOF
46658 cat confdefs.h >>conftest.$ac_ext
46659 cat >>conftest.$ac_ext <<_ACEOF
46660 /* end confdefs.h. */
46661 #include <math.h>
46662 #ifdef HAVE_IEEEFP_H
46663 #include <ieeefp.h>
46664 #endif
46667 main ()
46669 _sqrtl(0);
46671 return 0;
46673 _ACEOF
46674 rm -f conftest.$ac_objext
46675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46676 (eval $ac_compile) 2>conftest.er1
46677 ac_status=$?
46678 grep -v '^ *+' conftest.er1 >conftest.err
46679 rm -f conftest.er1
46680 cat conftest.err >&5
46681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46682 (exit $ac_status); } &&
46683 { ac_try='test -z "$ac_cxx_werror_flag"
46684 || test ! -s conftest.err'
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); }; } &&
46690 { ac_try='test -s conftest.$ac_objext'
46691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46692 (eval $ac_try) 2>&5
46693 ac_status=$?
46694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46695 (exit $ac_status); }; }; then
46696 glibcxx_cv_func__sqrtl_use=yes
46697 else
46698 echo "$as_me: failed program was:" >&5
46699 sed 's/^/| /' conftest.$ac_ext >&5
46701 glibcxx_cv_func__sqrtl_use=no
46703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46704 ac_ext=c
46705 ac_cpp='$CPP $CPPFLAGS'
46706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46714 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46715 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46717 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46719 for ac_func in _sqrtl
46721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46722 echo "$as_me:$LINENO: checking for $ac_func" >&5
46723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46724 if eval "test \"\${$as_ac_var+set}\" = set"; then
46725 echo $ECHO_N "(cached) $ECHO_C" >&6
46726 else
46727 if test x$gcc_no_link = xyes; then
46728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46730 { (exit 1); exit 1; }; }
46732 cat >conftest.$ac_ext <<_ACEOF
46733 /* confdefs.h. */
46734 _ACEOF
46735 cat confdefs.h >>conftest.$ac_ext
46736 cat >>conftest.$ac_ext <<_ACEOF
46737 /* end confdefs.h. */
46738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46740 #define $ac_func innocuous_$ac_func
46742 /* System header to define __stub macros and hopefully few prototypes,
46743 which can conflict with char $ac_func (); below.
46744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46745 <limits.h> exists even on freestanding compilers. */
46747 #ifdef __STDC__
46748 # include <limits.h>
46749 #else
46750 # include <assert.h>
46751 #endif
46753 #undef $ac_func
46755 /* Override any gcc2 internal prototype to avoid an error. */
46756 #ifdef __cplusplus
46757 extern "C"
46759 #endif
46760 /* We use char because int might match the return type of a gcc2
46761 builtin and then its argument prototype would still apply. */
46762 char $ac_func ();
46763 /* The GNU C library defines this for functions which it implements
46764 to always fail with ENOSYS. Some functions are actually named
46765 something starting with __ and the normal name is an alias. */
46766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46767 choke me
46768 #else
46769 char (*f) () = $ac_func;
46770 #endif
46771 #ifdef __cplusplus
46773 #endif
46776 main ()
46778 return f != $ac_func;
46780 return 0;
46782 _ACEOF
46783 rm -f conftest.$ac_objext conftest$ac_exeext
46784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46785 (eval $ac_link) 2>conftest.er1
46786 ac_status=$?
46787 grep -v '^ *+' conftest.er1 >conftest.err
46788 rm -f conftest.er1
46789 cat conftest.err >&5
46790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46791 (exit $ac_status); } &&
46792 { ac_try='test -z "$ac_c_werror_flag"
46793 || test ! -s conftest.err'
46794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46795 (eval $ac_try) 2>&5
46796 ac_status=$?
46797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798 (exit $ac_status); }; } &&
46799 { ac_try='test -s conftest$ac_exeext'
46800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46801 (eval $ac_try) 2>&5
46802 ac_status=$?
46803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46804 (exit $ac_status); }; }; then
46805 eval "$as_ac_var=yes"
46806 else
46807 echo "$as_me: failed program was:" >&5
46808 sed 's/^/| /' conftest.$ac_ext >&5
46810 eval "$as_ac_var=no"
46812 rm -f conftest.err conftest.$ac_objext \
46813 conftest$ac_exeext conftest.$ac_ext
46815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46817 if test `eval echo '${'$as_ac_var'}'` = yes; then
46818 cat >>confdefs.h <<_ACEOF
46819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46820 _ACEOF
46823 done
46830 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46831 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46832 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46833 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46834 echo $ECHO_N "(cached) $ECHO_C" >&6
46835 else
46839 ac_ext=cc
46840 ac_cpp='$CXXCPP $CPPFLAGS'
46841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46845 cat >conftest.$ac_ext <<_ACEOF
46846 /* confdefs.h. */
46847 _ACEOF
46848 cat confdefs.h >>conftest.$ac_ext
46849 cat >>conftest.$ac_ext <<_ACEOF
46850 /* end confdefs.h. */
46851 #include <math.h>
46853 main ()
46855 sincosl(0, 0, 0);
46857 return 0;
46859 _ACEOF
46860 rm -f conftest.$ac_objext
46861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46862 (eval $ac_compile) 2>conftest.er1
46863 ac_status=$?
46864 grep -v '^ *+' conftest.er1 >conftest.err
46865 rm -f conftest.er1
46866 cat conftest.err >&5
46867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46868 (exit $ac_status); } &&
46869 { ac_try='test -z "$ac_cxx_werror_flag"
46870 || test ! -s conftest.err'
46871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46872 (eval $ac_try) 2>&5
46873 ac_status=$?
46874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46875 (exit $ac_status); }; } &&
46876 { ac_try='test -s conftest.$ac_objext'
46877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46878 (eval $ac_try) 2>&5
46879 ac_status=$?
46880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46881 (exit $ac_status); }; }; then
46882 glibcxx_cv_func_sincosl_use=yes
46883 else
46884 echo "$as_me: failed program was:" >&5
46885 sed 's/^/| /' conftest.$ac_ext >&5
46887 glibcxx_cv_func_sincosl_use=no
46889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46890 ac_ext=c
46891 ac_cpp='$CPP $CPPFLAGS'
46892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46900 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46901 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46903 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46905 for ac_func in sincosl
46907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46908 echo "$as_me:$LINENO: checking for $ac_func" >&5
46909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46910 if eval "test \"\${$as_ac_var+set}\" = set"; then
46911 echo $ECHO_N "(cached) $ECHO_C" >&6
46912 else
46913 if test x$gcc_no_link = xyes; then
46914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46916 { (exit 1); exit 1; }; }
46918 cat >conftest.$ac_ext <<_ACEOF
46919 /* confdefs.h. */
46920 _ACEOF
46921 cat confdefs.h >>conftest.$ac_ext
46922 cat >>conftest.$ac_ext <<_ACEOF
46923 /* end confdefs.h. */
46924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46926 #define $ac_func innocuous_$ac_func
46928 /* System header to define __stub macros and hopefully few prototypes,
46929 which can conflict with char $ac_func (); below.
46930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46931 <limits.h> exists even on freestanding compilers. */
46933 #ifdef __STDC__
46934 # include <limits.h>
46935 #else
46936 # include <assert.h>
46937 #endif
46939 #undef $ac_func
46941 /* Override any gcc2 internal prototype to avoid an error. */
46942 #ifdef __cplusplus
46943 extern "C"
46945 #endif
46946 /* We use char because int might match the return type of a gcc2
46947 builtin and then its argument prototype would still apply. */
46948 char $ac_func ();
46949 /* The GNU C library defines this for functions which it implements
46950 to always fail with ENOSYS. Some functions are actually named
46951 something starting with __ and the normal name is an alias. */
46952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46953 choke me
46954 #else
46955 char (*f) () = $ac_func;
46956 #endif
46957 #ifdef __cplusplus
46959 #endif
46962 main ()
46964 return f != $ac_func;
46966 return 0;
46968 _ACEOF
46969 rm -f conftest.$ac_objext conftest$ac_exeext
46970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46971 (eval $ac_link) 2>conftest.er1
46972 ac_status=$?
46973 grep -v '^ *+' conftest.er1 >conftest.err
46974 rm -f conftest.er1
46975 cat conftest.err >&5
46976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46977 (exit $ac_status); } &&
46978 { ac_try='test -z "$ac_c_werror_flag"
46979 || test ! -s conftest.err'
46980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46981 (eval $ac_try) 2>&5
46982 ac_status=$?
46983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46984 (exit $ac_status); }; } &&
46985 { ac_try='test -s conftest$ac_exeext'
46986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46987 (eval $ac_try) 2>&5
46988 ac_status=$?
46989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46990 (exit $ac_status); }; }; then
46991 eval "$as_ac_var=yes"
46992 else
46993 echo "$as_me: failed program was:" >&5
46994 sed 's/^/| /' conftest.$ac_ext >&5
46996 eval "$as_ac_var=no"
46998 rm -f conftest.err conftest.$ac_objext \
46999 conftest$ac_exeext conftest.$ac_ext
47001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47003 if test `eval echo '${'$as_ac_var'}'` = yes; then
47004 cat >>confdefs.h <<_ACEOF
47005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47006 _ACEOF
47009 done
47011 else
47013 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47014 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47015 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47016 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47017 echo $ECHO_N "(cached) $ECHO_C" >&6
47018 else
47022 ac_ext=cc
47023 ac_cpp='$CXXCPP $CPPFLAGS'
47024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47028 cat >conftest.$ac_ext <<_ACEOF
47029 /* confdefs.h. */
47030 _ACEOF
47031 cat confdefs.h >>conftest.$ac_ext
47032 cat >>conftest.$ac_ext <<_ACEOF
47033 /* end confdefs.h. */
47034 #include <math.h>
47036 main ()
47038 _sincosl(0, 0, 0);
47040 return 0;
47042 _ACEOF
47043 rm -f conftest.$ac_objext
47044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47045 (eval $ac_compile) 2>conftest.er1
47046 ac_status=$?
47047 grep -v '^ *+' conftest.er1 >conftest.err
47048 rm -f conftest.er1
47049 cat conftest.err >&5
47050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47051 (exit $ac_status); } &&
47052 { ac_try='test -z "$ac_cxx_werror_flag"
47053 || test ! -s conftest.err'
47054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47055 (eval $ac_try) 2>&5
47056 ac_status=$?
47057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47058 (exit $ac_status); }; } &&
47059 { ac_try='test -s conftest.$ac_objext'
47060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47061 (eval $ac_try) 2>&5
47062 ac_status=$?
47063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064 (exit $ac_status); }; }; then
47065 glibcxx_cv_func__sincosl_use=yes
47066 else
47067 echo "$as_me: failed program was:" >&5
47068 sed 's/^/| /' conftest.$ac_ext >&5
47070 glibcxx_cv_func__sincosl_use=no
47072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47073 ac_ext=c
47074 ac_cpp='$CPP $CPPFLAGS'
47075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47083 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47084 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47086 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47088 for ac_func in _sincosl
47090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47091 echo "$as_me:$LINENO: checking for $ac_func" >&5
47092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47093 if eval "test \"\${$as_ac_var+set}\" = set"; then
47094 echo $ECHO_N "(cached) $ECHO_C" >&6
47095 else
47096 if test x$gcc_no_link = xyes; then
47097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47099 { (exit 1); exit 1; }; }
47101 cat >conftest.$ac_ext <<_ACEOF
47102 /* confdefs.h. */
47103 _ACEOF
47104 cat confdefs.h >>conftest.$ac_ext
47105 cat >>conftest.$ac_ext <<_ACEOF
47106 /* end confdefs.h. */
47107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47109 #define $ac_func innocuous_$ac_func
47111 /* System header to define __stub macros and hopefully few prototypes,
47112 which can conflict with char $ac_func (); below.
47113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47114 <limits.h> exists even on freestanding compilers. */
47116 #ifdef __STDC__
47117 # include <limits.h>
47118 #else
47119 # include <assert.h>
47120 #endif
47122 #undef $ac_func
47124 /* Override any gcc2 internal prototype to avoid an error. */
47125 #ifdef __cplusplus
47126 extern "C"
47128 #endif
47129 /* We use char because int might match the return type of a gcc2
47130 builtin and then its argument prototype would still apply. */
47131 char $ac_func ();
47132 /* The GNU C library defines this for functions which it implements
47133 to always fail with ENOSYS. Some functions are actually named
47134 something starting with __ and the normal name is an alias. */
47135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47136 choke me
47137 #else
47138 char (*f) () = $ac_func;
47139 #endif
47140 #ifdef __cplusplus
47142 #endif
47145 main ()
47147 return f != $ac_func;
47149 return 0;
47151 _ACEOF
47152 rm -f conftest.$ac_objext conftest$ac_exeext
47153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47154 (eval $ac_link) 2>conftest.er1
47155 ac_status=$?
47156 grep -v '^ *+' conftest.er1 >conftest.err
47157 rm -f conftest.er1
47158 cat conftest.err >&5
47159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47160 (exit $ac_status); } &&
47161 { ac_try='test -z "$ac_c_werror_flag"
47162 || test ! -s conftest.err'
47163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47164 (eval $ac_try) 2>&5
47165 ac_status=$?
47166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47167 (exit $ac_status); }; } &&
47168 { ac_try='test -s conftest$ac_exeext'
47169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47170 (eval $ac_try) 2>&5
47171 ac_status=$?
47172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47173 (exit $ac_status); }; }; then
47174 eval "$as_ac_var=yes"
47175 else
47176 echo "$as_me: failed program was:" >&5
47177 sed 's/^/| /' conftest.$ac_ext >&5
47179 eval "$as_ac_var=no"
47181 rm -f conftest.err conftest.$ac_objext \
47182 conftest$ac_exeext conftest.$ac_ext
47184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47186 if test `eval echo '${'$as_ac_var'}'` = yes; then
47187 cat >>confdefs.h <<_ACEOF
47188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47189 _ACEOF
47192 done
47199 echo "$as_me:$LINENO: checking for finitel declaration" >&5
47200 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47201 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47202 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47203 echo $ECHO_N "(cached) $ECHO_C" >&6
47204 else
47208 ac_ext=cc
47209 ac_cpp='$CXXCPP $CPPFLAGS'
47210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47214 cat >conftest.$ac_ext <<_ACEOF
47215 /* confdefs.h. */
47216 _ACEOF
47217 cat confdefs.h >>conftest.$ac_ext
47218 cat >>conftest.$ac_ext <<_ACEOF
47219 /* end confdefs.h. */
47220 #include <math.h>
47221 #ifdef HAVE_IEEEFP_H
47222 #include <ieeefp.h>
47223 #endif
47226 main ()
47228 finitel(0);
47230 return 0;
47232 _ACEOF
47233 rm -f conftest.$ac_objext
47234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47235 (eval $ac_compile) 2>conftest.er1
47236 ac_status=$?
47237 grep -v '^ *+' conftest.er1 >conftest.err
47238 rm -f conftest.er1
47239 cat conftest.err >&5
47240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241 (exit $ac_status); } &&
47242 { ac_try='test -z "$ac_cxx_werror_flag"
47243 || test ! -s conftest.err'
47244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47245 (eval $ac_try) 2>&5
47246 ac_status=$?
47247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47248 (exit $ac_status); }; } &&
47249 { ac_try='test -s conftest.$ac_objext'
47250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47251 (eval $ac_try) 2>&5
47252 ac_status=$?
47253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47254 (exit $ac_status); }; }; then
47255 glibcxx_cv_func_finitel_use=yes
47256 else
47257 echo "$as_me: failed program was:" >&5
47258 sed 's/^/| /' conftest.$ac_ext >&5
47260 glibcxx_cv_func_finitel_use=no
47262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47263 ac_ext=c
47264 ac_cpp='$CPP $CPPFLAGS'
47265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47273 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47274 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47276 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47278 for ac_func in finitel
47280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47281 echo "$as_me:$LINENO: checking for $ac_func" >&5
47282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47283 if eval "test \"\${$as_ac_var+set}\" = set"; then
47284 echo $ECHO_N "(cached) $ECHO_C" >&6
47285 else
47286 if test x$gcc_no_link = xyes; then
47287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47289 { (exit 1); exit 1; }; }
47291 cat >conftest.$ac_ext <<_ACEOF
47292 /* confdefs.h. */
47293 _ACEOF
47294 cat confdefs.h >>conftest.$ac_ext
47295 cat >>conftest.$ac_ext <<_ACEOF
47296 /* end confdefs.h. */
47297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47299 #define $ac_func innocuous_$ac_func
47301 /* System header to define __stub macros and hopefully few prototypes,
47302 which can conflict with char $ac_func (); below.
47303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47304 <limits.h> exists even on freestanding compilers. */
47306 #ifdef __STDC__
47307 # include <limits.h>
47308 #else
47309 # include <assert.h>
47310 #endif
47312 #undef $ac_func
47314 /* Override any gcc2 internal prototype to avoid an error. */
47315 #ifdef __cplusplus
47316 extern "C"
47318 #endif
47319 /* We use char because int might match the return type of a gcc2
47320 builtin and then its argument prototype would still apply. */
47321 char $ac_func ();
47322 /* The GNU C library defines this for functions which it implements
47323 to always fail with ENOSYS. Some functions are actually named
47324 something starting with __ and the normal name is an alias. */
47325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47326 choke me
47327 #else
47328 char (*f) () = $ac_func;
47329 #endif
47330 #ifdef __cplusplus
47332 #endif
47335 main ()
47337 return f != $ac_func;
47339 return 0;
47341 _ACEOF
47342 rm -f conftest.$ac_objext conftest$ac_exeext
47343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47344 (eval $ac_link) 2>conftest.er1
47345 ac_status=$?
47346 grep -v '^ *+' conftest.er1 >conftest.err
47347 rm -f conftest.er1
47348 cat conftest.err >&5
47349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47350 (exit $ac_status); } &&
47351 { ac_try='test -z "$ac_c_werror_flag"
47352 || test ! -s conftest.err'
47353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47354 (eval $ac_try) 2>&5
47355 ac_status=$?
47356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47357 (exit $ac_status); }; } &&
47358 { ac_try='test -s conftest$ac_exeext'
47359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47360 (eval $ac_try) 2>&5
47361 ac_status=$?
47362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47363 (exit $ac_status); }; }; then
47364 eval "$as_ac_var=yes"
47365 else
47366 echo "$as_me: failed program was:" >&5
47367 sed 's/^/| /' conftest.$ac_ext >&5
47369 eval "$as_ac_var=no"
47371 rm -f conftest.err conftest.$ac_objext \
47372 conftest$ac_exeext conftest.$ac_ext
47374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47376 if test `eval echo '${'$as_ac_var'}'` = yes; then
47377 cat >>confdefs.h <<_ACEOF
47378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47379 _ACEOF
47382 done
47384 else
47386 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47387 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47388 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47389 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47390 echo $ECHO_N "(cached) $ECHO_C" >&6
47391 else
47395 ac_ext=cc
47396 ac_cpp='$CXXCPP $CPPFLAGS'
47397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47401 cat >conftest.$ac_ext <<_ACEOF
47402 /* confdefs.h. */
47403 _ACEOF
47404 cat confdefs.h >>conftest.$ac_ext
47405 cat >>conftest.$ac_ext <<_ACEOF
47406 /* end confdefs.h. */
47407 #include <math.h>
47408 #ifdef HAVE_IEEEFP_H
47409 #include <ieeefp.h>
47410 #endif
47413 main ()
47415 _finitel(0);
47417 return 0;
47419 _ACEOF
47420 rm -f conftest.$ac_objext
47421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47422 (eval $ac_compile) 2>conftest.er1
47423 ac_status=$?
47424 grep -v '^ *+' conftest.er1 >conftest.err
47425 rm -f conftest.er1
47426 cat conftest.err >&5
47427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47428 (exit $ac_status); } &&
47429 { ac_try='test -z "$ac_cxx_werror_flag"
47430 || test ! -s conftest.err'
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); }; } &&
47436 { ac_try='test -s conftest.$ac_objext'
47437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47438 (eval $ac_try) 2>&5
47439 ac_status=$?
47440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47441 (exit $ac_status); }; }; then
47442 glibcxx_cv_func__finitel_use=yes
47443 else
47444 echo "$as_me: failed program was:" >&5
47445 sed 's/^/| /' conftest.$ac_ext >&5
47447 glibcxx_cv_func__finitel_use=no
47449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47450 ac_ext=c
47451 ac_cpp='$CPP $CPPFLAGS'
47452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47460 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47461 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47463 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47465 for ac_func in _finitel
47467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47468 echo "$as_me:$LINENO: checking for $ac_func" >&5
47469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47470 if eval "test \"\${$as_ac_var+set}\" = set"; then
47471 echo $ECHO_N "(cached) $ECHO_C" >&6
47472 else
47473 if test x$gcc_no_link = xyes; then
47474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47476 { (exit 1); exit 1; }; }
47478 cat >conftest.$ac_ext <<_ACEOF
47479 /* confdefs.h. */
47480 _ACEOF
47481 cat confdefs.h >>conftest.$ac_ext
47482 cat >>conftest.$ac_ext <<_ACEOF
47483 /* end confdefs.h. */
47484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47486 #define $ac_func innocuous_$ac_func
47488 /* System header to define __stub macros and hopefully few prototypes,
47489 which can conflict with char $ac_func (); below.
47490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47491 <limits.h> exists even on freestanding compilers. */
47493 #ifdef __STDC__
47494 # include <limits.h>
47495 #else
47496 # include <assert.h>
47497 #endif
47499 #undef $ac_func
47501 /* Override any gcc2 internal prototype to avoid an error. */
47502 #ifdef __cplusplus
47503 extern "C"
47505 #endif
47506 /* We use char because int might match the return type of a gcc2
47507 builtin and then its argument prototype would still apply. */
47508 char $ac_func ();
47509 /* The GNU C library defines this for functions which it implements
47510 to always fail with ENOSYS. Some functions are actually named
47511 something starting with __ and the normal name is an alias. */
47512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47513 choke me
47514 #else
47515 char (*f) () = $ac_func;
47516 #endif
47517 #ifdef __cplusplus
47519 #endif
47522 main ()
47524 return f != $ac_func;
47526 return 0;
47528 _ACEOF
47529 rm -f conftest.$ac_objext conftest$ac_exeext
47530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47531 (eval $ac_link) 2>conftest.er1
47532 ac_status=$?
47533 grep -v '^ *+' conftest.er1 >conftest.err
47534 rm -f conftest.er1
47535 cat conftest.err >&5
47536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47537 (exit $ac_status); } &&
47538 { ac_try='test -z "$ac_c_werror_flag"
47539 || test ! -s conftest.err'
47540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47541 (eval $ac_try) 2>&5
47542 ac_status=$?
47543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47544 (exit $ac_status); }; } &&
47545 { ac_try='test -s conftest$ac_exeext'
47546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47547 (eval $ac_try) 2>&5
47548 ac_status=$?
47549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550 (exit $ac_status); }; }; then
47551 eval "$as_ac_var=yes"
47552 else
47553 echo "$as_me: failed program was:" >&5
47554 sed 's/^/| /' conftest.$ac_ext >&5
47556 eval "$as_ac_var=no"
47558 rm -f conftest.err conftest.$ac_objext \
47559 conftest$ac_exeext conftest.$ac_ext
47561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47563 if test `eval echo '${'$as_ac_var'}'` = yes; then
47564 cat >>confdefs.h <<_ACEOF
47565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47566 _ACEOF
47569 done
47577 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47578 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47579 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47580 echo $ECHO_N "(cached) $ECHO_C" >&6
47581 else
47585 ac_ext=cc
47586 ac_cpp='$CXXCPP $CPPFLAGS'
47587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47591 cat >conftest.$ac_ext <<_ACEOF
47592 /* confdefs.h. */
47593 _ACEOF
47594 cat confdefs.h >>conftest.$ac_ext
47595 cat >>conftest.$ac_ext <<_ACEOF
47596 /* end confdefs.h. */
47597 #include <math.h>
47599 main ()
47601 `for x in _acosf _asinf _atanf \
47602 _cosf _sinf _tanf \
47603 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47605 return 0;
47607 _ACEOF
47608 rm -f conftest.$ac_objext
47609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47610 (eval $ac_compile) 2>conftest.er1
47611 ac_status=$?
47612 grep -v '^ *+' conftest.er1 >conftest.err
47613 rm -f conftest.er1
47614 cat conftest.err >&5
47615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616 (exit $ac_status); } &&
47617 { ac_try='test -z "$ac_cxx_werror_flag"
47618 || test ! -s conftest.err'
47619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47620 (eval $ac_try) 2>&5
47621 ac_status=$?
47622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47623 (exit $ac_status); }; } &&
47624 { ac_try='test -s conftest.$ac_objext'
47625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47626 (eval $ac_try) 2>&5
47627 ac_status=$?
47628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47629 (exit $ac_status); }; }; then
47630 glibcxx_cv_func__float_trig_use=yes
47631 else
47632 echo "$as_me: failed program was:" >&5
47633 sed 's/^/| /' conftest.$ac_ext >&5
47635 glibcxx_cv_func__float_trig_use=no
47637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47638 ac_ext=c
47639 ac_cpp='$CPP $CPPFLAGS'
47640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47646 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47647 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47648 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47658 for ac_func in _acosf _asinf _atanf \
47659 _cosf _sinf _tanf \
47660 _coshf _sinhf _tanhf
47662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47663 echo "$as_me:$LINENO: checking for $ac_func" >&5
47664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47665 if eval "test \"\${$as_ac_var+set}\" = set"; then
47666 echo $ECHO_N "(cached) $ECHO_C" >&6
47667 else
47668 if test x$gcc_no_link = xyes; then
47669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47671 { (exit 1); exit 1; }; }
47673 cat >conftest.$ac_ext <<_ACEOF
47674 /* confdefs.h. */
47675 _ACEOF
47676 cat confdefs.h >>conftest.$ac_ext
47677 cat >>conftest.$ac_ext <<_ACEOF
47678 /* end confdefs.h. */
47679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47681 #define $ac_func innocuous_$ac_func
47683 /* System header to define __stub macros and hopefully few prototypes,
47684 which can conflict with char $ac_func (); below.
47685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47686 <limits.h> exists even on freestanding compilers. */
47688 #ifdef __STDC__
47689 # include <limits.h>
47690 #else
47691 # include <assert.h>
47692 #endif
47694 #undef $ac_func
47696 /* Override any gcc2 internal prototype to avoid an error. */
47697 #ifdef __cplusplus
47698 extern "C"
47700 #endif
47701 /* We use char because int might match the return type of a gcc2
47702 builtin and then its argument prototype would still apply. */
47703 char $ac_func ();
47704 /* The GNU C library defines this for functions which it implements
47705 to always fail with ENOSYS. Some functions are actually named
47706 something starting with __ and the normal name is an alias. */
47707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47708 choke me
47709 #else
47710 char (*f) () = $ac_func;
47711 #endif
47712 #ifdef __cplusplus
47714 #endif
47717 main ()
47719 return f != $ac_func;
47721 return 0;
47723 _ACEOF
47724 rm -f conftest.$ac_objext conftest$ac_exeext
47725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47726 (eval $ac_link) 2>conftest.er1
47727 ac_status=$?
47728 grep -v '^ *+' conftest.er1 >conftest.err
47729 rm -f conftest.er1
47730 cat conftest.err >&5
47731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47732 (exit $ac_status); } &&
47733 { ac_try='test -z "$ac_c_werror_flag"
47734 || test ! -s conftest.err'
47735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47736 (eval $ac_try) 2>&5
47737 ac_status=$?
47738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47739 (exit $ac_status); }; } &&
47740 { ac_try='test -s conftest$ac_exeext'
47741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47742 (eval $ac_try) 2>&5
47743 ac_status=$?
47744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47745 (exit $ac_status); }; }; then
47746 eval "$as_ac_var=yes"
47747 else
47748 echo "$as_me: failed program was:" >&5
47749 sed 's/^/| /' conftest.$ac_ext >&5
47751 eval "$as_ac_var=no"
47753 rm -f conftest.err conftest.$ac_objext \
47754 conftest$ac_exeext conftest.$ac_ext
47756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47758 if test `eval echo '${'$as_ac_var'}'` = yes; then
47759 cat >>confdefs.h <<_ACEOF
47760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47761 _ACEOF
47764 done
47769 echo "$as_me:$LINENO: checking for _float round functions" >&5
47770 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47771 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47772 echo $ECHO_N "(cached) $ECHO_C" >&6
47773 else
47777 ac_ext=cc
47778 ac_cpp='$CXXCPP $CPPFLAGS'
47779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47783 cat >conftest.$ac_ext <<_ACEOF
47784 /* confdefs.h. */
47785 _ACEOF
47786 cat confdefs.h >>conftest.$ac_ext
47787 cat >>conftest.$ac_ext <<_ACEOF
47788 /* end confdefs.h. */
47789 #include <math.h>
47791 main ()
47793 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47795 return 0;
47797 _ACEOF
47798 rm -f conftest.$ac_objext
47799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47800 (eval $ac_compile) 2>conftest.er1
47801 ac_status=$?
47802 grep -v '^ *+' conftest.er1 >conftest.err
47803 rm -f conftest.er1
47804 cat conftest.err >&5
47805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806 (exit $ac_status); } &&
47807 { ac_try='test -z "$ac_cxx_werror_flag"
47808 || test ! -s conftest.err'
47809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47810 (eval $ac_try) 2>&5
47811 ac_status=$?
47812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47813 (exit $ac_status); }; } &&
47814 { ac_try='test -s conftest.$ac_objext'
47815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47816 (eval $ac_try) 2>&5
47817 ac_status=$?
47818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47819 (exit $ac_status); }; }; then
47820 glibcxx_cv_func__float_round_use=yes
47821 else
47822 echo "$as_me: failed program was:" >&5
47823 sed 's/^/| /' conftest.$ac_ext >&5
47825 glibcxx_cv_func__float_round_use=no
47827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47828 ac_ext=c
47829 ac_cpp='$CPP $CPPFLAGS'
47830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47836 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47837 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47838 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47841 for ac_func in _ceilf _floorf
47843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47844 echo "$as_me:$LINENO: checking for $ac_func" >&5
47845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47846 if eval "test \"\${$as_ac_var+set}\" = set"; then
47847 echo $ECHO_N "(cached) $ECHO_C" >&6
47848 else
47849 if test x$gcc_no_link = xyes; then
47850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47852 { (exit 1); exit 1; }; }
47854 cat >conftest.$ac_ext <<_ACEOF
47855 /* confdefs.h. */
47856 _ACEOF
47857 cat confdefs.h >>conftest.$ac_ext
47858 cat >>conftest.$ac_ext <<_ACEOF
47859 /* end confdefs.h. */
47860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47862 #define $ac_func innocuous_$ac_func
47864 /* System header to define __stub macros and hopefully few prototypes,
47865 which can conflict with char $ac_func (); below.
47866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47867 <limits.h> exists even on freestanding compilers. */
47869 #ifdef __STDC__
47870 # include <limits.h>
47871 #else
47872 # include <assert.h>
47873 #endif
47875 #undef $ac_func
47877 /* Override any gcc2 internal prototype to avoid an error. */
47878 #ifdef __cplusplus
47879 extern "C"
47881 #endif
47882 /* We use char because int might match the return type of a gcc2
47883 builtin and then its argument prototype would still apply. */
47884 char $ac_func ();
47885 /* The GNU C library defines this for functions which it implements
47886 to always fail with ENOSYS. Some functions are actually named
47887 something starting with __ and the normal name is an alias. */
47888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47889 choke me
47890 #else
47891 char (*f) () = $ac_func;
47892 #endif
47893 #ifdef __cplusplus
47895 #endif
47898 main ()
47900 return f != $ac_func;
47902 return 0;
47904 _ACEOF
47905 rm -f conftest.$ac_objext conftest$ac_exeext
47906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47907 (eval $ac_link) 2>conftest.er1
47908 ac_status=$?
47909 grep -v '^ *+' conftest.er1 >conftest.err
47910 rm -f conftest.er1
47911 cat conftest.err >&5
47912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47913 (exit $ac_status); } &&
47914 { ac_try='test -z "$ac_c_werror_flag"
47915 || test ! -s conftest.err'
47916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47917 (eval $ac_try) 2>&5
47918 ac_status=$?
47919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47920 (exit $ac_status); }; } &&
47921 { ac_try='test -s conftest$ac_exeext'
47922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47923 (eval $ac_try) 2>&5
47924 ac_status=$?
47925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926 (exit $ac_status); }; }; then
47927 eval "$as_ac_var=yes"
47928 else
47929 echo "$as_me: failed program was:" >&5
47930 sed 's/^/| /' conftest.$ac_ext >&5
47932 eval "$as_ac_var=no"
47934 rm -f conftest.err conftest.$ac_objext \
47935 conftest$ac_exeext conftest.$ac_ext
47937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47939 if test `eval echo '${'$as_ac_var'}'` = yes; then
47940 cat >>confdefs.h <<_ACEOF
47941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47942 _ACEOF
47945 done
47951 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
47952 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
47953 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
47954 echo $ECHO_N "(cached) $ECHO_C" >&6
47955 else
47959 ac_ext=cc
47960 ac_cpp='$CXXCPP $CPPFLAGS'
47961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47965 cat >conftest.$ac_ext <<_ACEOF
47966 /* confdefs.h. */
47967 _ACEOF
47968 cat confdefs.h >>conftest.$ac_ext
47969 cat >>conftest.$ac_ext <<_ACEOF
47970 /* end confdefs.h. */
47971 #include <math.h>
47973 main ()
47975 `for x in _acosl _asinl _atanl \
47976 _cosl _sinl _tanl \
47977 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
47979 return 0;
47981 _ACEOF
47982 rm -f conftest.$ac_objext
47983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47984 (eval $ac_compile) 2>conftest.er1
47985 ac_status=$?
47986 grep -v '^ *+' conftest.er1 >conftest.err
47987 rm -f conftest.er1
47988 cat conftest.err >&5
47989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47990 (exit $ac_status); } &&
47991 { ac_try='test -z "$ac_cxx_werror_flag"
47992 || test ! -s conftest.err'
47993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47994 (eval $ac_try) 2>&5
47995 ac_status=$?
47996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47997 (exit $ac_status); }; } &&
47998 { ac_try='test -s conftest.$ac_objext'
47999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48000 (eval $ac_try) 2>&5
48001 ac_status=$?
48002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48003 (exit $ac_status); }; }; then
48004 glibcxx_cv_func__long_double_trig_use=yes
48005 else
48006 echo "$as_me: failed program was:" >&5
48007 sed 's/^/| /' conftest.$ac_ext >&5
48009 glibcxx_cv_func__long_double_trig_use=no
48011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48012 ac_ext=c
48013 ac_cpp='$CPP $CPPFLAGS'
48014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48020 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48021 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48022 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48032 for ac_func in _acosl _asinl _atanl \
48033 _cosl _sinl _tanl \
48034 _coshl _sinhl _tanhl
48036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48037 echo "$as_me:$LINENO: checking for $ac_func" >&5
48038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48039 if eval "test \"\${$as_ac_var+set}\" = set"; then
48040 echo $ECHO_N "(cached) $ECHO_C" >&6
48041 else
48042 if test x$gcc_no_link = xyes; then
48043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48045 { (exit 1); exit 1; }; }
48047 cat >conftest.$ac_ext <<_ACEOF
48048 /* confdefs.h. */
48049 _ACEOF
48050 cat confdefs.h >>conftest.$ac_ext
48051 cat >>conftest.$ac_ext <<_ACEOF
48052 /* end confdefs.h. */
48053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48055 #define $ac_func innocuous_$ac_func
48057 /* System header to define __stub macros and hopefully few prototypes,
48058 which can conflict with char $ac_func (); below.
48059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48060 <limits.h> exists even on freestanding compilers. */
48062 #ifdef __STDC__
48063 # include <limits.h>
48064 #else
48065 # include <assert.h>
48066 #endif
48068 #undef $ac_func
48070 /* Override any gcc2 internal prototype to avoid an error. */
48071 #ifdef __cplusplus
48072 extern "C"
48074 #endif
48075 /* We use char because int might match the return type of a gcc2
48076 builtin and then its argument prototype would still apply. */
48077 char $ac_func ();
48078 /* The GNU C library defines this for functions which it implements
48079 to always fail with ENOSYS. Some functions are actually named
48080 something starting with __ and the normal name is an alias. */
48081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48082 choke me
48083 #else
48084 char (*f) () = $ac_func;
48085 #endif
48086 #ifdef __cplusplus
48088 #endif
48091 main ()
48093 return f != $ac_func;
48095 return 0;
48097 _ACEOF
48098 rm -f conftest.$ac_objext conftest$ac_exeext
48099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48100 (eval $ac_link) 2>conftest.er1
48101 ac_status=$?
48102 grep -v '^ *+' conftest.er1 >conftest.err
48103 rm -f conftest.er1
48104 cat conftest.err >&5
48105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48106 (exit $ac_status); } &&
48107 { ac_try='test -z "$ac_c_werror_flag"
48108 || test ! -s conftest.err'
48109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110 (eval $ac_try) 2>&5
48111 ac_status=$?
48112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113 (exit $ac_status); }; } &&
48114 { ac_try='test -s conftest$ac_exeext'
48115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48116 (eval $ac_try) 2>&5
48117 ac_status=$?
48118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48119 (exit $ac_status); }; }; then
48120 eval "$as_ac_var=yes"
48121 else
48122 echo "$as_me: failed program was:" >&5
48123 sed 's/^/| /' conftest.$ac_ext >&5
48125 eval "$as_ac_var=no"
48127 rm -f conftest.err conftest.$ac_objext \
48128 conftest$ac_exeext conftest.$ac_ext
48130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48132 if test `eval echo '${'$as_ac_var'}'` = yes; then
48133 cat >>confdefs.h <<_ACEOF
48134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48135 _ACEOF
48138 done
48143 echo "$as_me:$LINENO: checking for _long double round functions" >&5
48144 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48145 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48146 echo $ECHO_N "(cached) $ECHO_C" >&6
48147 else
48151 ac_ext=cc
48152 ac_cpp='$CXXCPP $CPPFLAGS'
48153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48157 cat >conftest.$ac_ext <<_ACEOF
48158 /* confdefs.h. */
48159 _ACEOF
48160 cat confdefs.h >>conftest.$ac_ext
48161 cat >>conftest.$ac_ext <<_ACEOF
48162 /* end confdefs.h. */
48163 #include <math.h>
48165 main ()
48167 `for x in _ceill _floorl; do echo "$x (0);"; done`
48169 return 0;
48171 _ACEOF
48172 rm -f conftest.$ac_objext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48174 (eval $ac_compile) 2>conftest.er1
48175 ac_status=$?
48176 grep -v '^ *+' conftest.er1 >conftest.err
48177 rm -f conftest.er1
48178 cat conftest.err >&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); } &&
48181 { ac_try='test -z "$ac_cxx_werror_flag"
48182 || test ! -s conftest.err'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48185 ac_status=$?
48186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; } &&
48188 { ac_try='test -s conftest.$ac_objext'
48189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190 (eval $ac_try) 2>&5
48191 ac_status=$?
48192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193 (exit $ac_status); }; }; then
48194 glibcxx_cv_func__long_double_round_use=yes
48195 else
48196 echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48199 glibcxx_cv_func__long_double_round_use=no
48201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48202 ac_ext=c
48203 ac_cpp='$CPP $CPPFLAGS'
48204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48210 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48211 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48212 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48215 for ac_func in _ceill _floorl
48217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48218 echo "$as_me:$LINENO: checking for $ac_func" >&5
48219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48220 if eval "test \"\${$as_ac_var+set}\" = set"; then
48221 echo $ECHO_N "(cached) $ECHO_C" >&6
48222 else
48223 if test x$gcc_no_link = xyes; then
48224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48226 { (exit 1); exit 1; }; }
48228 cat >conftest.$ac_ext <<_ACEOF
48229 /* confdefs.h. */
48230 _ACEOF
48231 cat confdefs.h >>conftest.$ac_ext
48232 cat >>conftest.$ac_ext <<_ACEOF
48233 /* end confdefs.h. */
48234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48236 #define $ac_func innocuous_$ac_func
48238 /* System header to define __stub macros and hopefully few prototypes,
48239 which can conflict with char $ac_func (); below.
48240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48241 <limits.h> exists even on freestanding compilers. */
48243 #ifdef __STDC__
48244 # include <limits.h>
48245 #else
48246 # include <assert.h>
48247 #endif
48249 #undef $ac_func
48251 /* Override any gcc2 internal prototype to avoid an error. */
48252 #ifdef __cplusplus
48253 extern "C"
48255 #endif
48256 /* We use char because int might match the return type of a gcc2
48257 builtin and then its argument prototype would still apply. */
48258 char $ac_func ();
48259 /* The GNU C library defines this for functions which it implements
48260 to always fail with ENOSYS. Some functions are actually named
48261 something starting with __ and the normal name is an alias. */
48262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48263 choke me
48264 #else
48265 char (*f) () = $ac_func;
48266 #endif
48267 #ifdef __cplusplus
48269 #endif
48272 main ()
48274 return f != $ac_func;
48276 return 0;
48278 _ACEOF
48279 rm -f conftest.$ac_objext conftest$ac_exeext
48280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48281 (eval $ac_link) 2>conftest.er1
48282 ac_status=$?
48283 grep -v '^ *+' conftest.er1 >conftest.err
48284 rm -f conftest.er1
48285 cat conftest.err >&5
48286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48287 (exit $ac_status); } &&
48288 { ac_try='test -z "$ac_c_werror_flag"
48289 || test ! -s conftest.err'
48290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48291 (eval $ac_try) 2>&5
48292 ac_status=$?
48293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48294 (exit $ac_status); }; } &&
48295 { ac_try='test -s conftest$ac_exeext'
48296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48297 (eval $ac_try) 2>&5
48298 ac_status=$?
48299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48300 (exit $ac_status); }; }; then
48301 eval "$as_ac_var=yes"
48302 else
48303 echo "$as_me: failed program was:" >&5
48304 sed 's/^/| /' conftest.$ac_ext >&5
48306 eval "$as_ac_var=no"
48308 rm -f conftest.err conftest.$ac_objext \
48309 conftest$ac_exeext conftest.$ac_ext
48311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48313 if test `eval echo '${'$as_ac_var'}'` = yes; then
48314 cat >>confdefs.h <<_ACEOF
48315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48316 _ACEOF
48319 done
48324 LIBS="$ac_save_LIBS"
48325 CXXFLAGS="$ac_save_CXXFLAGS"
48329 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48330 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48331 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48332 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48333 echo $ECHO_N "(cached) $ECHO_C" >&6
48334 else
48338 ac_ext=cc
48339 ac_cpp='$CXXCPP $CPPFLAGS'
48340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48344 cat >conftest.$ac_ext <<_ACEOF
48345 /* confdefs.h. */
48346 _ACEOF
48347 cat confdefs.h >>conftest.$ac_ext
48348 cat >>conftest.$ac_ext <<_ACEOF
48349 /* end confdefs.h. */
48350 #include <math.h>
48352 main ()
48354 __builtin_abs(0);
48356 return 0;
48358 _ACEOF
48359 rm -f conftest.$ac_objext
48360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48361 (eval $ac_compile) 2>conftest.er1
48362 ac_status=$?
48363 grep -v '^ *+' conftest.er1 >conftest.err
48364 rm -f conftest.er1
48365 cat conftest.err >&5
48366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48367 (exit $ac_status); } &&
48368 { ac_try='test -z "$ac_cxx_werror_flag"
48369 || test ! -s conftest.err'
48370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48371 (eval $ac_try) 2>&5
48372 ac_status=$?
48373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48374 (exit $ac_status); }; } &&
48375 { ac_try='test -s conftest.$ac_objext'
48376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48377 (eval $ac_try) 2>&5
48378 ac_status=$?
48379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380 (exit $ac_status); }; }; then
48381 glibcxx_cv_func___builtin_abs_use=yes
48382 else
48383 echo "$as_me: failed program was:" >&5
48384 sed 's/^/| /' conftest.$ac_ext >&5
48386 glibcxx_cv_func___builtin_abs_use=no
48388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48389 ac_ext=c
48390 ac_cpp='$CPP $CPPFLAGS'
48391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48399 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48400 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48401 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48402 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48403 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48404 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48405 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48406 echo $ECHO_N "(cached) $ECHO_C" >&6
48407 else
48409 if test x$gcc_no_link = xyes; then
48410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48412 { (exit 1); exit 1; }; }
48414 cat >conftest.$ac_ext <<_ACEOF
48415 /* confdefs.h. */
48416 _ACEOF
48417 cat confdefs.h >>conftest.$ac_ext
48418 cat >>conftest.$ac_ext <<_ACEOF
48419 /* end confdefs.h. */
48420 #include <math.h>
48422 main ()
48424 __builtin_abs(0);
48426 return 0;
48428 _ACEOF
48429 rm -f conftest.$ac_objext conftest$ac_exeext
48430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48431 (eval $ac_link) 2>conftest.er1
48432 ac_status=$?
48433 grep -v '^ *+' conftest.er1 >conftest.err
48434 rm -f conftest.er1
48435 cat conftest.err >&5
48436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48437 (exit $ac_status); } &&
48438 { ac_try='test -z "$ac_c_werror_flag"
48439 || test ! -s conftest.err'
48440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48441 (eval $ac_try) 2>&5
48442 ac_status=$?
48443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48444 (exit $ac_status); }; } &&
48445 { ac_try='test -s conftest$ac_exeext'
48446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48447 (eval $ac_try) 2>&5
48448 ac_status=$?
48449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48450 (exit $ac_status); }; }; then
48451 glibcxx_cv_func___builtin_abs_link=yes
48452 else
48453 echo "$as_me: failed program was:" >&5
48454 sed 's/^/| /' conftest.$ac_ext >&5
48456 glibcxx_cv_func___builtin_abs_link=no
48458 rm -f conftest.err conftest.$ac_objext \
48459 conftest$ac_exeext conftest.$ac_ext
48464 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48465 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48466 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48467 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48468 cat >>confdefs.h <<_ACEOF
48469 #define ${ac_tr_func} 1
48470 _ACEOF
48476 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48477 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48478 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48479 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48480 echo $ECHO_N "(cached) $ECHO_C" >&6
48481 else
48485 ac_ext=cc
48486 ac_cpp='$CXXCPP $CPPFLAGS'
48487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48491 cat >conftest.$ac_ext <<_ACEOF
48492 /* confdefs.h. */
48493 _ACEOF
48494 cat confdefs.h >>conftest.$ac_ext
48495 cat >>conftest.$ac_ext <<_ACEOF
48496 /* end confdefs.h. */
48497 #include <math.h>
48499 main ()
48501 __builtin_fabsf(0);
48503 return 0;
48505 _ACEOF
48506 rm -f conftest.$ac_objext
48507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48508 (eval $ac_compile) 2>conftest.er1
48509 ac_status=$?
48510 grep -v '^ *+' conftest.er1 >conftest.err
48511 rm -f conftest.er1
48512 cat conftest.err >&5
48513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48514 (exit $ac_status); } &&
48515 { ac_try='test -z "$ac_cxx_werror_flag"
48516 || test ! -s conftest.err'
48517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48518 (eval $ac_try) 2>&5
48519 ac_status=$?
48520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48521 (exit $ac_status); }; } &&
48522 { ac_try='test -s conftest.$ac_objext'
48523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48524 (eval $ac_try) 2>&5
48525 ac_status=$?
48526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48527 (exit $ac_status); }; }; then
48528 glibcxx_cv_func___builtin_fabsf_use=yes
48529 else
48530 echo "$as_me: failed program was:" >&5
48531 sed 's/^/| /' conftest.$ac_ext >&5
48533 glibcxx_cv_func___builtin_fabsf_use=no
48535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48536 ac_ext=c
48537 ac_cpp='$CPP $CPPFLAGS'
48538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48546 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48547 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48548 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48549 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48550 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48551 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48552 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48553 echo $ECHO_N "(cached) $ECHO_C" >&6
48554 else
48556 if test x$gcc_no_link = xyes; then
48557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48559 { (exit 1); exit 1; }; }
48561 cat >conftest.$ac_ext <<_ACEOF
48562 /* confdefs.h. */
48563 _ACEOF
48564 cat confdefs.h >>conftest.$ac_ext
48565 cat >>conftest.$ac_ext <<_ACEOF
48566 /* end confdefs.h. */
48567 #include <math.h>
48569 main ()
48571 __builtin_fabsf(0);
48573 return 0;
48575 _ACEOF
48576 rm -f conftest.$ac_objext conftest$ac_exeext
48577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48578 (eval $ac_link) 2>conftest.er1
48579 ac_status=$?
48580 grep -v '^ *+' conftest.er1 >conftest.err
48581 rm -f conftest.er1
48582 cat conftest.err >&5
48583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584 (exit $ac_status); } &&
48585 { ac_try='test -z "$ac_c_werror_flag"
48586 || test ! -s conftest.err'
48587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48588 (eval $ac_try) 2>&5
48589 ac_status=$?
48590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48591 (exit $ac_status); }; } &&
48592 { ac_try='test -s conftest$ac_exeext'
48593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48594 (eval $ac_try) 2>&5
48595 ac_status=$?
48596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48597 (exit $ac_status); }; }; then
48598 glibcxx_cv_func___builtin_fabsf_link=yes
48599 else
48600 echo "$as_me: failed program was:" >&5
48601 sed 's/^/| /' conftest.$ac_ext >&5
48603 glibcxx_cv_func___builtin_fabsf_link=no
48605 rm -f conftest.err conftest.$ac_objext \
48606 conftest$ac_exeext conftest.$ac_ext
48611 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48612 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48613 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48614 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48615 cat >>confdefs.h <<_ACEOF
48616 #define ${ac_tr_func} 1
48617 _ACEOF
48623 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48624 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48625 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48626 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48627 echo $ECHO_N "(cached) $ECHO_C" >&6
48628 else
48632 ac_ext=cc
48633 ac_cpp='$CXXCPP $CPPFLAGS'
48634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48638 cat >conftest.$ac_ext <<_ACEOF
48639 /* confdefs.h. */
48640 _ACEOF
48641 cat confdefs.h >>conftest.$ac_ext
48642 cat >>conftest.$ac_ext <<_ACEOF
48643 /* end confdefs.h. */
48644 #include <math.h>
48646 main ()
48648 __builtin_fabs(0);
48650 return 0;
48652 _ACEOF
48653 rm -f conftest.$ac_objext
48654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48655 (eval $ac_compile) 2>conftest.er1
48656 ac_status=$?
48657 grep -v '^ *+' conftest.er1 >conftest.err
48658 rm -f conftest.er1
48659 cat conftest.err >&5
48660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48661 (exit $ac_status); } &&
48662 { ac_try='test -z "$ac_cxx_werror_flag"
48663 || test ! -s conftest.err'
48664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48665 (eval $ac_try) 2>&5
48666 ac_status=$?
48667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668 (exit $ac_status); }; } &&
48669 { ac_try='test -s conftest.$ac_objext'
48670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48671 (eval $ac_try) 2>&5
48672 ac_status=$?
48673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48674 (exit $ac_status); }; }; then
48675 glibcxx_cv_func___builtin_fabs_use=yes
48676 else
48677 echo "$as_me: failed program was:" >&5
48678 sed 's/^/| /' conftest.$ac_ext >&5
48680 glibcxx_cv_func___builtin_fabs_use=no
48682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48683 ac_ext=c
48684 ac_cpp='$CPP $CPPFLAGS'
48685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48693 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48694 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48695 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48696 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48697 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48698 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48699 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48700 echo $ECHO_N "(cached) $ECHO_C" >&6
48701 else
48703 if test x$gcc_no_link = xyes; then
48704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48706 { (exit 1); exit 1; }; }
48708 cat >conftest.$ac_ext <<_ACEOF
48709 /* confdefs.h. */
48710 _ACEOF
48711 cat confdefs.h >>conftest.$ac_ext
48712 cat >>conftest.$ac_ext <<_ACEOF
48713 /* end confdefs.h. */
48714 #include <math.h>
48716 main ()
48718 __builtin_fabs(0);
48720 return 0;
48722 _ACEOF
48723 rm -f conftest.$ac_objext conftest$ac_exeext
48724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48725 (eval $ac_link) 2>conftest.er1
48726 ac_status=$?
48727 grep -v '^ *+' conftest.er1 >conftest.err
48728 rm -f conftest.er1
48729 cat conftest.err >&5
48730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48731 (exit $ac_status); } &&
48732 { ac_try='test -z "$ac_c_werror_flag"
48733 || test ! -s conftest.err'
48734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48735 (eval $ac_try) 2>&5
48736 ac_status=$?
48737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48738 (exit $ac_status); }; } &&
48739 { ac_try='test -s conftest$ac_exeext'
48740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48741 (eval $ac_try) 2>&5
48742 ac_status=$?
48743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48744 (exit $ac_status); }; }; then
48745 glibcxx_cv_func___builtin_fabs_link=yes
48746 else
48747 echo "$as_me: failed program was:" >&5
48748 sed 's/^/| /' conftest.$ac_ext >&5
48750 glibcxx_cv_func___builtin_fabs_link=no
48752 rm -f conftest.err conftest.$ac_objext \
48753 conftest$ac_exeext conftest.$ac_ext
48758 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48759 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48760 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48761 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48762 cat >>confdefs.h <<_ACEOF
48763 #define ${ac_tr_func} 1
48764 _ACEOF
48770 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48771 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48772 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48773 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48774 echo $ECHO_N "(cached) $ECHO_C" >&6
48775 else
48779 ac_ext=cc
48780 ac_cpp='$CXXCPP $CPPFLAGS'
48781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48785 cat >conftest.$ac_ext <<_ACEOF
48786 /* confdefs.h. */
48787 _ACEOF
48788 cat confdefs.h >>conftest.$ac_ext
48789 cat >>conftest.$ac_ext <<_ACEOF
48790 /* end confdefs.h. */
48791 #include <math.h>
48793 main ()
48795 __builtin_fabsl(0);
48797 return 0;
48799 _ACEOF
48800 rm -f conftest.$ac_objext
48801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48802 (eval $ac_compile) 2>conftest.er1
48803 ac_status=$?
48804 grep -v '^ *+' conftest.er1 >conftest.err
48805 rm -f conftest.er1
48806 cat conftest.err >&5
48807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48808 (exit $ac_status); } &&
48809 { ac_try='test -z "$ac_cxx_werror_flag"
48810 || test ! -s conftest.err'
48811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48812 (eval $ac_try) 2>&5
48813 ac_status=$?
48814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48815 (exit $ac_status); }; } &&
48816 { ac_try='test -s conftest.$ac_objext'
48817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48818 (eval $ac_try) 2>&5
48819 ac_status=$?
48820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48821 (exit $ac_status); }; }; then
48822 glibcxx_cv_func___builtin_fabsl_use=yes
48823 else
48824 echo "$as_me: failed program was:" >&5
48825 sed 's/^/| /' conftest.$ac_ext >&5
48827 glibcxx_cv_func___builtin_fabsl_use=no
48829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48830 ac_ext=c
48831 ac_cpp='$CPP $CPPFLAGS'
48832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48840 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48841 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48842 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48843 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48844 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48845 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48846 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48847 echo $ECHO_N "(cached) $ECHO_C" >&6
48848 else
48850 if test x$gcc_no_link = xyes; then
48851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48853 { (exit 1); exit 1; }; }
48855 cat >conftest.$ac_ext <<_ACEOF
48856 /* confdefs.h. */
48857 _ACEOF
48858 cat confdefs.h >>conftest.$ac_ext
48859 cat >>conftest.$ac_ext <<_ACEOF
48860 /* end confdefs.h. */
48861 #include <math.h>
48863 main ()
48865 __builtin_fabsl(0);
48867 return 0;
48869 _ACEOF
48870 rm -f conftest.$ac_objext conftest$ac_exeext
48871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48872 (eval $ac_link) 2>conftest.er1
48873 ac_status=$?
48874 grep -v '^ *+' conftest.er1 >conftest.err
48875 rm -f conftest.er1
48876 cat conftest.err >&5
48877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48878 (exit $ac_status); } &&
48879 { ac_try='test -z "$ac_c_werror_flag"
48880 || test ! -s conftest.err'
48881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48882 (eval $ac_try) 2>&5
48883 ac_status=$?
48884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885 (exit $ac_status); }; } &&
48886 { ac_try='test -s conftest$ac_exeext'
48887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888 (eval $ac_try) 2>&5
48889 ac_status=$?
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); }; }; then
48892 glibcxx_cv_func___builtin_fabsl_link=yes
48893 else
48894 echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48897 glibcxx_cv_func___builtin_fabsl_link=no
48899 rm -f conftest.err conftest.$ac_objext \
48900 conftest$ac_exeext conftest.$ac_ext
48905 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48906 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48907 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48908 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48909 cat >>confdefs.h <<_ACEOF
48910 #define ${ac_tr_func} 1
48911 _ACEOF
48917 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48918 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48919 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48920 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48921 echo $ECHO_N "(cached) $ECHO_C" >&6
48922 else
48926 ac_ext=cc
48927 ac_cpp='$CXXCPP $CPPFLAGS'
48928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48932 cat >conftest.$ac_ext <<_ACEOF
48933 /* confdefs.h. */
48934 _ACEOF
48935 cat confdefs.h >>conftest.$ac_ext
48936 cat >>conftest.$ac_ext <<_ACEOF
48937 /* end confdefs.h. */
48938 #include <math.h>
48940 main ()
48942 __builtin_labs(0);
48944 return 0;
48946 _ACEOF
48947 rm -f conftest.$ac_objext
48948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48949 (eval $ac_compile) 2>conftest.er1
48950 ac_status=$?
48951 grep -v '^ *+' conftest.er1 >conftest.err
48952 rm -f conftest.er1
48953 cat conftest.err >&5
48954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48955 (exit $ac_status); } &&
48956 { ac_try='test -z "$ac_cxx_werror_flag"
48957 || test ! -s conftest.err'
48958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48959 (eval $ac_try) 2>&5
48960 ac_status=$?
48961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48962 (exit $ac_status); }; } &&
48963 { ac_try='test -s conftest.$ac_objext'
48964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48965 (eval $ac_try) 2>&5
48966 ac_status=$?
48967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48968 (exit $ac_status); }; }; then
48969 glibcxx_cv_func___builtin_labs_use=yes
48970 else
48971 echo "$as_me: failed program was:" >&5
48972 sed 's/^/| /' conftest.$ac_ext >&5
48974 glibcxx_cv_func___builtin_labs_use=no
48976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48977 ac_ext=c
48978 ac_cpp='$CPP $CPPFLAGS'
48979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48987 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
48988 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
48989 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
48990 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
48991 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
48992 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
48993 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
48994 echo $ECHO_N "(cached) $ECHO_C" >&6
48995 else
48997 if test x$gcc_no_link = xyes; then
48998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49000 { (exit 1); exit 1; }; }
49002 cat >conftest.$ac_ext <<_ACEOF
49003 /* confdefs.h. */
49004 _ACEOF
49005 cat confdefs.h >>conftest.$ac_ext
49006 cat >>conftest.$ac_ext <<_ACEOF
49007 /* end confdefs.h. */
49008 #include <math.h>
49010 main ()
49012 __builtin_labs(0);
49014 return 0;
49016 _ACEOF
49017 rm -f conftest.$ac_objext conftest$ac_exeext
49018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49019 (eval $ac_link) 2>conftest.er1
49020 ac_status=$?
49021 grep -v '^ *+' conftest.er1 >conftest.err
49022 rm -f conftest.er1
49023 cat conftest.err >&5
49024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49025 (exit $ac_status); } &&
49026 { ac_try='test -z "$ac_c_werror_flag"
49027 || test ! -s conftest.err'
49028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49029 (eval $ac_try) 2>&5
49030 ac_status=$?
49031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49032 (exit $ac_status); }; } &&
49033 { ac_try='test -s conftest$ac_exeext'
49034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49035 (eval $ac_try) 2>&5
49036 ac_status=$?
49037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49038 (exit $ac_status); }; }; then
49039 glibcxx_cv_func___builtin_labs_link=yes
49040 else
49041 echo "$as_me: failed program was:" >&5
49042 sed 's/^/| /' conftest.$ac_ext >&5
49044 glibcxx_cv_func___builtin_labs_link=no
49046 rm -f conftest.err conftest.$ac_objext \
49047 conftest$ac_exeext conftest.$ac_ext
49052 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49053 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49054 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49055 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49056 cat >>confdefs.h <<_ACEOF
49057 #define ${ac_tr_func} 1
49058 _ACEOF
49065 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49066 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49067 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49068 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49069 echo $ECHO_N "(cached) $ECHO_C" >&6
49070 else
49074 ac_ext=cc
49075 ac_cpp='$CXXCPP $CPPFLAGS'
49076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49080 cat >conftest.$ac_ext <<_ACEOF
49081 /* confdefs.h. */
49082 _ACEOF
49083 cat confdefs.h >>conftest.$ac_ext
49084 cat >>conftest.$ac_ext <<_ACEOF
49085 /* end confdefs.h. */
49086 #include <math.h>
49088 main ()
49090 __builtin_sqrtf(0);
49092 return 0;
49094 _ACEOF
49095 rm -f conftest.$ac_objext
49096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49097 (eval $ac_compile) 2>conftest.er1
49098 ac_status=$?
49099 grep -v '^ *+' conftest.er1 >conftest.err
49100 rm -f conftest.er1
49101 cat conftest.err >&5
49102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49103 (exit $ac_status); } &&
49104 { ac_try='test -z "$ac_cxx_werror_flag"
49105 || test ! -s conftest.err'
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); }; } &&
49111 { ac_try='test -s conftest.$ac_objext'
49112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49113 (eval $ac_try) 2>&5
49114 ac_status=$?
49115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49116 (exit $ac_status); }; }; then
49117 glibcxx_cv_func___builtin_sqrtf_use=yes
49118 else
49119 echo "$as_me: failed program was:" >&5
49120 sed 's/^/| /' conftest.$ac_ext >&5
49122 glibcxx_cv_func___builtin_sqrtf_use=no
49124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49125 ac_ext=c
49126 ac_cpp='$CPP $CPPFLAGS'
49127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49135 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49136 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49137 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49138 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49139 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49140 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49141 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49142 echo $ECHO_N "(cached) $ECHO_C" >&6
49143 else
49145 if test x$gcc_no_link = xyes; then
49146 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49148 { (exit 1); exit 1; }; }
49150 cat >conftest.$ac_ext <<_ACEOF
49151 /* confdefs.h. */
49152 _ACEOF
49153 cat confdefs.h >>conftest.$ac_ext
49154 cat >>conftest.$ac_ext <<_ACEOF
49155 /* end confdefs.h. */
49156 #include <math.h>
49158 main ()
49160 __builtin_sqrtf(0);
49162 return 0;
49164 _ACEOF
49165 rm -f conftest.$ac_objext conftest$ac_exeext
49166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49167 (eval $ac_link) 2>conftest.er1
49168 ac_status=$?
49169 grep -v '^ *+' conftest.er1 >conftest.err
49170 rm -f conftest.er1
49171 cat conftest.err >&5
49172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49173 (exit $ac_status); } &&
49174 { ac_try='test -z "$ac_c_werror_flag"
49175 || test ! -s conftest.err'
49176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49177 (eval $ac_try) 2>&5
49178 ac_status=$?
49179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49180 (exit $ac_status); }; } &&
49181 { ac_try='test -s conftest$ac_exeext'
49182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49183 (eval $ac_try) 2>&5
49184 ac_status=$?
49185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49186 (exit $ac_status); }; }; then
49187 glibcxx_cv_func___builtin_sqrtf_link=yes
49188 else
49189 echo "$as_me: failed program was:" >&5
49190 sed 's/^/| /' conftest.$ac_ext >&5
49192 glibcxx_cv_func___builtin_sqrtf_link=no
49194 rm -f conftest.err conftest.$ac_objext \
49195 conftest$ac_exeext conftest.$ac_ext
49200 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49201 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49202 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49203 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49204 cat >>confdefs.h <<_ACEOF
49205 #define ${ac_tr_func} 1
49206 _ACEOF
49212 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49213 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49214 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49215 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49216 echo $ECHO_N "(cached) $ECHO_C" >&6
49217 else
49221 ac_ext=cc
49222 ac_cpp='$CXXCPP $CPPFLAGS'
49223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49227 cat >conftest.$ac_ext <<_ACEOF
49228 /* confdefs.h. */
49229 _ACEOF
49230 cat confdefs.h >>conftest.$ac_ext
49231 cat >>conftest.$ac_ext <<_ACEOF
49232 /* end confdefs.h. */
49233 #include <math.h>
49235 main ()
49237 __builtin_sqrt(0);
49239 return 0;
49241 _ACEOF
49242 rm -f conftest.$ac_objext
49243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49244 (eval $ac_compile) 2>conftest.er1
49245 ac_status=$?
49246 grep -v '^ *+' conftest.er1 >conftest.err
49247 rm -f conftest.er1
49248 cat conftest.err >&5
49249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250 (exit $ac_status); } &&
49251 { ac_try='test -z "$ac_cxx_werror_flag"
49252 || test ! -s conftest.err'
49253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49254 (eval $ac_try) 2>&5
49255 ac_status=$?
49256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49257 (exit $ac_status); }; } &&
49258 { ac_try='test -s conftest.$ac_objext'
49259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49260 (eval $ac_try) 2>&5
49261 ac_status=$?
49262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49263 (exit $ac_status); }; }; then
49264 glibcxx_cv_func___builtin_sqrt_use=yes
49265 else
49266 echo "$as_me: failed program was:" >&5
49267 sed 's/^/| /' conftest.$ac_ext >&5
49269 glibcxx_cv_func___builtin_sqrt_use=no
49271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49272 ac_ext=c
49273 ac_cpp='$CPP $CPPFLAGS'
49274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49282 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49283 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49284 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49285 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49286 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49287 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49288 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49289 echo $ECHO_N "(cached) $ECHO_C" >&6
49290 else
49292 if test x$gcc_no_link = xyes; then
49293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49295 { (exit 1); exit 1; }; }
49297 cat >conftest.$ac_ext <<_ACEOF
49298 /* confdefs.h. */
49299 _ACEOF
49300 cat confdefs.h >>conftest.$ac_ext
49301 cat >>conftest.$ac_ext <<_ACEOF
49302 /* end confdefs.h. */
49303 #include <math.h>
49305 main ()
49307 __builtin_sqrt(0);
49309 return 0;
49311 _ACEOF
49312 rm -f conftest.$ac_objext conftest$ac_exeext
49313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49314 (eval $ac_link) 2>conftest.er1
49315 ac_status=$?
49316 grep -v '^ *+' conftest.er1 >conftest.err
49317 rm -f conftest.er1
49318 cat conftest.err >&5
49319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49320 (exit $ac_status); } &&
49321 { ac_try='test -z "$ac_c_werror_flag"
49322 || test ! -s conftest.err'
49323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49324 (eval $ac_try) 2>&5
49325 ac_status=$?
49326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49327 (exit $ac_status); }; } &&
49328 { ac_try='test -s conftest$ac_exeext'
49329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49330 (eval $ac_try) 2>&5
49331 ac_status=$?
49332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49333 (exit $ac_status); }; }; then
49334 glibcxx_cv_func___builtin_sqrt_link=yes
49335 else
49336 echo "$as_me: failed program was:" >&5
49337 sed 's/^/| /' conftest.$ac_ext >&5
49339 glibcxx_cv_func___builtin_sqrt_link=no
49341 rm -f conftest.err conftest.$ac_objext \
49342 conftest$ac_exeext conftest.$ac_ext
49347 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49348 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49349 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49350 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49351 cat >>confdefs.h <<_ACEOF
49352 #define ${ac_tr_func} 1
49353 _ACEOF
49359 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49360 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49361 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49362 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49363 echo $ECHO_N "(cached) $ECHO_C" >&6
49364 else
49368 ac_ext=cc
49369 ac_cpp='$CXXCPP $CPPFLAGS'
49370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49374 cat >conftest.$ac_ext <<_ACEOF
49375 /* confdefs.h. */
49376 _ACEOF
49377 cat confdefs.h >>conftest.$ac_ext
49378 cat >>conftest.$ac_ext <<_ACEOF
49379 /* end confdefs.h. */
49380 #include <math.h>
49382 main ()
49384 __builtin_sqrtl(0);
49386 return 0;
49388 _ACEOF
49389 rm -f conftest.$ac_objext
49390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49391 (eval $ac_compile) 2>conftest.er1
49392 ac_status=$?
49393 grep -v '^ *+' conftest.er1 >conftest.err
49394 rm -f conftest.er1
49395 cat conftest.err >&5
49396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49397 (exit $ac_status); } &&
49398 { ac_try='test -z "$ac_cxx_werror_flag"
49399 || test ! -s conftest.err'
49400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49401 (eval $ac_try) 2>&5
49402 ac_status=$?
49403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49404 (exit $ac_status); }; } &&
49405 { ac_try='test -s conftest.$ac_objext'
49406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49407 (eval $ac_try) 2>&5
49408 ac_status=$?
49409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49410 (exit $ac_status); }; }; then
49411 glibcxx_cv_func___builtin_sqrtl_use=yes
49412 else
49413 echo "$as_me: failed program was:" >&5
49414 sed 's/^/| /' conftest.$ac_ext >&5
49416 glibcxx_cv_func___builtin_sqrtl_use=no
49418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49419 ac_ext=c
49420 ac_cpp='$CPP $CPPFLAGS'
49421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49429 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49430 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49431 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49432 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49433 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49434 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49435 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49436 echo $ECHO_N "(cached) $ECHO_C" >&6
49437 else
49439 if test x$gcc_no_link = xyes; then
49440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49442 { (exit 1); exit 1; }; }
49444 cat >conftest.$ac_ext <<_ACEOF
49445 /* confdefs.h. */
49446 _ACEOF
49447 cat confdefs.h >>conftest.$ac_ext
49448 cat >>conftest.$ac_ext <<_ACEOF
49449 /* end confdefs.h. */
49450 #include <math.h>
49452 main ()
49454 __builtin_sqrtl(0);
49456 return 0;
49458 _ACEOF
49459 rm -f conftest.$ac_objext conftest$ac_exeext
49460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49461 (eval $ac_link) 2>conftest.er1
49462 ac_status=$?
49463 grep -v '^ *+' conftest.er1 >conftest.err
49464 rm -f conftest.er1
49465 cat conftest.err >&5
49466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49467 (exit $ac_status); } &&
49468 { ac_try='test -z "$ac_c_werror_flag"
49469 || test ! -s conftest.err'
49470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49471 (eval $ac_try) 2>&5
49472 ac_status=$?
49473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49474 (exit $ac_status); }; } &&
49475 { ac_try='test -s conftest$ac_exeext'
49476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49477 (eval $ac_try) 2>&5
49478 ac_status=$?
49479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49480 (exit $ac_status); }; }; then
49481 glibcxx_cv_func___builtin_sqrtl_link=yes
49482 else
49483 echo "$as_me: failed program was:" >&5
49484 sed 's/^/| /' conftest.$ac_ext >&5
49486 glibcxx_cv_func___builtin_sqrtl_link=no
49488 rm -f conftest.err conftest.$ac_objext \
49489 conftest$ac_exeext conftest.$ac_ext
49494 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49495 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49496 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49497 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49498 cat >>confdefs.h <<_ACEOF
49499 #define ${ac_tr_func} 1
49500 _ACEOF
49507 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49508 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49509 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49510 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49511 echo $ECHO_N "(cached) $ECHO_C" >&6
49512 else
49516 ac_ext=cc
49517 ac_cpp='$CXXCPP $CPPFLAGS'
49518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49522 cat >conftest.$ac_ext <<_ACEOF
49523 /* confdefs.h. */
49524 _ACEOF
49525 cat confdefs.h >>conftest.$ac_ext
49526 cat >>conftest.$ac_ext <<_ACEOF
49527 /* end confdefs.h. */
49528 #include <math.h>
49530 main ()
49532 __builtin_sinf(0);
49534 return 0;
49536 _ACEOF
49537 rm -f conftest.$ac_objext
49538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49539 (eval $ac_compile) 2>conftest.er1
49540 ac_status=$?
49541 grep -v '^ *+' conftest.er1 >conftest.err
49542 rm -f conftest.er1
49543 cat conftest.err >&5
49544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49545 (exit $ac_status); } &&
49546 { ac_try='test -z "$ac_cxx_werror_flag"
49547 || test ! -s conftest.err'
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); }; } &&
49553 { ac_try='test -s conftest.$ac_objext'
49554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49555 (eval $ac_try) 2>&5
49556 ac_status=$?
49557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49558 (exit $ac_status); }; }; then
49559 glibcxx_cv_func___builtin_sinf_use=yes
49560 else
49561 echo "$as_me: failed program was:" >&5
49562 sed 's/^/| /' conftest.$ac_ext >&5
49564 glibcxx_cv_func___builtin_sinf_use=no
49566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49567 ac_ext=c
49568 ac_cpp='$CPP $CPPFLAGS'
49569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49577 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49578 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49579 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49580 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49581 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49582 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49583 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49584 echo $ECHO_N "(cached) $ECHO_C" >&6
49585 else
49587 if test x$gcc_no_link = xyes; then
49588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49590 { (exit 1); exit 1; }; }
49592 cat >conftest.$ac_ext <<_ACEOF
49593 /* confdefs.h. */
49594 _ACEOF
49595 cat confdefs.h >>conftest.$ac_ext
49596 cat >>conftest.$ac_ext <<_ACEOF
49597 /* end confdefs.h. */
49598 #include <math.h>
49600 main ()
49602 __builtin_sinf(0);
49604 return 0;
49606 _ACEOF
49607 rm -f conftest.$ac_objext conftest$ac_exeext
49608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49609 (eval $ac_link) 2>conftest.er1
49610 ac_status=$?
49611 grep -v '^ *+' conftest.er1 >conftest.err
49612 rm -f conftest.er1
49613 cat conftest.err >&5
49614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49615 (exit $ac_status); } &&
49616 { ac_try='test -z "$ac_c_werror_flag"
49617 || test ! -s conftest.err'
49618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49619 (eval $ac_try) 2>&5
49620 ac_status=$?
49621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49622 (exit $ac_status); }; } &&
49623 { ac_try='test -s conftest$ac_exeext'
49624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49625 (eval $ac_try) 2>&5
49626 ac_status=$?
49627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49628 (exit $ac_status); }; }; then
49629 glibcxx_cv_func___builtin_sinf_link=yes
49630 else
49631 echo "$as_me: failed program was:" >&5
49632 sed 's/^/| /' conftest.$ac_ext >&5
49634 glibcxx_cv_func___builtin_sinf_link=no
49636 rm -f conftest.err conftest.$ac_objext \
49637 conftest$ac_exeext conftest.$ac_ext
49642 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49643 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49644 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49645 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49646 cat >>confdefs.h <<_ACEOF
49647 #define ${ac_tr_func} 1
49648 _ACEOF
49654 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49655 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49656 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49657 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49658 echo $ECHO_N "(cached) $ECHO_C" >&6
49659 else
49663 ac_ext=cc
49664 ac_cpp='$CXXCPP $CPPFLAGS'
49665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49669 cat >conftest.$ac_ext <<_ACEOF
49670 /* confdefs.h. */
49671 _ACEOF
49672 cat confdefs.h >>conftest.$ac_ext
49673 cat >>conftest.$ac_ext <<_ACEOF
49674 /* end confdefs.h. */
49675 #include <math.h>
49677 main ()
49679 __builtin_sin(0);
49681 return 0;
49683 _ACEOF
49684 rm -f conftest.$ac_objext
49685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49686 (eval $ac_compile) 2>conftest.er1
49687 ac_status=$?
49688 grep -v '^ *+' conftest.er1 >conftest.err
49689 rm -f conftest.er1
49690 cat conftest.err >&5
49691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49692 (exit $ac_status); } &&
49693 { ac_try='test -z "$ac_cxx_werror_flag"
49694 || test ! -s conftest.err'
49695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49696 (eval $ac_try) 2>&5
49697 ac_status=$?
49698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49699 (exit $ac_status); }; } &&
49700 { ac_try='test -s conftest.$ac_objext'
49701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49702 (eval $ac_try) 2>&5
49703 ac_status=$?
49704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49705 (exit $ac_status); }; }; then
49706 glibcxx_cv_func___builtin_sin_use=yes
49707 else
49708 echo "$as_me: failed program was:" >&5
49709 sed 's/^/| /' conftest.$ac_ext >&5
49711 glibcxx_cv_func___builtin_sin_use=no
49713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49714 ac_ext=c
49715 ac_cpp='$CPP $CPPFLAGS'
49716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49724 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49725 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49726 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49727 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49728 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49729 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49730 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49731 echo $ECHO_N "(cached) $ECHO_C" >&6
49732 else
49734 if test x$gcc_no_link = xyes; then
49735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49737 { (exit 1); exit 1; }; }
49739 cat >conftest.$ac_ext <<_ACEOF
49740 /* confdefs.h. */
49741 _ACEOF
49742 cat confdefs.h >>conftest.$ac_ext
49743 cat >>conftest.$ac_ext <<_ACEOF
49744 /* end confdefs.h. */
49745 #include <math.h>
49747 main ()
49749 __builtin_sin(0);
49751 return 0;
49753 _ACEOF
49754 rm -f conftest.$ac_objext conftest$ac_exeext
49755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49756 (eval $ac_link) 2>conftest.er1
49757 ac_status=$?
49758 grep -v '^ *+' conftest.er1 >conftest.err
49759 rm -f conftest.er1
49760 cat conftest.err >&5
49761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49762 (exit $ac_status); } &&
49763 { ac_try='test -z "$ac_c_werror_flag"
49764 || test ! -s conftest.err'
49765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49766 (eval $ac_try) 2>&5
49767 ac_status=$?
49768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49769 (exit $ac_status); }; } &&
49770 { ac_try='test -s conftest$ac_exeext'
49771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49772 (eval $ac_try) 2>&5
49773 ac_status=$?
49774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49775 (exit $ac_status); }; }; then
49776 glibcxx_cv_func___builtin_sin_link=yes
49777 else
49778 echo "$as_me: failed program was:" >&5
49779 sed 's/^/| /' conftest.$ac_ext >&5
49781 glibcxx_cv_func___builtin_sin_link=no
49783 rm -f conftest.err conftest.$ac_objext \
49784 conftest$ac_exeext conftest.$ac_ext
49789 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49790 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49791 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49792 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49793 cat >>confdefs.h <<_ACEOF
49794 #define ${ac_tr_func} 1
49795 _ACEOF
49801 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49802 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49803 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49804 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49805 echo $ECHO_N "(cached) $ECHO_C" >&6
49806 else
49810 ac_ext=cc
49811 ac_cpp='$CXXCPP $CPPFLAGS'
49812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49816 cat >conftest.$ac_ext <<_ACEOF
49817 /* confdefs.h. */
49818 _ACEOF
49819 cat confdefs.h >>conftest.$ac_ext
49820 cat >>conftest.$ac_ext <<_ACEOF
49821 /* end confdefs.h. */
49822 #include <math.h>
49824 main ()
49826 __builtin_sinl(0);
49828 return 0;
49830 _ACEOF
49831 rm -f conftest.$ac_objext
49832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49833 (eval $ac_compile) 2>conftest.er1
49834 ac_status=$?
49835 grep -v '^ *+' conftest.er1 >conftest.err
49836 rm -f conftest.er1
49837 cat conftest.err >&5
49838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49839 (exit $ac_status); } &&
49840 { ac_try='test -z "$ac_cxx_werror_flag"
49841 || test ! -s conftest.err'
49842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49843 (eval $ac_try) 2>&5
49844 ac_status=$?
49845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49846 (exit $ac_status); }; } &&
49847 { ac_try='test -s conftest.$ac_objext'
49848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49849 (eval $ac_try) 2>&5
49850 ac_status=$?
49851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49852 (exit $ac_status); }; }; then
49853 glibcxx_cv_func___builtin_sinl_use=yes
49854 else
49855 echo "$as_me: failed program was:" >&5
49856 sed 's/^/| /' conftest.$ac_ext >&5
49858 glibcxx_cv_func___builtin_sinl_use=no
49860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49861 ac_ext=c
49862 ac_cpp='$CPP $CPPFLAGS'
49863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49871 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49872 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49873 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49874 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49875 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49876 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49877 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49878 echo $ECHO_N "(cached) $ECHO_C" >&6
49879 else
49881 if test x$gcc_no_link = xyes; then
49882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49884 { (exit 1); exit 1; }; }
49886 cat >conftest.$ac_ext <<_ACEOF
49887 /* confdefs.h. */
49888 _ACEOF
49889 cat confdefs.h >>conftest.$ac_ext
49890 cat >>conftest.$ac_ext <<_ACEOF
49891 /* end confdefs.h. */
49892 #include <math.h>
49894 main ()
49896 __builtin_sinl(0);
49898 return 0;
49900 _ACEOF
49901 rm -f conftest.$ac_objext conftest$ac_exeext
49902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49903 (eval $ac_link) 2>conftest.er1
49904 ac_status=$?
49905 grep -v '^ *+' conftest.er1 >conftest.err
49906 rm -f conftest.er1
49907 cat conftest.err >&5
49908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909 (exit $ac_status); } &&
49910 { ac_try='test -z "$ac_c_werror_flag"
49911 || test ! -s conftest.err'
49912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49913 (eval $ac_try) 2>&5
49914 ac_status=$?
49915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49916 (exit $ac_status); }; } &&
49917 { ac_try='test -s conftest$ac_exeext'
49918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49919 (eval $ac_try) 2>&5
49920 ac_status=$?
49921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49922 (exit $ac_status); }; }; then
49923 glibcxx_cv_func___builtin_sinl_link=yes
49924 else
49925 echo "$as_me: failed program was:" >&5
49926 sed 's/^/| /' conftest.$ac_ext >&5
49928 glibcxx_cv_func___builtin_sinl_link=no
49930 rm -f conftest.err conftest.$ac_objext \
49931 conftest$ac_exeext conftest.$ac_ext
49936 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
49937 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
49938 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
49939 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49940 cat >>confdefs.h <<_ACEOF
49941 #define ${ac_tr_func} 1
49942 _ACEOF
49949 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
49950 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
49951 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
49952 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
49953 echo $ECHO_N "(cached) $ECHO_C" >&6
49954 else
49958 ac_ext=cc
49959 ac_cpp='$CXXCPP $CPPFLAGS'
49960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49964 cat >conftest.$ac_ext <<_ACEOF
49965 /* confdefs.h. */
49966 _ACEOF
49967 cat confdefs.h >>conftest.$ac_ext
49968 cat >>conftest.$ac_ext <<_ACEOF
49969 /* end confdefs.h. */
49970 #include <math.h>
49972 main ()
49974 __builtin_cosf(0);
49976 return 0;
49978 _ACEOF
49979 rm -f conftest.$ac_objext
49980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49981 (eval $ac_compile) 2>conftest.er1
49982 ac_status=$?
49983 grep -v '^ *+' conftest.er1 >conftest.err
49984 rm -f conftest.er1
49985 cat conftest.err >&5
49986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49987 (exit $ac_status); } &&
49988 { ac_try='test -z "$ac_cxx_werror_flag"
49989 || test ! -s conftest.err'
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); }; } &&
49995 { ac_try='test -s conftest.$ac_objext'
49996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49997 (eval $ac_try) 2>&5
49998 ac_status=$?
49999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50000 (exit $ac_status); }; }; then
50001 glibcxx_cv_func___builtin_cosf_use=yes
50002 else
50003 echo "$as_me: failed program was:" >&5
50004 sed 's/^/| /' conftest.$ac_ext >&5
50006 glibcxx_cv_func___builtin_cosf_use=no
50008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50009 ac_ext=c
50010 ac_cpp='$CPP $CPPFLAGS'
50011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50019 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50020 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50021 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50022 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50023 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50024 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50025 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50026 echo $ECHO_N "(cached) $ECHO_C" >&6
50027 else
50029 if test x$gcc_no_link = xyes; then
50030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50032 { (exit 1); exit 1; }; }
50034 cat >conftest.$ac_ext <<_ACEOF
50035 /* confdefs.h. */
50036 _ACEOF
50037 cat confdefs.h >>conftest.$ac_ext
50038 cat >>conftest.$ac_ext <<_ACEOF
50039 /* end confdefs.h. */
50040 #include <math.h>
50042 main ()
50044 __builtin_cosf(0);
50046 return 0;
50048 _ACEOF
50049 rm -f conftest.$ac_objext conftest$ac_exeext
50050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50051 (eval $ac_link) 2>conftest.er1
50052 ac_status=$?
50053 grep -v '^ *+' conftest.er1 >conftest.err
50054 rm -f conftest.er1
50055 cat conftest.err >&5
50056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50057 (exit $ac_status); } &&
50058 { ac_try='test -z "$ac_c_werror_flag"
50059 || test ! -s conftest.err'
50060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50061 (eval $ac_try) 2>&5
50062 ac_status=$?
50063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50064 (exit $ac_status); }; } &&
50065 { ac_try='test -s conftest$ac_exeext'
50066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067 (eval $ac_try) 2>&5
50068 ac_status=$?
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); }; }; then
50071 glibcxx_cv_func___builtin_cosf_link=yes
50072 else
50073 echo "$as_me: failed program was:" >&5
50074 sed 's/^/| /' conftest.$ac_ext >&5
50076 glibcxx_cv_func___builtin_cosf_link=no
50078 rm -f conftest.err conftest.$ac_objext \
50079 conftest$ac_exeext conftest.$ac_ext
50084 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50085 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50086 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50087 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50088 cat >>confdefs.h <<_ACEOF
50089 #define ${ac_tr_func} 1
50090 _ACEOF
50096 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50097 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50098 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50099 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50100 echo $ECHO_N "(cached) $ECHO_C" >&6
50101 else
50105 ac_ext=cc
50106 ac_cpp='$CXXCPP $CPPFLAGS'
50107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50111 cat >conftest.$ac_ext <<_ACEOF
50112 /* confdefs.h. */
50113 _ACEOF
50114 cat confdefs.h >>conftest.$ac_ext
50115 cat >>conftest.$ac_ext <<_ACEOF
50116 /* end confdefs.h. */
50117 #include <math.h>
50119 main ()
50121 __builtin_cos(0);
50123 return 0;
50125 _ACEOF
50126 rm -f conftest.$ac_objext
50127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50128 (eval $ac_compile) 2>conftest.er1
50129 ac_status=$?
50130 grep -v '^ *+' conftest.er1 >conftest.err
50131 rm -f conftest.er1
50132 cat conftest.err >&5
50133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134 (exit $ac_status); } &&
50135 { ac_try='test -z "$ac_cxx_werror_flag"
50136 || test ! -s conftest.err'
50137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50138 (eval $ac_try) 2>&5
50139 ac_status=$?
50140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50141 (exit $ac_status); }; } &&
50142 { ac_try='test -s conftest.$ac_objext'
50143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50144 (eval $ac_try) 2>&5
50145 ac_status=$?
50146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50147 (exit $ac_status); }; }; then
50148 glibcxx_cv_func___builtin_cos_use=yes
50149 else
50150 echo "$as_me: failed program was:" >&5
50151 sed 's/^/| /' conftest.$ac_ext >&5
50153 glibcxx_cv_func___builtin_cos_use=no
50155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50156 ac_ext=c
50157 ac_cpp='$CPP $CPPFLAGS'
50158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50166 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50167 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50168 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50169 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50170 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50171 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50172 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50173 echo $ECHO_N "(cached) $ECHO_C" >&6
50174 else
50176 if test x$gcc_no_link = xyes; then
50177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50179 { (exit 1); exit 1; }; }
50181 cat >conftest.$ac_ext <<_ACEOF
50182 /* confdefs.h. */
50183 _ACEOF
50184 cat confdefs.h >>conftest.$ac_ext
50185 cat >>conftest.$ac_ext <<_ACEOF
50186 /* end confdefs.h. */
50187 #include <math.h>
50189 main ()
50191 __builtin_cos(0);
50193 return 0;
50195 _ACEOF
50196 rm -f conftest.$ac_objext conftest$ac_exeext
50197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50198 (eval $ac_link) 2>conftest.er1
50199 ac_status=$?
50200 grep -v '^ *+' conftest.er1 >conftest.err
50201 rm -f conftest.er1
50202 cat conftest.err >&5
50203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50204 (exit $ac_status); } &&
50205 { ac_try='test -z "$ac_c_werror_flag"
50206 || test ! -s conftest.err'
50207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50208 (eval $ac_try) 2>&5
50209 ac_status=$?
50210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50211 (exit $ac_status); }; } &&
50212 { ac_try='test -s conftest$ac_exeext'
50213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50214 (eval $ac_try) 2>&5
50215 ac_status=$?
50216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50217 (exit $ac_status); }; }; then
50218 glibcxx_cv_func___builtin_cos_link=yes
50219 else
50220 echo "$as_me: failed program was:" >&5
50221 sed 's/^/| /' conftest.$ac_ext >&5
50223 glibcxx_cv_func___builtin_cos_link=no
50225 rm -f conftest.err conftest.$ac_objext \
50226 conftest$ac_exeext conftest.$ac_ext
50231 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50232 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50233 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50234 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50235 cat >>confdefs.h <<_ACEOF
50236 #define ${ac_tr_func} 1
50237 _ACEOF
50243 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50244 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50245 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50246 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50247 echo $ECHO_N "(cached) $ECHO_C" >&6
50248 else
50252 ac_ext=cc
50253 ac_cpp='$CXXCPP $CPPFLAGS'
50254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50258 cat >conftest.$ac_ext <<_ACEOF
50259 /* confdefs.h. */
50260 _ACEOF
50261 cat confdefs.h >>conftest.$ac_ext
50262 cat >>conftest.$ac_ext <<_ACEOF
50263 /* end confdefs.h. */
50264 #include <math.h>
50266 main ()
50268 __builtin_cosl(0);
50270 return 0;
50272 _ACEOF
50273 rm -f conftest.$ac_objext
50274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50275 (eval $ac_compile) 2>conftest.er1
50276 ac_status=$?
50277 grep -v '^ *+' conftest.er1 >conftest.err
50278 rm -f conftest.er1
50279 cat conftest.err >&5
50280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50281 (exit $ac_status); } &&
50282 { ac_try='test -z "$ac_cxx_werror_flag"
50283 || test ! -s conftest.err'
50284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50285 (eval $ac_try) 2>&5
50286 ac_status=$?
50287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50288 (exit $ac_status); }; } &&
50289 { ac_try='test -s conftest.$ac_objext'
50290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50291 (eval $ac_try) 2>&5
50292 ac_status=$?
50293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50294 (exit $ac_status); }; }; then
50295 glibcxx_cv_func___builtin_cosl_use=yes
50296 else
50297 echo "$as_me: failed program was:" >&5
50298 sed 's/^/| /' conftest.$ac_ext >&5
50300 glibcxx_cv_func___builtin_cosl_use=no
50302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50303 ac_ext=c
50304 ac_cpp='$CPP $CPPFLAGS'
50305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50313 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50314 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50315 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50316 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50317 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50318 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50319 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50320 echo $ECHO_N "(cached) $ECHO_C" >&6
50321 else
50323 if test x$gcc_no_link = xyes; then
50324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50326 { (exit 1); exit 1; }; }
50328 cat >conftest.$ac_ext <<_ACEOF
50329 /* confdefs.h. */
50330 _ACEOF
50331 cat confdefs.h >>conftest.$ac_ext
50332 cat >>conftest.$ac_ext <<_ACEOF
50333 /* end confdefs.h. */
50334 #include <math.h>
50336 main ()
50338 __builtin_cosl(0);
50340 return 0;
50342 _ACEOF
50343 rm -f conftest.$ac_objext conftest$ac_exeext
50344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50345 (eval $ac_link) 2>conftest.er1
50346 ac_status=$?
50347 grep -v '^ *+' conftest.er1 >conftest.err
50348 rm -f conftest.er1
50349 cat conftest.err >&5
50350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50351 (exit $ac_status); } &&
50352 { ac_try='test -z "$ac_c_werror_flag"
50353 || test ! -s conftest.err'
50354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50355 (eval $ac_try) 2>&5
50356 ac_status=$?
50357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50358 (exit $ac_status); }; } &&
50359 { ac_try='test -s conftest$ac_exeext'
50360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50361 (eval $ac_try) 2>&5
50362 ac_status=$?
50363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50364 (exit $ac_status); }; }; then
50365 glibcxx_cv_func___builtin_cosl_link=yes
50366 else
50367 echo "$as_me: failed program was:" >&5
50368 sed 's/^/| /' conftest.$ac_ext >&5
50370 glibcxx_cv_func___builtin_cosl_link=no
50372 rm -f conftest.err conftest.$ac_objext \
50373 conftest$ac_exeext conftest.$ac_ext
50378 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50379 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50380 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50381 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50382 cat >>confdefs.h <<_ACEOF
50383 #define ${ac_tr_func} 1
50384 _ACEOF
50390 dummyvar=no
50391 if test x$dummyvar = x"yes"; then
50392 cat >>confdefs.h <<\_ACEOF
50393 #define HAVE___BUILTIN_ABS 1
50394 _ACEOF
50396 cat >>confdefs.h <<\_ACEOF
50397 #define HAVE___BUILTIN_LABS 1
50398 _ACEOF
50400 cat >>confdefs.h <<\_ACEOF
50401 #define HAVE___BUILTIN_COS 1
50402 _ACEOF
50404 cat >>confdefs.h <<\_ACEOF
50405 #define HAVE___BUILTIN_COSF 1
50406 _ACEOF
50408 cat >>confdefs.h <<\_ACEOF
50409 #define HAVE___BUILTIN_COSL 1
50410 _ACEOF
50412 cat >>confdefs.h <<\_ACEOF
50413 #define HAVE___BUILTIN_FABS 1
50414 _ACEOF
50416 cat >>confdefs.h <<\_ACEOF
50417 #define HAVE___BUILTIN_FABSF 1
50418 _ACEOF
50420 cat >>confdefs.h <<\_ACEOF
50421 #define HAVE___BUILTIN_FABSL 1
50422 _ACEOF
50424 cat >>confdefs.h <<\_ACEOF
50425 #define HAVE___BUILTIN_SIN 1
50426 _ACEOF
50428 cat >>confdefs.h <<\_ACEOF
50429 #define HAVE___BUILTIN_SINF 1
50430 _ACEOF
50432 cat >>confdefs.h <<\_ACEOF
50433 #define HAVE___BUILTIN_SINL 1
50434 _ACEOF
50436 cat >>confdefs.h <<\_ACEOF
50437 #define HAVE___BUILTIN_SQRT 1
50438 _ACEOF
50440 cat >>confdefs.h <<\_ACEOF
50441 #define HAVE___BUILTIN_SQRTF 1
50442 _ACEOF
50444 cat >>confdefs.h <<\_ACEOF
50445 #define HAVE___BUILTIN_SQRTL 1
50446 _ACEOF
50452 echo "$as_me:$LINENO: checking for main in -lm" >&5
50453 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50454 if test "${ac_cv_lib_m_main+set}" = set; then
50455 echo $ECHO_N "(cached) $ECHO_C" >&6
50456 else
50457 ac_check_lib_save_LIBS=$LIBS
50458 LIBS="-lm $LIBS"
50459 if test x$gcc_no_link = xyes; then
50460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50462 { (exit 1); exit 1; }; }
50464 cat >conftest.$ac_ext <<_ACEOF
50465 /* confdefs.h. */
50466 _ACEOF
50467 cat confdefs.h >>conftest.$ac_ext
50468 cat >>conftest.$ac_ext <<_ACEOF
50469 /* end confdefs.h. */
50473 main ()
50475 main ();
50477 return 0;
50479 _ACEOF
50480 rm -f conftest.$ac_objext conftest$ac_exeext
50481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50482 (eval $ac_link) 2>conftest.er1
50483 ac_status=$?
50484 grep -v '^ *+' conftest.er1 >conftest.err
50485 rm -f conftest.er1
50486 cat conftest.err >&5
50487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50488 (exit $ac_status); } &&
50489 { ac_try='test -z "$ac_c_werror_flag"
50490 || test ! -s conftest.err'
50491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50492 (eval $ac_try) 2>&5
50493 ac_status=$?
50494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50495 (exit $ac_status); }; } &&
50496 { ac_try='test -s conftest$ac_exeext'
50497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50498 (eval $ac_try) 2>&5
50499 ac_status=$?
50500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501 (exit $ac_status); }; }; then
50502 ac_cv_lib_m_main=yes
50503 else
50504 echo "$as_me: failed program was:" >&5
50505 sed 's/^/| /' conftest.$ac_ext >&5
50507 ac_cv_lib_m_main=no
50509 rm -f conftest.err conftest.$ac_objext \
50510 conftest$ac_exeext conftest.$ac_ext
50511 LIBS=$ac_check_lib_save_LIBS
50513 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50514 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50515 if test $ac_cv_lib_m_main = yes; then
50516 cat >>confdefs.h <<_ACEOF
50517 #define HAVE_LIBM 1
50518 _ACEOF
50520 LIBS="-lm $LIBS"
50525 for ac_func in copysignf
50527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50528 echo "$as_me:$LINENO: checking for $ac_func" >&5
50529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50530 if eval "test \"\${$as_ac_var+set}\" = set"; then
50531 echo $ECHO_N "(cached) $ECHO_C" >&6
50532 else
50533 if test x$gcc_no_link = xyes; then
50534 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50536 { (exit 1); exit 1; }; }
50538 cat >conftest.$ac_ext <<_ACEOF
50539 /* confdefs.h. */
50540 _ACEOF
50541 cat confdefs.h >>conftest.$ac_ext
50542 cat >>conftest.$ac_ext <<_ACEOF
50543 /* end confdefs.h. */
50544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50546 #define $ac_func innocuous_$ac_func
50548 /* System header to define __stub macros and hopefully few prototypes,
50549 which can conflict with char $ac_func (); below.
50550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50551 <limits.h> exists even on freestanding compilers. */
50553 #ifdef __STDC__
50554 # include <limits.h>
50555 #else
50556 # include <assert.h>
50557 #endif
50559 #undef $ac_func
50561 /* Override any gcc2 internal prototype to avoid an error. */
50562 #ifdef __cplusplus
50563 extern "C"
50565 #endif
50566 /* We use char because int might match the return type of a gcc2
50567 builtin and then its argument prototype would still apply. */
50568 char $ac_func ();
50569 /* The GNU C library defines this for functions which it implements
50570 to always fail with ENOSYS. Some functions are actually named
50571 something starting with __ and the normal name is an alias. */
50572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50573 choke me
50574 #else
50575 char (*f) () = $ac_func;
50576 #endif
50577 #ifdef __cplusplus
50579 #endif
50582 main ()
50584 return f != $ac_func;
50586 return 0;
50588 _ACEOF
50589 rm -f conftest.$ac_objext conftest$ac_exeext
50590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50591 (eval $ac_link) 2>conftest.er1
50592 ac_status=$?
50593 grep -v '^ *+' conftest.er1 >conftest.err
50594 rm -f conftest.er1
50595 cat conftest.err >&5
50596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50597 (exit $ac_status); } &&
50598 { ac_try='test -z "$ac_c_werror_flag"
50599 || test ! -s conftest.err'
50600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50601 (eval $ac_try) 2>&5
50602 ac_status=$?
50603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50604 (exit $ac_status); }; } &&
50605 { ac_try='test -s conftest$ac_exeext'
50606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50607 (eval $ac_try) 2>&5
50608 ac_status=$?
50609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50610 (exit $ac_status); }; }; then
50611 eval "$as_ac_var=yes"
50612 else
50613 echo "$as_me: failed program was:" >&5
50614 sed 's/^/| /' conftest.$ac_ext >&5
50616 eval "$as_ac_var=no"
50618 rm -f conftest.err conftest.$ac_objext \
50619 conftest$ac_exeext conftest.$ac_ext
50621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50623 if test `eval echo '${'$as_ac_var'}'` = yes; then
50624 cat >>confdefs.h <<_ACEOF
50625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50626 _ACEOF
50628 else
50629 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50631 done
50635 for ac_func in __signbit
50637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50638 echo "$as_me:$LINENO: checking for $ac_func" >&5
50639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50640 if eval "test \"\${$as_ac_var+set}\" = set"; then
50641 echo $ECHO_N "(cached) $ECHO_C" >&6
50642 else
50643 if test x$gcc_no_link = xyes; then
50644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50646 { (exit 1); exit 1; }; }
50648 cat >conftest.$ac_ext <<_ACEOF
50649 /* confdefs.h. */
50650 _ACEOF
50651 cat confdefs.h >>conftest.$ac_ext
50652 cat >>conftest.$ac_ext <<_ACEOF
50653 /* end confdefs.h. */
50654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50656 #define $ac_func innocuous_$ac_func
50658 /* System header to define __stub macros and hopefully few prototypes,
50659 which can conflict with char $ac_func (); below.
50660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50661 <limits.h> exists even on freestanding compilers. */
50663 #ifdef __STDC__
50664 # include <limits.h>
50665 #else
50666 # include <assert.h>
50667 #endif
50669 #undef $ac_func
50671 /* Override any gcc2 internal prototype to avoid an error. */
50672 #ifdef __cplusplus
50673 extern "C"
50675 #endif
50676 /* We use char because int might match the return type of a gcc2
50677 builtin and then its argument prototype would still apply. */
50678 char $ac_func ();
50679 /* The GNU C library defines this for functions which it implements
50680 to always fail with ENOSYS. Some functions are actually named
50681 something starting with __ and the normal name is an alias. */
50682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50683 choke me
50684 #else
50685 char (*f) () = $ac_func;
50686 #endif
50687 #ifdef __cplusplus
50689 #endif
50692 main ()
50694 return f != $ac_func;
50696 return 0;
50698 _ACEOF
50699 rm -f conftest.$ac_objext conftest$ac_exeext
50700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50701 (eval $ac_link) 2>conftest.er1
50702 ac_status=$?
50703 grep -v '^ *+' conftest.er1 >conftest.err
50704 rm -f conftest.er1
50705 cat conftest.err >&5
50706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50707 (exit $ac_status); } &&
50708 { ac_try='test -z "$ac_c_werror_flag"
50709 || test ! -s conftest.err'
50710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50711 (eval $ac_try) 2>&5
50712 ac_status=$?
50713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50714 (exit $ac_status); }; } &&
50715 { ac_try='test -s conftest$ac_exeext'
50716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50717 (eval $ac_try) 2>&5
50718 ac_status=$?
50719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50720 (exit $ac_status); }; }; then
50721 eval "$as_ac_var=yes"
50722 else
50723 echo "$as_me: failed program was:" >&5
50724 sed 's/^/| /' conftest.$ac_ext >&5
50726 eval "$as_ac_var=no"
50728 rm -f conftest.err conftest.$ac_objext \
50729 conftest$ac_exeext conftest.$ac_ext
50731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50733 if test `eval echo '${'$as_ac_var'}'` = yes; then
50734 cat >>confdefs.h <<_ACEOF
50735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50736 _ACEOF
50738 else
50739 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50741 done
50744 for ac_func in __signbitf
50746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50747 echo "$as_me:$LINENO: checking for $ac_func" >&5
50748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50749 if eval "test \"\${$as_ac_var+set}\" = set"; then
50750 echo $ECHO_N "(cached) $ECHO_C" >&6
50751 else
50752 if test x$gcc_no_link = xyes; then
50753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50755 { (exit 1); exit 1; }; }
50757 cat >conftest.$ac_ext <<_ACEOF
50758 /* confdefs.h. */
50759 _ACEOF
50760 cat confdefs.h >>conftest.$ac_ext
50761 cat >>conftest.$ac_ext <<_ACEOF
50762 /* end confdefs.h. */
50763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50765 #define $ac_func innocuous_$ac_func
50767 /* System header to define __stub macros and hopefully few prototypes,
50768 which can conflict with char $ac_func (); below.
50769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50770 <limits.h> exists even on freestanding compilers. */
50772 #ifdef __STDC__
50773 # include <limits.h>
50774 #else
50775 # include <assert.h>
50776 #endif
50778 #undef $ac_func
50780 /* Override any gcc2 internal prototype to avoid an error. */
50781 #ifdef __cplusplus
50782 extern "C"
50784 #endif
50785 /* We use char because int might match the return type of a gcc2
50786 builtin and then its argument prototype would still apply. */
50787 char $ac_func ();
50788 /* The GNU C library defines this for functions which it implements
50789 to always fail with ENOSYS. Some functions are actually named
50790 something starting with __ and the normal name is an alias. */
50791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50792 choke me
50793 #else
50794 char (*f) () = $ac_func;
50795 #endif
50796 #ifdef __cplusplus
50798 #endif
50801 main ()
50803 return f != $ac_func;
50805 return 0;
50807 _ACEOF
50808 rm -f conftest.$ac_objext conftest$ac_exeext
50809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50810 (eval $ac_link) 2>conftest.er1
50811 ac_status=$?
50812 grep -v '^ *+' conftest.er1 >conftest.err
50813 rm -f conftest.er1
50814 cat conftest.err >&5
50815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50816 (exit $ac_status); } &&
50817 { ac_try='test -z "$ac_c_werror_flag"
50818 || test ! -s conftest.err'
50819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50820 (eval $ac_try) 2>&5
50821 ac_status=$?
50822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50823 (exit $ac_status); }; } &&
50824 { ac_try='test -s conftest$ac_exeext'
50825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50826 (eval $ac_try) 2>&5
50827 ac_status=$?
50828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50829 (exit $ac_status); }; }; then
50830 eval "$as_ac_var=yes"
50831 else
50832 echo "$as_me: failed program was:" >&5
50833 sed 's/^/| /' conftest.$ac_ext >&5
50835 eval "$as_ac_var=no"
50837 rm -f conftest.err conftest.$ac_objext \
50838 conftest$ac_exeext conftest.$ac_ext
50840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50842 if test `eval echo '${'$as_ac_var'}'` = yes; then
50843 cat >>confdefs.h <<_ACEOF
50844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50845 _ACEOF
50847 else
50848 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50850 done
50853 if test x$ac_cv_func_copysignl = x"yes"; then
50855 for ac_func in __signbitl
50857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50858 echo "$as_me:$LINENO: checking for $ac_func" >&5
50859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50860 if eval "test \"\${$as_ac_var+set}\" = set"; then
50861 echo $ECHO_N "(cached) $ECHO_C" >&6
50862 else
50863 if test x$gcc_no_link = xyes; then
50864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50866 { (exit 1); exit 1; }; }
50868 cat >conftest.$ac_ext <<_ACEOF
50869 /* confdefs.h. */
50870 _ACEOF
50871 cat confdefs.h >>conftest.$ac_ext
50872 cat >>conftest.$ac_ext <<_ACEOF
50873 /* end confdefs.h. */
50874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50876 #define $ac_func innocuous_$ac_func
50878 /* System header to define __stub macros and hopefully few prototypes,
50879 which can conflict with char $ac_func (); below.
50880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50881 <limits.h> exists even on freestanding compilers. */
50883 #ifdef __STDC__
50884 # include <limits.h>
50885 #else
50886 # include <assert.h>
50887 #endif
50889 #undef $ac_func
50891 /* Override any gcc2 internal prototype to avoid an error. */
50892 #ifdef __cplusplus
50893 extern "C"
50895 #endif
50896 /* We use char because int might match the return type of a gcc2
50897 builtin and then its argument prototype would still apply. */
50898 char $ac_func ();
50899 /* The GNU C library defines this for functions which it implements
50900 to always fail with ENOSYS. Some functions are actually named
50901 something starting with __ and the normal name is an alias. */
50902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50903 choke me
50904 #else
50905 char (*f) () = $ac_func;
50906 #endif
50907 #ifdef __cplusplus
50909 #endif
50912 main ()
50914 return f != $ac_func;
50916 return 0;
50918 _ACEOF
50919 rm -f conftest.$ac_objext conftest$ac_exeext
50920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50921 (eval $ac_link) 2>conftest.er1
50922 ac_status=$?
50923 grep -v '^ *+' conftest.er1 >conftest.err
50924 rm -f conftest.er1
50925 cat conftest.err >&5
50926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50927 (exit $ac_status); } &&
50928 { ac_try='test -z "$ac_c_werror_flag"
50929 || test ! -s conftest.err'
50930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50931 (eval $ac_try) 2>&5
50932 ac_status=$?
50933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50934 (exit $ac_status); }; } &&
50935 { ac_try='test -s conftest$ac_exeext'
50936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50937 (eval $ac_try) 2>&5
50938 ac_status=$?
50939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50940 (exit $ac_status); }; }; then
50941 eval "$as_ac_var=yes"
50942 else
50943 echo "$as_me: failed program was:" >&5
50944 sed 's/^/| /' conftest.$ac_ext >&5
50946 eval "$as_ac_var=no"
50948 rm -f conftest.err conftest.$ac_objext \
50949 conftest$ac_exeext conftest.$ac_ext
50951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50953 if test `eval echo '${'$as_ac_var'}'` = yes; then
50954 cat >>confdefs.h <<_ACEOF
50955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50956 _ACEOF
50958 else
50959 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
50961 done
50965 # XXX Review this. Nothing uses it.
50966 if test -n "$LIBMATHOBJS"; then
50967 need_libmath=yes
50972 # Test wchar.h for mbstate_t, which is needed for char_traits and
50973 # others even if wchar_t support is not on.
50974 echo "$as_me:$LINENO: checking for mbstate_t" >&5
50975 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
50976 cat >conftest.$ac_ext <<_ACEOF
50977 /* confdefs.h. */
50978 _ACEOF
50979 cat confdefs.h >>conftest.$ac_ext
50980 cat >>conftest.$ac_ext <<_ACEOF
50981 /* end confdefs.h. */
50982 #include <wchar.h>
50984 main ()
50986 mbstate_t teststate;
50988 return 0;
50990 _ACEOF
50991 rm -f conftest.$ac_objext
50992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50993 (eval $ac_compile) 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_objext'
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 have_mbstate_t=yes
51014 else
51015 echo "$as_me: failed program was:" >&5
51016 sed 's/^/| /' conftest.$ac_ext >&5
51018 have_mbstate_t=no
51020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51021 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51022 echo "${ECHO_T}$have_mbstate_t" >&6
51023 if test x"$have_mbstate_t" = xyes; then
51024 cat >>confdefs.h <<\_ACEOF
51025 #define HAVE_MBSTATE_T 1
51026 _ACEOF
51030 # Sanity check for existence of ISO C99 headers for extended encoding.
51032 for ac_header in wchar.h
51034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51036 echo "$as_me:$LINENO: checking for $ac_header" >&5
51037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51039 echo $ECHO_N "(cached) $ECHO_C" >&6
51041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51043 else
51044 # Is the header compilable?
51045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51047 cat >conftest.$ac_ext <<_ACEOF
51048 /* confdefs.h. */
51049 _ACEOF
51050 cat confdefs.h >>conftest.$ac_ext
51051 cat >>conftest.$ac_ext <<_ACEOF
51052 /* end confdefs.h. */
51053 $ac_includes_default
51054 #include <$ac_header>
51055 _ACEOF
51056 rm -f conftest.$ac_objext
51057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51058 (eval $ac_compile) 2>conftest.er1
51059 ac_status=$?
51060 grep -v '^ *+' conftest.er1 >conftest.err
51061 rm -f conftest.er1
51062 cat conftest.err >&5
51063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51064 (exit $ac_status); } &&
51065 { ac_try='test -z "$ac_c_werror_flag"
51066 || test ! -s conftest.err'
51067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51068 (eval $ac_try) 2>&5
51069 ac_status=$?
51070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51071 (exit $ac_status); }; } &&
51072 { ac_try='test -s conftest.$ac_objext'
51073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51074 (eval $ac_try) 2>&5
51075 ac_status=$?
51076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51077 (exit $ac_status); }; }; then
51078 ac_header_compiler=yes
51079 else
51080 echo "$as_me: failed program was:" >&5
51081 sed 's/^/| /' conftest.$ac_ext >&5
51083 ac_header_compiler=no
51085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51087 echo "${ECHO_T}$ac_header_compiler" >&6
51089 # Is the header present?
51090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51092 cat >conftest.$ac_ext <<_ACEOF
51093 /* confdefs.h. */
51094 _ACEOF
51095 cat confdefs.h >>conftest.$ac_ext
51096 cat >>conftest.$ac_ext <<_ACEOF
51097 /* end confdefs.h. */
51098 #include <$ac_header>
51099 _ACEOF
51100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51102 ac_status=$?
51103 grep -v '^ *+' conftest.er1 >conftest.err
51104 rm -f conftest.er1
51105 cat conftest.err >&5
51106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51107 (exit $ac_status); } >/dev/null; then
51108 if test -s conftest.err; then
51109 ac_cpp_err=$ac_c_preproc_warn_flag
51110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51111 else
51112 ac_cpp_err=
51114 else
51115 ac_cpp_err=yes
51117 if test -z "$ac_cpp_err"; then
51118 ac_header_preproc=yes
51119 else
51120 echo "$as_me: failed program was:" >&5
51121 sed 's/^/| /' conftest.$ac_ext >&5
51123 ac_header_preproc=no
51125 rm -f conftest.err conftest.$ac_ext
51126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51127 echo "${ECHO_T}$ac_header_preproc" >&6
51129 # So? What about this header?
51130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51131 yes:no: )
51132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51136 ac_header_preproc=yes
51138 no:yes:* )
51139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51152 cat <<\_ASBOX
51153 ## ----------------------------------------- ##
51154 ## Report this to the package-unused lists. ##
51155 ## ----------------------------------------- ##
51156 _ASBOX
51158 sed "s/^/$as_me: WARNING: /" >&2
51160 esac
51161 echo "$as_me:$LINENO: checking for $ac_header" >&5
51162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51164 echo $ECHO_N "(cached) $ECHO_C" >&6
51165 else
51166 eval "$as_ac_Header=\$ac_header_preproc"
51168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51173 cat >>confdefs.h <<_ACEOF
51174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51175 _ACEOF
51176 ac_has_wchar_h=yes
51177 else
51178 ac_has_wchar_h=no
51181 done
51184 for ac_header in wctype.h
51186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51188 echo "$as_me:$LINENO: checking for $ac_header" >&5
51189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51191 echo $ECHO_N "(cached) $ECHO_C" >&6
51193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51195 else
51196 # Is the header compilable?
51197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51199 cat >conftest.$ac_ext <<_ACEOF
51200 /* confdefs.h. */
51201 _ACEOF
51202 cat confdefs.h >>conftest.$ac_ext
51203 cat >>conftest.$ac_ext <<_ACEOF
51204 /* end confdefs.h. */
51205 $ac_includes_default
51206 #include <$ac_header>
51207 _ACEOF
51208 rm -f conftest.$ac_objext
51209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51210 (eval $ac_compile) 2>conftest.er1
51211 ac_status=$?
51212 grep -v '^ *+' conftest.er1 >conftest.err
51213 rm -f conftest.er1
51214 cat conftest.err >&5
51215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51216 (exit $ac_status); } &&
51217 { ac_try='test -z "$ac_c_werror_flag"
51218 || test ! -s conftest.err'
51219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51220 (eval $ac_try) 2>&5
51221 ac_status=$?
51222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51223 (exit $ac_status); }; } &&
51224 { ac_try='test -s conftest.$ac_objext'
51225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51226 (eval $ac_try) 2>&5
51227 ac_status=$?
51228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51229 (exit $ac_status); }; }; then
51230 ac_header_compiler=yes
51231 else
51232 echo "$as_me: failed program was:" >&5
51233 sed 's/^/| /' conftest.$ac_ext >&5
51235 ac_header_compiler=no
51237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51239 echo "${ECHO_T}$ac_header_compiler" >&6
51241 # Is the header present?
51242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51244 cat >conftest.$ac_ext <<_ACEOF
51245 /* confdefs.h. */
51246 _ACEOF
51247 cat confdefs.h >>conftest.$ac_ext
51248 cat >>conftest.$ac_ext <<_ACEOF
51249 /* end confdefs.h. */
51250 #include <$ac_header>
51251 _ACEOF
51252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51254 ac_status=$?
51255 grep -v '^ *+' conftest.er1 >conftest.err
51256 rm -f conftest.er1
51257 cat conftest.err >&5
51258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51259 (exit $ac_status); } >/dev/null; then
51260 if test -s conftest.err; then
51261 ac_cpp_err=$ac_c_preproc_warn_flag
51262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51263 else
51264 ac_cpp_err=
51266 else
51267 ac_cpp_err=yes
51269 if test -z "$ac_cpp_err"; then
51270 ac_header_preproc=yes
51271 else
51272 echo "$as_me: failed program was:" >&5
51273 sed 's/^/| /' conftest.$ac_ext >&5
51275 ac_header_preproc=no
51277 rm -f conftest.err conftest.$ac_ext
51278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51279 echo "${ECHO_T}$ac_header_preproc" >&6
51281 # So? What about this header?
51282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51283 yes:no: )
51284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51288 ac_header_preproc=yes
51290 no:yes:* )
51291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51304 cat <<\_ASBOX
51305 ## ----------------------------------------- ##
51306 ## Report this to the package-unused lists. ##
51307 ## ----------------------------------------- ##
51308 _ASBOX
51310 sed "s/^/$as_me: WARNING: /" >&2
51312 esac
51313 echo "$as_me:$LINENO: checking for $ac_header" >&5
51314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51316 echo $ECHO_N "(cached) $ECHO_C" >&6
51317 else
51318 eval "$as_ac_Header=\$ac_header_preproc"
51320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51325 cat >>confdefs.h <<_ACEOF
51326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51327 _ACEOF
51328 ac_has_wctype_h=yes
51329 else
51330 ac_has_wctype_h=no
51333 done
51336 # Only continue checking if the ISO C99 headers exist and support is on.
51337 if test x"$ac_has_wchar_h" = xyes &&
51338 test x"$ac_has_wctype_h" = xyes &&
51339 test x"$enable_c_mbchar" != xno; then
51341 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51342 # numeric_limits can instantiate type_traits<wchar_t>
51343 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51344 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51345 cat >conftest.$ac_ext <<_ACEOF
51346 /* confdefs.h. */
51347 _ACEOF
51348 cat confdefs.h >>conftest.$ac_ext
51349 cat >>conftest.$ac_ext <<_ACEOF
51350 /* end confdefs.h. */
51351 #include <wchar.h>
51353 main ()
51355 int i = WCHAR_MIN; int j = WCHAR_MAX;
51357 return 0;
51359 _ACEOF
51360 rm -f conftest.$ac_objext
51361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51362 (eval $ac_compile) 2>conftest.er1
51363 ac_status=$?
51364 grep -v '^ *+' conftest.er1 >conftest.err
51365 rm -f conftest.er1
51366 cat conftest.err >&5
51367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51368 (exit $ac_status); } &&
51369 { ac_try='test -z "$ac_c_werror_flag"
51370 || test ! -s conftest.err'
51371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51372 (eval $ac_try) 2>&5
51373 ac_status=$?
51374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51375 (exit $ac_status); }; } &&
51376 { ac_try='test -s conftest.$ac_objext'
51377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51378 (eval $ac_try) 2>&5
51379 ac_status=$?
51380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51381 (exit $ac_status); }; }; then
51382 has_wchar_minmax=yes
51383 else
51384 echo "$as_me: failed program was:" >&5
51385 sed 's/^/| /' conftest.$ac_ext >&5
51387 has_wchar_minmax=no
51389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51390 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51391 echo "${ECHO_T}$has_wchar_minmax" >&6
51393 # Test wchar.h for WEOF, which is what we use to determine whether
51394 # to specialize for char_traits<wchar_t> or not.
51395 echo "$as_me:$LINENO: checking for WEOF" >&5
51396 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51397 cat >conftest.$ac_ext <<_ACEOF
51398 /* confdefs.h. */
51399 _ACEOF
51400 cat confdefs.h >>conftest.$ac_ext
51401 cat >>conftest.$ac_ext <<_ACEOF
51402 /* end confdefs.h. */
51404 #include <wchar.h>
51405 #include <stddef.h>
51407 main ()
51409 wint_t i = WEOF;
51411 return 0;
51413 _ACEOF
51414 rm -f conftest.$ac_objext
51415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51416 (eval $ac_compile) 2>conftest.er1
51417 ac_status=$?
51418 grep -v '^ *+' conftest.er1 >conftest.err
51419 rm -f conftest.er1
51420 cat conftest.err >&5
51421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422 (exit $ac_status); } &&
51423 { ac_try='test -z "$ac_c_werror_flag"
51424 || test ! -s conftest.err'
51425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51426 (eval $ac_try) 2>&5
51427 ac_status=$?
51428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51429 (exit $ac_status); }; } &&
51430 { ac_try='test -s conftest.$ac_objext'
51431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51432 (eval $ac_try) 2>&5
51433 ac_status=$?
51434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51435 (exit $ac_status); }; }; then
51436 has_weof=yes
51437 else
51438 echo "$as_me: failed program was:" >&5
51439 sed 's/^/| /' conftest.$ac_ext >&5
51441 has_weof=no
51443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51444 echo "$as_me:$LINENO: result: $has_weof" >&5
51445 echo "${ECHO_T}$has_weof" >&6
51447 # Tests for wide character functions used in char_traits<wchar_t>.
51448 ac_wfuncs=yes
51455 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51458 echo "$as_me:$LINENO: checking for $ac_func" >&5
51459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51460 if eval "test \"\${$as_ac_var+set}\" = set"; then
51461 echo $ECHO_N "(cached) $ECHO_C" >&6
51462 else
51463 if test x$gcc_no_link = xyes; then
51464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51466 { (exit 1); exit 1; }; }
51468 cat >conftest.$ac_ext <<_ACEOF
51469 /* confdefs.h. */
51470 _ACEOF
51471 cat confdefs.h >>conftest.$ac_ext
51472 cat >>conftest.$ac_ext <<_ACEOF
51473 /* end confdefs.h. */
51474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51476 #define $ac_func innocuous_$ac_func
51478 /* System header to define __stub macros and hopefully few prototypes,
51479 which can conflict with char $ac_func (); below.
51480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51481 <limits.h> exists even on freestanding compilers. */
51483 #ifdef __STDC__
51484 # include <limits.h>
51485 #else
51486 # include <assert.h>
51487 #endif
51489 #undef $ac_func
51491 /* Override any gcc2 internal prototype to avoid an error. */
51492 #ifdef __cplusplus
51493 extern "C"
51495 #endif
51496 /* We use char because int might match the return type of a gcc2
51497 builtin and then its argument prototype would still apply. */
51498 char $ac_func ();
51499 /* The GNU C library defines this for functions which it implements
51500 to always fail with ENOSYS. Some functions are actually named
51501 something starting with __ and the normal name is an alias. */
51502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51503 choke me
51504 #else
51505 char (*f) () = $ac_func;
51506 #endif
51507 #ifdef __cplusplus
51509 #endif
51512 main ()
51514 return f != $ac_func;
51516 return 0;
51518 _ACEOF
51519 rm -f conftest.$ac_objext conftest$ac_exeext
51520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51521 (eval $ac_link) 2>conftest.er1
51522 ac_status=$?
51523 grep -v '^ *+' conftest.er1 >conftest.err
51524 rm -f conftest.er1
51525 cat conftest.err >&5
51526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51527 (exit $ac_status); } &&
51528 { ac_try='test -z "$ac_c_werror_flag"
51529 || test ! -s conftest.err'
51530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51531 (eval $ac_try) 2>&5
51532 ac_status=$?
51533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51534 (exit $ac_status); }; } &&
51535 { ac_try='test -s conftest$ac_exeext'
51536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51537 (eval $ac_try) 2>&5
51538 ac_status=$?
51539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51540 (exit $ac_status); }; }; then
51541 eval "$as_ac_var=yes"
51542 else
51543 echo "$as_me: failed program was:" >&5
51544 sed 's/^/| /' conftest.$ac_ext >&5
51546 eval "$as_ac_var=no"
51548 rm -f conftest.err conftest.$ac_objext \
51549 conftest$ac_exeext conftest.$ac_ext
51551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51553 if test `eval echo '${'$as_ac_var'}'` = yes; then
51554 cat >>confdefs.h <<_ACEOF
51555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51556 _ACEOF
51558 else
51559 ac_wfuncs=no
51561 done
51564 # Checks for names injected into std:: by the c_std headers.
51611 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51612 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51613 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51614 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51615 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51616 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51619 echo "$as_me:$LINENO: checking for $ac_func" >&5
51620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51621 if eval "test \"\${$as_ac_var+set}\" = set"; then
51622 echo $ECHO_N "(cached) $ECHO_C" >&6
51623 else
51624 if test x$gcc_no_link = xyes; then
51625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51627 { (exit 1); exit 1; }; }
51629 cat >conftest.$ac_ext <<_ACEOF
51630 /* confdefs.h. */
51631 _ACEOF
51632 cat confdefs.h >>conftest.$ac_ext
51633 cat >>conftest.$ac_ext <<_ACEOF
51634 /* end confdefs.h. */
51635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51637 #define $ac_func innocuous_$ac_func
51639 /* System header to define __stub macros and hopefully few prototypes,
51640 which can conflict with char $ac_func (); below.
51641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51642 <limits.h> exists even on freestanding compilers. */
51644 #ifdef __STDC__
51645 # include <limits.h>
51646 #else
51647 # include <assert.h>
51648 #endif
51650 #undef $ac_func
51652 /* Override any gcc2 internal prototype to avoid an error. */
51653 #ifdef __cplusplus
51654 extern "C"
51656 #endif
51657 /* We use char because int might match the return type of a gcc2
51658 builtin and then its argument prototype would still apply. */
51659 char $ac_func ();
51660 /* The GNU C library defines this for functions which it implements
51661 to always fail with ENOSYS. Some functions are actually named
51662 something starting with __ and the normal name is an alias. */
51663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51664 choke me
51665 #else
51666 char (*f) () = $ac_func;
51667 #endif
51668 #ifdef __cplusplus
51670 #endif
51673 main ()
51675 return f != $ac_func;
51677 return 0;
51679 _ACEOF
51680 rm -f conftest.$ac_objext conftest$ac_exeext
51681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51682 (eval $ac_link) 2>conftest.er1
51683 ac_status=$?
51684 grep -v '^ *+' conftest.er1 >conftest.err
51685 rm -f conftest.er1
51686 cat conftest.err >&5
51687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51688 (exit $ac_status); } &&
51689 { ac_try='test -z "$ac_c_werror_flag"
51690 || test ! -s conftest.err'
51691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51692 (eval $ac_try) 2>&5
51693 ac_status=$?
51694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51695 (exit $ac_status); }; } &&
51696 { ac_try='test -s conftest$ac_exeext'
51697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51698 (eval $ac_try) 2>&5
51699 ac_status=$?
51700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51701 (exit $ac_status); }; }; then
51702 eval "$as_ac_var=yes"
51703 else
51704 echo "$as_me: failed program was:" >&5
51705 sed 's/^/| /' conftest.$ac_ext >&5
51707 eval "$as_ac_var=no"
51709 rm -f conftest.err conftest.$ac_objext \
51710 conftest$ac_exeext conftest.$ac_ext
51712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51714 if test `eval echo '${'$as_ac_var'}'` = yes; then
51715 cat >>confdefs.h <<_ACEOF
51716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51717 _ACEOF
51719 else
51720 ac_wfuncs=no
51722 done
51725 # Checks for wide character functions that are not required
51726 # for basic wchar_t support. Don't disable support if they are missing.
51727 # Injection of these is wrapped with guard macros.
51733 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51736 echo "$as_me:$LINENO: checking for $ac_func" >&5
51737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51738 if eval "test \"\${$as_ac_var+set}\" = set"; then
51739 echo $ECHO_N "(cached) $ECHO_C" >&6
51740 else
51741 if test x$gcc_no_link = xyes; then
51742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51744 { (exit 1); exit 1; }; }
51746 cat >conftest.$ac_ext <<_ACEOF
51747 /* confdefs.h. */
51748 _ACEOF
51749 cat confdefs.h >>conftest.$ac_ext
51750 cat >>conftest.$ac_ext <<_ACEOF
51751 /* end confdefs.h. */
51752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51754 #define $ac_func innocuous_$ac_func
51756 /* System header to define __stub macros and hopefully few prototypes,
51757 which can conflict with char $ac_func (); below.
51758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51759 <limits.h> exists even on freestanding compilers. */
51761 #ifdef __STDC__
51762 # include <limits.h>
51763 #else
51764 # include <assert.h>
51765 #endif
51767 #undef $ac_func
51769 /* Override any gcc2 internal prototype to avoid an error. */
51770 #ifdef __cplusplus
51771 extern "C"
51773 #endif
51774 /* We use char because int might match the return type of a gcc2
51775 builtin and then its argument prototype would still apply. */
51776 char $ac_func ();
51777 /* The GNU C library defines this for functions which it implements
51778 to always fail with ENOSYS. Some functions are actually named
51779 something starting with __ and the normal name is an alias. */
51780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51781 choke me
51782 #else
51783 char (*f) () = $ac_func;
51784 #endif
51785 #ifdef __cplusplus
51787 #endif
51790 main ()
51792 return f != $ac_func;
51794 return 0;
51796 _ACEOF
51797 rm -f conftest.$ac_objext conftest$ac_exeext
51798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51799 (eval $ac_link) 2>conftest.er1
51800 ac_status=$?
51801 grep -v '^ *+' conftest.er1 >conftest.err
51802 rm -f conftest.er1
51803 cat conftest.err >&5
51804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51805 (exit $ac_status); } &&
51806 { ac_try='test -z "$ac_c_werror_flag"
51807 || test ! -s conftest.err'
51808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51809 (eval $ac_try) 2>&5
51810 ac_status=$?
51811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51812 (exit $ac_status); }; } &&
51813 { ac_try='test -s conftest$ac_exeext'
51814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51815 (eval $ac_try) 2>&5
51816 ac_status=$?
51817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818 (exit $ac_status); }; }; then
51819 eval "$as_ac_var=yes"
51820 else
51821 echo "$as_me: failed program was:" >&5
51822 sed 's/^/| /' conftest.$ac_ext >&5
51824 eval "$as_ac_var=no"
51826 rm -f conftest.err conftest.$ac_objext \
51827 conftest$ac_exeext conftest.$ac_ext
51829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51831 if test `eval echo '${'$as_ac_var'}'` = yes; then
51832 cat >>confdefs.h <<_ACEOF
51833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51834 _ACEOF
51837 done
51840 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51841 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51842 if test x"$has_weof" = xyes &&
51843 test x"$has_wchar_minmax" = xyes &&
51844 test x"$ac_wfuncs" = xyes;
51845 then
51846 ac_isoC99_wchar_t=yes
51847 else
51848 ac_isoC99_wchar_t=no
51850 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51851 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51853 # Use iconv for wchar_t to char conversions. As such, check for
51854 # X/Open Portability Guide, version 2 features (XPG2).
51855 if test "${ac_cv_header_iconv_h+set}" = set; then
51856 echo "$as_me:$LINENO: checking for iconv.h" >&5
51857 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51858 if test "${ac_cv_header_iconv_h+set}" = set; then
51859 echo $ECHO_N "(cached) $ECHO_C" >&6
51861 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51862 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51863 else
51864 # Is the header compilable?
51865 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51866 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51867 cat >conftest.$ac_ext <<_ACEOF
51868 /* confdefs.h. */
51869 _ACEOF
51870 cat confdefs.h >>conftest.$ac_ext
51871 cat >>conftest.$ac_ext <<_ACEOF
51872 /* end confdefs.h. */
51873 $ac_includes_default
51874 #include <iconv.h>
51875 _ACEOF
51876 rm -f conftest.$ac_objext
51877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51878 (eval $ac_compile) 2>conftest.er1
51879 ac_status=$?
51880 grep -v '^ *+' conftest.er1 >conftest.err
51881 rm -f conftest.er1
51882 cat conftest.err >&5
51883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51884 (exit $ac_status); } &&
51885 { ac_try='test -z "$ac_c_werror_flag"
51886 || test ! -s conftest.err'
51887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51888 (eval $ac_try) 2>&5
51889 ac_status=$?
51890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51891 (exit $ac_status); }; } &&
51892 { ac_try='test -s conftest.$ac_objext'
51893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51894 (eval $ac_try) 2>&5
51895 ac_status=$?
51896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897 (exit $ac_status); }; }; then
51898 ac_header_compiler=yes
51899 else
51900 echo "$as_me: failed program was:" >&5
51901 sed 's/^/| /' conftest.$ac_ext >&5
51903 ac_header_compiler=no
51905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51907 echo "${ECHO_T}$ac_header_compiler" >&6
51909 # Is the header present?
51910 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51911 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51912 cat >conftest.$ac_ext <<_ACEOF
51913 /* confdefs.h. */
51914 _ACEOF
51915 cat confdefs.h >>conftest.$ac_ext
51916 cat >>conftest.$ac_ext <<_ACEOF
51917 /* end confdefs.h. */
51918 #include <iconv.h>
51919 _ACEOF
51920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51922 ac_status=$?
51923 grep -v '^ *+' conftest.er1 >conftest.err
51924 rm -f conftest.er1
51925 cat conftest.err >&5
51926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51927 (exit $ac_status); } >/dev/null; then
51928 if test -s conftest.err; then
51929 ac_cpp_err=$ac_c_preproc_warn_flag
51930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51931 else
51932 ac_cpp_err=
51934 else
51935 ac_cpp_err=yes
51937 if test -z "$ac_cpp_err"; then
51938 ac_header_preproc=yes
51939 else
51940 echo "$as_me: failed program was:" >&5
51941 sed 's/^/| /' conftest.$ac_ext >&5
51943 ac_header_preproc=no
51945 rm -f conftest.err conftest.$ac_ext
51946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51947 echo "${ECHO_T}$ac_header_preproc" >&6
51949 # So? What about this header?
51950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51951 yes:no: )
51952 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
51953 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
51954 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
51955 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
51956 ac_header_preproc=yes
51958 no:yes:* )
51959 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
51960 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
51961 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
51962 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
51963 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
51964 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
51965 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
51966 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
51967 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
51968 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
51969 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
51970 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
51972 cat <<\_ASBOX
51973 ## ----------------------------------------- ##
51974 ## Report this to the package-unused lists. ##
51975 ## ----------------------------------------- ##
51976 _ASBOX
51978 sed "s/^/$as_me: WARNING: /" >&2
51980 esac
51981 echo "$as_me:$LINENO: checking for iconv.h" >&5
51982 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51983 if test "${ac_cv_header_iconv_h+set}" = set; then
51984 echo $ECHO_N "(cached) $ECHO_C" >&6
51985 else
51986 ac_cv_header_iconv_h=$ac_header_preproc
51988 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51989 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51992 if test $ac_cv_header_iconv_h = yes; then
51993 ac_has_iconv_h=yes
51994 else
51995 ac_has_iconv_h=no
51999 if test "${ac_cv_header_langinfo_h+set}" = set; then
52000 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52001 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52002 if test "${ac_cv_header_langinfo_h+set}" = set; then
52003 echo $ECHO_N "(cached) $ECHO_C" >&6
52005 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52006 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52007 else
52008 # Is the header compilable?
52009 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52010 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52011 cat >conftest.$ac_ext <<_ACEOF
52012 /* confdefs.h. */
52013 _ACEOF
52014 cat confdefs.h >>conftest.$ac_ext
52015 cat >>conftest.$ac_ext <<_ACEOF
52016 /* end confdefs.h. */
52017 $ac_includes_default
52018 #include <langinfo.h>
52019 _ACEOF
52020 rm -f conftest.$ac_objext
52021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52022 (eval $ac_compile) 2>conftest.er1
52023 ac_status=$?
52024 grep -v '^ *+' conftest.er1 >conftest.err
52025 rm -f conftest.er1
52026 cat conftest.err >&5
52027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52028 (exit $ac_status); } &&
52029 { ac_try='test -z "$ac_c_werror_flag"
52030 || test ! -s conftest.err'
52031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52032 (eval $ac_try) 2>&5
52033 ac_status=$?
52034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52035 (exit $ac_status); }; } &&
52036 { ac_try='test -s conftest.$ac_objext'
52037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52038 (eval $ac_try) 2>&5
52039 ac_status=$?
52040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52041 (exit $ac_status); }; }; then
52042 ac_header_compiler=yes
52043 else
52044 echo "$as_me: failed program was:" >&5
52045 sed 's/^/| /' conftest.$ac_ext >&5
52047 ac_header_compiler=no
52049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52051 echo "${ECHO_T}$ac_header_compiler" >&6
52053 # Is the header present?
52054 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52055 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52056 cat >conftest.$ac_ext <<_ACEOF
52057 /* confdefs.h. */
52058 _ACEOF
52059 cat confdefs.h >>conftest.$ac_ext
52060 cat >>conftest.$ac_ext <<_ACEOF
52061 /* end confdefs.h. */
52062 #include <langinfo.h>
52063 _ACEOF
52064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52066 ac_status=$?
52067 grep -v '^ *+' conftest.er1 >conftest.err
52068 rm -f conftest.er1
52069 cat conftest.err >&5
52070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52071 (exit $ac_status); } >/dev/null; then
52072 if test -s conftest.err; then
52073 ac_cpp_err=$ac_c_preproc_warn_flag
52074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52075 else
52076 ac_cpp_err=
52078 else
52079 ac_cpp_err=yes
52081 if test -z "$ac_cpp_err"; then
52082 ac_header_preproc=yes
52083 else
52084 echo "$as_me: failed program was:" >&5
52085 sed 's/^/| /' conftest.$ac_ext >&5
52087 ac_header_preproc=no
52089 rm -f conftest.err conftest.$ac_ext
52090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52091 echo "${ECHO_T}$ac_header_preproc" >&6
52093 # So? What about this header?
52094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52095 yes:no: )
52096 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52097 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52098 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52099 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52100 ac_header_preproc=yes
52102 no:yes:* )
52103 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52104 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52105 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52106 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52107 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52108 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52109 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
52110 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
52111 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52112 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52113 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52114 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52116 cat <<\_ASBOX
52117 ## ----------------------------------------- ##
52118 ## Report this to the package-unused lists. ##
52119 ## ----------------------------------------- ##
52120 _ASBOX
52122 sed "s/^/$as_me: WARNING: /" >&2
52124 esac
52125 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52126 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52127 if test "${ac_cv_header_langinfo_h+set}" = set; then
52128 echo $ECHO_N "(cached) $ECHO_C" >&6
52129 else
52130 ac_cv_header_langinfo_h=$ac_header_preproc
52132 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52133 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52136 if test $ac_cv_header_langinfo_h = yes; then
52137 ac_has_langinfo_h=yes
52138 else
52139 ac_has_langinfo_h=no
52144 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52145 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52146 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52147 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52148 echo $ECHO_N "(cached) $ECHO_C" >&6
52149 else
52150 ac_check_lib_save_LIBS=$LIBS
52151 LIBS="-liconv $LIBS"
52152 if test x$gcc_no_link = xyes; then
52153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52155 { (exit 1); exit 1; }; }
52157 cat >conftest.$ac_ext <<_ACEOF
52158 /* confdefs.h. */
52159 _ACEOF
52160 cat confdefs.h >>conftest.$ac_ext
52161 cat >>conftest.$ac_ext <<_ACEOF
52162 /* end confdefs.h. */
52164 /* Override any gcc2 internal prototype to avoid an error. */
52165 #ifdef __cplusplus
52166 extern "C"
52167 #endif
52168 /* We use char because int might match the return type of a gcc2
52169 builtin and then its argument prototype would still apply. */
52170 char iconv ();
52172 main ()
52174 iconv ();
52176 return 0;
52178 _ACEOF
52179 rm -f conftest.$ac_objext conftest$ac_exeext
52180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52181 (eval $ac_link) 2>conftest.er1
52182 ac_status=$?
52183 grep -v '^ *+' conftest.er1 >conftest.err
52184 rm -f conftest.er1
52185 cat conftest.err >&5
52186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52187 (exit $ac_status); } &&
52188 { ac_try='test -z "$ac_c_werror_flag"
52189 || test ! -s conftest.err'
52190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52191 (eval $ac_try) 2>&5
52192 ac_status=$?
52193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52194 (exit $ac_status); }; } &&
52195 { ac_try='test -s conftest$ac_exeext'
52196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52197 (eval $ac_try) 2>&5
52198 ac_status=$?
52199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52200 (exit $ac_status); }; }; then
52201 ac_cv_lib_iconv_iconv=yes
52202 else
52203 echo "$as_me: failed program was:" >&5
52204 sed 's/^/| /' conftest.$ac_ext >&5
52206 ac_cv_lib_iconv_iconv=no
52208 rm -f conftest.err conftest.$ac_objext \
52209 conftest$ac_exeext conftest.$ac_ext
52210 LIBS=$ac_check_lib_save_LIBS
52212 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52213 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52214 if test $ac_cv_lib_iconv_iconv = yes; then
52215 libiconv="-liconv"
52218 ac_save_LIBS="$LIBS"
52219 LIBS="$LIBS $libiconv"
52225 for ac_func in iconv_open iconv_close iconv nl_langinfo
52227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52228 echo "$as_me:$LINENO: checking for $ac_func" >&5
52229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52230 if eval "test \"\${$as_ac_var+set}\" = set"; then
52231 echo $ECHO_N "(cached) $ECHO_C" >&6
52232 else
52233 if test x$gcc_no_link = xyes; then
52234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52236 { (exit 1); exit 1; }; }
52238 cat >conftest.$ac_ext <<_ACEOF
52239 /* confdefs.h. */
52240 _ACEOF
52241 cat confdefs.h >>conftest.$ac_ext
52242 cat >>conftest.$ac_ext <<_ACEOF
52243 /* end confdefs.h. */
52244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52246 #define $ac_func innocuous_$ac_func
52248 /* System header to define __stub macros and hopefully few prototypes,
52249 which can conflict with char $ac_func (); below.
52250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52251 <limits.h> exists even on freestanding compilers. */
52253 #ifdef __STDC__
52254 # include <limits.h>
52255 #else
52256 # include <assert.h>
52257 #endif
52259 #undef $ac_func
52261 /* Override any gcc2 internal prototype to avoid an error. */
52262 #ifdef __cplusplus
52263 extern "C"
52265 #endif
52266 /* We use char because int might match the return type of a gcc2
52267 builtin and then its argument prototype would still apply. */
52268 char $ac_func ();
52269 /* The GNU C library defines this for functions which it implements
52270 to always fail with ENOSYS. Some functions are actually named
52271 something starting with __ and the normal name is an alias. */
52272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52273 choke me
52274 #else
52275 char (*f) () = $ac_func;
52276 #endif
52277 #ifdef __cplusplus
52279 #endif
52282 main ()
52284 return f != $ac_func;
52286 return 0;
52288 _ACEOF
52289 rm -f conftest.$ac_objext conftest$ac_exeext
52290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52291 (eval $ac_link) 2>conftest.er1
52292 ac_status=$?
52293 grep -v '^ *+' conftest.er1 >conftest.err
52294 rm -f conftest.er1
52295 cat conftest.err >&5
52296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52297 (exit $ac_status); } &&
52298 { ac_try='test -z "$ac_c_werror_flag"
52299 || test ! -s conftest.err'
52300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52301 (eval $ac_try) 2>&5
52302 ac_status=$?
52303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52304 (exit $ac_status); }; } &&
52305 { ac_try='test -s conftest$ac_exeext'
52306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52307 (eval $ac_try) 2>&5
52308 ac_status=$?
52309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52310 (exit $ac_status); }; }; then
52311 eval "$as_ac_var=yes"
52312 else
52313 echo "$as_me: failed program was:" >&5
52314 sed 's/^/| /' conftest.$ac_ext >&5
52316 eval "$as_ac_var=no"
52318 rm -f conftest.err conftest.$ac_objext \
52319 conftest$ac_exeext conftest.$ac_ext
52321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52323 if test `eval echo '${'$as_ac_var'}'` = yes; then
52324 cat >>confdefs.h <<_ACEOF
52325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52326 _ACEOF
52327 ac_XPG2funcs=yes
52328 else
52329 ac_XPG2funcs=no
52331 done
52334 LIBS="$ac_save_LIBS"
52336 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52337 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52338 if test x"$ac_has_iconv_h" = xyes &&
52339 test x"$ac_has_langinfo_h" = xyes &&
52340 test x"$ac_XPG2funcs" = xyes;
52341 then
52342 ac_XPG2_wchar_t=yes
52343 else
52344 ac_XPG2_wchar_t=no
52346 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52347 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52349 # At the moment, only enable wchar_t specializations if all the
52350 # above support is present.
52351 if test x"$ac_isoC99_wchar_t" = xyes &&
52352 test x"$ac_XPG2_wchar_t" = xyes;
52353 then
52354 cat >>confdefs.h <<\_ACEOF
52355 #define _GLIBCXX_USE_WCHAR_T 1
52356 _ACEOF
52358 enable_wchar_t=yes
52361 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52362 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52363 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52364 echo "${ECHO_T}$enable_wchar_t" >&6
52367 ac_test_CXXFLAGS="${CXXFLAGS+set}"
52368 ac_save_CXXFLAGS="$CXXFLAGS"
52369 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52372 echo "$as_me:$LINENO: checking for strtold declaration" >&5
52373 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52374 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52375 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52376 echo $ECHO_N "(cached) $ECHO_C" >&6
52377 else
52381 ac_ext=cc
52382 ac_cpp='$CXXCPP $CPPFLAGS'
52383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52387 cat >conftest.$ac_ext <<_ACEOF
52388 /* confdefs.h. */
52389 _ACEOF
52390 cat confdefs.h >>conftest.$ac_ext
52391 cat >>conftest.$ac_ext <<_ACEOF
52392 /* end confdefs.h. */
52393 #include <stdlib.h>
52395 main ()
52397 strtold(0, 0);
52399 return 0;
52401 _ACEOF
52402 rm -f conftest.$ac_objext
52403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52404 (eval $ac_compile) 2>conftest.er1
52405 ac_status=$?
52406 grep -v '^ *+' conftest.er1 >conftest.err
52407 rm -f conftest.er1
52408 cat conftest.err >&5
52409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52410 (exit $ac_status); } &&
52411 { ac_try='test -z "$ac_cxx_werror_flag"
52412 || test ! -s conftest.err'
52413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52414 (eval $ac_try) 2>&5
52415 ac_status=$?
52416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52417 (exit $ac_status); }; } &&
52418 { ac_try='test -s conftest.$ac_objext'
52419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52420 (eval $ac_try) 2>&5
52421 ac_status=$?
52422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52423 (exit $ac_status); }; }; then
52424 glibcxx_cv_func_strtold_use=yes
52425 else
52426 echo "$as_me: failed program was:" >&5
52427 sed 's/^/| /' conftest.$ac_ext >&5
52429 glibcxx_cv_func_strtold_use=no
52431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52432 ac_ext=c
52433 ac_cpp='$CPP $CPPFLAGS'
52434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52442 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52443 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52444 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52446 for ac_func in strtold
52448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52449 echo "$as_me:$LINENO: checking for $ac_func" >&5
52450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52451 if eval "test \"\${$as_ac_var+set}\" = set"; then
52452 echo $ECHO_N "(cached) $ECHO_C" >&6
52453 else
52454 if test x$gcc_no_link = xyes; then
52455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52457 { (exit 1); exit 1; }; }
52459 cat >conftest.$ac_ext <<_ACEOF
52460 /* confdefs.h. */
52461 _ACEOF
52462 cat confdefs.h >>conftest.$ac_ext
52463 cat >>conftest.$ac_ext <<_ACEOF
52464 /* end confdefs.h. */
52465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52467 #define $ac_func innocuous_$ac_func
52469 /* System header to define __stub macros and hopefully few prototypes,
52470 which can conflict with char $ac_func (); below.
52471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52472 <limits.h> exists even on freestanding compilers. */
52474 #ifdef __STDC__
52475 # include <limits.h>
52476 #else
52477 # include <assert.h>
52478 #endif
52480 #undef $ac_func
52482 /* Override any gcc2 internal prototype to avoid an error. */
52483 #ifdef __cplusplus
52484 extern "C"
52486 #endif
52487 /* We use char because int might match the return type of a gcc2
52488 builtin and then its argument prototype would still apply. */
52489 char $ac_func ();
52490 /* The GNU C library defines this for functions which it implements
52491 to always fail with ENOSYS. Some functions are actually named
52492 something starting with __ and the normal name is an alias. */
52493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52494 choke me
52495 #else
52496 char (*f) () = $ac_func;
52497 #endif
52498 #ifdef __cplusplus
52500 #endif
52503 main ()
52505 return f != $ac_func;
52507 return 0;
52509 _ACEOF
52510 rm -f conftest.$ac_objext conftest$ac_exeext
52511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52512 (eval $ac_link) 2>conftest.er1
52513 ac_status=$?
52514 grep -v '^ *+' conftest.er1 >conftest.err
52515 rm -f conftest.er1
52516 cat conftest.err >&5
52517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52518 (exit $ac_status); } &&
52519 { ac_try='test -z "$ac_c_werror_flag"
52520 || test ! -s conftest.err'
52521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52522 (eval $ac_try) 2>&5
52523 ac_status=$?
52524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52525 (exit $ac_status); }; } &&
52526 { ac_try='test -s conftest$ac_exeext'
52527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52528 (eval $ac_try) 2>&5
52529 ac_status=$?
52530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52531 (exit $ac_status); }; }; then
52532 eval "$as_ac_var=yes"
52533 else
52534 echo "$as_me: failed program was:" >&5
52535 sed 's/^/| /' conftest.$ac_ext >&5
52537 eval "$as_ac_var=no"
52539 rm -f conftest.err conftest.$ac_objext \
52540 conftest$ac_exeext conftest.$ac_ext
52542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52544 if test `eval echo '${'$as_ac_var'}'` = yes; then
52545 cat >>confdefs.h <<_ACEOF
52546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52547 _ACEOF
52550 done
52555 echo "$as_me:$LINENO: checking for strtof declaration" >&5
52556 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52557 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52558 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52559 echo $ECHO_N "(cached) $ECHO_C" >&6
52560 else
52564 ac_ext=cc
52565 ac_cpp='$CXXCPP $CPPFLAGS'
52566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52570 cat >conftest.$ac_ext <<_ACEOF
52571 /* confdefs.h. */
52572 _ACEOF
52573 cat confdefs.h >>conftest.$ac_ext
52574 cat >>conftest.$ac_ext <<_ACEOF
52575 /* end confdefs.h. */
52576 #include <stdlib.h>
52578 main ()
52580 strtof(0, 0);
52582 return 0;
52584 _ACEOF
52585 rm -f conftest.$ac_objext
52586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52587 (eval $ac_compile) 2>conftest.er1
52588 ac_status=$?
52589 grep -v '^ *+' conftest.er1 >conftest.err
52590 rm -f conftest.er1
52591 cat conftest.err >&5
52592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52593 (exit $ac_status); } &&
52594 { ac_try='test -z "$ac_cxx_werror_flag"
52595 || test ! -s conftest.err'
52596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52597 (eval $ac_try) 2>&5
52598 ac_status=$?
52599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52600 (exit $ac_status); }; } &&
52601 { ac_try='test -s conftest.$ac_objext'
52602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52603 (eval $ac_try) 2>&5
52604 ac_status=$?
52605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606 (exit $ac_status); }; }; then
52607 glibcxx_cv_func_strtof_use=yes
52608 else
52609 echo "$as_me: failed program was:" >&5
52610 sed 's/^/| /' conftest.$ac_ext >&5
52612 glibcxx_cv_func_strtof_use=no
52614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52615 ac_ext=c
52616 ac_cpp='$CPP $CPPFLAGS'
52617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52625 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52626 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52627 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52629 for ac_func in strtof
52631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52632 echo "$as_me:$LINENO: checking for $ac_func" >&5
52633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52634 if eval "test \"\${$as_ac_var+set}\" = set"; then
52635 echo $ECHO_N "(cached) $ECHO_C" >&6
52636 else
52637 if test x$gcc_no_link = xyes; then
52638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52640 { (exit 1); exit 1; }; }
52642 cat >conftest.$ac_ext <<_ACEOF
52643 /* confdefs.h. */
52644 _ACEOF
52645 cat confdefs.h >>conftest.$ac_ext
52646 cat >>conftest.$ac_ext <<_ACEOF
52647 /* end confdefs.h. */
52648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52650 #define $ac_func innocuous_$ac_func
52652 /* System header to define __stub macros and hopefully few prototypes,
52653 which can conflict with char $ac_func (); below.
52654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52655 <limits.h> exists even on freestanding compilers. */
52657 #ifdef __STDC__
52658 # include <limits.h>
52659 #else
52660 # include <assert.h>
52661 #endif
52663 #undef $ac_func
52665 /* Override any gcc2 internal prototype to avoid an error. */
52666 #ifdef __cplusplus
52667 extern "C"
52669 #endif
52670 /* We use char because int might match the return type of a gcc2
52671 builtin and then its argument prototype would still apply. */
52672 char $ac_func ();
52673 /* The GNU C library defines this for functions which it implements
52674 to always fail with ENOSYS. Some functions are actually named
52675 something starting with __ and the normal name is an alias. */
52676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52677 choke me
52678 #else
52679 char (*f) () = $ac_func;
52680 #endif
52681 #ifdef __cplusplus
52683 #endif
52686 main ()
52688 return f != $ac_func;
52690 return 0;
52692 _ACEOF
52693 rm -f conftest.$ac_objext conftest$ac_exeext
52694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52695 (eval $ac_link) 2>conftest.er1
52696 ac_status=$?
52697 grep -v '^ *+' conftest.er1 >conftest.err
52698 rm -f conftest.er1
52699 cat conftest.err >&5
52700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52701 (exit $ac_status); } &&
52702 { ac_try='test -z "$ac_c_werror_flag"
52703 || test ! -s conftest.err'
52704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52705 (eval $ac_try) 2>&5
52706 ac_status=$?
52707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52708 (exit $ac_status); }; } &&
52709 { ac_try='test -s conftest$ac_exeext'
52710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52711 (eval $ac_try) 2>&5
52712 ac_status=$?
52713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52714 (exit $ac_status); }; }; then
52715 eval "$as_ac_var=yes"
52716 else
52717 echo "$as_me: failed program was:" >&5
52718 sed 's/^/| /' conftest.$ac_ext >&5
52720 eval "$as_ac_var=no"
52722 rm -f conftest.err conftest.$ac_objext \
52723 conftest$ac_exeext conftest.$ac_ext
52725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52727 if test `eval echo '${'$as_ac_var'}'` = yes; then
52728 cat >>confdefs.h <<_ACEOF
52729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52730 _ACEOF
52733 done
52738 CXXFLAGS="$ac_save_CXXFLAGS"
52741 # For showmanyc_helper().
52744 for ac_header in sys/ioctl.h sys/filio.h
52746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52748 echo "$as_me:$LINENO: checking for $ac_header" >&5
52749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52751 echo $ECHO_N "(cached) $ECHO_C" >&6
52753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52755 else
52756 # Is the header compilable?
52757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52759 cat >conftest.$ac_ext <<_ACEOF
52760 /* confdefs.h. */
52761 _ACEOF
52762 cat confdefs.h >>conftest.$ac_ext
52763 cat >>conftest.$ac_ext <<_ACEOF
52764 /* end confdefs.h. */
52765 $ac_includes_default
52766 #include <$ac_header>
52767 _ACEOF
52768 rm -f conftest.$ac_objext
52769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52770 (eval $ac_compile) 2>conftest.er1
52771 ac_status=$?
52772 grep -v '^ *+' conftest.er1 >conftest.err
52773 rm -f conftest.er1
52774 cat conftest.err >&5
52775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52776 (exit $ac_status); } &&
52777 { ac_try='test -z "$ac_c_werror_flag"
52778 || test ! -s conftest.err'
52779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52780 (eval $ac_try) 2>&5
52781 ac_status=$?
52782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52783 (exit $ac_status); }; } &&
52784 { ac_try='test -s conftest.$ac_objext'
52785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52786 (eval $ac_try) 2>&5
52787 ac_status=$?
52788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52789 (exit $ac_status); }; }; then
52790 ac_header_compiler=yes
52791 else
52792 echo "$as_me: failed program was:" >&5
52793 sed 's/^/| /' conftest.$ac_ext >&5
52795 ac_header_compiler=no
52797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52799 echo "${ECHO_T}$ac_header_compiler" >&6
52801 # Is the header present?
52802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52804 cat >conftest.$ac_ext <<_ACEOF
52805 /* confdefs.h. */
52806 _ACEOF
52807 cat confdefs.h >>conftest.$ac_ext
52808 cat >>conftest.$ac_ext <<_ACEOF
52809 /* end confdefs.h. */
52810 #include <$ac_header>
52811 _ACEOF
52812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52814 ac_status=$?
52815 grep -v '^ *+' conftest.er1 >conftest.err
52816 rm -f conftest.er1
52817 cat conftest.err >&5
52818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52819 (exit $ac_status); } >/dev/null; then
52820 if test -s conftest.err; then
52821 ac_cpp_err=$ac_c_preproc_warn_flag
52822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52823 else
52824 ac_cpp_err=
52826 else
52827 ac_cpp_err=yes
52829 if test -z "$ac_cpp_err"; then
52830 ac_header_preproc=yes
52831 else
52832 echo "$as_me: failed program was:" >&5
52833 sed 's/^/| /' conftest.$ac_ext >&5
52835 ac_header_preproc=no
52837 rm -f conftest.err conftest.$ac_ext
52838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52839 echo "${ECHO_T}$ac_header_preproc" >&6
52841 # So? What about this header?
52842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52843 yes:no: )
52844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52848 ac_header_preproc=yes
52850 no:yes:* )
52851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52864 cat <<\_ASBOX
52865 ## ----------------------------------------- ##
52866 ## Report this to the package-unused lists. ##
52867 ## ----------------------------------------- ##
52868 _ASBOX
52870 sed "s/^/$as_me: WARNING: /" >&2
52872 esac
52873 echo "$as_me:$LINENO: checking for $ac_header" >&5
52874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52876 echo $ECHO_N "(cached) $ECHO_C" >&6
52877 else
52878 eval "$as_ac_Header=\$ac_header_preproc"
52880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52885 cat >>confdefs.h <<_ACEOF
52886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52887 _ACEOF
52891 done
52894 if test "${glibcxx_cv_POLL+set}" = set; then
52895 echo $ECHO_N "(cached) $ECHO_C" >&6
52896 else
52898 if test x$gcc_no_link = xyes; then
52899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52901 { (exit 1); exit 1; }; }
52903 cat >conftest.$ac_ext <<_ACEOF
52904 /* confdefs.h. */
52905 _ACEOF
52906 cat confdefs.h >>conftest.$ac_ext
52907 cat >>conftest.$ac_ext <<_ACEOF
52908 /* end confdefs.h. */
52909 #include <poll.h>
52911 main ()
52913 struct pollfd pfd[1];
52914 pfd[0].events = POLLIN;
52915 poll(pfd, 1, 0);
52917 return 0;
52919 _ACEOF
52920 rm -f conftest.$ac_objext conftest$ac_exeext
52921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52922 (eval $ac_link) 2>conftest.er1
52923 ac_status=$?
52924 grep -v '^ *+' conftest.er1 >conftest.err
52925 rm -f conftest.er1
52926 cat conftest.err >&5
52927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52928 (exit $ac_status); } &&
52929 { ac_try='test -z "$ac_c_werror_flag"
52930 || test ! -s conftest.err'
52931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52932 (eval $ac_try) 2>&5
52933 ac_status=$?
52934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52935 (exit $ac_status); }; } &&
52936 { ac_try='test -s conftest$ac_exeext'
52937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52938 (eval $ac_try) 2>&5
52939 ac_status=$?
52940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52941 (exit $ac_status); }; }; then
52942 glibcxx_cv_POLL=yes
52943 else
52944 echo "$as_me: failed program was:" >&5
52945 sed 's/^/| /' conftest.$ac_ext >&5
52947 glibcxx_cv_POLL=no
52949 rm -f conftest.err conftest.$ac_objext \
52950 conftest$ac_exeext conftest.$ac_ext
52954 if test $glibcxx_cv_POLL = yes; then
52955 cat >>confdefs.h <<\_ACEOF
52956 #define HAVE_POLL 1
52957 _ACEOF
52962 if test "${glibcxx_cv_S_ISREG+set}" = set; then
52963 echo $ECHO_N "(cached) $ECHO_C" >&6
52964 else
52966 if test x$gcc_no_link = xyes; then
52967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52969 { (exit 1); exit 1; }; }
52971 cat >conftest.$ac_ext <<_ACEOF
52972 /* confdefs.h. */
52973 _ACEOF
52974 cat confdefs.h >>conftest.$ac_ext
52975 cat >>conftest.$ac_ext <<_ACEOF
52976 /* end confdefs.h. */
52977 #include <sys/stat.h>
52979 main ()
52981 struct stat buffer;
52982 fstat(0, &buffer);
52983 S_ISREG(buffer.st_mode);
52985 return 0;
52987 _ACEOF
52988 rm -f conftest.$ac_objext conftest$ac_exeext
52989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52990 (eval $ac_link) 2>conftest.er1
52991 ac_status=$?
52992 grep -v '^ *+' conftest.er1 >conftest.err
52993 rm -f conftest.er1
52994 cat conftest.err >&5
52995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52996 (exit $ac_status); } &&
52997 { ac_try='test -z "$ac_c_werror_flag"
52998 || test ! -s conftest.err'
52999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53000 (eval $ac_try) 2>&5
53001 ac_status=$?
53002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53003 (exit $ac_status); }; } &&
53004 { ac_try='test -s conftest$ac_exeext'
53005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53006 (eval $ac_try) 2>&5
53007 ac_status=$?
53008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53009 (exit $ac_status); }; }; then
53010 glibcxx_cv_S_ISREG=yes
53011 else
53012 echo "$as_me: failed program was:" >&5
53013 sed 's/^/| /' conftest.$ac_ext >&5
53015 glibcxx_cv_S_ISREG=no
53017 rm -f conftest.err conftest.$ac_objext \
53018 conftest$ac_exeext conftest.$ac_ext
53022 if test "${glibcxx_cv_S_IFREG+set}" = set; then
53023 echo $ECHO_N "(cached) $ECHO_C" >&6
53024 else
53026 if test x$gcc_no_link = xyes; then
53027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53029 { (exit 1); exit 1; }; }
53031 cat >conftest.$ac_ext <<_ACEOF
53032 /* confdefs.h. */
53033 _ACEOF
53034 cat confdefs.h >>conftest.$ac_ext
53035 cat >>conftest.$ac_ext <<_ACEOF
53036 /* end confdefs.h. */
53037 #include <sys/stat.h>
53039 main ()
53041 struct stat buffer;
53042 fstat(0, &buffer);
53043 S_IFREG & buffer.st_mode;
53045 return 0;
53047 _ACEOF
53048 rm -f conftest.$ac_objext conftest$ac_exeext
53049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53050 (eval $ac_link) 2>conftest.er1
53051 ac_status=$?
53052 grep -v '^ *+' conftest.er1 >conftest.err
53053 rm -f conftest.er1
53054 cat conftest.err >&5
53055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53056 (exit $ac_status); } &&
53057 { ac_try='test -z "$ac_c_werror_flag"
53058 || test ! -s conftest.err'
53059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53060 (eval $ac_try) 2>&5
53061 ac_status=$?
53062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53063 (exit $ac_status); }; } &&
53064 { ac_try='test -s conftest$ac_exeext'
53065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53066 (eval $ac_try) 2>&5
53067 ac_status=$?
53068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53069 (exit $ac_status); }; }; then
53070 glibcxx_cv_S_IFREG=yes
53071 else
53072 echo "$as_me: failed program was:" >&5
53073 sed 's/^/| /' conftest.$ac_ext >&5
53075 glibcxx_cv_S_IFREG=no
53077 rm -f conftest.err conftest.$ac_objext \
53078 conftest$ac_exeext conftest.$ac_ext
53082 if test $glibcxx_cv_S_ISREG = yes; then
53083 cat >>confdefs.h <<\_ACEOF
53084 #define HAVE_S_ISREG 1
53085 _ACEOF
53087 elif test $glibcxx_cv_S_IFREG = yes; then
53088 cat >>confdefs.h <<\_ACEOF
53089 #define HAVE_S_IFREG 1
53090 _ACEOF
53095 # For xsputn_2().
53097 for ac_header in sys/uio.h
53099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53101 echo "$as_me:$LINENO: checking for $ac_header" >&5
53102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53104 echo $ECHO_N "(cached) $ECHO_C" >&6
53106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53108 else
53109 # Is the header compilable?
53110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53112 cat >conftest.$ac_ext <<_ACEOF
53113 /* confdefs.h. */
53114 _ACEOF
53115 cat confdefs.h >>conftest.$ac_ext
53116 cat >>conftest.$ac_ext <<_ACEOF
53117 /* end confdefs.h. */
53118 $ac_includes_default
53119 #include <$ac_header>
53120 _ACEOF
53121 rm -f conftest.$ac_objext
53122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53123 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
53144 else
53145 echo "$as_me: failed program was:" >&5
53146 sed 's/^/| /' conftest.$ac_ext >&5
53148 ac_header_compiler=no
53150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53152 echo "${ECHO_T}$ac_header_compiler" >&6
53154 # Is the header present?
53155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53157 cat >conftest.$ac_ext <<_ACEOF
53158 /* confdefs.h. */
53159 _ACEOF
53160 cat confdefs.h >>conftest.$ac_ext
53161 cat >>conftest.$ac_ext <<_ACEOF
53162 /* end confdefs.h. */
53163 #include <$ac_header>
53164 _ACEOF
53165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53167 ac_status=$?
53168 grep -v '^ *+' conftest.er1 >conftest.err
53169 rm -f conftest.er1
53170 cat conftest.err >&5
53171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53172 (exit $ac_status); } >/dev/null; then
53173 if test -s conftest.err; then
53174 ac_cpp_err=$ac_c_preproc_warn_flag
53175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53176 else
53177 ac_cpp_err=
53179 else
53180 ac_cpp_err=yes
53182 if test -z "$ac_cpp_err"; then
53183 ac_header_preproc=yes
53184 else
53185 echo "$as_me: failed program was:" >&5
53186 sed 's/^/| /' conftest.$ac_ext >&5
53188 ac_header_preproc=no
53190 rm -f conftest.err conftest.$ac_ext
53191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53192 echo "${ECHO_T}$ac_header_preproc" >&6
53194 # So? What about this header?
53195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53196 yes:no: )
53197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53201 ac_header_preproc=yes
53203 no:yes:* )
53204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53217 cat <<\_ASBOX
53218 ## ----------------------------------------- ##
53219 ## Report this to the package-unused lists. ##
53220 ## ----------------------------------------- ##
53221 _ASBOX
53223 sed "s/^/$as_me: WARNING: /" >&2
53225 esac
53226 echo "$as_me:$LINENO: checking for $ac_header" >&5
53227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53229 echo $ECHO_N "(cached) $ECHO_C" >&6
53230 else
53231 eval "$as_ac_Header=\$ac_header_preproc"
53233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53238 cat >>confdefs.h <<_ACEOF
53239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53240 _ACEOF
53244 done
53247 if test "${glibcxx_cv_WRITEV+set}" = set; then
53248 echo $ECHO_N "(cached) $ECHO_C" >&6
53249 else
53251 if test x$gcc_no_link = xyes; then
53252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53254 { (exit 1); exit 1; }; }
53256 cat >conftest.$ac_ext <<_ACEOF
53257 /* confdefs.h. */
53258 _ACEOF
53259 cat confdefs.h >>conftest.$ac_ext
53260 cat >>conftest.$ac_ext <<_ACEOF
53261 /* end confdefs.h. */
53262 #include <sys/uio.h>
53264 main ()
53266 struct iovec iov[2];
53267 writev(0, iov, 0);
53269 return 0;
53271 _ACEOF
53272 rm -f conftest.$ac_objext conftest$ac_exeext
53273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53274 (eval $ac_link) 2>conftest.er1
53275 ac_status=$?
53276 grep -v '^ *+' conftest.er1 >conftest.err
53277 rm -f conftest.er1
53278 cat conftest.err >&5
53279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53280 (exit $ac_status); } &&
53281 { ac_try='test -z "$ac_c_werror_flag"
53282 || test ! -s conftest.err'
53283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53284 (eval $ac_try) 2>&5
53285 ac_status=$?
53286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53287 (exit $ac_status); }; } &&
53288 { ac_try='test -s conftest$ac_exeext'
53289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53290 (eval $ac_try) 2>&5
53291 ac_status=$?
53292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53293 (exit $ac_status); }; }; then
53294 glibcxx_cv_WRITEV=yes
53295 else
53296 echo "$as_me: failed program was:" >&5
53297 sed 's/^/| /' conftest.$ac_ext >&5
53299 glibcxx_cv_WRITEV=no
53301 rm -f conftest.err conftest.$ac_objext \
53302 conftest$ac_exeext conftest.$ac_ext
53306 if test $glibcxx_cv_WRITEV = yes; then
53307 cat >>confdefs.h <<\_ACEOF
53308 #define HAVE_WRITEV 1
53309 _ACEOF
53314 cat >>confdefs.h <<\_ACEOF
53315 #define HAVE_LC_MESSAGES 1
53316 _ACEOF
53319 cat >conftest.$ac_ext <<_ACEOF
53320 /* confdefs.h. */
53321 _ACEOF
53322 cat confdefs.h >>conftest.$ac_ext
53323 cat >>conftest.$ac_ext <<_ACEOF
53324 /* end confdefs.h. */
53325 #include <setjmp.h>
53327 main ()
53329 sigjmp_buf env;
53330 while (! sigsetjmp (env, 1))
53331 siglongjmp (env, 1);
53334 return 0;
53336 _ACEOF
53337 rm -f conftest.$ac_objext
53338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53339 (eval $ac_compile) 2>conftest.er1
53340 ac_status=$?
53341 grep -v '^ *+' conftest.er1 >conftest.err
53342 rm -f conftest.er1
53343 cat conftest.err >&5
53344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53345 (exit $ac_status); } &&
53346 { ac_try='test -z "$ac_c_werror_flag"
53347 || test ! -s conftest.err'
53348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53349 (eval $ac_try) 2>&5
53350 ac_status=$?
53351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53352 (exit $ac_status); }; } &&
53353 { ac_try='test -s conftest.$ac_objext'
53354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53355 (eval $ac_try) 2>&5
53356 ac_status=$?
53357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53358 (exit $ac_status); }; }; then
53360 cat >>confdefs.h <<\_ACEOF
53361 #define HAVE_SIGSETJMP 1
53362 _ACEOF
53364 else
53365 echo "$as_me: failed program was:" >&5
53366 sed 's/^/| /' conftest.$ac_ext >&5
53369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53371 cat >>confdefs.h <<\_ACEOF
53372 #define HAVE_MMAP 1
53373 _ACEOF
53377 *-freebsd*)
53394 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53395 machine/endian.h machine/param.h sys/machine.h sys/types.h \
53396 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53397 sys/time.h unistd.h
53399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53401 echo "$as_me:$LINENO: checking for $ac_header" >&5
53402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53404 echo $ECHO_N "(cached) $ECHO_C" >&6
53406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53408 else
53409 # Is the header compilable?
53410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53412 cat >conftest.$ac_ext <<_ACEOF
53413 /* confdefs.h. */
53414 _ACEOF
53415 cat confdefs.h >>conftest.$ac_ext
53416 cat >>conftest.$ac_ext <<_ACEOF
53417 /* end confdefs.h. */
53418 $ac_includes_default
53419 #include <$ac_header>
53420 _ACEOF
53421 rm -f conftest.$ac_objext
53422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53423 (eval $ac_compile) 2>conftest.er1
53424 ac_status=$?
53425 grep -v '^ *+' conftest.er1 >conftest.err
53426 rm -f conftest.er1
53427 cat conftest.err >&5
53428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53429 (exit $ac_status); } &&
53430 { ac_try='test -z "$ac_c_werror_flag"
53431 || test ! -s conftest.err'
53432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53433 (eval $ac_try) 2>&5
53434 ac_status=$?
53435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53436 (exit $ac_status); }; } &&
53437 { ac_try='test -s conftest.$ac_objext'
53438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53439 (eval $ac_try) 2>&5
53440 ac_status=$?
53441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53442 (exit $ac_status); }; }; then
53443 ac_header_compiler=yes
53444 else
53445 echo "$as_me: failed program was:" >&5
53446 sed 's/^/| /' conftest.$ac_ext >&5
53448 ac_header_compiler=no
53450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53452 echo "${ECHO_T}$ac_header_compiler" >&6
53454 # Is the header present?
53455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53457 cat >conftest.$ac_ext <<_ACEOF
53458 /* confdefs.h. */
53459 _ACEOF
53460 cat confdefs.h >>conftest.$ac_ext
53461 cat >>conftest.$ac_ext <<_ACEOF
53462 /* end confdefs.h. */
53463 #include <$ac_header>
53464 _ACEOF
53465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53467 ac_status=$?
53468 grep -v '^ *+' conftest.er1 >conftest.err
53469 rm -f conftest.er1
53470 cat conftest.err >&5
53471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53472 (exit $ac_status); } >/dev/null; then
53473 if test -s conftest.err; then
53474 ac_cpp_err=$ac_c_preproc_warn_flag
53475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53476 else
53477 ac_cpp_err=
53479 else
53480 ac_cpp_err=yes
53482 if test -z "$ac_cpp_err"; then
53483 ac_header_preproc=yes
53484 else
53485 echo "$as_me: failed program was:" >&5
53486 sed 's/^/| /' conftest.$ac_ext >&5
53488 ac_header_preproc=no
53490 rm -f conftest.err conftest.$ac_ext
53491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53492 echo "${ECHO_T}$ac_header_preproc" >&6
53494 # So? What about this header?
53495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53496 yes:no: )
53497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53501 ac_header_preproc=yes
53503 no:yes:* )
53504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53517 cat <<\_ASBOX
53518 ## ----------------------------------------- ##
53519 ## Report this to the package-unused lists. ##
53520 ## ----------------------------------------- ##
53521 _ASBOX
53523 sed "s/^/$as_me: WARNING: /" >&2
53525 esac
53526 echo "$as_me:$LINENO: checking for $ac_header" >&5
53527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53529 echo $ECHO_N "(cached) $ECHO_C" >&6
53530 else
53531 eval "$as_ac_Header=\$ac_header_preproc"
53533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53538 cat >>confdefs.h <<_ACEOF
53539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53540 _ACEOF
53544 done
53546 SECTION_FLAGS='-ffunction-sections -fdata-sections'
53549 # If we're not using GNU ld, then there's no point in even trying these
53550 # tests. Check for that first. We should have already tested for gld
53551 # by now (in libtool), but require it now just to be safe...
53552 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53553 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53557 # The name set by libtool depends on the version of libtool. Shame on us
53558 # for depending on an impl detail, but c'est la vie. Older versions used
53559 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53560 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53561 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53562 # set (hence we're using an older libtool), then set it.
53563 if test x${with_gnu_ld+set} != xset; then
53564 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53565 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53566 with_gnu_ld=no
53567 else
53568 with_gnu_ld=$ac_cv_prog_gnu_ld
53572 # Start by getting the version number. I think the libtool test already
53573 # does some of this, but throws away the result.
53575 ldver=`$LD --version 2>/dev/null | head -1 | \
53576 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53578 glibcxx_gnu_ld_version=`echo $ldver | \
53579 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53581 # Set --gc-sections.
53582 if test "$with_gnu_ld" = "notbroken"; then
53583 # GNU ld it is! Joy and bunny rabbits!
53585 # All these tests are for C++; save the language and the compiler flags.
53586 # Need to do this so that g++ won't try to link in libstdc++
53587 ac_test_CFLAGS="${CFLAGS+set}"
53588 ac_save_CFLAGS="$CFLAGS"
53589 CFLAGS='-x c++ -Wl,--gc-sections'
53591 # Check for -Wl,--gc-sections
53592 # XXX This test is broken at the moment, as symbols required for linking
53593 # are now in libsupc++ (not built yet). In addition, this test has
53594 # cored on solaris in the past. In addition, --gc-sections doesn't
53595 # really work at the moment (keeps on discarding used sections, first
53596 # .eh_frame and now some of the glibc sections for iconv).
53597 # Bzzzzt. Thanks for playing, maybe next time.
53598 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53599 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53600 if test "$cross_compiling" = yes; then
53601 ac_sectionLDflags=yes
53602 else
53603 cat >conftest.$ac_ext <<_ACEOF
53604 /* confdefs.h. */
53605 _ACEOF
53606 cat confdefs.h >>conftest.$ac_ext
53607 cat >>conftest.$ac_ext <<_ACEOF
53608 /* end confdefs.h. */
53610 int main(void)
53612 try { throw 1; }
53613 catch (...) { };
53614 return 0;
53617 _ACEOF
53618 rm -f conftest$ac_exeext
53619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53620 (eval $ac_link) 2>&5
53621 ac_status=$?
53622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53625 (eval $ac_try) 2>&5
53626 ac_status=$?
53627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53628 (exit $ac_status); }; }; then
53629 ac_sectionLDflags=yes
53630 else
53631 echo "$as_me: program exited with status $ac_status" >&5
53632 echo "$as_me: failed program was:" >&5
53633 sed 's/^/| /' conftest.$ac_ext >&5
53635 ( exit $ac_status )
53636 ac_sectionLDflags=no
53638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53640 if test "$ac_test_CFLAGS" = set; then
53641 CFLAGS="$ac_save_CFLAGS"
53642 else
53643 # this is the suspicious part
53644 CFLAGS=''
53646 if test "$ac_sectionLDflags" = "yes"; then
53647 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53649 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53650 echo "${ECHO_T}$ac_sectionLDflags" >&6
53653 # Set linker optimization flags.
53654 if test x"$with_gnu_ld" = x"yes"; then
53655 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53663 echo "$as_me:$LINENO: checking for main in -lm" >&5
53664 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53665 if test "${ac_cv_lib_m_main+set}" = set; then
53666 echo $ECHO_N "(cached) $ECHO_C" >&6
53667 else
53668 ac_check_lib_save_LIBS=$LIBS
53669 LIBS="-lm $LIBS"
53670 if test x$gcc_no_link = xyes; then
53671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53673 { (exit 1); exit 1; }; }
53675 cat >conftest.$ac_ext <<_ACEOF
53676 /* confdefs.h. */
53677 _ACEOF
53678 cat confdefs.h >>conftest.$ac_ext
53679 cat >>conftest.$ac_ext <<_ACEOF
53680 /* end confdefs.h. */
53684 main ()
53686 main ();
53688 return 0;
53690 _ACEOF
53691 rm -f conftest.$ac_objext conftest$ac_exeext
53692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53693 (eval $ac_link) 2>conftest.er1
53694 ac_status=$?
53695 grep -v '^ *+' conftest.er1 >conftest.err
53696 rm -f conftest.er1
53697 cat conftest.err >&5
53698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53699 (exit $ac_status); } &&
53700 { ac_try='test -z "$ac_c_werror_flag"
53701 || test ! -s conftest.err'
53702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53703 (eval $ac_try) 2>&5
53704 ac_status=$?
53705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53706 (exit $ac_status); }; } &&
53707 { ac_try='test -s conftest$ac_exeext'
53708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53709 (eval $ac_try) 2>&5
53710 ac_status=$?
53711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53712 (exit $ac_status); }; }; then
53713 ac_cv_lib_m_main=yes
53714 else
53715 echo "$as_me: failed program was:" >&5
53716 sed 's/^/| /' conftest.$ac_ext >&5
53718 ac_cv_lib_m_main=no
53720 rm -f conftest.err conftest.$ac_objext \
53721 conftest$ac_exeext conftest.$ac_ext
53722 LIBS=$ac_check_lib_save_LIBS
53724 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53725 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53726 if test $ac_cv_lib_m_main = yes; then
53727 cat >>confdefs.h <<_ACEOF
53728 #define HAVE_LIBM 1
53729 _ACEOF
53731 LIBS="-lm $LIBS"
53736 for ac_func in copysignf
53738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53739 echo "$as_me:$LINENO: checking for $ac_func" >&5
53740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53741 if eval "test \"\${$as_ac_var+set}\" = set"; then
53742 echo $ECHO_N "(cached) $ECHO_C" >&6
53743 else
53744 if test x$gcc_no_link = xyes; then
53745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53747 { (exit 1); exit 1; }; }
53749 cat >conftest.$ac_ext <<_ACEOF
53750 /* confdefs.h. */
53751 _ACEOF
53752 cat confdefs.h >>conftest.$ac_ext
53753 cat >>conftest.$ac_ext <<_ACEOF
53754 /* end confdefs.h. */
53755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53757 #define $ac_func innocuous_$ac_func
53759 /* System header to define __stub macros and hopefully few prototypes,
53760 which can conflict with char $ac_func (); below.
53761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53762 <limits.h> exists even on freestanding compilers. */
53764 #ifdef __STDC__
53765 # include <limits.h>
53766 #else
53767 # include <assert.h>
53768 #endif
53770 #undef $ac_func
53772 /* Override any gcc2 internal prototype to avoid an error. */
53773 #ifdef __cplusplus
53774 extern "C"
53776 #endif
53777 /* We use char because int might match the return type of a gcc2
53778 builtin and then its argument prototype would still apply. */
53779 char $ac_func ();
53780 /* The GNU C library defines this for functions which it implements
53781 to always fail with ENOSYS. Some functions are actually named
53782 something starting with __ and the normal name is an alias. */
53783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53784 choke me
53785 #else
53786 char (*f) () = $ac_func;
53787 #endif
53788 #ifdef __cplusplus
53790 #endif
53793 main ()
53795 return f != $ac_func;
53797 return 0;
53799 _ACEOF
53800 rm -f conftest.$ac_objext conftest$ac_exeext
53801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53802 (eval $ac_link) 2>conftest.er1
53803 ac_status=$?
53804 grep -v '^ *+' conftest.er1 >conftest.err
53805 rm -f conftest.er1
53806 cat conftest.err >&5
53807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53808 (exit $ac_status); } &&
53809 { ac_try='test -z "$ac_c_werror_flag"
53810 || test ! -s conftest.err'
53811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53812 (eval $ac_try) 2>&5
53813 ac_status=$?
53814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53815 (exit $ac_status); }; } &&
53816 { ac_try='test -s conftest$ac_exeext'
53817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53818 (eval $ac_try) 2>&5
53819 ac_status=$?
53820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53821 (exit $ac_status); }; }; then
53822 eval "$as_ac_var=yes"
53823 else
53824 echo "$as_me: failed program was:" >&5
53825 sed 's/^/| /' conftest.$ac_ext >&5
53827 eval "$as_ac_var=no"
53829 rm -f conftest.err conftest.$ac_objext \
53830 conftest$ac_exeext conftest.$ac_ext
53832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53834 if test `eval echo '${'$as_ac_var'}'` = yes; then
53835 cat >>confdefs.h <<_ACEOF
53836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53837 _ACEOF
53839 else
53840 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53842 done
53846 for ac_func in __signbit
53848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53849 echo "$as_me:$LINENO: checking for $ac_func" >&5
53850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53851 if eval "test \"\${$as_ac_var+set}\" = set"; then
53852 echo $ECHO_N "(cached) $ECHO_C" >&6
53853 else
53854 if test x$gcc_no_link = xyes; then
53855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53857 { (exit 1); exit 1; }; }
53859 cat >conftest.$ac_ext <<_ACEOF
53860 /* confdefs.h. */
53861 _ACEOF
53862 cat confdefs.h >>conftest.$ac_ext
53863 cat >>conftest.$ac_ext <<_ACEOF
53864 /* end confdefs.h. */
53865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53867 #define $ac_func innocuous_$ac_func
53869 /* System header to define __stub macros and hopefully few prototypes,
53870 which can conflict with char $ac_func (); below.
53871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53872 <limits.h> exists even on freestanding compilers. */
53874 #ifdef __STDC__
53875 # include <limits.h>
53876 #else
53877 # include <assert.h>
53878 #endif
53880 #undef $ac_func
53882 /* Override any gcc2 internal prototype to avoid an error. */
53883 #ifdef __cplusplus
53884 extern "C"
53886 #endif
53887 /* We use char because int might match the return type of a gcc2
53888 builtin and then its argument prototype would still apply. */
53889 char $ac_func ();
53890 /* The GNU C library defines this for functions which it implements
53891 to always fail with ENOSYS. Some functions are actually named
53892 something starting with __ and the normal name is an alias. */
53893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53894 choke me
53895 #else
53896 char (*f) () = $ac_func;
53897 #endif
53898 #ifdef __cplusplus
53900 #endif
53903 main ()
53905 return f != $ac_func;
53907 return 0;
53909 _ACEOF
53910 rm -f conftest.$ac_objext conftest$ac_exeext
53911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53912 (eval $ac_link) 2>conftest.er1
53913 ac_status=$?
53914 grep -v '^ *+' conftest.er1 >conftest.err
53915 rm -f conftest.er1
53916 cat conftest.err >&5
53917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53918 (exit $ac_status); } &&
53919 { ac_try='test -z "$ac_c_werror_flag"
53920 || test ! -s conftest.err'
53921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53922 (eval $ac_try) 2>&5
53923 ac_status=$?
53924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53925 (exit $ac_status); }; } &&
53926 { ac_try='test -s conftest$ac_exeext'
53927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53928 (eval $ac_try) 2>&5
53929 ac_status=$?
53930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53931 (exit $ac_status); }; }; then
53932 eval "$as_ac_var=yes"
53933 else
53934 echo "$as_me: failed program was:" >&5
53935 sed 's/^/| /' conftest.$ac_ext >&5
53937 eval "$as_ac_var=no"
53939 rm -f conftest.err conftest.$ac_objext \
53940 conftest$ac_exeext conftest.$ac_ext
53942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53944 if test `eval echo '${'$as_ac_var'}'` = yes; then
53945 cat >>confdefs.h <<_ACEOF
53946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53947 _ACEOF
53949 else
53950 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53952 done
53955 for ac_func in __signbitf
53957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53958 echo "$as_me:$LINENO: checking for $ac_func" >&5
53959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53960 if eval "test \"\${$as_ac_var+set}\" = set"; then
53961 echo $ECHO_N "(cached) $ECHO_C" >&6
53962 else
53963 if test x$gcc_no_link = xyes; then
53964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53966 { (exit 1); exit 1; }; }
53968 cat >conftest.$ac_ext <<_ACEOF
53969 /* confdefs.h. */
53970 _ACEOF
53971 cat confdefs.h >>conftest.$ac_ext
53972 cat >>conftest.$ac_ext <<_ACEOF
53973 /* end confdefs.h. */
53974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53976 #define $ac_func innocuous_$ac_func
53978 /* System header to define __stub macros and hopefully few prototypes,
53979 which can conflict with char $ac_func (); below.
53980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53981 <limits.h> exists even on freestanding compilers. */
53983 #ifdef __STDC__
53984 # include <limits.h>
53985 #else
53986 # include <assert.h>
53987 #endif
53989 #undef $ac_func
53991 /* Override any gcc2 internal prototype to avoid an error. */
53992 #ifdef __cplusplus
53993 extern "C"
53995 #endif
53996 /* We use char because int might match the return type of a gcc2
53997 builtin and then its argument prototype would still apply. */
53998 char $ac_func ();
53999 /* The GNU C library defines this for functions which it implements
54000 to always fail with ENOSYS. Some functions are actually named
54001 something starting with __ and the normal name is an alias. */
54002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54003 choke me
54004 #else
54005 char (*f) () = $ac_func;
54006 #endif
54007 #ifdef __cplusplus
54009 #endif
54012 main ()
54014 return f != $ac_func;
54016 return 0;
54018 _ACEOF
54019 rm -f conftest.$ac_objext conftest$ac_exeext
54020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54021 (eval $ac_link) 2>conftest.er1
54022 ac_status=$?
54023 grep -v '^ *+' conftest.er1 >conftest.err
54024 rm -f conftest.er1
54025 cat conftest.err >&5
54026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54027 (exit $ac_status); } &&
54028 { ac_try='test -z "$ac_c_werror_flag"
54029 || test ! -s conftest.err'
54030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54031 (eval $ac_try) 2>&5
54032 ac_status=$?
54033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54034 (exit $ac_status); }; } &&
54035 { ac_try='test -s conftest$ac_exeext'
54036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54037 (eval $ac_try) 2>&5
54038 ac_status=$?
54039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040 (exit $ac_status); }; }; then
54041 eval "$as_ac_var=yes"
54042 else
54043 echo "$as_me: failed program was:" >&5
54044 sed 's/^/| /' conftest.$ac_ext >&5
54046 eval "$as_ac_var=no"
54048 rm -f conftest.err conftest.$ac_objext \
54049 conftest$ac_exeext conftest.$ac_ext
54051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54053 if test `eval echo '${'$as_ac_var'}'` = yes; then
54054 cat >>confdefs.h <<_ACEOF
54055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54056 _ACEOF
54058 else
54059 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54061 done
54064 if test x$ac_cv_func_copysignl = x"yes"; then
54066 for ac_func in __signbitl
54068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54069 echo "$as_me:$LINENO: checking for $ac_func" >&5
54070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54071 if eval "test \"\${$as_ac_var+set}\" = set"; then
54072 echo $ECHO_N "(cached) $ECHO_C" >&6
54073 else
54074 if test x$gcc_no_link = xyes; then
54075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54077 { (exit 1); exit 1; }; }
54079 cat >conftest.$ac_ext <<_ACEOF
54080 /* confdefs.h. */
54081 _ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h. */
54085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54087 #define $ac_func innocuous_$ac_func
54089 /* System header to define __stub macros and hopefully few prototypes,
54090 which can conflict with char $ac_func (); below.
54091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54092 <limits.h> exists even on freestanding compilers. */
54094 #ifdef __STDC__
54095 # include <limits.h>
54096 #else
54097 # include <assert.h>
54098 #endif
54100 #undef $ac_func
54102 /* Override any gcc2 internal prototype to avoid an error. */
54103 #ifdef __cplusplus
54104 extern "C"
54106 #endif
54107 /* We use char because int might match the return type of a gcc2
54108 builtin and then its argument prototype would still apply. */
54109 char $ac_func ();
54110 /* The GNU C library defines this for functions which it implements
54111 to always fail with ENOSYS. Some functions are actually named
54112 something starting with __ and the normal name is an alias. */
54113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54114 choke me
54115 #else
54116 char (*f) () = $ac_func;
54117 #endif
54118 #ifdef __cplusplus
54120 #endif
54123 main ()
54125 return f != $ac_func;
54127 return 0;
54129 _ACEOF
54130 rm -f conftest.$ac_objext conftest$ac_exeext
54131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54132 (eval $ac_link) 2>conftest.er1
54133 ac_status=$?
54134 grep -v '^ *+' conftest.er1 >conftest.err
54135 rm -f conftest.er1
54136 cat conftest.err >&5
54137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54138 (exit $ac_status); } &&
54139 { ac_try='test -z "$ac_c_werror_flag"
54140 || test ! -s conftest.err'
54141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54142 (eval $ac_try) 2>&5
54143 ac_status=$?
54144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54145 (exit $ac_status); }; } &&
54146 { ac_try='test -s conftest$ac_exeext'
54147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54148 (eval $ac_try) 2>&5
54149 ac_status=$?
54150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54151 (exit $ac_status); }; }; then
54152 eval "$as_ac_var=yes"
54153 else
54154 echo "$as_me: failed program was:" >&5
54155 sed 's/^/| /' conftest.$ac_ext >&5
54157 eval "$as_ac_var=no"
54159 rm -f conftest.err conftest.$ac_objext \
54160 conftest$ac_exeext conftest.$ac_ext
54162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54164 if test `eval echo '${'$as_ac_var'}'` = yes; then
54165 cat >>confdefs.h <<_ACEOF
54166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54167 _ACEOF
54169 else
54170 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54172 done
54176 # XXX Review this. Nothing uses it.
54177 if test -n "$LIBMATHOBJS"; then
54178 need_libmath=yes
54183 # Test wchar.h for mbstate_t, which is needed for char_traits and
54184 # others even if wchar_t support is not on.
54185 echo "$as_me:$LINENO: checking for mbstate_t" >&5
54186 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54187 cat >conftest.$ac_ext <<_ACEOF
54188 /* confdefs.h. */
54189 _ACEOF
54190 cat confdefs.h >>conftest.$ac_ext
54191 cat >>conftest.$ac_ext <<_ACEOF
54192 /* end confdefs.h. */
54193 #include <wchar.h>
54195 main ()
54197 mbstate_t teststate;
54199 return 0;
54201 _ACEOF
54202 rm -f conftest.$ac_objext
54203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54204 (eval $ac_compile) 2>conftest.er1
54205 ac_status=$?
54206 grep -v '^ *+' conftest.er1 >conftest.err
54207 rm -f conftest.er1
54208 cat conftest.err >&5
54209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54210 (exit $ac_status); } &&
54211 { ac_try='test -z "$ac_c_werror_flag"
54212 || test ! -s conftest.err'
54213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54214 (eval $ac_try) 2>&5
54215 ac_status=$?
54216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54217 (exit $ac_status); }; } &&
54218 { ac_try='test -s conftest.$ac_objext'
54219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54220 (eval $ac_try) 2>&5
54221 ac_status=$?
54222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54223 (exit $ac_status); }; }; then
54224 have_mbstate_t=yes
54225 else
54226 echo "$as_me: failed program was:" >&5
54227 sed 's/^/| /' conftest.$ac_ext >&5
54229 have_mbstate_t=no
54231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54232 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54233 echo "${ECHO_T}$have_mbstate_t" >&6
54234 if test x"$have_mbstate_t" = xyes; then
54235 cat >>confdefs.h <<\_ACEOF
54236 #define HAVE_MBSTATE_T 1
54237 _ACEOF
54241 # Sanity check for existence of ISO C99 headers for extended encoding.
54243 for ac_header in wchar.h
54245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54247 echo "$as_me:$LINENO: checking for $ac_header" >&5
54248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54250 echo $ECHO_N "(cached) $ECHO_C" >&6
54252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54254 else
54255 # Is the header compilable?
54256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54258 cat >conftest.$ac_ext <<_ACEOF
54259 /* confdefs.h. */
54260 _ACEOF
54261 cat confdefs.h >>conftest.$ac_ext
54262 cat >>conftest.$ac_ext <<_ACEOF
54263 /* end confdefs.h. */
54264 $ac_includes_default
54265 #include <$ac_header>
54266 _ACEOF
54267 rm -f conftest.$ac_objext
54268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54269 (eval $ac_compile) 2>conftest.er1
54270 ac_status=$?
54271 grep -v '^ *+' conftest.er1 >conftest.err
54272 rm -f conftest.er1
54273 cat conftest.err >&5
54274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54275 (exit $ac_status); } &&
54276 { ac_try='test -z "$ac_c_werror_flag"
54277 || test ! -s conftest.err'
54278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54279 (eval $ac_try) 2>&5
54280 ac_status=$?
54281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54282 (exit $ac_status); }; } &&
54283 { ac_try='test -s conftest.$ac_objext'
54284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54285 (eval $ac_try) 2>&5
54286 ac_status=$?
54287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54288 (exit $ac_status); }; }; then
54289 ac_header_compiler=yes
54290 else
54291 echo "$as_me: failed program was:" >&5
54292 sed 's/^/| /' conftest.$ac_ext >&5
54294 ac_header_compiler=no
54296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54298 echo "${ECHO_T}$ac_header_compiler" >&6
54300 # Is the header present?
54301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54303 cat >conftest.$ac_ext <<_ACEOF
54304 /* confdefs.h. */
54305 _ACEOF
54306 cat confdefs.h >>conftest.$ac_ext
54307 cat >>conftest.$ac_ext <<_ACEOF
54308 /* end confdefs.h. */
54309 #include <$ac_header>
54310 _ACEOF
54311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54313 ac_status=$?
54314 grep -v '^ *+' conftest.er1 >conftest.err
54315 rm -f conftest.er1
54316 cat conftest.err >&5
54317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54318 (exit $ac_status); } >/dev/null; then
54319 if test -s conftest.err; then
54320 ac_cpp_err=$ac_c_preproc_warn_flag
54321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54322 else
54323 ac_cpp_err=
54325 else
54326 ac_cpp_err=yes
54328 if test -z "$ac_cpp_err"; then
54329 ac_header_preproc=yes
54330 else
54331 echo "$as_me: failed program was:" >&5
54332 sed 's/^/| /' conftest.$ac_ext >&5
54334 ac_header_preproc=no
54336 rm -f conftest.err conftest.$ac_ext
54337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54338 echo "${ECHO_T}$ac_header_preproc" >&6
54340 # So? What about this header?
54341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54342 yes:no: )
54343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54347 ac_header_preproc=yes
54349 no:yes:* )
54350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54363 cat <<\_ASBOX
54364 ## ----------------------------------------- ##
54365 ## Report this to the package-unused lists. ##
54366 ## ----------------------------------------- ##
54367 _ASBOX
54369 sed "s/^/$as_me: WARNING: /" >&2
54371 esac
54372 echo "$as_me:$LINENO: checking for $ac_header" >&5
54373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54375 echo $ECHO_N "(cached) $ECHO_C" >&6
54376 else
54377 eval "$as_ac_Header=\$ac_header_preproc"
54379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54384 cat >>confdefs.h <<_ACEOF
54385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54386 _ACEOF
54387 ac_has_wchar_h=yes
54388 else
54389 ac_has_wchar_h=no
54392 done
54395 for ac_header in wctype.h
54397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54399 echo "$as_me:$LINENO: checking for $ac_header" >&5
54400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54402 echo $ECHO_N "(cached) $ECHO_C" >&6
54404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54406 else
54407 # Is the header compilable?
54408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54410 cat >conftest.$ac_ext <<_ACEOF
54411 /* confdefs.h. */
54412 _ACEOF
54413 cat confdefs.h >>conftest.$ac_ext
54414 cat >>conftest.$ac_ext <<_ACEOF
54415 /* end confdefs.h. */
54416 $ac_includes_default
54417 #include <$ac_header>
54418 _ACEOF
54419 rm -f conftest.$ac_objext
54420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54421 (eval $ac_compile) 2>conftest.er1
54422 ac_status=$?
54423 grep -v '^ *+' conftest.er1 >conftest.err
54424 rm -f conftest.er1
54425 cat conftest.err >&5
54426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54427 (exit $ac_status); } &&
54428 { ac_try='test -z "$ac_c_werror_flag"
54429 || test ! -s conftest.err'
54430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54431 (eval $ac_try) 2>&5
54432 ac_status=$?
54433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54434 (exit $ac_status); }; } &&
54435 { ac_try='test -s conftest.$ac_objext'
54436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54437 (eval $ac_try) 2>&5
54438 ac_status=$?
54439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54440 (exit $ac_status); }; }; then
54441 ac_header_compiler=yes
54442 else
54443 echo "$as_me: failed program was:" >&5
54444 sed 's/^/| /' conftest.$ac_ext >&5
54446 ac_header_compiler=no
54448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54450 echo "${ECHO_T}$ac_header_compiler" >&6
54452 # Is the header present?
54453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54455 cat >conftest.$ac_ext <<_ACEOF
54456 /* confdefs.h. */
54457 _ACEOF
54458 cat confdefs.h >>conftest.$ac_ext
54459 cat >>conftest.$ac_ext <<_ACEOF
54460 /* end confdefs.h. */
54461 #include <$ac_header>
54462 _ACEOF
54463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54465 ac_status=$?
54466 grep -v '^ *+' conftest.er1 >conftest.err
54467 rm -f conftest.er1
54468 cat conftest.err >&5
54469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54470 (exit $ac_status); } >/dev/null; then
54471 if test -s conftest.err; then
54472 ac_cpp_err=$ac_c_preproc_warn_flag
54473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54474 else
54475 ac_cpp_err=
54477 else
54478 ac_cpp_err=yes
54480 if test -z "$ac_cpp_err"; then
54481 ac_header_preproc=yes
54482 else
54483 echo "$as_me: failed program was:" >&5
54484 sed 's/^/| /' conftest.$ac_ext >&5
54486 ac_header_preproc=no
54488 rm -f conftest.err conftest.$ac_ext
54489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54490 echo "${ECHO_T}$ac_header_preproc" >&6
54492 # So? What about this header?
54493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54494 yes:no: )
54495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54499 ac_header_preproc=yes
54501 no:yes:* )
54502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54515 cat <<\_ASBOX
54516 ## ----------------------------------------- ##
54517 ## Report this to the package-unused lists. ##
54518 ## ----------------------------------------- ##
54519 _ASBOX
54521 sed "s/^/$as_me: WARNING: /" >&2
54523 esac
54524 echo "$as_me:$LINENO: checking for $ac_header" >&5
54525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54527 echo $ECHO_N "(cached) $ECHO_C" >&6
54528 else
54529 eval "$as_ac_Header=\$ac_header_preproc"
54531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54536 cat >>confdefs.h <<_ACEOF
54537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54538 _ACEOF
54539 ac_has_wctype_h=yes
54540 else
54541 ac_has_wctype_h=no
54544 done
54547 # Only continue checking if the ISO C99 headers exist and support is on.
54548 if test x"$ac_has_wchar_h" = xyes &&
54549 test x"$ac_has_wctype_h" = xyes &&
54550 test x"$enable_c_mbchar" != xno; then
54552 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54553 # numeric_limits can instantiate type_traits<wchar_t>
54554 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54555 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54556 cat >conftest.$ac_ext <<_ACEOF
54557 /* confdefs.h. */
54558 _ACEOF
54559 cat confdefs.h >>conftest.$ac_ext
54560 cat >>conftest.$ac_ext <<_ACEOF
54561 /* end confdefs.h. */
54562 #include <wchar.h>
54564 main ()
54566 int i = WCHAR_MIN; int j = WCHAR_MAX;
54568 return 0;
54570 _ACEOF
54571 rm -f conftest.$ac_objext
54572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54573 (eval $ac_compile) 2>conftest.er1
54574 ac_status=$?
54575 grep -v '^ *+' conftest.er1 >conftest.err
54576 rm -f conftest.er1
54577 cat conftest.err >&5
54578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54579 (exit $ac_status); } &&
54580 { ac_try='test -z "$ac_c_werror_flag"
54581 || test ! -s conftest.err'
54582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54583 (eval $ac_try) 2>&5
54584 ac_status=$?
54585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54586 (exit $ac_status); }; } &&
54587 { ac_try='test -s conftest.$ac_objext'
54588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54589 (eval $ac_try) 2>&5
54590 ac_status=$?
54591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54592 (exit $ac_status); }; }; then
54593 has_wchar_minmax=yes
54594 else
54595 echo "$as_me: failed program was:" >&5
54596 sed 's/^/| /' conftest.$ac_ext >&5
54598 has_wchar_minmax=no
54600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54601 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54602 echo "${ECHO_T}$has_wchar_minmax" >&6
54604 # Test wchar.h for WEOF, which is what we use to determine whether
54605 # to specialize for char_traits<wchar_t> or not.
54606 echo "$as_me:$LINENO: checking for WEOF" >&5
54607 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54608 cat >conftest.$ac_ext <<_ACEOF
54609 /* confdefs.h. */
54610 _ACEOF
54611 cat confdefs.h >>conftest.$ac_ext
54612 cat >>conftest.$ac_ext <<_ACEOF
54613 /* end confdefs.h. */
54615 #include <wchar.h>
54616 #include <stddef.h>
54618 main ()
54620 wint_t i = WEOF;
54622 return 0;
54624 _ACEOF
54625 rm -f conftest.$ac_objext
54626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54627 (eval $ac_compile) 2>conftest.er1
54628 ac_status=$?
54629 grep -v '^ *+' conftest.er1 >conftest.err
54630 rm -f conftest.er1
54631 cat conftest.err >&5
54632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54633 (exit $ac_status); } &&
54634 { ac_try='test -z "$ac_c_werror_flag"
54635 || test ! -s conftest.err'
54636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54637 (eval $ac_try) 2>&5
54638 ac_status=$?
54639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54640 (exit $ac_status); }; } &&
54641 { ac_try='test -s conftest.$ac_objext'
54642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54643 (eval $ac_try) 2>&5
54644 ac_status=$?
54645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54646 (exit $ac_status); }; }; then
54647 has_weof=yes
54648 else
54649 echo "$as_me: failed program was:" >&5
54650 sed 's/^/| /' conftest.$ac_ext >&5
54652 has_weof=no
54654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54655 echo "$as_me:$LINENO: result: $has_weof" >&5
54656 echo "${ECHO_T}$has_weof" >&6
54658 # Tests for wide character functions used in char_traits<wchar_t>.
54659 ac_wfuncs=yes
54666 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54669 echo "$as_me:$LINENO: checking for $ac_func" >&5
54670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54671 if eval "test \"\${$as_ac_var+set}\" = set"; then
54672 echo $ECHO_N "(cached) $ECHO_C" >&6
54673 else
54674 if test x$gcc_no_link = xyes; then
54675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54677 { (exit 1); exit 1; }; }
54679 cat >conftest.$ac_ext <<_ACEOF
54680 /* confdefs.h. */
54681 _ACEOF
54682 cat confdefs.h >>conftest.$ac_ext
54683 cat >>conftest.$ac_ext <<_ACEOF
54684 /* end confdefs.h. */
54685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54687 #define $ac_func innocuous_$ac_func
54689 /* System header to define __stub macros and hopefully few prototypes,
54690 which can conflict with char $ac_func (); below.
54691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54692 <limits.h> exists even on freestanding compilers. */
54694 #ifdef __STDC__
54695 # include <limits.h>
54696 #else
54697 # include <assert.h>
54698 #endif
54700 #undef $ac_func
54702 /* Override any gcc2 internal prototype to avoid an error. */
54703 #ifdef __cplusplus
54704 extern "C"
54706 #endif
54707 /* We use char because int might match the return type of a gcc2
54708 builtin and then its argument prototype would still apply. */
54709 char $ac_func ();
54710 /* The GNU C library defines this for functions which it implements
54711 to always fail with ENOSYS. Some functions are actually named
54712 something starting with __ and the normal name is an alias. */
54713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54714 choke me
54715 #else
54716 char (*f) () = $ac_func;
54717 #endif
54718 #ifdef __cplusplus
54720 #endif
54723 main ()
54725 return f != $ac_func;
54727 return 0;
54729 _ACEOF
54730 rm -f conftest.$ac_objext conftest$ac_exeext
54731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54732 (eval $ac_link) 2>conftest.er1
54733 ac_status=$?
54734 grep -v '^ *+' conftest.er1 >conftest.err
54735 rm -f conftest.er1
54736 cat conftest.err >&5
54737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54738 (exit $ac_status); } &&
54739 { ac_try='test -z "$ac_c_werror_flag"
54740 || test ! -s conftest.err'
54741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54742 (eval $ac_try) 2>&5
54743 ac_status=$?
54744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54745 (exit $ac_status); }; } &&
54746 { ac_try='test -s conftest$ac_exeext'
54747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54748 (eval $ac_try) 2>&5
54749 ac_status=$?
54750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54751 (exit $ac_status); }; }; then
54752 eval "$as_ac_var=yes"
54753 else
54754 echo "$as_me: failed program was:" >&5
54755 sed 's/^/| /' conftest.$ac_ext >&5
54757 eval "$as_ac_var=no"
54759 rm -f conftest.err conftest.$ac_objext \
54760 conftest$ac_exeext conftest.$ac_ext
54762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54764 if test `eval echo '${'$as_ac_var'}'` = yes; then
54765 cat >>confdefs.h <<_ACEOF
54766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54767 _ACEOF
54769 else
54770 ac_wfuncs=no
54772 done
54775 # Checks for names injected into std:: by the c_std headers.
54822 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54823 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54824 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54825 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54826 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54827 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54830 echo "$as_me:$LINENO: checking for $ac_func" >&5
54831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54832 if eval "test \"\${$as_ac_var+set}\" = set"; then
54833 echo $ECHO_N "(cached) $ECHO_C" >&6
54834 else
54835 if test x$gcc_no_link = xyes; then
54836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54838 { (exit 1); exit 1; }; }
54840 cat >conftest.$ac_ext <<_ACEOF
54841 /* confdefs.h. */
54842 _ACEOF
54843 cat confdefs.h >>conftest.$ac_ext
54844 cat >>conftest.$ac_ext <<_ACEOF
54845 /* end confdefs.h. */
54846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54848 #define $ac_func innocuous_$ac_func
54850 /* System header to define __stub macros and hopefully few prototypes,
54851 which can conflict with char $ac_func (); below.
54852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54853 <limits.h> exists even on freestanding compilers. */
54855 #ifdef __STDC__
54856 # include <limits.h>
54857 #else
54858 # include <assert.h>
54859 #endif
54861 #undef $ac_func
54863 /* Override any gcc2 internal prototype to avoid an error. */
54864 #ifdef __cplusplus
54865 extern "C"
54867 #endif
54868 /* We use char because int might match the return type of a gcc2
54869 builtin and then its argument prototype would still apply. */
54870 char $ac_func ();
54871 /* The GNU C library defines this for functions which it implements
54872 to always fail with ENOSYS. Some functions are actually named
54873 something starting with __ and the normal name is an alias. */
54874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54875 choke me
54876 #else
54877 char (*f) () = $ac_func;
54878 #endif
54879 #ifdef __cplusplus
54881 #endif
54884 main ()
54886 return f != $ac_func;
54888 return 0;
54890 _ACEOF
54891 rm -f conftest.$ac_objext conftest$ac_exeext
54892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54893 (eval $ac_link) 2>conftest.er1
54894 ac_status=$?
54895 grep -v '^ *+' conftest.er1 >conftest.err
54896 rm -f conftest.er1
54897 cat conftest.err >&5
54898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54899 (exit $ac_status); } &&
54900 { ac_try='test -z "$ac_c_werror_flag"
54901 || test ! -s conftest.err'
54902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54903 (eval $ac_try) 2>&5
54904 ac_status=$?
54905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54906 (exit $ac_status); }; } &&
54907 { ac_try='test -s conftest$ac_exeext'
54908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54909 (eval $ac_try) 2>&5
54910 ac_status=$?
54911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54912 (exit $ac_status); }; }; then
54913 eval "$as_ac_var=yes"
54914 else
54915 echo "$as_me: failed program was:" >&5
54916 sed 's/^/| /' conftest.$ac_ext >&5
54918 eval "$as_ac_var=no"
54920 rm -f conftest.err conftest.$ac_objext \
54921 conftest$ac_exeext conftest.$ac_ext
54923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54925 if test `eval echo '${'$as_ac_var'}'` = yes; then
54926 cat >>confdefs.h <<_ACEOF
54927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54928 _ACEOF
54930 else
54931 ac_wfuncs=no
54933 done
54936 # Checks for wide character functions that are not required
54937 # for basic wchar_t support. Don't disable support if they are missing.
54938 # Injection of these is wrapped with guard macros.
54944 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54947 echo "$as_me:$LINENO: checking for $ac_func" >&5
54948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54949 if eval "test \"\${$as_ac_var+set}\" = set"; then
54950 echo $ECHO_N "(cached) $ECHO_C" >&6
54951 else
54952 if test x$gcc_no_link = xyes; then
54953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54955 { (exit 1); exit 1; }; }
54957 cat >conftest.$ac_ext <<_ACEOF
54958 /* confdefs.h. */
54959 _ACEOF
54960 cat confdefs.h >>conftest.$ac_ext
54961 cat >>conftest.$ac_ext <<_ACEOF
54962 /* end confdefs.h. */
54963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54965 #define $ac_func innocuous_$ac_func
54967 /* System header to define __stub macros and hopefully few prototypes,
54968 which can conflict with char $ac_func (); below.
54969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54970 <limits.h> exists even on freestanding compilers. */
54972 #ifdef __STDC__
54973 # include <limits.h>
54974 #else
54975 # include <assert.h>
54976 #endif
54978 #undef $ac_func
54980 /* Override any gcc2 internal prototype to avoid an error. */
54981 #ifdef __cplusplus
54982 extern "C"
54984 #endif
54985 /* We use char because int might match the return type of a gcc2
54986 builtin and then its argument prototype would still apply. */
54987 char $ac_func ();
54988 /* The GNU C library defines this for functions which it implements
54989 to always fail with ENOSYS. Some functions are actually named
54990 something starting with __ and the normal name is an alias. */
54991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54992 choke me
54993 #else
54994 char (*f) () = $ac_func;
54995 #endif
54996 #ifdef __cplusplus
54998 #endif
55001 main ()
55003 return f != $ac_func;
55005 return 0;
55007 _ACEOF
55008 rm -f conftest.$ac_objext conftest$ac_exeext
55009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55010 (eval $ac_link) 2>conftest.er1
55011 ac_status=$?
55012 grep -v '^ *+' conftest.er1 >conftest.err
55013 rm -f conftest.er1
55014 cat conftest.err >&5
55015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55016 (exit $ac_status); } &&
55017 { ac_try='test -z "$ac_c_werror_flag"
55018 || test ! -s conftest.err'
55019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55020 (eval $ac_try) 2>&5
55021 ac_status=$?
55022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55023 (exit $ac_status); }; } &&
55024 { ac_try='test -s conftest$ac_exeext'
55025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55026 (eval $ac_try) 2>&5
55027 ac_status=$?
55028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55029 (exit $ac_status); }; }; then
55030 eval "$as_ac_var=yes"
55031 else
55032 echo "$as_me: failed program was:" >&5
55033 sed 's/^/| /' conftest.$ac_ext >&5
55035 eval "$as_ac_var=no"
55037 rm -f conftest.err conftest.$ac_objext \
55038 conftest$ac_exeext conftest.$ac_ext
55040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55042 if test `eval echo '${'$as_ac_var'}'` = yes; then
55043 cat >>confdefs.h <<_ACEOF
55044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55045 _ACEOF
55048 done
55051 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55052 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55053 if test x"$has_weof" = xyes &&
55054 test x"$has_wchar_minmax" = xyes &&
55055 test x"$ac_wfuncs" = xyes;
55056 then
55057 ac_isoC99_wchar_t=yes
55058 else
55059 ac_isoC99_wchar_t=no
55061 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55062 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55064 # Use iconv for wchar_t to char conversions. As such, check for
55065 # X/Open Portability Guide, version 2 features (XPG2).
55066 if test "${ac_cv_header_iconv_h+set}" = set; then
55067 echo "$as_me:$LINENO: checking for iconv.h" >&5
55068 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55069 if test "${ac_cv_header_iconv_h+set}" = set; then
55070 echo $ECHO_N "(cached) $ECHO_C" >&6
55072 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55073 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55074 else
55075 # Is the header compilable?
55076 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55077 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55078 cat >conftest.$ac_ext <<_ACEOF
55079 /* confdefs.h. */
55080 _ACEOF
55081 cat confdefs.h >>conftest.$ac_ext
55082 cat >>conftest.$ac_ext <<_ACEOF
55083 /* end confdefs.h. */
55084 $ac_includes_default
55085 #include <iconv.h>
55086 _ACEOF
55087 rm -f conftest.$ac_objext
55088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55089 (eval $ac_compile) 2>conftest.er1
55090 ac_status=$?
55091 grep -v '^ *+' conftest.er1 >conftest.err
55092 rm -f conftest.er1
55093 cat conftest.err >&5
55094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55095 (exit $ac_status); } &&
55096 { ac_try='test -z "$ac_c_werror_flag"
55097 || test ! -s conftest.err'
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); }; } &&
55103 { ac_try='test -s conftest.$ac_objext'
55104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55105 (eval $ac_try) 2>&5
55106 ac_status=$?
55107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55108 (exit $ac_status); }; }; then
55109 ac_header_compiler=yes
55110 else
55111 echo "$as_me: failed program was:" >&5
55112 sed 's/^/| /' conftest.$ac_ext >&5
55114 ac_header_compiler=no
55116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55118 echo "${ECHO_T}$ac_header_compiler" >&6
55120 # Is the header present?
55121 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55122 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55123 cat >conftest.$ac_ext <<_ACEOF
55124 /* confdefs.h. */
55125 _ACEOF
55126 cat confdefs.h >>conftest.$ac_ext
55127 cat >>conftest.$ac_ext <<_ACEOF
55128 /* end confdefs.h. */
55129 #include <iconv.h>
55130 _ACEOF
55131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55133 ac_status=$?
55134 grep -v '^ *+' conftest.er1 >conftest.err
55135 rm -f conftest.er1
55136 cat conftest.err >&5
55137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55138 (exit $ac_status); } >/dev/null; then
55139 if test -s conftest.err; then
55140 ac_cpp_err=$ac_c_preproc_warn_flag
55141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55142 else
55143 ac_cpp_err=
55145 else
55146 ac_cpp_err=yes
55148 if test -z "$ac_cpp_err"; then
55149 ac_header_preproc=yes
55150 else
55151 echo "$as_me: failed program was:" >&5
55152 sed 's/^/| /' conftest.$ac_ext >&5
55154 ac_header_preproc=no
55156 rm -f conftest.err conftest.$ac_ext
55157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55158 echo "${ECHO_T}$ac_header_preproc" >&6
55160 # So? What about this header?
55161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55162 yes:no: )
55163 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55164 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55165 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55166 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55167 ac_header_preproc=yes
55169 no:yes:* )
55170 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55171 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55172 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55173 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55174 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55175 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55176 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
55177 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
55178 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55179 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55180 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55181 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55183 cat <<\_ASBOX
55184 ## ----------------------------------------- ##
55185 ## Report this to the package-unused lists. ##
55186 ## ----------------------------------------- ##
55187 _ASBOX
55189 sed "s/^/$as_me: WARNING: /" >&2
55191 esac
55192 echo "$as_me:$LINENO: checking for iconv.h" >&5
55193 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55194 if test "${ac_cv_header_iconv_h+set}" = set; then
55195 echo $ECHO_N "(cached) $ECHO_C" >&6
55196 else
55197 ac_cv_header_iconv_h=$ac_header_preproc
55199 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55200 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55203 if test $ac_cv_header_iconv_h = yes; then
55204 ac_has_iconv_h=yes
55205 else
55206 ac_has_iconv_h=no
55210 if test "${ac_cv_header_langinfo_h+set}" = set; then
55211 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55212 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55213 if test "${ac_cv_header_langinfo_h+set}" = set; then
55214 echo $ECHO_N "(cached) $ECHO_C" >&6
55216 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55217 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55218 else
55219 # Is the header compilable?
55220 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55221 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55222 cat >conftest.$ac_ext <<_ACEOF
55223 /* confdefs.h. */
55224 _ACEOF
55225 cat confdefs.h >>conftest.$ac_ext
55226 cat >>conftest.$ac_ext <<_ACEOF
55227 /* end confdefs.h. */
55228 $ac_includes_default
55229 #include <langinfo.h>
55230 _ACEOF
55231 rm -f conftest.$ac_objext
55232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55233 (eval $ac_compile) 2>conftest.er1
55234 ac_status=$?
55235 grep -v '^ *+' conftest.er1 >conftest.err
55236 rm -f conftest.er1
55237 cat conftest.err >&5
55238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55239 (exit $ac_status); } &&
55240 { ac_try='test -z "$ac_c_werror_flag"
55241 || test ! -s conftest.err'
55242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55243 (eval $ac_try) 2>&5
55244 ac_status=$?
55245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55246 (exit $ac_status); }; } &&
55247 { ac_try='test -s conftest.$ac_objext'
55248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55249 (eval $ac_try) 2>&5
55250 ac_status=$?
55251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55252 (exit $ac_status); }; }; then
55253 ac_header_compiler=yes
55254 else
55255 echo "$as_me: failed program was:" >&5
55256 sed 's/^/| /' conftest.$ac_ext >&5
55258 ac_header_compiler=no
55260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55262 echo "${ECHO_T}$ac_header_compiler" >&6
55264 # Is the header present?
55265 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55266 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55267 cat >conftest.$ac_ext <<_ACEOF
55268 /* confdefs.h. */
55269 _ACEOF
55270 cat confdefs.h >>conftest.$ac_ext
55271 cat >>conftest.$ac_ext <<_ACEOF
55272 /* end confdefs.h. */
55273 #include <langinfo.h>
55274 _ACEOF
55275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55277 ac_status=$?
55278 grep -v '^ *+' conftest.er1 >conftest.err
55279 rm -f conftest.er1
55280 cat conftest.err >&5
55281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55282 (exit $ac_status); } >/dev/null; then
55283 if test -s conftest.err; then
55284 ac_cpp_err=$ac_c_preproc_warn_flag
55285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55286 else
55287 ac_cpp_err=
55289 else
55290 ac_cpp_err=yes
55292 if test -z "$ac_cpp_err"; then
55293 ac_header_preproc=yes
55294 else
55295 echo "$as_me: failed program was:" >&5
55296 sed 's/^/| /' conftest.$ac_ext >&5
55298 ac_header_preproc=no
55300 rm -f conftest.err conftest.$ac_ext
55301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55302 echo "${ECHO_T}$ac_header_preproc" >&6
55304 # So? What about this header?
55305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55306 yes:no: )
55307 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55308 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55309 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55310 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55311 ac_header_preproc=yes
55313 no:yes:* )
55314 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55315 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55316 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55317 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55318 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55319 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55320 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
55321 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
55322 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55323 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55324 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55325 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55327 cat <<\_ASBOX
55328 ## ----------------------------------------- ##
55329 ## Report this to the package-unused lists. ##
55330 ## ----------------------------------------- ##
55331 _ASBOX
55333 sed "s/^/$as_me: WARNING: /" >&2
55335 esac
55336 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55337 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55338 if test "${ac_cv_header_langinfo_h+set}" = set; then
55339 echo $ECHO_N "(cached) $ECHO_C" >&6
55340 else
55341 ac_cv_header_langinfo_h=$ac_header_preproc
55343 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55344 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55347 if test $ac_cv_header_langinfo_h = yes; then
55348 ac_has_langinfo_h=yes
55349 else
55350 ac_has_langinfo_h=no
55355 # Check for existence of libiconv.a providing XPG2 wchar_t support.
55356 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55357 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55358 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55359 echo $ECHO_N "(cached) $ECHO_C" >&6
55360 else
55361 ac_check_lib_save_LIBS=$LIBS
55362 LIBS="-liconv $LIBS"
55363 if test x$gcc_no_link = xyes; then
55364 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55365 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55366 { (exit 1); exit 1; }; }
55368 cat >conftest.$ac_ext <<_ACEOF
55369 /* confdefs.h. */
55370 _ACEOF
55371 cat confdefs.h >>conftest.$ac_ext
55372 cat >>conftest.$ac_ext <<_ACEOF
55373 /* end confdefs.h. */
55375 /* Override any gcc2 internal prototype to avoid an error. */
55376 #ifdef __cplusplus
55377 extern "C"
55378 #endif
55379 /* We use char because int might match the return type of a gcc2
55380 builtin and then its argument prototype would still apply. */
55381 char iconv ();
55383 main ()
55385 iconv ();
55387 return 0;
55389 _ACEOF
55390 rm -f conftest.$ac_objext conftest$ac_exeext
55391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55392 (eval $ac_link) 2>conftest.er1
55393 ac_status=$?
55394 grep -v '^ *+' conftest.er1 >conftest.err
55395 rm -f conftest.er1
55396 cat conftest.err >&5
55397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55398 (exit $ac_status); } &&
55399 { ac_try='test -z "$ac_c_werror_flag"
55400 || test ! -s conftest.err'
55401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55402 (eval $ac_try) 2>&5
55403 ac_status=$?
55404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55405 (exit $ac_status); }; } &&
55406 { ac_try='test -s conftest$ac_exeext'
55407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55408 (eval $ac_try) 2>&5
55409 ac_status=$?
55410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55411 (exit $ac_status); }; }; then
55412 ac_cv_lib_iconv_iconv=yes
55413 else
55414 echo "$as_me: failed program was:" >&5
55415 sed 's/^/| /' conftest.$ac_ext >&5
55417 ac_cv_lib_iconv_iconv=no
55419 rm -f conftest.err conftest.$ac_objext \
55420 conftest$ac_exeext conftest.$ac_ext
55421 LIBS=$ac_check_lib_save_LIBS
55423 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55424 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55425 if test $ac_cv_lib_iconv_iconv = yes; then
55426 libiconv="-liconv"
55429 ac_save_LIBS="$LIBS"
55430 LIBS="$LIBS $libiconv"
55436 for ac_func in iconv_open iconv_close iconv nl_langinfo
55438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55439 echo "$as_me:$LINENO: checking for $ac_func" >&5
55440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55441 if eval "test \"\${$as_ac_var+set}\" = set"; then
55442 echo $ECHO_N "(cached) $ECHO_C" >&6
55443 else
55444 if test x$gcc_no_link = xyes; then
55445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55446 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55447 { (exit 1); exit 1; }; }
55449 cat >conftest.$ac_ext <<_ACEOF
55450 /* confdefs.h. */
55451 _ACEOF
55452 cat confdefs.h >>conftest.$ac_ext
55453 cat >>conftest.$ac_ext <<_ACEOF
55454 /* end confdefs.h. */
55455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55457 #define $ac_func innocuous_$ac_func
55459 /* System header to define __stub macros and hopefully few prototypes,
55460 which can conflict with char $ac_func (); below.
55461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55462 <limits.h> exists even on freestanding compilers. */
55464 #ifdef __STDC__
55465 # include <limits.h>
55466 #else
55467 # include <assert.h>
55468 #endif
55470 #undef $ac_func
55472 /* Override any gcc2 internal prototype to avoid an error. */
55473 #ifdef __cplusplus
55474 extern "C"
55476 #endif
55477 /* We use char because int might match the return type of a gcc2
55478 builtin and then its argument prototype would still apply. */
55479 char $ac_func ();
55480 /* The GNU C library defines this for functions which it implements
55481 to always fail with ENOSYS. Some functions are actually named
55482 something starting with __ and the normal name is an alias. */
55483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55484 choke me
55485 #else
55486 char (*f) () = $ac_func;
55487 #endif
55488 #ifdef __cplusplus
55490 #endif
55493 main ()
55495 return f != $ac_func;
55497 return 0;
55499 _ACEOF
55500 rm -f conftest.$ac_objext conftest$ac_exeext
55501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55502 (eval $ac_link) 2>conftest.er1
55503 ac_status=$?
55504 grep -v '^ *+' conftest.er1 >conftest.err
55505 rm -f conftest.er1
55506 cat conftest.err >&5
55507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55508 (exit $ac_status); } &&
55509 { ac_try='test -z "$ac_c_werror_flag"
55510 || test ! -s conftest.err'
55511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55512 (eval $ac_try) 2>&5
55513 ac_status=$?
55514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55515 (exit $ac_status); }; } &&
55516 { ac_try='test -s conftest$ac_exeext'
55517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55518 (eval $ac_try) 2>&5
55519 ac_status=$?
55520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55521 (exit $ac_status); }; }; then
55522 eval "$as_ac_var=yes"
55523 else
55524 echo "$as_me: failed program was:" >&5
55525 sed 's/^/| /' conftest.$ac_ext >&5
55527 eval "$as_ac_var=no"
55529 rm -f conftest.err conftest.$ac_objext \
55530 conftest$ac_exeext conftest.$ac_ext
55532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55534 if test `eval echo '${'$as_ac_var'}'` = yes; then
55535 cat >>confdefs.h <<_ACEOF
55536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55537 _ACEOF
55538 ac_XPG2funcs=yes
55539 else
55540 ac_XPG2funcs=no
55542 done
55545 LIBS="$ac_save_LIBS"
55547 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55548 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55549 if test x"$ac_has_iconv_h" = xyes &&
55550 test x"$ac_has_langinfo_h" = xyes &&
55551 test x"$ac_XPG2funcs" = xyes;
55552 then
55553 ac_XPG2_wchar_t=yes
55554 else
55555 ac_XPG2_wchar_t=no
55557 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55558 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55560 # At the moment, only enable wchar_t specializations if all the
55561 # above support is present.
55562 if test x"$ac_isoC99_wchar_t" = xyes &&
55563 test x"$ac_XPG2_wchar_t" = xyes;
55564 then
55565 cat >>confdefs.h <<\_ACEOF
55566 #define _GLIBCXX_USE_WCHAR_T 1
55567 _ACEOF
55569 enable_wchar_t=yes
55572 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55573 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55574 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55575 echo "${ECHO_T}$enable_wchar_t" >&6
55577 cat >>confdefs.h <<\_ACEOF
55578 #define HAVE_LC_MESSAGES 1
55579 _ACEOF
55581 cat >>confdefs.h <<\_ACEOF
55582 #define HAVE_GETPAGESIZE 1
55583 _ACEOF
55585 cat >>confdefs.h <<\_ACEOF
55586 #define HAVE_SETENV 1
55587 _ACEOF
55589 cat >>confdefs.h <<\_ACEOF
55590 #define HAVE_SIGSETJMP 1
55591 _ACEOF
55593 cat >>confdefs.h <<\_ACEOF
55594 #define HAVE_COPYSIGN 1
55595 _ACEOF
55597 cat >>confdefs.h <<\_ACEOF
55598 #define HAVE_COPYSIGNF 1
55599 _ACEOF
55601 cat >>confdefs.h <<\_ACEOF
55602 #define HAVE_FINITEF 1
55603 _ACEOF
55605 cat >>confdefs.h <<\_ACEOF
55606 #define HAVE_FINITE 1
55607 _ACEOF
55609 cat >>confdefs.h <<\_ACEOF
55610 #define HAVE_FREXPF 1
55611 _ACEOF
55613 cat >>confdefs.h <<\_ACEOF
55614 #define HAVE_HYPOT 1
55615 _ACEOF
55617 cat >>confdefs.h <<\_ACEOF
55618 #define HAVE_HYPOTF 1
55619 _ACEOF
55621 cat >>confdefs.h <<\_ACEOF
55622 #define HAVE_ISINF 1
55623 _ACEOF
55625 cat >>confdefs.h <<\_ACEOF
55626 #define HAVE_ISNAN 1
55627 _ACEOF
55629 cat >>confdefs.h <<\_ACEOF
55630 #define HAVE_ISNANF 1
55631 _ACEOF
55634 cat >>confdefs.h <<\_ACEOF
55635 #define HAVE_MMAP 1
55636 _ACEOF
55638 cat >>confdefs.h <<\_ACEOF
55639 #define HAVE_ACOSF 1
55640 _ACEOF
55642 cat >>confdefs.h <<\_ACEOF
55643 #define HAVE_ASINF 1
55644 _ACEOF
55646 cat >>confdefs.h <<\_ACEOF
55647 #define HAVE_ATAN2F 1
55648 _ACEOF
55650 cat >>confdefs.h <<\_ACEOF
55651 #define HAVE_ATANF 1
55652 _ACEOF
55654 cat >>confdefs.h <<\_ACEOF
55655 #define HAVE_CEILF 1
55656 _ACEOF
55658 cat >>confdefs.h <<\_ACEOF
55659 #define HAVE_COPYSIGN 1
55660 _ACEOF
55662 cat >>confdefs.h <<\_ACEOF
55663 #define HAVE_COPYSIGNF 1
55664 _ACEOF
55666 cat >>confdefs.h <<\_ACEOF
55667 #define HAVE_COSF 1
55668 _ACEOF
55670 cat >>confdefs.h <<\_ACEOF
55671 #define HAVE_COSHF 1
55672 _ACEOF
55674 cat >>confdefs.h <<\_ACEOF
55675 #define HAVE_EXPF 1
55676 _ACEOF
55678 cat >>confdefs.h <<\_ACEOF
55679 #define HAVE_FABSF 1
55680 _ACEOF
55682 cat >>confdefs.h <<\_ACEOF
55683 #define HAVE_FLOORF 1
55684 _ACEOF
55686 cat >>confdefs.h <<\_ACEOF
55687 #define HAVE_FMODF 1
55688 _ACEOF
55690 cat >>confdefs.h <<\_ACEOF
55691 #define HAVE_FREXPF 1
55692 _ACEOF
55694 cat >>confdefs.h <<\_ACEOF
55695 #define HAVE_LDEXPF 1
55696 _ACEOF
55698 cat >>confdefs.h <<\_ACEOF
55699 #define HAVE_LOG10F 1
55700 _ACEOF
55702 cat >>confdefs.h <<\_ACEOF
55703 #define HAVE_LOGF 1
55704 _ACEOF
55706 cat >>confdefs.h <<\_ACEOF
55707 #define HAVE_MODFF 1
55708 _ACEOF
55710 cat >>confdefs.h <<\_ACEOF
55711 #define HAVE_POWF 1
55712 _ACEOF
55714 cat >>confdefs.h <<\_ACEOF
55715 #define HAVE_SINF 1
55716 _ACEOF
55718 cat >>confdefs.h <<\_ACEOF
55719 #define HAVE_SINHF 1
55720 _ACEOF
55722 cat >>confdefs.h <<\_ACEOF
55723 #define HAVE_SQRTF 1
55724 _ACEOF
55726 cat >>confdefs.h <<\_ACEOF
55727 #define HAVE_TANF 1
55728 _ACEOF
55730 cat >>confdefs.h <<\_ACEOF
55731 #define HAVE_TANHF 1
55732 _ACEOF
55734 if test x"long_double_math_on_this_cpu" = x"yes"; then
55735 cat >>confdefs.h <<\_ACEOF
55736 #define HAVE_FINITEL 1
55737 _ACEOF
55739 cat >>confdefs.h <<\_ACEOF
55740 #define HAVE_ISINFL 1
55741 _ACEOF
55743 cat >>confdefs.h <<\_ACEOF
55744 #define HAVE_ISNANL 1
55745 _ACEOF
55749 *-hpux*)
55762 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55763 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55764 fp.h locale.h float.h inttypes.h
55766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55768 echo "$as_me:$LINENO: checking for $ac_header" >&5
55769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55771 echo $ECHO_N "(cached) $ECHO_C" >&6
55773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55775 else
55776 # Is the header compilable?
55777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55779 cat >conftest.$ac_ext <<_ACEOF
55780 /* confdefs.h. */
55781 _ACEOF
55782 cat confdefs.h >>conftest.$ac_ext
55783 cat >>conftest.$ac_ext <<_ACEOF
55784 /* end confdefs.h. */
55785 $ac_includes_default
55786 #include <$ac_header>
55787 _ACEOF
55788 rm -f conftest.$ac_objext
55789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55790 (eval $ac_compile) 2>conftest.er1
55791 ac_status=$?
55792 grep -v '^ *+' conftest.er1 >conftest.err
55793 rm -f conftest.er1
55794 cat conftest.err >&5
55795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55796 (exit $ac_status); } &&
55797 { ac_try='test -z "$ac_c_werror_flag"
55798 || test ! -s conftest.err'
55799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55800 (eval $ac_try) 2>&5
55801 ac_status=$?
55802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55803 (exit $ac_status); }; } &&
55804 { ac_try='test -s conftest.$ac_objext'
55805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55806 (eval $ac_try) 2>&5
55807 ac_status=$?
55808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55809 (exit $ac_status); }; }; then
55810 ac_header_compiler=yes
55811 else
55812 echo "$as_me: failed program was:" >&5
55813 sed 's/^/| /' conftest.$ac_ext >&5
55815 ac_header_compiler=no
55817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55819 echo "${ECHO_T}$ac_header_compiler" >&6
55821 # Is the header present?
55822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55824 cat >conftest.$ac_ext <<_ACEOF
55825 /* confdefs.h. */
55826 _ACEOF
55827 cat confdefs.h >>conftest.$ac_ext
55828 cat >>conftest.$ac_ext <<_ACEOF
55829 /* end confdefs.h. */
55830 #include <$ac_header>
55831 _ACEOF
55832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55834 ac_status=$?
55835 grep -v '^ *+' conftest.er1 >conftest.err
55836 rm -f conftest.er1
55837 cat conftest.err >&5
55838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55839 (exit $ac_status); } >/dev/null; then
55840 if test -s conftest.err; then
55841 ac_cpp_err=$ac_c_preproc_warn_flag
55842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55843 else
55844 ac_cpp_err=
55846 else
55847 ac_cpp_err=yes
55849 if test -z "$ac_cpp_err"; then
55850 ac_header_preproc=yes
55851 else
55852 echo "$as_me: failed program was:" >&5
55853 sed 's/^/| /' conftest.$ac_ext >&5
55855 ac_header_preproc=no
55857 rm -f conftest.err conftest.$ac_ext
55858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55859 echo "${ECHO_T}$ac_header_preproc" >&6
55861 # So? What about this header?
55862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55863 yes:no: )
55864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55868 ac_header_preproc=yes
55870 no:yes:* )
55871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55884 cat <<\_ASBOX
55885 ## ----------------------------------------- ##
55886 ## Report this to the package-unused lists. ##
55887 ## ----------------------------------------- ##
55888 _ASBOX
55890 sed "s/^/$as_me: WARNING: /" >&2
55892 esac
55893 echo "$as_me:$LINENO: checking for $ac_header" >&5
55894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55896 echo $ECHO_N "(cached) $ECHO_C" >&6
55897 else
55898 eval "$as_ac_Header=\$ac_header_preproc"
55900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55905 cat >>confdefs.h <<_ACEOF
55906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55907 _ACEOF
55911 done
55913 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55916 # If we're not using GNU ld, then there's no point in even trying these
55917 # tests. Check for that first. We should have already tested for gld
55918 # by now (in libtool), but require it now just to be safe...
55919 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55920 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55924 # The name set by libtool depends on the version of libtool. Shame on us
55925 # for depending on an impl detail, but c'est la vie. Older versions used
55926 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55927 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55928 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55929 # set (hence we're using an older libtool), then set it.
55930 if test x${with_gnu_ld+set} != xset; then
55931 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55932 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
55933 with_gnu_ld=no
55934 else
55935 with_gnu_ld=$ac_cv_prog_gnu_ld
55939 # Start by getting the version number. I think the libtool test already
55940 # does some of this, but throws away the result.
55942 ldver=`$LD --version 2>/dev/null | head -1 | \
55943 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55945 glibcxx_gnu_ld_version=`echo $ldver | \
55946 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55948 # Set --gc-sections.
55949 if test "$with_gnu_ld" = "notbroken"; then
55950 # GNU ld it is! Joy and bunny rabbits!
55952 # All these tests are for C++; save the language and the compiler flags.
55953 # Need to do this so that g++ won't try to link in libstdc++
55954 ac_test_CFLAGS="${CFLAGS+set}"
55955 ac_save_CFLAGS="$CFLAGS"
55956 CFLAGS='-x c++ -Wl,--gc-sections'
55958 # Check for -Wl,--gc-sections
55959 # XXX This test is broken at the moment, as symbols required for linking
55960 # are now in libsupc++ (not built yet). In addition, this test has
55961 # cored on solaris in the past. In addition, --gc-sections doesn't
55962 # really work at the moment (keeps on discarding used sections, first
55963 # .eh_frame and now some of the glibc sections for iconv).
55964 # Bzzzzt. Thanks for playing, maybe next time.
55965 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55966 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55967 if test "$cross_compiling" = yes; then
55968 ac_sectionLDflags=yes
55969 else
55970 cat >conftest.$ac_ext <<_ACEOF
55971 /* confdefs.h. */
55972 _ACEOF
55973 cat confdefs.h >>conftest.$ac_ext
55974 cat >>conftest.$ac_ext <<_ACEOF
55975 /* end confdefs.h. */
55977 int main(void)
55979 try { throw 1; }
55980 catch (...) { };
55981 return 0;
55984 _ACEOF
55985 rm -f conftest$ac_exeext
55986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55987 (eval $ac_link) 2>&5
55988 ac_status=$?
55989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55992 (eval $ac_try) 2>&5
55993 ac_status=$?
55994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55995 (exit $ac_status); }; }; then
55996 ac_sectionLDflags=yes
55997 else
55998 echo "$as_me: program exited with status $ac_status" >&5
55999 echo "$as_me: failed program was:" >&5
56000 sed 's/^/| /' conftest.$ac_ext >&5
56002 ( exit $ac_status )
56003 ac_sectionLDflags=no
56005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56007 if test "$ac_test_CFLAGS" = set; then
56008 CFLAGS="$ac_save_CFLAGS"
56009 else
56010 # this is the suspicious part
56011 CFLAGS=''
56013 if test "$ac_sectionLDflags" = "yes"; then
56014 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56016 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56017 echo "${ECHO_T}$ac_sectionLDflags" >&6
56020 # Set linker optimization flags.
56021 if test x"$with_gnu_ld" = x"yes"; then
56022 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56030 echo "$as_me:$LINENO: checking for main in -lm" >&5
56031 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56032 if test "${ac_cv_lib_m_main+set}" = set; then
56033 echo $ECHO_N "(cached) $ECHO_C" >&6
56034 else
56035 ac_check_lib_save_LIBS=$LIBS
56036 LIBS="-lm $LIBS"
56037 if test x$gcc_no_link = xyes; then
56038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56040 { (exit 1); exit 1; }; }
56042 cat >conftest.$ac_ext <<_ACEOF
56043 /* confdefs.h. */
56044 _ACEOF
56045 cat confdefs.h >>conftest.$ac_ext
56046 cat >>conftest.$ac_ext <<_ACEOF
56047 /* end confdefs.h. */
56051 main ()
56053 main ();
56055 return 0;
56057 _ACEOF
56058 rm -f conftest.$ac_objext conftest$ac_exeext
56059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56060 (eval $ac_link) 2>conftest.er1
56061 ac_status=$?
56062 grep -v '^ *+' conftest.er1 >conftest.err
56063 rm -f conftest.er1
56064 cat conftest.err >&5
56065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56066 (exit $ac_status); } &&
56067 { ac_try='test -z "$ac_c_werror_flag"
56068 || test ! -s conftest.err'
56069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56070 (eval $ac_try) 2>&5
56071 ac_status=$?
56072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56073 (exit $ac_status); }; } &&
56074 { ac_try='test -s conftest$ac_exeext'
56075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56076 (eval $ac_try) 2>&5
56077 ac_status=$?
56078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56079 (exit $ac_status); }; }; then
56080 ac_cv_lib_m_main=yes
56081 else
56082 echo "$as_me: failed program was:" >&5
56083 sed 's/^/| /' conftest.$ac_ext >&5
56085 ac_cv_lib_m_main=no
56087 rm -f conftest.err conftest.$ac_objext \
56088 conftest$ac_exeext conftest.$ac_ext
56089 LIBS=$ac_check_lib_save_LIBS
56091 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56092 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56093 if test $ac_cv_lib_m_main = yes; then
56094 cat >>confdefs.h <<_ACEOF
56095 #define HAVE_LIBM 1
56096 _ACEOF
56098 LIBS="-lm $LIBS"
56103 for ac_func in copysignf
56105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56106 echo "$as_me:$LINENO: checking for $ac_func" >&5
56107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56108 if eval "test \"\${$as_ac_var+set}\" = set"; then
56109 echo $ECHO_N "(cached) $ECHO_C" >&6
56110 else
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. */
56122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56124 #define $ac_func innocuous_$ac_func
56126 /* System header to define __stub macros and hopefully few prototypes,
56127 which can conflict with char $ac_func (); below.
56128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56129 <limits.h> exists even on freestanding compilers. */
56131 #ifdef __STDC__
56132 # include <limits.h>
56133 #else
56134 # include <assert.h>
56135 #endif
56137 #undef $ac_func
56139 /* Override any gcc2 internal prototype to avoid an error. */
56140 #ifdef __cplusplus
56141 extern "C"
56143 #endif
56144 /* We use char because int might match the return type of a gcc2
56145 builtin and then its argument prototype would still apply. */
56146 char $ac_func ();
56147 /* The GNU C library defines this for functions which it implements
56148 to always fail with ENOSYS. Some functions are actually named
56149 something starting with __ and the normal name is an alias. */
56150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56151 choke me
56152 #else
56153 char (*f) () = $ac_func;
56154 #endif
56155 #ifdef __cplusplus
56157 #endif
56160 main ()
56162 return f != $ac_func;
56164 return 0;
56166 _ACEOF
56167 rm -f conftest.$ac_objext conftest$ac_exeext
56168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56169 (eval $ac_link) 2>conftest.er1
56170 ac_status=$?
56171 grep -v '^ *+' conftest.er1 >conftest.err
56172 rm -f conftest.er1
56173 cat conftest.err >&5
56174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56175 (exit $ac_status); } &&
56176 { ac_try='test -z "$ac_c_werror_flag"
56177 || test ! -s conftest.err'
56178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56179 (eval $ac_try) 2>&5
56180 ac_status=$?
56181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56182 (exit $ac_status); }; } &&
56183 { ac_try='test -s conftest$ac_exeext'
56184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56185 (eval $ac_try) 2>&5
56186 ac_status=$?
56187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56188 (exit $ac_status); }; }; then
56189 eval "$as_ac_var=yes"
56190 else
56191 echo "$as_me: failed program was:" >&5
56192 sed 's/^/| /' conftest.$ac_ext >&5
56194 eval "$as_ac_var=no"
56196 rm -f conftest.err conftest.$ac_objext \
56197 conftest$ac_exeext conftest.$ac_ext
56199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56201 if test `eval echo '${'$as_ac_var'}'` = yes; then
56202 cat >>confdefs.h <<_ACEOF
56203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56204 _ACEOF
56206 else
56207 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56209 done
56213 for ac_func in __signbit
56215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56216 echo "$as_me:$LINENO: checking for $ac_func" >&5
56217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56218 if eval "test \"\${$as_ac_var+set}\" = set"; then
56219 echo $ECHO_N "(cached) $ECHO_C" >&6
56220 else
56221 if test x$gcc_no_link = xyes; then
56222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56224 { (exit 1); exit 1; }; }
56226 cat >conftest.$ac_ext <<_ACEOF
56227 /* confdefs.h. */
56228 _ACEOF
56229 cat confdefs.h >>conftest.$ac_ext
56230 cat >>conftest.$ac_ext <<_ACEOF
56231 /* end confdefs.h. */
56232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56234 #define $ac_func innocuous_$ac_func
56236 /* System header to define __stub macros and hopefully few prototypes,
56237 which can conflict with char $ac_func (); below.
56238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56239 <limits.h> exists even on freestanding compilers. */
56241 #ifdef __STDC__
56242 # include <limits.h>
56243 #else
56244 # include <assert.h>
56245 #endif
56247 #undef $ac_func
56249 /* Override any gcc2 internal prototype to avoid an error. */
56250 #ifdef __cplusplus
56251 extern "C"
56253 #endif
56254 /* We use char because int might match the return type of a gcc2
56255 builtin and then its argument prototype would still apply. */
56256 char $ac_func ();
56257 /* The GNU C library defines this for functions which it implements
56258 to always fail with ENOSYS. Some functions are actually named
56259 something starting with __ and the normal name is an alias. */
56260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56261 choke me
56262 #else
56263 char (*f) () = $ac_func;
56264 #endif
56265 #ifdef __cplusplus
56267 #endif
56270 main ()
56272 return f != $ac_func;
56274 return 0;
56276 _ACEOF
56277 rm -f conftest.$ac_objext conftest$ac_exeext
56278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56279 (eval $ac_link) 2>conftest.er1
56280 ac_status=$?
56281 grep -v '^ *+' conftest.er1 >conftest.err
56282 rm -f conftest.er1
56283 cat conftest.err >&5
56284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56285 (exit $ac_status); } &&
56286 { ac_try='test -z "$ac_c_werror_flag"
56287 || test ! -s conftest.err'
56288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56289 (eval $ac_try) 2>&5
56290 ac_status=$?
56291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56292 (exit $ac_status); }; } &&
56293 { ac_try='test -s conftest$ac_exeext'
56294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56295 (eval $ac_try) 2>&5
56296 ac_status=$?
56297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56298 (exit $ac_status); }; }; then
56299 eval "$as_ac_var=yes"
56300 else
56301 echo "$as_me: failed program was:" >&5
56302 sed 's/^/| /' conftest.$ac_ext >&5
56304 eval "$as_ac_var=no"
56306 rm -f conftest.err conftest.$ac_objext \
56307 conftest$ac_exeext conftest.$ac_ext
56309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56311 if test `eval echo '${'$as_ac_var'}'` = yes; then
56312 cat >>confdefs.h <<_ACEOF
56313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56314 _ACEOF
56316 else
56317 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56319 done
56322 for ac_func in __signbitf
56324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56325 echo "$as_me:$LINENO: checking for $ac_func" >&5
56326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56327 if eval "test \"\${$as_ac_var+set}\" = set"; then
56328 echo $ECHO_N "(cached) $ECHO_C" >&6
56329 else
56330 if test x$gcc_no_link = xyes; then
56331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56333 { (exit 1); exit 1; }; }
56335 cat >conftest.$ac_ext <<_ACEOF
56336 /* confdefs.h. */
56337 _ACEOF
56338 cat confdefs.h >>conftest.$ac_ext
56339 cat >>conftest.$ac_ext <<_ACEOF
56340 /* end confdefs.h. */
56341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56343 #define $ac_func innocuous_$ac_func
56345 /* System header to define __stub macros and hopefully few prototypes,
56346 which can conflict with char $ac_func (); below.
56347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56348 <limits.h> exists even on freestanding compilers. */
56350 #ifdef __STDC__
56351 # include <limits.h>
56352 #else
56353 # include <assert.h>
56354 #endif
56356 #undef $ac_func
56358 /* Override any gcc2 internal prototype to avoid an error. */
56359 #ifdef __cplusplus
56360 extern "C"
56362 #endif
56363 /* We use char because int might match the return type of a gcc2
56364 builtin and then its argument prototype would still apply. */
56365 char $ac_func ();
56366 /* The GNU C library defines this for functions which it implements
56367 to always fail with ENOSYS. Some functions are actually named
56368 something starting with __ and the normal name is an alias. */
56369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56370 choke me
56371 #else
56372 char (*f) () = $ac_func;
56373 #endif
56374 #ifdef __cplusplus
56376 #endif
56379 main ()
56381 return f != $ac_func;
56383 return 0;
56385 _ACEOF
56386 rm -f conftest.$ac_objext conftest$ac_exeext
56387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56388 (eval $ac_link) 2>conftest.er1
56389 ac_status=$?
56390 grep -v '^ *+' conftest.er1 >conftest.err
56391 rm -f conftest.er1
56392 cat conftest.err >&5
56393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56394 (exit $ac_status); } &&
56395 { ac_try='test -z "$ac_c_werror_flag"
56396 || test ! -s conftest.err'
56397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56398 (eval $ac_try) 2>&5
56399 ac_status=$?
56400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56401 (exit $ac_status); }; } &&
56402 { ac_try='test -s conftest$ac_exeext'
56403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56404 (eval $ac_try) 2>&5
56405 ac_status=$?
56406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56407 (exit $ac_status); }; }; then
56408 eval "$as_ac_var=yes"
56409 else
56410 echo "$as_me: failed program was:" >&5
56411 sed 's/^/| /' conftest.$ac_ext >&5
56413 eval "$as_ac_var=no"
56415 rm -f conftest.err conftest.$ac_objext \
56416 conftest$ac_exeext conftest.$ac_ext
56418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56420 if test `eval echo '${'$as_ac_var'}'` = yes; then
56421 cat >>confdefs.h <<_ACEOF
56422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56423 _ACEOF
56425 else
56426 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56428 done
56431 if test x$ac_cv_func_copysignl = x"yes"; then
56433 for ac_func in __signbitl
56435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56436 echo "$as_me:$LINENO: checking for $ac_func" >&5
56437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56438 if eval "test \"\${$as_ac_var+set}\" = set"; then
56439 echo $ECHO_N "(cached) $ECHO_C" >&6
56440 else
56441 if test x$gcc_no_link = xyes; then
56442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56444 { (exit 1); exit 1; }; }
56446 cat >conftest.$ac_ext <<_ACEOF
56447 /* confdefs.h. */
56448 _ACEOF
56449 cat confdefs.h >>conftest.$ac_ext
56450 cat >>conftest.$ac_ext <<_ACEOF
56451 /* end confdefs.h. */
56452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56454 #define $ac_func innocuous_$ac_func
56456 /* System header to define __stub macros and hopefully few prototypes,
56457 which can conflict with char $ac_func (); below.
56458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56459 <limits.h> exists even on freestanding compilers. */
56461 #ifdef __STDC__
56462 # include <limits.h>
56463 #else
56464 # include <assert.h>
56465 #endif
56467 #undef $ac_func
56469 /* Override any gcc2 internal prototype to avoid an error. */
56470 #ifdef __cplusplus
56471 extern "C"
56473 #endif
56474 /* We use char because int might match the return type of a gcc2
56475 builtin and then its argument prototype would still apply. */
56476 char $ac_func ();
56477 /* The GNU C library defines this for functions which it implements
56478 to always fail with ENOSYS. Some functions are actually named
56479 something starting with __ and the normal name is an alias. */
56480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56481 choke me
56482 #else
56483 char (*f) () = $ac_func;
56484 #endif
56485 #ifdef __cplusplus
56487 #endif
56490 main ()
56492 return f != $ac_func;
56494 return 0;
56496 _ACEOF
56497 rm -f conftest.$ac_objext conftest$ac_exeext
56498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56499 (eval $ac_link) 2>conftest.er1
56500 ac_status=$?
56501 grep -v '^ *+' conftest.er1 >conftest.err
56502 rm -f conftest.er1
56503 cat conftest.err >&5
56504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56505 (exit $ac_status); } &&
56506 { ac_try='test -z "$ac_c_werror_flag"
56507 || test ! -s conftest.err'
56508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56509 (eval $ac_try) 2>&5
56510 ac_status=$?
56511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56512 (exit $ac_status); }; } &&
56513 { ac_try='test -s conftest$ac_exeext'
56514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56515 (eval $ac_try) 2>&5
56516 ac_status=$?
56517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56518 (exit $ac_status); }; }; then
56519 eval "$as_ac_var=yes"
56520 else
56521 echo "$as_me: failed program was:" >&5
56522 sed 's/^/| /' conftest.$ac_ext >&5
56524 eval "$as_ac_var=no"
56526 rm -f conftest.err conftest.$ac_objext \
56527 conftest$ac_exeext conftest.$ac_ext
56529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56531 if test `eval echo '${'$as_ac_var'}'` = yes; then
56532 cat >>confdefs.h <<_ACEOF
56533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56534 _ACEOF
56536 else
56537 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56539 done
56543 # XXX Review this. Nothing uses it.
56544 if test -n "$LIBMATHOBJS"; then
56545 need_libmath=yes
56550 # Test wchar.h for mbstate_t, which is needed for char_traits and
56551 # others even if wchar_t support is not on.
56552 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56553 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56554 cat >conftest.$ac_ext <<_ACEOF
56555 /* confdefs.h. */
56556 _ACEOF
56557 cat confdefs.h >>conftest.$ac_ext
56558 cat >>conftest.$ac_ext <<_ACEOF
56559 /* end confdefs.h. */
56560 #include <wchar.h>
56562 main ()
56564 mbstate_t teststate;
56566 return 0;
56568 _ACEOF
56569 rm -f conftest.$ac_objext
56570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56571 (eval $ac_compile) 2>conftest.er1
56572 ac_status=$?
56573 grep -v '^ *+' conftest.er1 >conftest.err
56574 rm -f conftest.er1
56575 cat conftest.err >&5
56576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56577 (exit $ac_status); } &&
56578 { ac_try='test -z "$ac_c_werror_flag"
56579 || test ! -s conftest.err'
56580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56581 (eval $ac_try) 2>&5
56582 ac_status=$?
56583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56584 (exit $ac_status); }; } &&
56585 { ac_try='test -s conftest.$ac_objext'
56586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56587 (eval $ac_try) 2>&5
56588 ac_status=$?
56589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56590 (exit $ac_status); }; }; then
56591 have_mbstate_t=yes
56592 else
56593 echo "$as_me: failed program was:" >&5
56594 sed 's/^/| /' conftest.$ac_ext >&5
56596 have_mbstate_t=no
56598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56599 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56600 echo "${ECHO_T}$have_mbstate_t" >&6
56601 if test x"$have_mbstate_t" = xyes; then
56602 cat >>confdefs.h <<\_ACEOF
56603 #define HAVE_MBSTATE_T 1
56604 _ACEOF
56608 # Sanity check for existence of ISO C99 headers for extended encoding.
56610 for ac_header in wchar.h
56612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56614 echo "$as_me:$LINENO: checking for $ac_header" >&5
56615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56617 echo $ECHO_N "(cached) $ECHO_C" >&6
56619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56621 else
56622 # Is the header compilable?
56623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56625 cat >conftest.$ac_ext <<_ACEOF
56626 /* confdefs.h. */
56627 _ACEOF
56628 cat confdefs.h >>conftest.$ac_ext
56629 cat >>conftest.$ac_ext <<_ACEOF
56630 /* end confdefs.h. */
56631 $ac_includes_default
56632 #include <$ac_header>
56633 _ACEOF
56634 rm -f conftest.$ac_objext
56635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56636 (eval $ac_compile) 2>conftest.er1
56637 ac_status=$?
56638 grep -v '^ *+' conftest.er1 >conftest.err
56639 rm -f conftest.er1
56640 cat conftest.err >&5
56641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56642 (exit $ac_status); } &&
56643 { ac_try='test -z "$ac_c_werror_flag"
56644 || test ! -s conftest.err'
56645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56646 (eval $ac_try) 2>&5
56647 ac_status=$?
56648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56649 (exit $ac_status); }; } &&
56650 { ac_try='test -s conftest.$ac_objext'
56651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56652 (eval $ac_try) 2>&5
56653 ac_status=$?
56654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56655 (exit $ac_status); }; }; then
56656 ac_header_compiler=yes
56657 else
56658 echo "$as_me: failed program was:" >&5
56659 sed 's/^/| /' conftest.$ac_ext >&5
56661 ac_header_compiler=no
56663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56665 echo "${ECHO_T}$ac_header_compiler" >&6
56667 # Is the header present?
56668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56670 cat >conftest.$ac_ext <<_ACEOF
56671 /* confdefs.h. */
56672 _ACEOF
56673 cat confdefs.h >>conftest.$ac_ext
56674 cat >>conftest.$ac_ext <<_ACEOF
56675 /* end confdefs.h. */
56676 #include <$ac_header>
56677 _ACEOF
56678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56680 ac_status=$?
56681 grep -v '^ *+' conftest.er1 >conftest.err
56682 rm -f conftest.er1
56683 cat conftest.err >&5
56684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56685 (exit $ac_status); } >/dev/null; then
56686 if test -s conftest.err; then
56687 ac_cpp_err=$ac_c_preproc_warn_flag
56688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56689 else
56690 ac_cpp_err=
56692 else
56693 ac_cpp_err=yes
56695 if test -z "$ac_cpp_err"; then
56696 ac_header_preproc=yes
56697 else
56698 echo "$as_me: failed program was:" >&5
56699 sed 's/^/| /' conftest.$ac_ext >&5
56701 ac_header_preproc=no
56703 rm -f conftest.err conftest.$ac_ext
56704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56705 echo "${ECHO_T}$ac_header_preproc" >&6
56707 # So? What about this header?
56708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56709 yes:no: )
56710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56714 ac_header_preproc=yes
56716 no:yes:* )
56717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56730 cat <<\_ASBOX
56731 ## ----------------------------------------- ##
56732 ## Report this to the package-unused lists. ##
56733 ## ----------------------------------------- ##
56734 _ASBOX
56736 sed "s/^/$as_me: WARNING: /" >&2
56738 esac
56739 echo "$as_me:$LINENO: checking for $ac_header" >&5
56740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56742 echo $ECHO_N "(cached) $ECHO_C" >&6
56743 else
56744 eval "$as_ac_Header=\$ac_header_preproc"
56746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56751 cat >>confdefs.h <<_ACEOF
56752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56753 _ACEOF
56754 ac_has_wchar_h=yes
56755 else
56756 ac_has_wchar_h=no
56759 done
56762 for ac_header in wctype.h
56764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56766 echo "$as_me:$LINENO: checking for $ac_header" >&5
56767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56769 echo $ECHO_N "(cached) $ECHO_C" >&6
56771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56773 else
56774 # Is the header compilable?
56775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56777 cat >conftest.$ac_ext <<_ACEOF
56778 /* confdefs.h. */
56779 _ACEOF
56780 cat confdefs.h >>conftest.$ac_ext
56781 cat >>conftest.$ac_ext <<_ACEOF
56782 /* end confdefs.h. */
56783 $ac_includes_default
56784 #include <$ac_header>
56785 _ACEOF
56786 rm -f conftest.$ac_objext
56787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56788 (eval $ac_compile) 2>conftest.er1
56789 ac_status=$?
56790 grep -v '^ *+' conftest.er1 >conftest.err
56791 rm -f conftest.er1
56792 cat conftest.err >&5
56793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56794 (exit $ac_status); } &&
56795 { ac_try='test -z "$ac_c_werror_flag"
56796 || test ! -s conftest.err'
56797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56798 (eval $ac_try) 2>&5
56799 ac_status=$?
56800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56801 (exit $ac_status); }; } &&
56802 { ac_try='test -s conftest.$ac_objext'
56803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56804 (eval $ac_try) 2>&5
56805 ac_status=$?
56806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56807 (exit $ac_status); }; }; then
56808 ac_header_compiler=yes
56809 else
56810 echo "$as_me: failed program was:" >&5
56811 sed 's/^/| /' conftest.$ac_ext >&5
56813 ac_header_compiler=no
56815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56817 echo "${ECHO_T}$ac_header_compiler" >&6
56819 # Is the header present?
56820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56822 cat >conftest.$ac_ext <<_ACEOF
56823 /* confdefs.h. */
56824 _ACEOF
56825 cat confdefs.h >>conftest.$ac_ext
56826 cat >>conftest.$ac_ext <<_ACEOF
56827 /* end confdefs.h. */
56828 #include <$ac_header>
56829 _ACEOF
56830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56832 ac_status=$?
56833 grep -v '^ *+' conftest.er1 >conftest.err
56834 rm -f conftest.er1
56835 cat conftest.err >&5
56836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56837 (exit $ac_status); } >/dev/null; then
56838 if test -s conftest.err; then
56839 ac_cpp_err=$ac_c_preproc_warn_flag
56840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56841 else
56842 ac_cpp_err=
56844 else
56845 ac_cpp_err=yes
56847 if test -z "$ac_cpp_err"; then
56848 ac_header_preproc=yes
56849 else
56850 echo "$as_me: failed program was:" >&5
56851 sed 's/^/| /' conftest.$ac_ext >&5
56853 ac_header_preproc=no
56855 rm -f conftest.err conftest.$ac_ext
56856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56857 echo "${ECHO_T}$ac_header_preproc" >&6
56859 # So? What about this header?
56860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56861 yes:no: )
56862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56866 ac_header_preproc=yes
56868 no:yes:* )
56869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56882 cat <<\_ASBOX
56883 ## ----------------------------------------- ##
56884 ## Report this to the package-unused lists. ##
56885 ## ----------------------------------------- ##
56886 _ASBOX
56888 sed "s/^/$as_me: WARNING: /" >&2
56890 esac
56891 echo "$as_me:$LINENO: checking for $ac_header" >&5
56892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56894 echo $ECHO_N "(cached) $ECHO_C" >&6
56895 else
56896 eval "$as_ac_Header=\$ac_header_preproc"
56898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56903 cat >>confdefs.h <<_ACEOF
56904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56905 _ACEOF
56906 ac_has_wctype_h=yes
56907 else
56908 ac_has_wctype_h=no
56911 done
56914 # Only continue checking if the ISO C99 headers exist and support is on.
56915 if test x"$ac_has_wchar_h" = xyes &&
56916 test x"$ac_has_wctype_h" = xyes &&
56917 test x"$enable_c_mbchar" != xno; then
56919 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56920 # numeric_limits can instantiate type_traits<wchar_t>
56921 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56922 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56923 cat >conftest.$ac_ext <<_ACEOF
56924 /* confdefs.h. */
56925 _ACEOF
56926 cat confdefs.h >>conftest.$ac_ext
56927 cat >>conftest.$ac_ext <<_ACEOF
56928 /* end confdefs.h. */
56929 #include <wchar.h>
56931 main ()
56933 int i = WCHAR_MIN; int j = WCHAR_MAX;
56935 return 0;
56937 _ACEOF
56938 rm -f conftest.$ac_objext
56939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56940 (eval $ac_compile) 2>conftest.er1
56941 ac_status=$?
56942 grep -v '^ *+' conftest.er1 >conftest.err
56943 rm -f conftest.er1
56944 cat conftest.err >&5
56945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56946 (exit $ac_status); } &&
56947 { ac_try='test -z "$ac_c_werror_flag"
56948 || test ! -s conftest.err'
56949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56950 (eval $ac_try) 2>&5
56951 ac_status=$?
56952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56953 (exit $ac_status); }; } &&
56954 { ac_try='test -s conftest.$ac_objext'
56955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56956 (eval $ac_try) 2>&5
56957 ac_status=$?
56958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56959 (exit $ac_status); }; }; then
56960 has_wchar_minmax=yes
56961 else
56962 echo "$as_me: failed program was:" >&5
56963 sed 's/^/| /' conftest.$ac_ext >&5
56965 has_wchar_minmax=no
56967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56968 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56969 echo "${ECHO_T}$has_wchar_minmax" >&6
56971 # Test wchar.h for WEOF, which is what we use to determine whether
56972 # to specialize for char_traits<wchar_t> or not.
56973 echo "$as_me:$LINENO: checking for WEOF" >&5
56974 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56975 cat >conftest.$ac_ext <<_ACEOF
56976 /* confdefs.h. */
56977 _ACEOF
56978 cat confdefs.h >>conftest.$ac_ext
56979 cat >>conftest.$ac_ext <<_ACEOF
56980 /* end confdefs.h. */
56982 #include <wchar.h>
56983 #include <stddef.h>
56985 main ()
56987 wint_t i = WEOF;
56989 return 0;
56991 _ACEOF
56992 rm -f conftest.$ac_objext
56993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56994 (eval $ac_compile) 2>conftest.er1
56995 ac_status=$?
56996 grep -v '^ *+' conftest.er1 >conftest.err
56997 rm -f conftest.er1
56998 cat conftest.err >&5
56999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57000 (exit $ac_status); } &&
57001 { ac_try='test -z "$ac_c_werror_flag"
57002 || test ! -s conftest.err'
57003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57004 (eval $ac_try) 2>&5
57005 ac_status=$?
57006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57007 (exit $ac_status); }; } &&
57008 { ac_try='test -s conftest.$ac_objext'
57009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57010 (eval $ac_try) 2>&5
57011 ac_status=$?
57012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57013 (exit $ac_status); }; }; then
57014 has_weof=yes
57015 else
57016 echo "$as_me: failed program was:" >&5
57017 sed 's/^/| /' conftest.$ac_ext >&5
57019 has_weof=no
57021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57022 echo "$as_me:$LINENO: result: $has_weof" >&5
57023 echo "${ECHO_T}$has_weof" >&6
57025 # Tests for wide character functions used in char_traits<wchar_t>.
57026 ac_wfuncs=yes
57033 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57036 echo "$as_me:$LINENO: checking for $ac_func" >&5
57037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57038 if eval "test \"\${$as_ac_var+set}\" = set"; then
57039 echo $ECHO_N "(cached) $ECHO_C" >&6
57040 else
57041 if test x$gcc_no_link = xyes; then
57042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57044 { (exit 1); exit 1; }; }
57046 cat >conftest.$ac_ext <<_ACEOF
57047 /* confdefs.h. */
57048 _ACEOF
57049 cat confdefs.h >>conftest.$ac_ext
57050 cat >>conftest.$ac_ext <<_ACEOF
57051 /* end confdefs.h. */
57052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57054 #define $ac_func innocuous_$ac_func
57056 /* System header to define __stub macros and hopefully few prototypes,
57057 which can conflict with char $ac_func (); below.
57058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57059 <limits.h> exists even on freestanding compilers. */
57061 #ifdef __STDC__
57062 # include <limits.h>
57063 #else
57064 # include <assert.h>
57065 #endif
57067 #undef $ac_func
57069 /* Override any gcc2 internal prototype to avoid an error. */
57070 #ifdef __cplusplus
57071 extern "C"
57073 #endif
57074 /* We use char because int might match the return type of a gcc2
57075 builtin and then its argument prototype would still apply. */
57076 char $ac_func ();
57077 /* The GNU C library defines this for functions which it implements
57078 to always fail with ENOSYS. Some functions are actually named
57079 something starting with __ and the normal name is an alias. */
57080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57081 choke me
57082 #else
57083 char (*f) () = $ac_func;
57084 #endif
57085 #ifdef __cplusplus
57087 #endif
57090 main ()
57092 return f != $ac_func;
57094 return 0;
57096 _ACEOF
57097 rm -f conftest.$ac_objext conftest$ac_exeext
57098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57099 (eval $ac_link) 2>conftest.er1
57100 ac_status=$?
57101 grep -v '^ *+' conftest.er1 >conftest.err
57102 rm -f conftest.er1
57103 cat conftest.err >&5
57104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57105 (exit $ac_status); } &&
57106 { ac_try='test -z "$ac_c_werror_flag"
57107 || test ! -s conftest.err'
57108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57109 (eval $ac_try) 2>&5
57110 ac_status=$?
57111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57112 (exit $ac_status); }; } &&
57113 { ac_try='test -s conftest$ac_exeext'
57114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57115 (eval $ac_try) 2>&5
57116 ac_status=$?
57117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57118 (exit $ac_status); }; }; then
57119 eval "$as_ac_var=yes"
57120 else
57121 echo "$as_me: failed program was:" >&5
57122 sed 's/^/| /' conftest.$ac_ext >&5
57124 eval "$as_ac_var=no"
57126 rm -f conftest.err conftest.$ac_objext \
57127 conftest$ac_exeext conftest.$ac_ext
57129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57131 if test `eval echo '${'$as_ac_var'}'` = yes; then
57132 cat >>confdefs.h <<_ACEOF
57133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57134 _ACEOF
57136 else
57137 ac_wfuncs=no
57139 done
57142 # Checks for names injected into std:: by the c_std headers.
57189 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57190 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57191 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57192 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57193 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57194 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57197 echo "$as_me:$LINENO: checking for $ac_func" >&5
57198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57199 if eval "test \"\${$as_ac_var+set}\" = set"; then
57200 echo $ECHO_N "(cached) $ECHO_C" >&6
57201 else
57202 if test x$gcc_no_link = xyes; then
57203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57205 { (exit 1); exit 1; }; }
57207 cat >conftest.$ac_ext <<_ACEOF
57208 /* confdefs.h. */
57209 _ACEOF
57210 cat confdefs.h >>conftest.$ac_ext
57211 cat >>conftest.$ac_ext <<_ACEOF
57212 /* end confdefs.h. */
57213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57215 #define $ac_func innocuous_$ac_func
57217 /* System header to define __stub macros and hopefully few prototypes,
57218 which can conflict with char $ac_func (); below.
57219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57220 <limits.h> exists even on freestanding compilers. */
57222 #ifdef __STDC__
57223 # include <limits.h>
57224 #else
57225 # include <assert.h>
57226 #endif
57228 #undef $ac_func
57230 /* Override any gcc2 internal prototype to avoid an error. */
57231 #ifdef __cplusplus
57232 extern "C"
57234 #endif
57235 /* We use char because int might match the return type of a gcc2
57236 builtin and then its argument prototype would still apply. */
57237 char $ac_func ();
57238 /* The GNU C library defines this for functions which it implements
57239 to always fail with ENOSYS. Some functions are actually named
57240 something starting with __ and the normal name is an alias. */
57241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57242 choke me
57243 #else
57244 char (*f) () = $ac_func;
57245 #endif
57246 #ifdef __cplusplus
57248 #endif
57251 main ()
57253 return f != $ac_func;
57255 return 0;
57257 _ACEOF
57258 rm -f conftest.$ac_objext conftest$ac_exeext
57259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57260 (eval $ac_link) 2>conftest.er1
57261 ac_status=$?
57262 grep -v '^ *+' conftest.er1 >conftest.err
57263 rm -f conftest.er1
57264 cat conftest.err >&5
57265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57266 (exit $ac_status); } &&
57267 { ac_try='test -z "$ac_c_werror_flag"
57268 || test ! -s conftest.err'
57269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57270 (eval $ac_try) 2>&5
57271 ac_status=$?
57272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57273 (exit $ac_status); }; } &&
57274 { ac_try='test -s conftest$ac_exeext'
57275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57276 (eval $ac_try) 2>&5
57277 ac_status=$?
57278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57279 (exit $ac_status); }; }; then
57280 eval "$as_ac_var=yes"
57281 else
57282 echo "$as_me: failed program was:" >&5
57283 sed 's/^/| /' conftest.$ac_ext >&5
57285 eval "$as_ac_var=no"
57287 rm -f conftest.err conftest.$ac_objext \
57288 conftest$ac_exeext conftest.$ac_ext
57290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57292 if test `eval echo '${'$as_ac_var'}'` = yes; then
57293 cat >>confdefs.h <<_ACEOF
57294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57295 _ACEOF
57297 else
57298 ac_wfuncs=no
57300 done
57303 # Checks for wide character functions that are not required
57304 # for basic wchar_t support. Don't disable support if they are missing.
57305 # Injection of these is wrapped with guard macros.
57311 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57314 echo "$as_me:$LINENO: checking for $ac_func" >&5
57315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57316 if eval "test \"\${$as_ac_var+set}\" = set"; then
57317 echo $ECHO_N "(cached) $ECHO_C" >&6
57318 else
57319 if test x$gcc_no_link = xyes; then
57320 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57321 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57322 { (exit 1); exit 1; }; }
57324 cat >conftest.$ac_ext <<_ACEOF
57325 /* confdefs.h. */
57326 _ACEOF
57327 cat confdefs.h >>conftest.$ac_ext
57328 cat >>conftest.$ac_ext <<_ACEOF
57329 /* end confdefs.h. */
57330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57332 #define $ac_func innocuous_$ac_func
57334 /* System header to define __stub macros and hopefully few prototypes,
57335 which can conflict with char $ac_func (); below.
57336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57337 <limits.h> exists even on freestanding compilers. */
57339 #ifdef __STDC__
57340 # include <limits.h>
57341 #else
57342 # include <assert.h>
57343 #endif
57345 #undef $ac_func
57347 /* Override any gcc2 internal prototype to avoid an error. */
57348 #ifdef __cplusplus
57349 extern "C"
57351 #endif
57352 /* We use char because int might match the return type of a gcc2
57353 builtin and then its argument prototype would still apply. */
57354 char $ac_func ();
57355 /* The GNU C library defines this for functions which it implements
57356 to always fail with ENOSYS. Some functions are actually named
57357 something starting with __ and the normal name is an alias. */
57358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57359 choke me
57360 #else
57361 char (*f) () = $ac_func;
57362 #endif
57363 #ifdef __cplusplus
57365 #endif
57368 main ()
57370 return f != $ac_func;
57372 return 0;
57374 _ACEOF
57375 rm -f conftest.$ac_objext conftest$ac_exeext
57376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57377 (eval $ac_link) 2>conftest.er1
57378 ac_status=$?
57379 grep -v '^ *+' conftest.er1 >conftest.err
57380 rm -f conftest.er1
57381 cat conftest.err >&5
57382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57383 (exit $ac_status); } &&
57384 { ac_try='test -z "$ac_c_werror_flag"
57385 || test ! -s conftest.err'
57386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57387 (eval $ac_try) 2>&5
57388 ac_status=$?
57389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57390 (exit $ac_status); }; } &&
57391 { ac_try='test -s conftest$ac_exeext'
57392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57393 (eval $ac_try) 2>&5
57394 ac_status=$?
57395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57396 (exit $ac_status); }; }; then
57397 eval "$as_ac_var=yes"
57398 else
57399 echo "$as_me: failed program was:" >&5
57400 sed 's/^/| /' conftest.$ac_ext >&5
57402 eval "$as_ac_var=no"
57404 rm -f conftest.err conftest.$ac_objext \
57405 conftest$ac_exeext conftest.$ac_ext
57407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57409 if test `eval echo '${'$as_ac_var'}'` = yes; then
57410 cat >>confdefs.h <<_ACEOF
57411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57412 _ACEOF
57415 done
57418 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57419 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57420 if test x"$has_weof" = xyes &&
57421 test x"$has_wchar_minmax" = xyes &&
57422 test x"$ac_wfuncs" = xyes;
57423 then
57424 ac_isoC99_wchar_t=yes
57425 else
57426 ac_isoC99_wchar_t=no
57428 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57429 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57431 # Use iconv for wchar_t to char conversions. As such, check for
57432 # X/Open Portability Guide, version 2 features (XPG2).
57433 if test "${ac_cv_header_iconv_h+set}" = set; then
57434 echo "$as_me:$LINENO: checking for iconv.h" >&5
57435 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57436 if test "${ac_cv_header_iconv_h+set}" = set; then
57437 echo $ECHO_N "(cached) $ECHO_C" >&6
57439 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57440 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57441 else
57442 # Is the header compilable?
57443 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57444 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57445 cat >conftest.$ac_ext <<_ACEOF
57446 /* confdefs.h. */
57447 _ACEOF
57448 cat confdefs.h >>conftest.$ac_ext
57449 cat >>conftest.$ac_ext <<_ACEOF
57450 /* end confdefs.h. */
57451 $ac_includes_default
57452 #include <iconv.h>
57453 _ACEOF
57454 rm -f conftest.$ac_objext
57455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57456 (eval $ac_compile) 2>conftest.er1
57457 ac_status=$?
57458 grep -v '^ *+' conftest.er1 >conftest.err
57459 rm -f conftest.er1
57460 cat conftest.err >&5
57461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57462 (exit $ac_status); } &&
57463 { ac_try='test -z "$ac_c_werror_flag"
57464 || test ! -s conftest.err'
57465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57466 (eval $ac_try) 2>&5
57467 ac_status=$?
57468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57469 (exit $ac_status); }; } &&
57470 { ac_try='test -s conftest.$ac_objext'
57471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57472 (eval $ac_try) 2>&5
57473 ac_status=$?
57474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57475 (exit $ac_status); }; }; then
57476 ac_header_compiler=yes
57477 else
57478 echo "$as_me: failed program was:" >&5
57479 sed 's/^/| /' conftest.$ac_ext >&5
57481 ac_header_compiler=no
57483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57485 echo "${ECHO_T}$ac_header_compiler" >&6
57487 # Is the header present?
57488 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57489 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57490 cat >conftest.$ac_ext <<_ACEOF
57491 /* confdefs.h. */
57492 _ACEOF
57493 cat confdefs.h >>conftest.$ac_ext
57494 cat >>conftest.$ac_ext <<_ACEOF
57495 /* end confdefs.h. */
57496 #include <iconv.h>
57497 _ACEOF
57498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57500 ac_status=$?
57501 grep -v '^ *+' conftest.er1 >conftest.err
57502 rm -f conftest.er1
57503 cat conftest.err >&5
57504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57505 (exit $ac_status); } >/dev/null; then
57506 if test -s conftest.err; then
57507 ac_cpp_err=$ac_c_preproc_warn_flag
57508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57509 else
57510 ac_cpp_err=
57512 else
57513 ac_cpp_err=yes
57515 if test -z "$ac_cpp_err"; then
57516 ac_header_preproc=yes
57517 else
57518 echo "$as_me: failed program was:" >&5
57519 sed 's/^/| /' conftest.$ac_ext >&5
57521 ac_header_preproc=no
57523 rm -f conftest.err conftest.$ac_ext
57524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57525 echo "${ECHO_T}$ac_header_preproc" >&6
57527 # So? What about this header?
57528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57529 yes:no: )
57530 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57531 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57532 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57533 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57534 ac_header_preproc=yes
57536 no:yes:* )
57537 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57538 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57539 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57540 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57541 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57542 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57543 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
57544 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
57545 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57546 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57547 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57548 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57550 cat <<\_ASBOX
57551 ## ----------------------------------------- ##
57552 ## Report this to the package-unused lists. ##
57553 ## ----------------------------------------- ##
57554 _ASBOX
57556 sed "s/^/$as_me: WARNING: /" >&2
57558 esac
57559 echo "$as_me:$LINENO: checking for iconv.h" >&5
57560 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57561 if test "${ac_cv_header_iconv_h+set}" = set; then
57562 echo $ECHO_N "(cached) $ECHO_C" >&6
57563 else
57564 ac_cv_header_iconv_h=$ac_header_preproc
57566 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57567 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57570 if test $ac_cv_header_iconv_h = yes; then
57571 ac_has_iconv_h=yes
57572 else
57573 ac_has_iconv_h=no
57577 if test "${ac_cv_header_langinfo_h+set}" = set; then
57578 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57579 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57580 if test "${ac_cv_header_langinfo_h+set}" = set; then
57581 echo $ECHO_N "(cached) $ECHO_C" >&6
57583 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57584 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57585 else
57586 # Is the header compilable?
57587 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57588 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57589 cat >conftest.$ac_ext <<_ACEOF
57590 /* confdefs.h. */
57591 _ACEOF
57592 cat confdefs.h >>conftest.$ac_ext
57593 cat >>conftest.$ac_ext <<_ACEOF
57594 /* end confdefs.h. */
57595 $ac_includes_default
57596 #include <langinfo.h>
57597 _ACEOF
57598 rm -f conftest.$ac_objext
57599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57600 (eval $ac_compile) 2>conftest.er1
57601 ac_status=$?
57602 grep -v '^ *+' conftest.er1 >conftest.err
57603 rm -f conftest.er1
57604 cat conftest.err >&5
57605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57606 (exit $ac_status); } &&
57607 { ac_try='test -z "$ac_c_werror_flag"
57608 || test ! -s conftest.err'
57609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57610 (eval $ac_try) 2>&5
57611 ac_status=$?
57612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57613 (exit $ac_status); }; } &&
57614 { ac_try='test -s conftest.$ac_objext'
57615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57616 (eval $ac_try) 2>&5
57617 ac_status=$?
57618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57619 (exit $ac_status); }; }; then
57620 ac_header_compiler=yes
57621 else
57622 echo "$as_me: failed program was:" >&5
57623 sed 's/^/| /' conftest.$ac_ext >&5
57625 ac_header_compiler=no
57627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57629 echo "${ECHO_T}$ac_header_compiler" >&6
57631 # Is the header present?
57632 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57633 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57634 cat >conftest.$ac_ext <<_ACEOF
57635 /* confdefs.h. */
57636 _ACEOF
57637 cat confdefs.h >>conftest.$ac_ext
57638 cat >>conftest.$ac_ext <<_ACEOF
57639 /* end confdefs.h. */
57640 #include <langinfo.h>
57641 _ACEOF
57642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57644 ac_status=$?
57645 grep -v '^ *+' conftest.er1 >conftest.err
57646 rm -f conftest.er1
57647 cat conftest.err >&5
57648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57649 (exit $ac_status); } >/dev/null; then
57650 if test -s conftest.err; then
57651 ac_cpp_err=$ac_c_preproc_warn_flag
57652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57653 else
57654 ac_cpp_err=
57656 else
57657 ac_cpp_err=yes
57659 if test -z "$ac_cpp_err"; then
57660 ac_header_preproc=yes
57661 else
57662 echo "$as_me: failed program was:" >&5
57663 sed 's/^/| /' conftest.$ac_ext >&5
57665 ac_header_preproc=no
57667 rm -f conftest.err conftest.$ac_ext
57668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57669 echo "${ECHO_T}$ac_header_preproc" >&6
57671 # So? What about this header?
57672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57673 yes:no: )
57674 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57675 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57676 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57677 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57678 ac_header_preproc=yes
57680 no:yes:* )
57681 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57682 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57683 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57684 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57685 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57686 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57687 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57688 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57689 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57690 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57691 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57692 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57694 cat <<\_ASBOX
57695 ## ----------------------------------------- ##
57696 ## Report this to the package-unused lists. ##
57697 ## ----------------------------------------- ##
57698 _ASBOX
57700 sed "s/^/$as_me: WARNING: /" >&2
57702 esac
57703 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57704 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57705 if test "${ac_cv_header_langinfo_h+set}" = set; then
57706 echo $ECHO_N "(cached) $ECHO_C" >&6
57707 else
57708 ac_cv_header_langinfo_h=$ac_header_preproc
57710 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57711 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57714 if test $ac_cv_header_langinfo_h = yes; then
57715 ac_has_langinfo_h=yes
57716 else
57717 ac_has_langinfo_h=no
57722 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57723 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57724 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57725 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57726 echo $ECHO_N "(cached) $ECHO_C" >&6
57727 else
57728 ac_check_lib_save_LIBS=$LIBS
57729 LIBS="-liconv $LIBS"
57730 if test x$gcc_no_link = xyes; then
57731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57733 { (exit 1); exit 1; }; }
57735 cat >conftest.$ac_ext <<_ACEOF
57736 /* confdefs.h. */
57737 _ACEOF
57738 cat confdefs.h >>conftest.$ac_ext
57739 cat >>conftest.$ac_ext <<_ACEOF
57740 /* end confdefs.h. */
57742 /* Override any gcc2 internal prototype to avoid an error. */
57743 #ifdef __cplusplus
57744 extern "C"
57745 #endif
57746 /* We use char because int might match the return type of a gcc2
57747 builtin and then its argument prototype would still apply. */
57748 char iconv ();
57750 main ()
57752 iconv ();
57754 return 0;
57756 _ACEOF
57757 rm -f conftest.$ac_objext conftest$ac_exeext
57758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57759 (eval $ac_link) 2>conftest.er1
57760 ac_status=$?
57761 grep -v '^ *+' conftest.er1 >conftest.err
57762 rm -f conftest.er1
57763 cat conftest.err >&5
57764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57765 (exit $ac_status); } &&
57766 { ac_try='test -z "$ac_c_werror_flag"
57767 || test ! -s conftest.err'
57768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57769 (eval $ac_try) 2>&5
57770 ac_status=$?
57771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57772 (exit $ac_status); }; } &&
57773 { ac_try='test -s conftest$ac_exeext'
57774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57775 (eval $ac_try) 2>&5
57776 ac_status=$?
57777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57778 (exit $ac_status); }; }; then
57779 ac_cv_lib_iconv_iconv=yes
57780 else
57781 echo "$as_me: failed program was:" >&5
57782 sed 's/^/| /' conftest.$ac_ext >&5
57784 ac_cv_lib_iconv_iconv=no
57786 rm -f conftest.err conftest.$ac_objext \
57787 conftest$ac_exeext conftest.$ac_ext
57788 LIBS=$ac_check_lib_save_LIBS
57790 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57791 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57792 if test $ac_cv_lib_iconv_iconv = yes; then
57793 libiconv="-liconv"
57796 ac_save_LIBS="$LIBS"
57797 LIBS="$LIBS $libiconv"
57803 for ac_func in iconv_open iconv_close iconv nl_langinfo
57805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57806 echo "$as_me:$LINENO: checking for $ac_func" >&5
57807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57808 if eval "test \"\${$as_ac_var+set}\" = set"; then
57809 echo $ECHO_N "(cached) $ECHO_C" >&6
57810 else
57811 if test x$gcc_no_link = xyes; then
57812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57814 { (exit 1); exit 1; }; }
57816 cat >conftest.$ac_ext <<_ACEOF
57817 /* confdefs.h. */
57818 _ACEOF
57819 cat confdefs.h >>conftest.$ac_ext
57820 cat >>conftest.$ac_ext <<_ACEOF
57821 /* end confdefs.h. */
57822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57824 #define $ac_func innocuous_$ac_func
57826 /* System header to define __stub macros and hopefully few prototypes,
57827 which can conflict with char $ac_func (); below.
57828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57829 <limits.h> exists even on freestanding compilers. */
57831 #ifdef __STDC__
57832 # include <limits.h>
57833 #else
57834 # include <assert.h>
57835 #endif
57837 #undef $ac_func
57839 /* Override any gcc2 internal prototype to avoid an error. */
57840 #ifdef __cplusplus
57841 extern "C"
57843 #endif
57844 /* We use char because int might match the return type of a gcc2
57845 builtin and then its argument prototype would still apply. */
57846 char $ac_func ();
57847 /* The GNU C library defines this for functions which it implements
57848 to always fail with ENOSYS. Some functions are actually named
57849 something starting with __ and the normal name is an alias. */
57850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57851 choke me
57852 #else
57853 char (*f) () = $ac_func;
57854 #endif
57855 #ifdef __cplusplus
57857 #endif
57860 main ()
57862 return f != $ac_func;
57864 return 0;
57866 _ACEOF
57867 rm -f conftest.$ac_objext conftest$ac_exeext
57868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57869 (eval $ac_link) 2>conftest.er1
57870 ac_status=$?
57871 grep -v '^ *+' conftest.er1 >conftest.err
57872 rm -f conftest.er1
57873 cat conftest.err >&5
57874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57875 (exit $ac_status); } &&
57876 { ac_try='test -z "$ac_c_werror_flag"
57877 || test ! -s conftest.err'
57878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57879 (eval $ac_try) 2>&5
57880 ac_status=$?
57881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57882 (exit $ac_status); }; } &&
57883 { ac_try='test -s conftest$ac_exeext'
57884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57885 (eval $ac_try) 2>&5
57886 ac_status=$?
57887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57888 (exit $ac_status); }; }; then
57889 eval "$as_ac_var=yes"
57890 else
57891 echo "$as_me: failed program was:" >&5
57892 sed 's/^/| /' conftest.$ac_ext >&5
57894 eval "$as_ac_var=no"
57896 rm -f conftest.err conftest.$ac_objext \
57897 conftest$ac_exeext conftest.$ac_ext
57899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57901 if test `eval echo '${'$as_ac_var'}'` = yes; then
57902 cat >>confdefs.h <<_ACEOF
57903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57904 _ACEOF
57905 ac_XPG2funcs=yes
57906 else
57907 ac_XPG2funcs=no
57909 done
57912 LIBS="$ac_save_LIBS"
57914 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57915 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57916 if test x"$ac_has_iconv_h" = xyes &&
57917 test x"$ac_has_langinfo_h" = xyes &&
57918 test x"$ac_XPG2funcs" = xyes;
57919 then
57920 ac_XPG2_wchar_t=yes
57921 else
57922 ac_XPG2_wchar_t=no
57924 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57925 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57927 # At the moment, only enable wchar_t specializations if all the
57928 # above support is present.
57929 if test x"$ac_isoC99_wchar_t" = xyes &&
57930 test x"$ac_XPG2_wchar_t" = xyes;
57931 then
57932 cat >>confdefs.h <<\_ACEOF
57933 #define _GLIBCXX_USE_WCHAR_T 1
57934 _ACEOF
57936 enable_wchar_t=yes
57939 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57940 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57941 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57942 echo "${ECHO_T}$enable_wchar_t" >&6
57944 cat >>confdefs.h <<\_ACEOF
57945 #define HAVE_COPYSIGN 1
57946 _ACEOF
57948 cat >>confdefs.h <<\_ACEOF
57949 #define HAVE_COPYSIGNF 1
57950 _ACEOF
57952 cat >>confdefs.h <<\_ACEOF
57953 #define HAVE_FREXPF 1
57954 _ACEOF
57956 cat >>confdefs.h <<\_ACEOF
57957 #define HAVE_HYPOT 1
57958 _ACEOF
57960 case "$target" in
57961 *-hpux10*)
57962 cat >>confdefs.h <<\_ACEOF
57963 #define HAVE_FINITE 1
57964 _ACEOF
57966 cat >>confdefs.h <<\_ACEOF
57967 #define HAVE_FINITEF 1
57968 _ACEOF
57970 cat >>confdefs.h <<\_ACEOF
57971 #define HAVE_ISINF 1
57972 _ACEOF
57974 cat >>confdefs.h <<\_ACEOF
57975 #define HAVE_ISINFF 1
57976 _ACEOF
57978 cat >>confdefs.h <<\_ACEOF
57979 #define HAVE_ISNAN 1
57980 _ACEOF
57982 cat >>confdefs.h <<\_ACEOF
57983 #define HAVE_ISNANF 1
57984 _ACEOF
57987 esac
57989 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58002 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58003 machine/endian.h machine/param.h sys/machine.h sys/types.h \
58004 fp.h locale.h float.h inttypes.h
58006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58008 echo "$as_me:$LINENO: checking for $ac_header" >&5
58009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58011 echo $ECHO_N "(cached) $ECHO_C" >&6
58013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58015 else
58016 # Is the header compilable?
58017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58019 cat >conftest.$ac_ext <<_ACEOF
58020 /* confdefs.h. */
58021 _ACEOF
58022 cat confdefs.h >>conftest.$ac_ext
58023 cat >>conftest.$ac_ext <<_ACEOF
58024 /* end confdefs.h. */
58025 $ac_includes_default
58026 #include <$ac_header>
58027 _ACEOF
58028 rm -f conftest.$ac_objext
58029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58030 (eval $ac_compile) 2>conftest.er1
58031 ac_status=$?
58032 grep -v '^ *+' conftest.er1 >conftest.err
58033 rm -f conftest.er1
58034 cat conftest.err >&5
58035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58036 (exit $ac_status); } &&
58037 { ac_try='test -z "$ac_c_werror_flag"
58038 || test ! -s conftest.err'
58039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58040 (eval $ac_try) 2>&5
58041 ac_status=$?
58042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043 (exit $ac_status); }; } &&
58044 { ac_try='test -s conftest.$ac_objext'
58045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58046 (eval $ac_try) 2>&5
58047 ac_status=$?
58048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58049 (exit $ac_status); }; }; then
58050 ac_header_compiler=yes
58051 else
58052 echo "$as_me: failed program was:" >&5
58053 sed 's/^/| /' conftest.$ac_ext >&5
58055 ac_header_compiler=no
58057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58059 echo "${ECHO_T}$ac_header_compiler" >&6
58061 # Is the header present?
58062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58064 cat >conftest.$ac_ext <<_ACEOF
58065 /* confdefs.h. */
58066 _ACEOF
58067 cat confdefs.h >>conftest.$ac_ext
58068 cat >>conftest.$ac_ext <<_ACEOF
58069 /* end confdefs.h. */
58070 #include <$ac_header>
58071 _ACEOF
58072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58074 ac_status=$?
58075 grep -v '^ *+' conftest.er1 >conftest.err
58076 rm -f conftest.er1
58077 cat conftest.err >&5
58078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58079 (exit $ac_status); } >/dev/null; then
58080 if test -s conftest.err; then
58081 ac_cpp_err=$ac_c_preproc_warn_flag
58082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58083 else
58084 ac_cpp_err=
58086 else
58087 ac_cpp_err=yes
58089 if test -z "$ac_cpp_err"; then
58090 ac_header_preproc=yes
58091 else
58092 echo "$as_me: failed program was:" >&5
58093 sed 's/^/| /' conftest.$ac_ext >&5
58095 ac_header_preproc=no
58097 rm -f conftest.err conftest.$ac_ext
58098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58099 echo "${ECHO_T}$ac_header_preproc" >&6
58101 # So? What about this header?
58102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58103 yes:no: )
58104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58108 ac_header_preproc=yes
58110 no:yes:* )
58111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58124 cat <<\_ASBOX
58125 ## ----------------------------------------- ##
58126 ## Report this to the package-unused lists. ##
58127 ## ----------------------------------------- ##
58128 _ASBOX
58130 sed "s/^/$as_me: WARNING: /" >&2
58132 esac
58133 echo "$as_me:$LINENO: checking for $ac_header" >&5
58134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58136 echo $ECHO_N "(cached) $ECHO_C" >&6
58137 else
58138 eval "$as_ac_Header=\$ac_header_preproc"
58140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58145 cat >>confdefs.h <<_ACEOF
58146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58147 _ACEOF
58151 done
58153 SECTION_FLAGS='-ffunction-sections -fdata-sections'
58156 # If we're not using GNU ld, then there's no point in even trying these
58157 # tests. Check for that first. We should have already tested for gld
58158 # by now (in libtool), but require it now just to be safe...
58159 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58160 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58164 # The name set by libtool depends on the version of libtool. Shame on us
58165 # for depending on an impl detail, but c'est la vie. Older versions used
58166 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58167 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58168 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
58169 # set (hence we're using an older libtool), then set it.
58170 if test x${with_gnu_ld+set} != xset; then
58171 if test x${ac_cv_prog_gnu_ld+set} != xset; then
58172 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
58173 with_gnu_ld=no
58174 else
58175 with_gnu_ld=$ac_cv_prog_gnu_ld
58179 # Start by getting the version number. I think the libtool test already
58180 # does some of this, but throws away the result.
58182 ldver=`$LD --version 2>/dev/null | head -1 | \
58183 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58185 glibcxx_gnu_ld_version=`echo $ldver | \
58186 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58188 # Set --gc-sections.
58189 if test "$with_gnu_ld" = "notbroken"; then
58190 # GNU ld it is! Joy and bunny rabbits!
58192 # All these tests are for C++; save the language and the compiler flags.
58193 # Need to do this so that g++ won't try to link in libstdc++
58194 ac_test_CFLAGS="${CFLAGS+set}"
58195 ac_save_CFLAGS="$CFLAGS"
58196 CFLAGS='-x c++ -Wl,--gc-sections'
58198 # Check for -Wl,--gc-sections
58199 # XXX This test is broken at the moment, as symbols required for linking
58200 # are now in libsupc++ (not built yet). In addition, this test has
58201 # cored on solaris in the past. In addition, --gc-sections doesn't
58202 # really work at the moment (keeps on discarding used sections, first
58203 # .eh_frame and now some of the glibc sections for iconv).
58204 # Bzzzzt. Thanks for playing, maybe next time.
58205 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58206 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58207 if test "$cross_compiling" = yes; then
58208 ac_sectionLDflags=yes
58209 else
58210 cat >conftest.$ac_ext <<_ACEOF
58211 /* confdefs.h. */
58212 _ACEOF
58213 cat confdefs.h >>conftest.$ac_ext
58214 cat >>conftest.$ac_ext <<_ACEOF
58215 /* end confdefs.h. */
58217 int main(void)
58219 try { throw 1; }
58220 catch (...) { };
58221 return 0;
58224 _ACEOF
58225 rm -f conftest$ac_exeext
58226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58227 (eval $ac_link) 2>&5
58228 ac_status=$?
58229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58232 (eval $ac_try) 2>&5
58233 ac_status=$?
58234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58235 (exit $ac_status); }; }; then
58236 ac_sectionLDflags=yes
58237 else
58238 echo "$as_me: program exited with status $ac_status" >&5
58239 echo "$as_me: failed program was:" >&5
58240 sed 's/^/| /' conftest.$ac_ext >&5
58242 ( exit $ac_status )
58243 ac_sectionLDflags=no
58245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58247 if test "$ac_test_CFLAGS" = set; then
58248 CFLAGS="$ac_save_CFLAGS"
58249 else
58250 # this is the suspicious part
58251 CFLAGS=''
58253 if test "$ac_sectionLDflags" = "yes"; then
58254 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58256 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58257 echo "${ECHO_T}$ac_sectionLDflags" >&6
58260 # Set linker optimization flags.
58261 if test x"$with_gnu_ld" = x"yes"; then
58262 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58270 echo "$as_me:$LINENO: checking for main in -lm" >&5
58271 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58272 if test "${ac_cv_lib_m_main+set}" = set; then
58273 echo $ECHO_N "(cached) $ECHO_C" >&6
58274 else
58275 ac_check_lib_save_LIBS=$LIBS
58276 LIBS="-lm $LIBS"
58277 if test x$gcc_no_link = xyes; then
58278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58280 { (exit 1); exit 1; }; }
58282 cat >conftest.$ac_ext <<_ACEOF
58283 /* confdefs.h. */
58284 _ACEOF
58285 cat confdefs.h >>conftest.$ac_ext
58286 cat >>conftest.$ac_ext <<_ACEOF
58287 /* end confdefs.h. */
58291 main ()
58293 main ();
58295 return 0;
58297 _ACEOF
58298 rm -f conftest.$ac_objext conftest$ac_exeext
58299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58300 (eval $ac_link) 2>conftest.er1
58301 ac_status=$?
58302 grep -v '^ *+' conftest.er1 >conftest.err
58303 rm -f conftest.er1
58304 cat conftest.err >&5
58305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58306 (exit $ac_status); } &&
58307 { ac_try='test -z "$ac_c_werror_flag"
58308 || test ! -s conftest.err'
58309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58310 (eval $ac_try) 2>&5
58311 ac_status=$?
58312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58313 (exit $ac_status); }; } &&
58314 { ac_try='test -s conftest$ac_exeext'
58315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58316 (eval $ac_try) 2>&5
58317 ac_status=$?
58318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58319 (exit $ac_status); }; }; then
58320 ac_cv_lib_m_main=yes
58321 else
58322 echo "$as_me: failed program was:" >&5
58323 sed 's/^/| /' conftest.$ac_ext >&5
58325 ac_cv_lib_m_main=no
58327 rm -f conftest.err conftest.$ac_objext \
58328 conftest$ac_exeext conftest.$ac_ext
58329 LIBS=$ac_check_lib_save_LIBS
58331 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58332 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58333 if test $ac_cv_lib_m_main = yes; then
58334 cat >>confdefs.h <<_ACEOF
58335 #define HAVE_LIBM 1
58336 _ACEOF
58338 LIBS="-lm $LIBS"
58343 for ac_func in copysignf
58345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58346 echo "$as_me:$LINENO: checking for $ac_func" >&5
58347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58348 if eval "test \"\${$as_ac_var+set}\" = set"; then
58349 echo $ECHO_N "(cached) $ECHO_C" >&6
58350 else
58351 if test x$gcc_no_link = xyes; then
58352 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58354 { (exit 1); exit 1; }; }
58356 cat >conftest.$ac_ext <<_ACEOF
58357 /* confdefs.h. */
58358 _ACEOF
58359 cat confdefs.h >>conftest.$ac_ext
58360 cat >>conftest.$ac_ext <<_ACEOF
58361 /* end confdefs.h. */
58362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58364 #define $ac_func innocuous_$ac_func
58366 /* System header to define __stub macros and hopefully few prototypes,
58367 which can conflict with char $ac_func (); below.
58368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58369 <limits.h> exists even on freestanding compilers. */
58371 #ifdef __STDC__
58372 # include <limits.h>
58373 #else
58374 # include <assert.h>
58375 #endif
58377 #undef $ac_func
58379 /* Override any gcc2 internal prototype to avoid an error. */
58380 #ifdef __cplusplus
58381 extern "C"
58383 #endif
58384 /* We use char because int might match the return type of a gcc2
58385 builtin and then its argument prototype would still apply. */
58386 char $ac_func ();
58387 /* The GNU C library defines this for functions which it implements
58388 to always fail with ENOSYS. Some functions are actually named
58389 something starting with __ and the normal name is an alias. */
58390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58391 choke me
58392 #else
58393 char (*f) () = $ac_func;
58394 #endif
58395 #ifdef __cplusplus
58397 #endif
58400 main ()
58402 return f != $ac_func;
58404 return 0;
58406 _ACEOF
58407 rm -f conftest.$ac_objext conftest$ac_exeext
58408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58409 (eval $ac_link) 2>conftest.er1
58410 ac_status=$?
58411 grep -v '^ *+' conftest.er1 >conftest.err
58412 rm -f conftest.er1
58413 cat conftest.err >&5
58414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58415 (exit $ac_status); } &&
58416 { ac_try='test -z "$ac_c_werror_flag"
58417 || test ! -s conftest.err'
58418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58419 (eval $ac_try) 2>&5
58420 ac_status=$?
58421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58422 (exit $ac_status); }; } &&
58423 { ac_try='test -s conftest$ac_exeext'
58424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58425 (eval $ac_try) 2>&5
58426 ac_status=$?
58427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58428 (exit $ac_status); }; }; then
58429 eval "$as_ac_var=yes"
58430 else
58431 echo "$as_me: failed program was:" >&5
58432 sed 's/^/| /' conftest.$ac_ext >&5
58434 eval "$as_ac_var=no"
58436 rm -f conftest.err conftest.$ac_objext \
58437 conftest$ac_exeext conftest.$ac_ext
58439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58441 if test `eval echo '${'$as_ac_var'}'` = yes; then
58442 cat >>confdefs.h <<_ACEOF
58443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58444 _ACEOF
58446 else
58447 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58449 done
58453 for ac_func in __signbit
58455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58456 echo "$as_me:$LINENO: checking for $ac_func" >&5
58457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58458 if eval "test \"\${$as_ac_var+set}\" = set"; then
58459 echo $ECHO_N "(cached) $ECHO_C" >&6
58460 else
58461 if test x$gcc_no_link = xyes; then
58462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58464 { (exit 1); exit 1; }; }
58466 cat >conftest.$ac_ext <<_ACEOF
58467 /* confdefs.h. */
58468 _ACEOF
58469 cat confdefs.h >>conftest.$ac_ext
58470 cat >>conftest.$ac_ext <<_ACEOF
58471 /* end confdefs.h. */
58472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58474 #define $ac_func innocuous_$ac_func
58476 /* System header to define __stub macros and hopefully few prototypes,
58477 which can conflict with char $ac_func (); below.
58478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58479 <limits.h> exists even on freestanding compilers. */
58481 #ifdef __STDC__
58482 # include <limits.h>
58483 #else
58484 # include <assert.h>
58485 #endif
58487 #undef $ac_func
58489 /* Override any gcc2 internal prototype to avoid an error. */
58490 #ifdef __cplusplus
58491 extern "C"
58493 #endif
58494 /* We use char because int might match the return type of a gcc2
58495 builtin and then its argument prototype would still apply. */
58496 char $ac_func ();
58497 /* The GNU C library defines this for functions which it implements
58498 to always fail with ENOSYS. Some functions are actually named
58499 something starting with __ and the normal name is an alias. */
58500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58501 choke me
58502 #else
58503 char (*f) () = $ac_func;
58504 #endif
58505 #ifdef __cplusplus
58507 #endif
58510 main ()
58512 return f != $ac_func;
58514 return 0;
58516 _ACEOF
58517 rm -f conftest.$ac_objext conftest$ac_exeext
58518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58519 (eval $ac_link) 2>conftest.er1
58520 ac_status=$?
58521 grep -v '^ *+' conftest.er1 >conftest.err
58522 rm -f conftest.er1
58523 cat conftest.err >&5
58524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58525 (exit $ac_status); } &&
58526 { ac_try='test -z "$ac_c_werror_flag"
58527 || test ! -s conftest.err'
58528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58529 (eval $ac_try) 2>&5
58530 ac_status=$?
58531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58532 (exit $ac_status); }; } &&
58533 { ac_try='test -s conftest$ac_exeext'
58534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58535 (eval $ac_try) 2>&5
58536 ac_status=$?
58537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58538 (exit $ac_status); }; }; then
58539 eval "$as_ac_var=yes"
58540 else
58541 echo "$as_me: failed program was:" >&5
58542 sed 's/^/| /' conftest.$ac_ext >&5
58544 eval "$as_ac_var=no"
58546 rm -f conftest.err conftest.$ac_objext \
58547 conftest$ac_exeext conftest.$ac_ext
58549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58551 if test `eval echo '${'$as_ac_var'}'` = yes; then
58552 cat >>confdefs.h <<_ACEOF
58553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58554 _ACEOF
58556 else
58557 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58559 done
58562 for ac_func in __signbitf
58564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58565 echo "$as_me:$LINENO: checking for $ac_func" >&5
58566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58567 if eval "test \"\${$as_ac_var+set}\" = set"; then
58568 echo $ECHO_N "(cached) $ECHO_C" >&6
58569 else
58570 if test x$gcc_no_link = xyes; then
58571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58573 { (exit 1); exit 1; }; }
58575 cat >conftest.$ac_ext <<_ACEOF
58576 /* confdefs.h. */
58577 _ACEOF
58578 cat confdefs.h >>conftest.$ac_ext
58579 cat >>conftest.$ac_ext <<_ACEOF
58580 /* end confdefs.h. */
58581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58583 #define $ac_func innocuous_$ac_func
58585 /* System header to define __stub macros and hopefully few prototypes,
58586 which can conflict with char $ac_func (); below.
58587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58588 <limits.h> exists even on freestanding compilers. */
58590 #ifdef __STDC__
58591 # include <limits.h>
58592 #else
58593 # include <assert.h>
58594 #endif
58596 #undef $ac_func
58598 /* Override any gcc2 internal prototype to avoid an error. */
58599 #ifdef __cplusplus
58600 extern "C"
58602 #endif
58603 /* We use char because int might match the return type of a gcc2
58604 builtin and then its argument prototype would still apply. */
58605 char $ac_func ();
58606 /* The GNU C library defines this for functions which it implements
58607 to always fail with ENOSYS. Some functions are actually named
58608 something starting with __ and the normal name is an alias. */
58609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58610 choke me
58611 #else
58612 char (*f) () = $ac_func;
58613 #endif
58614 #ifdef __cplusplus
58616 #endif
58619 main ()
58621 return f != $ac_func;
58623 return 0;
58625 _ACEOF
58626 rm -f conftest.$ac_objext conftest$ac_exeext
58627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58628 (eval $ac_link) 2>conftest.er1
58629 ac_status=$?
58630 grep -v '^ *+' conftest.er1 >conftest.err
58631 rm -f conftest.er1
58632 cat conftest.err >&5
58633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58634 (exit $ac_status); } &&
58635 { ac_try='test -z "$ac_c_werror_flag"
58636 || test ! -s conftest.err'
58637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58638 (eval $ac_try) 2>&5
58639 ac_status=$?
58640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58641 (exit $ac_status); }; } &&
58642 { ac_try='test -s conftest$ac_exeext'
58643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58644 (eval $ac_try) 2>&5
58645 ac_status=$?
58646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58647 (exit $ac_status); }; }; then
58648 eval "$as_ac_var=yes"
58649 else
58650 echo "$as_me: failed program was:" >&5
58651 sed 's/^/| /' conftest.$ac_ext >&5
58653 eval "$as_ac_var=no"
58655 rm -f conftest.err conftest.$ac_objext \
58656 conftest$ac_exeext conftest.$ac_ext
58658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58660 if test `eval echo '${'$as_ac_var'}'` = yes; then
58661 cat >>confdefs.h <<_ACEOF
58662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58663 _ACEOF
58665 else
58666 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58668 done
58671 if test x$ac_cv_func_copysignl = x"yes"; then
58673 for ac_func in __signbitl
58675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58676 echo "$as_me:$LINENO: checking for $ac_func" >&5
58677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58678 if eval "test \"\${$as_ac_var+set}\" = set"; then
58679 echo $ECHO_N "(cached) $ECHO_C" >&6
58680 else
58681 if test x$gcc_no_link = xyes; then
58682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58684 { (exit 1); exit 1; }; }
58686 cat >conftest.$ac_ext <<_ACEOF
58687 /* confdefs.h. */
58688 _ACEOF
58689 cat confdefs.h >>conftest.$ac_ext
58690 cat >>conftest.$ac_ext <<_ACEOF
58691 /* end confdefs.h. */
58692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58694 #define $ac_func innocuous_$ac_func
58696 /* System header to define __stub macros and hopefully few prototypes,
58697 which can conflict with char $ac_func (); below.
58698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58699 <limits.h> exists even on freestanding compilers. */
58701 #ifdef __STDC__
58702 # include <limits.h>
58703 #else
58704 # include <assert.h>
58705 #endif
58707 #undef $ac_func
58709 /* Override any gcc2 internal prototype to avoid an error. */
58710 #ifdef __cplusplus
58711 extern "C"
58713 #endif
58714 /* We use char because int might match the return type of a gcc2
58715 builtin and then its argument prototype would still apply. */
58716 char $ac_func ();
58717 /* The GNU C library defines this for functions which it implements
58718 to always fail with ENOSYS. Some functions are actually named
58719 something starting with __ and the normal name is an alias. */
58720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58721 choke me
58722 #else
58723 char (*f) () = $ac_func;
58724 #endif
58725 #ifdef __cplusplus
58727 #endif
58730 main ()
58732 return f != $ac_func;
58734 return 0;
58736 _ACEOF
58737 rm -f conftest.$ac_objext conftest$ac_exeext
58738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58739 (eval $ac_link) 2>conftest.er1
58740 ac_status=$?
58741 grep -v '^ *+' conftest.er1 >conftest.err
58742 rm -f conftest.er1
58743 cat conftest.err >&5
58744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58745 (exit $ac_status); } &&
58746 { ac_try='test -z "$ac_c_werror_flag"
58747 || test ! -s conftest.err'
58748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58749 (eval $ac_try) 2>&5
58750 ac_status=$?
58751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58752 (exit $ac_status); }; } &&
58753 { ac_try='test -s conftest$ac_exeext'
58754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58755 (eval $ac_try) 2>&5
58756 ac_status=$?
58757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58758 (exit $ac_status); }; }; then
58759 eval "$as_ac_var=yes"
58760 else
58761 echo "$as_me: failed program was:" >&5
58762 sed 's/^/| /' conftest.$ac_ext >&5
58764 eval "$as_ac_var=no"
58766 rm -f conftest.err conftest.$ac_objext \
58767 conftest$ac_exeext conftest.$ac_ext
58769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58771 if test `eval echo '${'$as_ac_var'}'` = yes; then
58772 cat >>confdefs.h <<_ACEOF
58773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58774 _ACEOF
58776 else
58777 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58779 done
58783 # XXX Review this. Nothing uses it.
58784 if test -n "$LIBMATHOBJS"; then
58785 need_libmath=yes
58790 # Test wchar.h for mbstate_t, which is needed for char_traits and
58791 # others even if wchar_t support is not on.
58792 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58793 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58794 cat >conftest.$ac_ext <<_ACEOF
58795 /* confdefs.h. */
58796 _ACEOF
58797 cat confdefs.h >>conftest.$ac_ext
58798 cat >>conftest.$ac_ext <<_ACEOF
58799 /* end confdefs.h. */
58800 #include <wchar.h>
58802 main ()
58804 mbstate_t teststate;
58806 return 0;
58808 _ACEOF
58809 rm -f conftest.$ac_objext
58810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58811 (eval $ac_compile) 2>conftest.er1
58812 ac_status=$?
58813 grep -v '^ *+' conftest.er1 >conftest.err
58814 rm -f conftest.er1
58815 cat conftest.err >&5
58816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58817 (exit $ac_status); } &&
58818 { ac_try='test -z "$ac_c_werror_flag"
58819 || test ! -s conftest.err'
58820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58821 (eval $ac_try) 2>&5
58822 ac_status=$?
58823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58824 (exit $ac_status); }; } &&
58825 { ac_try='test -s conftest.$ac_objext'
58826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58827 (eval $ac_try) 2>&5
58828 ac_status=$?
58829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58830 (exit $ac_status); }; }; then
58831 have_mbstate_t=yes
58832 else
58833 echo "$as_me: failed program was:" >&5
58834 sed 's/^/| /' conftest.$ac_ext >&5
58836 have_mbstate_t=no
58838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58839 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58840 echo "${ECHO_T}$have_mbstate_t" >&6
58841 if test x"$have_mbstate_t" = xyes; then
58842 cat >>confdefs.h <<\_ACEOF
58843 #define HAVE_MBSTATE_T 1
58844 _ACEOF
58848 # Sanity check for existence of ISO C99 headers for extended encoding.
58850 for ac_header in wchar.h
58852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58854 echo "$as_me:$LINENO: checking for $ac_header" >&5
58855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58857 echo $ECHO_N "(cached) $ECHO_C" >&6
58859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58861 else
58862 # Is the header compilable?
58863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58865 cat >conftest.$ac_ext <<_ACEOF
58866 /* confdefs.h. */
58867 _ACEOF
58868 cat confdefs.h >>conftest.$ac_ext
58869 cat >>conftest.$ac_ext <<_ACEOF
58870 /* end confdefs.h. */
58871 $ac_includes_default
58872 #include <$ac_header>
58873 _ACEOF
58874 rm -f conftest.$ac_objext
58875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58876 (eval $ac_compile) 2>conftest.er1
58877 ac_status=$?
58878 grep -v '^ *+' conftest.er1 >conftest.err
58879 rm -f conftest.er1
58880 cat conftest.err >&5
58881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58882 (exit $ac_status); } &&
58883 { ac_try='test -z "$ac_c_werror_flag"
58884 || test ! -s conftest.err'
58885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58886 (eval $ac_try) 2>&5
58887 ac_status=$?
58888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58889 (exit $ac_status); }; } &&
58890 { ac_try='test -s conftest.$ac_objext'
58891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58892 (eval $ac_try) 2>&5
58893 ac_status=$?
58894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58895 (exit $ac_status); }; }; then
58896 ac_header_compiler=yes
58897 else
58898 echo "$as_me: failed program was:" >&5
58899 sed 's/^/| /' conftest.$ac_ext >&5
58901 ac_header_compiler=no
58903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58905 echo "${ECHO_T}$ac_header_compiler" >&6
58907 # Is the header present?
58908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58910 cat >conftest.$ac_ext <<_ACEOF
58911 /* confdefs.h. */
58912 _ACEOF
58913 cat confdefs.h >>conftest.$ac_ext
58914 cat >>conftest.$ac_ext <<_ACEOF
58915 /* end confdefs.h. */
58916 #include <$ac_header>
58917 _ACEOF
58918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58920 ac_status=$?
58921 grep -v '^ *+' conftest.er1 >conftest.err
58922 rm -f conftest.er1
58923 cat conftest.err >&5
58924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58925 (exit $ac_status); } >/dev/null; then
58926 if test -s conftest.err; then
58927 ac_cpp_err=$ac_c_preproc_warn_flag
58928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58929 else
58930 ac_cpp_err=
58932 else
58933 ac_cpp_err=yes
58935 if test -z "$ac_cpp_err"; then
58936 ac_header_preproc=yes
58937 else
58938 echo "$as_me: failed program was:" >&5
58939 sed 's/^/| /' conftest.$ac_ext >&5
58941 ac_header_preproc=no
58943 rm -f conftest.err conftest.$ac_ext
58944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58945 echo "${ECHO_T}$ac_header_preproc" >&6
58947 # So? What about this header?
58948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58949 yes:no: )
58950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58954 ac_header_preproc=yes
58956 no:yes:* )
58957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58970 cat <<\_ASBOX
58971 ## ----------------------------------------- ##
58972 ## Report this to the package-unused lists. ##
58973 ## ----------------------------------------- ##
58974 _ASBOX
58976 sed "s/^/$as_me: WARNING: /" >&2
58978 esac
58979 echo "$as_me:$LINENO: checking for $ac_header" >&5
58980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58982 echo $ECHO_N "(cached) $ECHO_C" >&6
58983 else
58984 eval "$as_ac_Header=\$ac_header_preproc"
58986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58991 cat >>confdefs.h <<_ACEOF
58992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58993 _ACEOF
58994 ac_has_wchar_h=yes
58995 else
58996 ac_has_wchar_h=no
58999 done
59002 for ac_header in wctype.h
59004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59006 echo "$as_me:$LINENO: checking for $ac_header" >&5
59007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59009 echo $ECHO_N "(cached) $ECHO_C" >&6
59011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59013 else
59014 # Is the header compilable?
59015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59017 cat >conftest.$ac_ext <<_ACEOF
59018 /* confdefs.h. */
59019 _ACEOF
59020 cat confdefs.h >>conftest.$ac_ext
59021 cat >>conftest.$ac_ext <<_ACEOF
59022 /* end confdefs.h. */
59023 $ac_includes_default
59024 #include <$ac_header>
59025 _ACEOF
59026 rm -f conftest.$ac_objext
59027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59028 (eval $ac_compile) 2>conftest.er1
59029 ac_status=$?
59030 grep -v '^ *+' conftest.er1 >conftest.err
59031 rm -f conftest.er1
59032 cat conftest.err >&5
59033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59034 (exit $ac_status); } &&
59035 { ac_try='test -z "$ac_c_werror_flag"
59036 || test ! -s conftest.err'
59037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59038 (eval $ac_try) 2>&5
59039 ac_status=$?
59040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59041 (exit $ac_status); }; } &&
59042 { ac_try='test -s conftest.$ac_objext'
59043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59044 (eval $ac_try) 2>&5
59045 ac_status=$?
59046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59047 (exit $ac_status); }; }; then
59048 ac_header_compiler=yes
59049 else
59050 echo "$as_me: failed program was:" >&5
59051 sed 's/^/| /' conftest.$ac_ext >&5
59053 ac_header_compiler=no
59055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59057 echo "${ECHO_T}$ac_header_compiler" >&6
59059 # Is the header present?
59060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59062 cat >conftest.$ac_ext <<_ACEOF
59063 /* confdefs.h. */
59064 _ACEOF
59065 cat confdefs.h >>conftest.$ac_ext
59066 cat >>conftest.$ac_ext <<_ACEOF
59067 /* end confdefs.h. */
59068 #include <$ac_header>
59069 _ACEOF
59070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59072 ac_status=$?
59073 grep -v '^ *+' conftest.er1 >conftest.err
59074 rm -f conftest.er1
59075 cat conftest.err >&5
59076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59077 (exit $ac_status); } >/dev/null; then
59078 if test -s conftest.err; then
59079 ac_cpp_err=$ac_c_preproc_warn_flag
59080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59081 else
59082 ac_cpp_err=
59084 else
59085 ac_cpp_err=yes
59087 if test -z "$ac_cpp_err"; then
59088 ac_header_preproc=yes
59089 else
59090 echo "$as_me: failed program was:" >&5
59091 sed 's/^/| /' conftest.$ac_ext >&5
59093 ac_header_preproc=no
59095 rm -f conftest.err conftest.$ac_ext
59096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59097 echo "${ECHO_T}$ac_header_preproc" >&6
59099 # So? What about this header?
59100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59101 yes:no: )
59102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59106 ac_header_preproc=yes
59108 no:yes:* )
59109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59122 cat <<\_ASBOX
59123 ## ----------------------------------------- ##
59124 ## Report this to the package-unused lists. ##
59125 ## ----------------------------------------- ##
59126 _ASBOX
59128 sed "s/^/$as_me: WARNING: /" >&2
59130 esac
59131 echo "$as_me:$LINENO: checking for $ac_header" >&5
59132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59134 echo $ECHO_N "(cached) $ECHO_C" >&6
59135 else
59136 eval "$as_ac_Header=\$ac_header_preproc"
59138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59143 cat >>confdefs.h <<_ACEOF
59144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59145 _ACEOF
59146 ac_has_wctype_h=yes
59147 else
59148 ac_has_wctype_h=no
59151 done
59154 # Only continue checking if the ISO C99 headers exist and support is on.
59155 if test x"$ac_has_wchar_h" = xyes &&
59156 test x"$ac_has_wctype_h" = xyes &&
59157 test x"$enable_c_mbchar" != xno; then
59159 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59160 # numeric_limits can instantiate type_traits<wchar_t>
59161 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59162 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59163 cat >conftest.$ac_ext <<_ACEOF
59164 /* confdefs.h. */
59165 _ACEOF
59166 cat confdefs.h >>conftest.$ac_ext
59167 cat >>conftest.$ac_ext <<_ACEOF
59168 /* end confdefs.h. */
59169 #include <wchar.h>
59171 main ()
59173 int i = WCHAR_MIN; int j = WCHAR_MAX;
59175 return 0;
59177 _ACEOF
59178 rm -f conftest.$ac_objext
59179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59180 (eval $ac_compile) 2>conftest.er1
59181 ac_status=$?
59182 grep -v '^ *+' conftest.er1 >conftest.err
59183 rm -f conftest.er1
59184 cat conftest.err >&5
59185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59186 (exit $ac_status); } &&
59187 { ac_try='test -z "$ac_c_werror_flag"
59188 || test ! -s conftest.err'
59189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59190 (eval $ac_try) 2>&5
59191 ac_status=$?
59192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59193 (exit $ac_status); }; } &&
59194 { ac_try='test -s conftest.$ac_objext'
59195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59196 (eval $ac_try) 2>&5
59197 ac_status=$?
59198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59199 (exit $ac_status); }; }; then
59200 has_wchar_minmax=yes
59201 else
59202 echo "$as_me: failed program was:" >&5
59203 sed 's/^/| /' conftest.$ac_ext >&5
59205 has_wchar_minmax=no
59207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59208 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59209 echo "${ECHO_T}$has_wchar_minmax" >&6
59211 # Test wchar.h for WEOF, which is what we use to determine whether
59212 # to specialize for char_traits<wchar_t> or not.
59213 echo "$as_me:$LINENO: checking for WEOF" >&5
59214 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59215 cat >conftest.$ac_ext <<_ACEOF
59216 /* confdefs.h. */
59217 _ACEOF
59218 cat confdefs.h >>conftest.$ac_ext
59219 cat >>conftest.$ac_ext <<_ACEOF
59220 /* end confdefs.h. */
59222 #include <wchar.h>
59223 #include <stddef.h>
59225 main ()
59227 wint_t i = WEOF;
59229 return 0;
59231 _ACEOF
59232 rm -f conftest.$ac_objext
59233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59234 (eval $ac_compile) 2>conftest.er1
59235 ac_status=$?
59236 grep -v '^ *+' conftest.er1 >conftest.err
59237 rm -f conftest.er1
59238 cat conftest.err >&5
59239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59240 (exit $ac_status); } &&
59241 { ac_try='test -z "$ac_c_werror_flag"
59242 || test ! -s conftest.err'
59243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59244 (eval $ac_try) 2>&5
59245 ac_status=$?
59246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59247 (exit $ac_status); }; } &&
59248 { ac_try='test -s conftest.$ac_objext'
59249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59250 (eval $ac_try) 2>&5
59251 ac_status=$?
59252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59253 (exit $ac_status); }; }; then
59254 has_weof=yes
59255 else
59256 echo "$as_me: failed program was:" >&5
59257 sed 's/^/| /' conftest.$ac_ext >&5
59259 has_weof=no
59261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59262 echo "$as_me:$LINENO: result: $has_weof" >&5
59263 echo "${ECHO_T}$has_weof" >&6
59265 # Tests for wide character functions used in char_traits<wchar_t>.
59266 ac_wfuncs=yes
59273 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59276 echo "$as_me:$LINENO: checking for $ac_func" >&5
59277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59278 if eval "test \"\${$as_ac_var+set}\" = set"; then
59279 echo $ECHO_N "(cached) $ECHO_C" >&6
59280 else
59281 if test x$gcc_no_link = xyes; then
59282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59284 { (exit 1); exit 1; }; }
59286 cat >conftest.$ac_ext <<_ACEOF
59287 /* confdefs.h. */
59288 _ACEOF
59289 cat confdefs.h >>conftest.$ac_ext
59290 cat >>conftest.$ac_ext <<_ACEOF
59291 /* end confdefs.h. */
59292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59294 #define $ac_func innocuous_$ac_func
59296 /* System header to define __stub macros and hopefully few prototypes,
59297 which can conflict with char $ac_func (); below.
59298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59299 <limits.h> exists even on freestanding compilers. */
59301 #ifdef __STDC__
59302 # include <limits.h>
59303 #else
59304 # include <assert.h>
59305 #endif
59307 #undef $ac_func
59309 /* Override any gcc2 internal prototype to avoid an error. */
59310 #ifdef __cplusplus
59311 extern "C"
59313 #endif
59314 /* We use char because int might match the return type of a gcc2
59315 builtin and then its argument prototype would still apply. */
59316 char $ac_func ();
59317 /* The GNU C library defines this for functions which it implements
59318 to always fail with ENOSYS. Some functions are actually named
59319 something starting with __ and the normal name is an alias. */
59320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59321 choke me
59322 #else
59323 char (*f) () = $ac_func;
59324 #endif
59325 #ifdef __cplusplus
59327 #endif
59330 main ()
59332 return f != $ac_func;
59334 return 0;
59336 _ACEOF
59337 rm -f conftest.$ac_objext conftest$ac_exeext
59338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59339 (eval $ac_link) 2>conftest.er1
59340 ac_status=$?
59341 grep -v '^ *+' conftest.er1 >conftest.err
59342 rm -f conftest.er1
59343 cat conftest.err >&5
59344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59345 (exit $ac_status); } &&
59346 { ac_try='test -z "$ac_c_werror_flag"
59347 || test ! -s conftest.err'
59348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59349 (eval $ac_try) 2>&5
59350 ac_status=$?
59351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59352 (exit $ac_status); }; } &&
59353 { ac_try='test -s conftest$ac_exeext'
59354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59355 (eval $ac_try) 2>&5
59356 ac_status=$?
59357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59358 (exit $ac_status); }; }; then
59359 eval "$as_ac_var=yes"
59360 else
59361 echo "$as_me: failed program was:" >&5
59362 sed 's/^/| /' conftest.$ac_ext >&5
59364 eval "$as_ac_var=no"
59366 rm -f conftest.err conftest.$ac_objext \
59367 conftest$ac_exeext conftest.$ac_ext
59369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59371 if test `eval echo '${'$as_ac_var'}'` = yes; then
59372 cat >>confdefs.h <<_ACEOF
59373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59374 _ACEOF
59376 else
59377 ac_wfuncs=no
59379 done
59382 # Checks for names injected into std:: by the c_std headers.
59429 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59430 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59431 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59432 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59433 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59434 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59437 echo "$as_me:$LINENO: checking for $ac_func" >&5
59438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59439 if eval "test \"\${$as_ac_var+set}\" = set"; then
59440 echo $ECHO_N "(cached) $ECHO_C" >&6
59441 else
59442 if test x$gcc_no_link = xyes; then
59443 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59444 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59445 { (exit 1); exit 1; }; }
59447 cat >conftest.$ac_ext <<_ACEOF
59448 /* confdefs.h. */
59449 _ACEOF
59450 cat confdefs.h >>conftest.$ac_ext
59451 cat >>conftest.$ac_ext <<_ACEOF
59452 /* end confdefs.h. */
59453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59455 #define $ac_func innocuous_$ac_func
59457 /* System header to define __stub macros and hopefully few prototypes,
59458 which can conflict with char $ac_func (); below.
59459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59460 <limits.h> exists even on freestanding compilers. */
59462 #ifdef __STDC__
59463 # include <limits.h>
59464 #else
59465 # include <assert.h>
59466 #endif
59468 #undef $ac_func
59470 /* Override any gcc2 internal prototype to avoid an error. */
59471 #ifdef __cplusplus
59472 extern "C"
59474 #endif
59475 /* We use char because int might match the return type of a gcc2
59476 builtin and then its argument prototype would still apply. */
59477 char $ac_func ();
59478 /* The GNU C library defines this for functions which it implements
59479 to always fail with ENOSYS. Some functions are actually named
59480 something starting with __ and the normal name is an alias. */
59481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59482 choke me
59483 #else
59484 char (*f) () = $ac_func;
59485 #endif
59486 #ifdef __cplusplus
59488 #endif
59491 main ()
59493 return f != $ac_func;
59495 return 0;
59497 _ACEOF
59498 rm -f conftest.$ac_objext conftest$ac_exeext
59499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59500 (eval $ac_link) 2>conftest.er1
59501 ac_status=$?
59502 grep -v '^ *+' conftest.er1 >conftest.err
59503 rm -f conftest.er1
59504 cat conftest.err >&5
59505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59506 (exit $ac_status); } &&
59507 { ac_try='test -z "$ac_c_werror_flag"
59508 || test ! -s conftest.err'
59509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59510 (eval $ac_try) 2>&5
59511 ac_status=$?
59512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59513 (exit $ac_status); }; } &&
59514 { ac_try='test -s conftest$ac_exeext'
59515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59516 (eval $ac_try) 2>&5
59517 ac_status=$?
59518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59519 (exit $ac_status); }; }; then
59520 eval "$as_ac_var=yes"
59521 else
59522 echo "$as_me: failed program was:" >&5
59523 sed 's/^/| /' conftest.$ac_ext >&5
59525 eval "$as_ac_var=no"
59527 rm -f conftest.err conftest.$ac_objext \
59528 conftest$ac_exeext conftest.$ac_ext
59530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59532 if test `eval echo '${'$as_ac_var'}'` = yes; then
59533 cat >>confdefs.h <<_ACEOF
59534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59535 _ACEOF
59537 else
59538 ac_wfuncs=no
59540 done
59543 # Checks for wide character functions that are not required
59544 # for basic wchar_t support. Don't disable support if they are missing.
59545 # Injection of these is wrapped with guard macros.
59551 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59554 echo "$as_me:$LINENO: checking for $ac_func" >&5
59555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59556 if eval "test \"\${$as_ac_var+set}\" = set"; then
59557 echo $ECHO_N "(cached) $ECHO_C" >&6
59558 else
59559 if test x$gcc_no_link = xyes; then
59560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59562 { (exit 1); exit 1; }; }
59564 cat >conftest.$ac_ext <<_ACEOF
59565 /* confdefs.h. */
59566 _ACEOF
59567 cat confdefs.h >>conftest.$ac_ext
59568 cat >>conftest.$ac_ext <<_ACEOF
59569 /* end confdefs.h. */
59570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59572 #define $ac_func innocuous_$ac_func
59574 /* System header to define __stub macros and hopefully few prototypes,
59575 which can conflict with char $ac_func (); below.
59576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59577 <limits.h> exists even on freestanding compilers. */
59579 #ifdef __STDC__
59580 # include <limits.h>
59581 #else
59582 # include <assert.h>
59583 #endif
59585 #undef $ac_func
59587 /* Override any gcc2 internal prototype to avoid an error. */
59588 #ifdef __cplusplus
59589 extern "C"
59591 #endif
59592 /* We use char because int might match the return type of a gcc2
59593 builtin and then its argument prototype would still apply. */
59594 char $ac_func ();
59595 /* The GNU C library defines this for functions which it implements
59596 to always fail with ENOSYS. Some functions are actually named
59597 something starting with __ and the normal name is an alias. */
59598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59599 choke me
59600 #else
59601 char (*f) () = $ac_func;
59602 #endif
59603 #ifdef __cplusplus
59605 #endif
59608 main ()
59610 return f != $ac_func;
59612 return 0;
59614 _ACEOF
59615 rm -f conftest.$ac_objext conftest$ac_exeext
59616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59617 (eval $ac_link) 2>conftest.er1
59618 ac_status=$?
59619 grep -v '^ *+' conftest.er1 >conftest.err
59620 rm -f conftest.er1
59621 cat conftest.err >&5
59622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59623 (exit $ac_status); } &&
59624 { ac_try='test -z "$ac_c_werror_flag"
59625 || test ! -s conftest.err'
59626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59627 (eval $ac_try) 2>&5
59628 ac_status=$?
59629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59630 (exit $ac_status); }; } &&
59631 { ac_try='test -s conftest$ac_exeext'
59632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59633 (eval $ac_try) 2>&5
59634 ac_status=$?
59635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59636 (exit $ac_status); }; }; then
59637 eval "$as_ac_var=yes"
59638 else
59639 echo "$as_me: failed program was:" >&5
59640 sed 's/^/| /' conftest.$ac_ext >&5
59642 eval "$as_ac_var=no"
59644 rm -f conftest.err conftest.$ac_objext \
59645 conftest$ac_exeext conftest.$ac_ext
59647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59649 if test `eval echo '${'$as_ac_var'}'` = yes; then
59650 cat >>confdefs.h <<_ACEOF
59651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59652 _ACEOF
59655 done
59658 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59659 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59660 if test x"$has_weof" = xyes &&
59661 test x"$has_wchar_minmax" = xyes &&
59662 test x"$ac_wfuncs" = xyes;
59663 then
59664 ac_isoC99_wchar_t=yes
59665 else
59666 ac_isoC99_wchar_t=no
59668 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59669 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59671 # Use iconv for wchar_t to char conversions. As such, check for
59672 # X/Open Portability Guide, version 2 features (XPG2).
59673 if test "${ac_cv_header_iconv_h+set}" = set; then
59674 echo "$as_me:$LINENO: checking for iconv.h" >&5
59675 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59676 if test "${ac_cv_header_iconv_h+set}" = set; then
59677 echo $ECHO_N "(cached) $ECHO_C" >&6
59679 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59680 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59681 else
59682 # Is the header compilable?
59683 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59684 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59685 cat >conftest.$ac_ext <<_ACEOF
59686 /* confdefs.h. */
59687 _ACEOF
59688 cat confdefs.h >>conftest.$ac_ext
59689 cat >>conftest.$ac_ext <<_ACEOF
59690 /* end confdefs.h. */
59691 $ac_includes_default
59692 #include <iconv.h>
59693 _ACEOF
59694 rm -f conftest.$ac_objext
59695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59696 (eval $ac_compile) 2>conftest.er1
59697 ac_status=$?
59698 grep -v '^ *+' conftest.er1 >conftest.err
59699 rm -f conftest.er1
59700 cat conftest.err >&5
59701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59702 (exit $ac_status); } &&
59703 { ac_try='test -z "$ac_c_werror_flag"
59704 || test ! -s conftest.err'
59705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59706 (eval $ac_try) 2>&5
59707 ac_status=$?
59708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59709 (exit $ac_status); }; } &&
59710 { ac_try='test -s conftest.$ac_objext'
59711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59712 (eval $ac_try) 2>&5
59713 ac_status=$?
59714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59715 (exit $ac_status); }; }; then
59716 ac_header_compiler=yes
59717 else
59718 echo "$as_me: failed program was:" >&5
59719 sed 's/^/| /' conftest.$ac_ext >&5
59721 ac_header_compiler=no
59723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59725 echo "${ECHO_T}$ac_header_compiler" >&6
59727 # Is the header present?
59728 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59729 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59730 cat >conftest.$ac_ext <<_ACEOF
59731 /* confdefs.h. */
59732 _ACEOF
59733 cat confdefs.h >>conftest.$ac_ext
59734 cat >>conftest.$ac_ext <<_ACEOF
59735 /* end confdefs.h. */
59736 #include <iconv.h>
59737 _ACEOF
59738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59740 ac_status=$?
59741 grep -v '^ *+' conftest.er1 >conftest.err
59742 rm -f conftest.er1
59743 cat conftest.err >&5
59744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59745 (exit $ac_status); } >/dev/null; then
59746 if test -s conftest.err; then
59747 ac_cpp_err=$ac_c_preproc_warn_flag
59748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59749 else
59750 ac_cpp_err=
59752 else
59753 ac_cpp_err=yes
59755 if test -z "$ac_cpp_err"; then
59756 ac_header_preproc=yes
59757 else
59758 echo "$as_me: failed program was:" >&5
59759 sed 's/^/| /' conftest.$ac_ext >&5
59761 ac_header_preproc=no
59763 rm -f conftest.err conftest.$ac_ext
59764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59765 echo "${ECHO_T}$ac_header_preproc" >&6
59767 # So? What about this header?
59768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59769 yes:no: )
59770 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59771 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59772 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59773 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59774 ac_header_preproc=yes
59776 no:yes:* )
59777 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59778 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59779 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59780 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59781 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59782 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59783 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59784 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59785 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59786 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59787 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59788 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59790 cat <<\_ASBOX
59791 ## ----------------------------------------- ##
59792 ## Report this to the package-unused lists. ##
59793 ## ----------------------------------------- ##
59794 _ASBOX
59796 sed "s/^/$as_me: WARNING: /" >&2
59798 esac
59799 echo "$as_me:$LINENO: checking for iconv.h" >&5
59800 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59801 if test "${ac_cv_header_iconv_h+set}" = set; then
59802 echo $ECHO_N "(cached) $ECHO_C" >&6
59803 else
59804 ac_cv_header_iconv_h=$ac_header_preproc
59806 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59807 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59810 if test $ac_cv_header_iconv_h = yes; then
59811 ac_has_iconv_h=yes
59812 else
59813 ac_has_iconv_h=no
59817 if test "${ac_cv_header_langinfo_h+set}" = set; then
59818 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59819 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59820 if test "${ac_cv_header_langinfo_h+set}" = set; then
59821 echo $ECHO_N "(cached) $ECHO_C" >&6
59823 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59824 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59825 else
59826 # Is the header compilable?
59827 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59828 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59829 cat >conftest.$ac_ext <<_ACEOF
59830 /* confdefs.h. */
59831 _ACEOF
59832 cat confdefs.h >>conftest.$ac_ext
59833 cat >>conftest.$ac_ext <<_ACEOF
59834 /* end confdefs.h. */
59835 $ac_includes_default
59836 #include <langinfo.h>
59837 _ACEOF
59838 rm -f conftest.$ac_objext
59839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59840 (eval $ac_compile) 2>conftest.er1
59841 ac_status=$?
59842 grep -v '^ *+' conftest.er1 >conftest.err
59843 rm -f conftest.er1
59844 cat conftest.err >&5
59845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59846 (exit $ac_status); } &&
59847 { ac_try='test -z "$ac_c_werror_flag"
59848 || test ! -s conftest.err'
59849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59850 (eval $ac_try) 2>&5
59851 ac_status=$?
59852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59853 (exit $ac_status); }; } &&
59854 { ac_try='test -s conftest.$ac_objext'
59855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59856 (eval $ac_try) 2>&5
59857 ac_status=$?
59858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59859 (exit $ac_status); }; }; then
59860 ac_header_compiler=yes
59861 else
59862 echo "$as_me: failed program was:" >&5
59863 sed 's/^/| /' conftest.$ac_ext >&5
59865 ac_header_compiler=no
59867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59869 echo "${ECHO_T}$ac_header_compiler" >&6
59871 # Is the header present?
59872 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59873 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59874 cat >conftest.$ac_ext <<_ACEOF
59875 /* confdefs.h. */
59876 _ACEOF
59877 cat confdefs.h >>conftest.$ac_ext
59878 cat >>conftest.$ac_ext <<_ACEOF
59879 /* end confdefs.h. */
59880 #include <langinfo.h>
59881 _ACEOF
59882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59884 ac_status=$?
59885 grep -v '^ *+' conftest.er1 >conftest.err
59886 rm -f conftest.er1
59887 cat conftest.err >&5
59888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59889 (exit $ac_status); } >/dev/null; then
59890 if test -s conftest.err; then
59891 ac_cpp_err=$ac_c_preproc_warn_flag
59892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59893 else
59894 ac_cpp_err=
59896 else
59897 ac_cpp_err=yes
59899 if test -z "$ac_cpp_err"; then
59900 ac_header_preproc=yes
59901 else
59902 echo "$as_me: failed program was:" >&5
59903 sed 's/^/| /' conftest.$ac_ext >&5
59905 ac_header_preproc=no
59907 rm -f conftest.err conftest.$ac_ext
59908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59909 echo "${ECHO_T}$ac_header_preproc" >&6
59911 # So? What about this header?
59912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59913 yes:no: )
59914 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59915 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59916 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59917 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59918 ac_header_preproc=yes
59920 no:yes:* )
59921 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59922 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59923 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
59924 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
59925 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
59926 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
59927 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
59928 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
59929 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
59930 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
59931 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
59932 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
59934 cat <<\_ASBOX
59935 ## ----------------------------------------- ##
59936 ## Report this to the package-unused lists. ##
59937 ## ----------------------------------------- ##
59938 _ASBOX
59940 sed "s/^/$as_me: WARNING: /" >&2
59942 esac
59943 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59944 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59945 if test "${ac_cv_header_langinfo_h+set}" = set; then
59946 echo $ECHO_N "(cached) $ECHO_C" >&6
59947 else
59948 ac_cv_header_langinfo_h=$ac_header_preproc
59950 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59951 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59954 if test $ac_cv_header_langinfo_h = yes; then
59955 ac_has_langinfo_h=yes
59956 else
59957 ac_has_langinfo_h=no
59962 # Check for existence of libiconv.a providing XPG2 wchar_t support.
59963 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
59964 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
59965 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
59966 echo $ECHO_N "(cached) $ECHO_C" >&6
59967 else
59968 ac_check_lib_save_LIBS=$LIBS
59969 LIBS="-liconv $LIBS"
59970 if test x$gcc_no_link = xyes; then
59971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59973 { (exit 1); exit 1; }; }
59975 cat >conftest.$ac_ext <<_ACEOF
59976 /* confdefs.h. */
59977 _ACEOF
59978 cat confdefs.h >>conftest.$ac_ext
59979 cat >>conftest.$ac_ext <<_ACEOF
59980 /* end confdefs.h. */
59982 /* Override any gcc2 internal prototype to avoid an error. */
59983 #ifdef __cplusplus
59984 extern "C"
59985 #endif
59986 /* We use char because int might match the return type of a gcc2
59987 builtin and then its argument prototype would still apply. */
59988 char iconv ();
59990 main ()
59992 iconv ();
59994 return 0;
59996 _ACEOF
59997 rm -f conftest.$ac_objext conftest$ac_exeext
59998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59999 (eval $ac_link) 2>conftest.er1
60000 ac_status=$?
60001 grep -v '^ *+' conftest.er1 >conftest.err
60002 rm -f conftest.er1
60003 cat conftest.err >&5
60004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60005 (exit $ac_status); } &&
60006 { ac_try='test -z "$ac_c_werror_flag"
60007 || test ! -s conftest.err'
60008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60009 (eval $ac_try) 2>&5
60010 ac_status=$?
60011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60012 (exit $ac_status); }; } &&
60013 { ac_try='test -s conftest$ac_exeext'
60014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60015 (eval $ac_try) 2>&5
60016 ac_status=$?
60017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60018 (exit $ac_status); }; }; then
60019 ac_cv_lib_iconv_iconv=yes
60020 else
60021 echo "$as_me: failed program was:" >&5
60022 sed 's/^/| /' conftest.$ac_ext >&5
60024 ac_cv_lib_iconv_iconv=no
60026 rm -f conftest.err conftest.$ac_objext \
60027 conftest$ac_exeext conftest.$ac_ext
60028 LIBS=$ac_check_lib_save_LIBS
60030 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60031 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60032 if test $ac_cv_lib_iconv_iconv = yes; then
60033 libiconv="-liconv"
60036 ac_save_LIBS="$LIBS"
60037 LIBS="$LIBS $libiconv"
60043 for ac_func in iconv_open iconv_close iconv nl_langinfo
60045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60046 echo "$as_me:$LINENO: checking for $ac_func" >&5
60047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60048 if eval "test \"\${$as_ac_var+set}\" = set"; then
60049 echo $ECHO_N "(cached) $ECHO_C" >&6
60050 else
60051 if test x$gcc_no_link = xyes; then
60052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60054 { (exit 1); exit 1; }; }
60056 cat >conftest.$ac_ext <<_ACEOF
60057 /* confdefs.h. */
60058 _ACEOF
60059 cat confdefs.h >>conftest.$ac_ext
60060 cat >>conftest.$ac_ext <<_ACEOF
60061 /* end confdefs.h. */
60062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60064 #define $ac_func innocuous_$ac_func
60066 /* System header to define __stub macros and hopefully few prototypes,
60067 which can conflict with char $ac_func (); below.
60068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60069 <limits.h> exists even on freestanding compilers. */
60071 #ifdef __STDC__
60072 # include <limits.h>
60073 #else
60074 # include <assert.h>
60075 #endif
60077 #undef $ac_func
60079 /* Override any gcc2 internal prototype to avoid an error. */
60080 #ifdef __cplusplus
60081 extern "C"
60083 #endif
60084 /* We use char because int might match the return type of a gcc2
60085 builtin and then its argument prototype would still apply. */
60086 char $ac_func ();
60087 /* The GNU C library defines this for functions which it implements
60088 to always fail with ENOSYS. Some functions are actually named
60089 something starting with __ and the normal name is an alias. */
60090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60091 choke me
60092 #else
60093 char (*f) () = $ac_func;
60094 #endif
60095 #ifdef __cplusplus
60097 #endif
60100 main ()
60102 return f != $ac_func;
60104 return 0;
60106 _ACEOF
60107 rm -f conftest.$ac_objext conftest$ac_exeext
60108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60109 (eval $ac_link) 2>conftest.er1
60110 ac_status=$?
60111 grep -v '^ *+' conftest.er1 >conftest.err
60112 rm -f conftest.er1
60113 cat conftest.err >&5
60114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60115 (exit $ac_status); } &&
60116 { ac_try='test -z "$ac_c_werror_flag"
60117 || test ! -s conftest.err'
60118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60119 (eval $ac_try) 2>&5
60120 ac_status=$?
60121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60122 (exit $ac_status); }; } &&
60123 { ac_try='test -s conftest$ac_exeext'
60124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60125 (eval $ac_try) 2>&5
60126 ac_status=$?
60127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60128 (exit $ac_status); }; }; then
60129 eval "$as_ac_var=yes"
60130 else
60131 echo "$as_me: failed program was:" >&5
60132 sed 's/^/| /' conftest.$ac_ext >&5
60134 eval "$as_ac_var=no"
60136 rm -f conftest.err conftest.$ac_objext \
60137 conftest$ac_exeext conftest.$ac_ext
60139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60141 if test `eval echo '${'$as_ac_var'}'` = yes; then
60142 cat >>confdefs.h <<_ACEOF
60143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60144 _ACEOF
60145 ac_XPG2funcs=yes
60146 else
60147 ac_XPG2funcs=no
60149 done
60152 LIBS="$ac_save_LIBS"
60154 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60155 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60156 if test x"$ac_has_iconv_h" = xyes &&
60157 test x"$ac_has_langinfo_h" = xyes &&
60158 test x"$ac_XPG2funcs" = xyes;
60159 then
60160 ac_XPG2_wchar_t=yes
60161 else
60162 ac_XPG2_wchar_t=no
60164 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60165 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60167 # At the moment, only enable wchar_t specializations if all the
60168 # above support is present.
60169 if test x"$ac_isoC99_wchar_t" = xyes &&
60170 test x"$ac_XPG2_wchar_t" = xyes;
60171 then
60172 cat >>confdefs.h <<\_ACEOF
60173 #define _GLIBCXX_USE_WCHAR_T 1
60174 _ACEOF
60176 enable_wchar_t=yes
60179 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60180 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60181 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60182 echo "${ECHO_T}$enable_wchar_t" >&6
60185 # For LFS.
60186 cat >>confdefs.h <<\_ACEOF
60187 #define HAVE_INT64_T 1
60188 _ACEOF
60190 case "$target" in
60191 *-uclinux*)
60192 # Don't enable LFS with uClibc
60195 cat >>confdefs.h <<\_ACEOF
60196 #define _GLIBCXX_USE_LFS 1
60197 _ACEOF
60199 esac
60201 # For showmanyc_helper().
60204 for ac_header in sys/ioctl.h sys/filio.h
60206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60208 echo "$as_me:$LINENO: checking for $ac_header" >&5
60209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60211 echo $ECHO_N "(cached) $ECHO_C" >&6
60213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60215 else
60216 # Is the header compilable?
60217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60219 cat >conftest.$ac_ext <<_ACEOF
60220 /* confdefs.h. */
60221 _ACEOF
60222 cat confdefs.h >>conftest.$ac_ext
60223 cat >>conftest.$ac_ext <<_ACEOF
60224 /* end confdefs.h. */
60225 $ac_includes_default
60226 #include <$ac_header>
60227 _ACEOF
60228 rm -f conftest.$ac_objext
60229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60230 (eval $ac_compile) 2>conftest.er1
60231 ac_status=$?
60232 grep -v '^ *+' conftest.er1 >conftest.err
60233 rm -f conftest.er1
60234 cat conftest.err >&5
60235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60236 (exit $ac_status); } &&
60237 { ac_try='test -z "$ac_c_werror_flag"
60238 || test ! -s conftest.err'
60239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60240 (eval $ac_try) 2>&5
60241 ac_status=$?
60242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60243 (exit $ac_status); }; } &&
60244 { ac_try='test -s conftest.$ac_objext'
60245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60246 (eval $ac_try) 2>&5
60247 ac_status=$?
60248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60249 (exit $ac_status); }; }; then
60250 ac_header_compiler=yes
60251 else
60252 echo "$as_me: failed program was:" >&5
60253 sed 's/^/| /' conftest.$ac_ext >&5
60255 ac_header_compiler=no
60257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60259 echo "${ECHO_T}$ac_header_compiler" >&6
60261 # Is the header present?
60262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60264 cat >conftest.$ac_ext <<_ACEOF
60265 /* confdefs.h. */
60266 _ACEOF
60267 cat confdefs.h >>conftest.$ac_ext
60268 cat >>conftest.$ac_ext <<_ACEOF
60269 /* end confdefs.h. */
60270 #include <$ac_header>
60271 _ACEOF
60272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60274 ac_status=$?
60275 grep -v '^ *+' conftest.er1 >conftest.err
60276 rm -f conftest.er1
60277 cat conftest.err >&5
60278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60279 (exit $ac_status); } >/dev/null; then
60280 if test -s conftest.err; then
60281 ac_cpp_err=$ac_c_preproc_warn_flag
60282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60283 else
60284 ac_cpp_err=
60286 else
60287 ac_cpp_err=yes
60289 if test -z "$ac_cpp_err"; then
60290 ac_header_preproc=yes
60291 else
60292 echo "$as_me: failed program was:" >&5
60293 sed 's/^/| /' conftest.$ac_ext >&5
60295 ac_header_preproc=no
60297 rm -f conftest.err conftest.$ac_ext
60298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60299 echo "${ECHO_T}$ac_header_preproc" >&6
60301 # So? What about this header?
60302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60303 yes:no: )
60304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60308 ac_header_preproc=yes
60310 no:yes:* )
60311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60324 cat <<\_ASBOX
60325 ## ----------------------------------------- ##
60326 ## Report this to the package-unused lists. ##
60327 ## ----------------------------------------- ##
60328 _ASBOX
60330 sed "s/^/$as_me: WARNING: /" >&2
60332 esac
60333 echo "$as_me:$LINENO: checking for $ac_header" >&5
60334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60336 echo $ECHO_N "(cached) $ECHO_C" >&6
60337 else
60338 eval "$as_ac_Header=\$ac_header_preproc"
60340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60345 cat >>confdefs.h <<_ACEOF
60346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60347 _ACEOF
60351 done
60354 if test "${glibcxx_cv_POLL+set}" = set; then
60355 echo $ECHO_N "(cached) $ECHO_C" >&6
60356 else
60358 if test x$gcc_no_link = xyes; then
60359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60361 { (exit 1); exit 1; }; }
60363 cat >conftest.$ac_ext <<_ACEOF
60364 /* confdefs.h. */
60365 _ACEOF
60366 cat confdefs.h >>conftest.$ac_ext
60367 cat >>conftest.$ac_ext <<_ACEOF
60368 /* end confdefs.h. */
60369 #include <poll.h>
60371 main ()
60373 struct pollfd pfd[1];
60374 pfd[0].events = POLLIN;
60375 poll(pfd, 1, 0);
60377 return 0;
60379 _ACEOF
60380 rm -f conftest.$ac_objext conftest$ac_exeext
60381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60382 (eval $ac_link) 2>conftest.er1
60383 ac_status=$?
60384 grep -v '^ *+' conftest.er1 >conftest.err
60385 rm -f conftest.er1
60386 cat conftest.err >&5
60387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60388 (exit $ac_status); } &&
60389 { ac_try='test -z "$ac_c_werror_flag"
60390 || test ! -s conftest.err'
60391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60392 (eval $ac_try) 2>&5
60393 ac_status=$?
60394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60395 (exit $ac_status); }; } &&
60396 { ac_try='test -s conftest$ac_exeext'
60397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60398 (eval $ac_try) 2>&5
60399 ac_status=$?
60400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60401 (exit $ac_status); }; }; then
60402 glibcxx_cv_POLL=yes
60403 else
60404 echo "$as_me: failed program was:" >&5
60405 sed 's/^/| /' conftest.$ac_ext >&5
60407 glibcxx_cv_POLL=no
60409 rm -f conftest.err conftest.$ac_objext \
60410 conftest$ac_exeext conftest.$ac_ext
60414 if test $glibcxx_cv_POLL = yes; then
60415 cat >>confdefs.h <<\_ACEOF
60416 #define HAVE_POLL 1
60417 _ACEOF
60422 if test "${glibcxx_cv_S_ISREG+set}" = set; then
60423 echo $ECHO_N "(cached) $ECHO_C" >&6
60424 else
60426 if test x$gcc_no_link = xyes; then
60427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60429 { (exit 1); exit 1; }; }
60431 cat >conftest.$ac_ext <<_ACEOF
60432 /* confdefs.h. */
60433 _ACEOF
60434 cat confdefs.h >>conftest.$ac_ext
60435 cat >>conftest.$ac_ext <<_ACEOF
60436 /* end confdefs.h. */
60437 #include <sys/stat.h>
60439 main ()
60441 struct stat buffer;
60442 fstat(0, &buffer);
60443 S_ISREG(buffer.st_mode);
60445 return 0;
60447 _ACEOF
60448 rm -f conftest.$ac_objext conftest$ac_exeext
60449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60450 (eval $ac_link) 2>conftest.er1
60451 ac_status=$?
60452 grep -v '^ *+' conftest.er1 >conftest.err
60453 rm -f conftest.er1
60454 cat conftest.err >&5
60455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60456 (exit $ac_status); } &&
60457 { ac_try='test -z "$ac_c_werror_flag"
60458 || test ! -s conftest.err'
60459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60460 (eval $ac_try) 2>&5
60461 ac_status=$?
60462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60463 (exit $ac_status); }; } &&
60464 { ac_try='test -s conftest$ac_exeext'
60465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60466 (eval $ac_try) 2>&5
60467 ac_status=$?
60468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60469 (exit $ac_status); }; }; then
60470 glibcxx_cv_S_ISREG=yes
60471 else
60472 echo "$as_me: failed program was:" >&5
60473 sed 's/^/| /' conftest.$ac_ext >&5
60475 glibcxx_cv_S_ISREG=no
60477 rm -f conftest.err conftest.$ac_objext \
60478 conftest$ac_exeext conftest.$ac_ext
60482 if test "${glibcxx_cv_S_IFREG+set}" = set; then
60483 echo $ECHO_N "(cached) $ECHO_C" >&6
60484 else
60486 if test x$gcc_no_link = xyes; then
60487 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60489 { (exit 1); exit 1; }; }
60491 cat >conftest.$ac_ext <<_ACEOF
60492 /* confdefs.h. */
60493 _ACEOF
60494 cat confdefs.h >>conftest.$ac_ext
60495 cat >>conftest.$ac_ext <<_ACEOF
60496 /* end confdefs.h. */
60497 #include <sys/stat.h>
60499 main ()
60501 struct stat buffer;
60502 fstat(0, &buffer);
60503 S_IFREG & buffer.st_mode;
60505 return 0;
60507 _ACEOF
60508 rm -f conftest.$ac_objext conftest$ac_exeext
60509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60510 (eval $ac_link) 2>conftest.er1
60511 ac_status=$?
60512 grep -v '^ *+' conftest.er1 >conftest.err
60513 rm -f conftest.er1
60514 cat conftest.err >&5
60515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60516 (exit $ac_status); } &&
60517 { ac_try='test -z "$ac_c_werror_flag"
60518 || test ! -s conftest.err'
60519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60520 (eval $ac_try) 2>&5
60521 ac_status=$?
60522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60523 (exit $ac_status); }; } &&
60524 { ac_try='test -s conftest$ac_exeext'
60525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60526 (eval $ac_try) 2>&5
60527 ac_status=$?
60528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60529 (exit $ac_status); }; }; then
60530 glibcxx_cv_S_IFREG=yes
60531 else
60532 echo "$as_me: failed program was:" >&5
60533 sed 's/^/| /' conftest.$ac_ext >&5
60535 glibcxx_cv_S_IFREG=no
60537 rm -f conftest.err conftest.$ac_objext \
60538 conftest$ac_exeext conftest.$ac_ext
60542 if test $glibcxx_cv_S_ISREG = yes; then
60543 cat >>confdefs.h <<\_ACEOF
60544 #define HAVE_S_ISREG 1
60545 _ACEOF
60547 elif test $glibcxx_cv_S_IFREG = yes; then
60548 cat >>confdefs.h <<\_ACEOF
60549 #define HAVE_S_IFREG 1
60550 _ACEOF
60555 # For xsputn_2().
60557 for ac_header in sys/uio.h
60559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60561 echo "$as_me:$LINENO: checking for $ac_header" >&5
60562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60564 echo $ECHO_N "(cached) $ECHO_C" >&6
60566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60568 else
60569 # Is the header compilable?
60570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60572 cat >conftest.$ac_ext <<_ACEOF
60573 /* confdefs.h. */
60574 _ACEOF
60575 cat confdefs.h >>conftest.$ac_ext
60576 cat >>conftest.$ac_ext <<_ACEOF
60577 /* end confdefs.h. */
60578 $ac_includes_default
60579 #include <$ac_header>
60580 _ACEOF
60581 rm -f conftest.$ac_objext
60582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60583 (eval $ac_compile) 2>conftest.er1
60584 ac_status=$?
60585 grep -v '^ *+' conftest.er1 >conftest.err
60586 rm -f conftest.er1
60587 cat conftest.err >&5
60588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60589 (exit $ac_status); } &&
60590 { ac_try='test -z "$ac_c_werror_flag"
60591 || test ! -s conftest.err'
60592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60593 (eval $ac_try) 2>&5
60594 ac_status=$?
60595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60596 (exit $ac_status); }; } &&
60597 { ac_try='test -s conftest.$ac_objext'
60598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60599 (eval $ac_try) 2>&5
60600 ac_status=$?
60601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60602 (exit $ac_status); }; }; then
60603 ac_header_compiler=yes
60604 else
60605 echo "$as_me: failed program was:" >&5
60606 sed 's/^/| /' conftest.$ac_ext >&5
60608 ac_header_compiler=no
60610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60612 echo "${ECHO_T}$ac_header_compiler" >&6
60614 # Is the header present?
60615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60617 cat >conftest.$ac_ext <<_ACEOF
60618 /* confdefs.h. */
60619 _ACEOF
60620 cat confdefs.h >>conftest.$ac_ext
60621 cat >>conftest.$ac_ext <<_ACEOF
60622 /* end confdefs.h. */
60623 #include <$ac_header>
60624 _ACEOF
60625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60627 ac_status=$?
60628 grep -v '^ *+' conftest.er1 >conftest.err
60629 rm -f conftest.er1
60630 cat conftest.err >&5
60631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60632 (exit $ac_status); } >/dev/null; then
60633 if test -s conftest.err; then
60634 ac_cpp_err=$ac_c_preproc_warn_flag
60635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60636 else
60637 ac_cpp_err=
60639 else
60640 ac_cpp_err=yes
60642 if test -z "$ac_cpp_err"; then
60643 ac_header_preproc=yes
60644 else
60645 echo "$as_me: failed program was:" >&5
60646 sed 's/^/| /' conftest.$ac_ext >&5
60648 ac_header_preproc=no
60650 rm -f conftest.err conftest.$ac_ext
60651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60652 echo "${ECHO_T}$ac_header_preproc" >&6
60654 # So? What about this header?
60655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60656 yes:no: )
60657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60661 ac_header_preproc=yes
60663 no:yes:* )
60664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60677 cat <<\_ASBOX
60678 ## ----------------------------------------- ##
60679 ## Report this to the package-unused lists. ##
60680 ## ----------------------------------------- ##
60681 _ASBOX
60683 sed "s/^/$as_me: WARNING: /" >&2
60685 esac
60686 echo "$as_me:$LINENO: checking for $ac_header" >&5
60687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60689 echo $ECHO_N "(cached) $ECHO_C" >&6
60690 else
60691 eval "$as_ac_Header=\$ac_header_preproc"
60693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60698 cat >>confdefs.h <<_ACEOF
60699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60700 _ACEOF
60704 done
60707 if test "${glibcxx_cv_WRITEV+set}" = set; then
60708 echo $ECHO_N "(cached) $ECHO_C" >&6
60709 else
60711 if test x$gcc_no_link = xyes; then
60712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60714 { (exit 1); exit 1; }; }
60716 cat >conftest.$ac_ext <<_ACEOF
60717 /* confdefs.h. */
60718 _ACEOF
60719 cat confdefs.h >>conftest.$ac_ext
60720 cat >>conftest.$ac_ext <<_ACEOF
60721 /* end confdefs.h. */
60722 #include <sys/uio.h>
60724 main ()
60726 struct iovec iov[2];
60727 writev(0, iov, 0);
60729 return 0;
60731 _ACEOF
60732 rm -f conftest.$ac_objext conftest$ac_exeext
60733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60734 (eval $ac_link) 2>conftest.er1
60735 ac_status=$?
60736 grep -v '^ *+' conftest.er1 >conftest.err
60737 rm -f conftest.er1
60738 cat conftest.err >&5
60739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60740 (exit $ac_status); } &&
60741 { ac_try='test -z "$ac_c_werror_flag"
60742 || test ! -s conftest.err'
60743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60744 (eval $ac_try) 2>&5
60745 ac_status=$?
60746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60747 (exit $ac_status); }; } &&
60748 { ac_try='test -s conftest$ac_exeext'
60749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60750 (eval $ac_try) 2>&5
60751 ac_status=$?
60752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60753 (exit $ac_status); }; }; then
60754 glibcxx_cv_WRITEV=yes
60755 else
60756 echo "$as_me: failed program was:" >&5
60757 sed 's/^/| /' conftest.$ac_ext >&5
60759 glibcxx_cv_WRITEV=no
60761 rm -f conftest.err conftest.$ac_objext \
60762 conftest$ac_exeext conftest.$ac_ext
60766 if test $glibcxx_cv_WRITEV = yes; then
60767 cat >>confdefs.h <<\_ACEOF
60768 #define HAVE_WRITEV 1
60769 _ACEOF
60774 cat >>confdefs.h <<\_ACEOF
60775 #define HAVE_COPYSIGN 1
60776 _ACEOF
60778 cat >>confdefs.h <<\_ACEOF
60779 #define HAVE_COPYSIGNF 1
60780 _ACEOF
60782 cat >>confdefs.h <<\_ACEOF
60783 #define HAVE_FINITE 1
60784 _ACEOF
60786 cat >>confdefs.h <<\_ACEOF
60787 #define HAVE_FINITEF 1
60788 _ACEOF
60790 cat >>confdefs.h <<\_ACEOF
60791 #define HAVE_FREXPF 1
60792 _ACEOF
60794 cat >>confdefs.h <<\_ACEOF
60795 #define HAVE_HYPOTF 1
60796 _ACEOF
60798 cat >>confdefs.h <<\_ACEOF
60799 #define HAVE_ISINF 1
60800 _ACEOF
60802 cat >>confdefs.h <<\_ACEOF
60803 #define HAVE_ISINFF 1
60804 _ACEOF
60806 cat >>confdefs.h <<\_ACEOF
60807 #define HAVE_ISNAN 1
60808 _ACEOF
60810 cat >>confdefs.h <<\_ACEOF
60811 #define HAVE_ISNANF 1
60812 _ACEOF
60814 cat >>confdefs.h <<\_ACEOF
60815 #define HAVE_SINCOS 1
60816 _ACEOF
60818 cat >>confdefs.h <<\_ACEOF
60819 #define HAVE_SINCOSF 1
60820 _ACEOF
60822 if test x"long_double_math_on_this_cpu" = x"yes"; then
60823 cat >>confdefs.h <<\_ACEOF
60824 #define HAVE_FINITEL 1
60825 _ACEOF
60827 cat >>confdefs.h <<\_ACEOF
60828 #define HAVE_HYPOTL 1
60829 _ACEOF
60831 cat >>confdefs.h <<\_ACEOF
60832 #define HAVE_ISINFL 1
60833 _ACEOF
60835 cat >>confdefs.h <<\_ACEOF
60836 #define HAVE_ISNANL 1
60837 _ACEOF
60841 *-mingw32*)
60845 for ac_header in sys/types.h locale.h float.h
60847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60849 echo "$as_me:$LINENO: checking for $ac_header" >&5
60850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60852 echo $ECHO_N "(cached) $ECHO_C" >&6
60854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60856 else
60857 # Is the header compilable?
60858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60860 cat >conftest.$ac_ext <<_ACEOF
60861 /* confdefs.h. */
60862 _ACEOF
60863 cat confdefs.h >>conftest.$ac_ext
60864 cat >>conftest.$ac_ext <<_ACEOF
60865 /* end confdefs.h. */
60866 $ac_includes_default
60867 #include <$ac_header>
60868 _ACEOF
60869 rm -f conftest.$ac_objext
60870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60871 (eval $ac_compile) 2>conftest.er1
60872 ac_status=$?
60873 grep -v '^ *+' conftest.er1 >conftest.err
60874 rm -f conftest.er1
60875 cat conftest.err >&5
60876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60877 (exit $ac_status); } &&
60878 { ac_try='test -z "$ac_c_werror_flag"
60879 || test ! -s conftest.err'
60880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60881 (eval $ac_try) 2>&5
60882 ac_status=$?
60883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60884 (exit $ac_status); }; } &&
60885 { ac_try='test -s conftest.$ac_objext'
60886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60887 (eval $ac_try) 2>&5
60888 ac_status=$?
60889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60890 (exit $ac_status); }; }; then
60891 ac_header_compiler=yes
60892 else
60893 echo "$as_me: failed program was:" >&5
60894 sed 's/^/| /' conftest.$ac_ext >&5
60896 ac_header_compiler=no
60898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60900 echo "${ECHO_T}$ac_header_compiler" >&6
60902 # Is the header present?
60903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60905 cat >conftest.$ac_ext <<_ACEOF
60906 /* confdefs.h. */
60907 _ACEOF
60908 cat confdefs.h >>conftest.$ac_ext
60909 cat >>conftest.$ac_ext <<_ACEOF
60910 /* end confdefs.h. */
60911 #include <$ac_header>
60912 _ACEOF
60913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60915 ac_status=$?
60916 grep -v '^ *+' conftest.er1 >conftest.err
60917 rm -f conftest.er1
60918 cat conftest.err >&5
60919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60920 (exit $ac_status); } >/dev/null; then
60921 if test -s conftest.err; then
60922 ac_cpp_err=$ac_c_preproc_warn_flag
60923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60924 else
60925 ac_cpp_err=
60927 else
60928 ac_cpp_err=yes
60930 if test -z "$ac_cpp_err"; then
60931 ac_header_preproc=yes
60932 else
60933 echo "$as_me: failed program was:" >&5
60934 sed 's/^/| /' conftest.$ac_ext >&5
60936 ac_header_preproc=no
60938 rm -f conftest.err conftest.$ac_ext
60939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60940 echo "${ECHO_T}$ac_header_preproc" >&6
60942 # So? What about this header?
60943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60944 yes:no: )
60945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60949 ac_header_preproc=yes
60951 no:yes:* )
60952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60965 cat <<\_ASBOX
60966 ## ----------------------------------------- ##
60967 ## Report this to the package-unused lists. ##
60968 ## ----------------------------------------- ##
60969 _ASBOX
60971 sed "s/^/$as_me: WARNING: /" >&2
60973 esac
60974 echo "$as_me:$LINENO: checking for $ac_header" >&5
60975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60977 echo $ECHO_N "(cached) $ECHO_C" >&6
60978 else
60979 eval "$as_ac_Header=\$ac_header_preproc"
60981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60986 cat >>confdefs.h <<_ACEOF
60987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60988 _ACEOF
60992 done
60995 # If we're not using GNU ld, then there's no point in even trying these
60996 # tests. Check for that first. We should have already tested for gld
60997 # by now (in libtool), but require it now just to be safe...
60998 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
60999 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61003 # The name set by libtool depends on the version of libtool. Shame on us
61004 # for depending on an impl detail, but c'est la vie. Older versions used
61005 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61006 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61007 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61008 # set (hence we're using an older libtool), then set it.
61009 if test x${with_gnu_ld+set} != xset; then
61010 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61011 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61012 with_gnu_ld=no
61013 else
61014 with_gnu_ld=$ac_cv_prog_gnu_ld
61018 # Start by getting the version number. I think the libtool test already
61019 # does some of this, but throws away the result.
61021 ldver=`$LD --version 2>/dev/null | head -1 | \
61022 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61024 glibcxx_gnu_ld_version=`echo $ldver | \
61025 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61027 # Set --gc-sections.
61028 if test "$with_gnu_ld" = "notbroken"; then
61029 # GNU ld it is! Joy and bunny rabbits!
61031 # All these tests are for C++; save the language and the compiler flags.
61032 # Need to do this so that g++ won't try to link in libstdc++
61033 ac_test_CFLAGS="${CFLAGS+set}"
61034 ac_save_CFLAGS="$CFLAGS"
61035 CFLAGS='-x c++ -Wl,--gc-sections'
61037 # Check for -Wl,--gc-sections
61038 # XXX This test is broken at the moment, as symbols required for linking
61039 # are now in libsupc++ (not built yet). In addition, this test has
61040 # cored on solaris in the past. In addition, --gc-sections doesn't
61041 # really work at the moment (keeps on discarding used sections, first
61042 # .eh_frame and now some of the glibc sections for iconv).
61043 # Bzzzzt. Thanks for playing, maybe next time.
61044 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61045 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61046 if test "$cross_compiling" = yes; then
61047 ac_sectionLDflags=yes
61048 else
61049 cat >conftest.$ac_ext <<_ACEOF
61050 /* confdefs.h. */
61051 _ACEOF
61052 cat confdefs.h >>conftest.$ac_ext
61053 cat >>conftest.$ac_ext <<_ACEOF
61054 /* end confdefs.h. */
61056 int main(void)
61058 try { throw 1; }
61059 catch (...) { };
61060 return 0;
61063 _ACEOF
61064 rm -f conftest$ac_exeext
61065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61066 (eval $ac_link) 2>&5
61067 ac_status=$?
61068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61071 (eval $ac_try) 2>&5
61072 ac_status=$?
61073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61074 (exit $ac_status); }; }; then
61075 ac_sectionLDflags=yes
61076 else
61077 echo "$as_me: program exited with status $ac_status" >&5
61078 echo "$as_me: failed program was:" >&5
61079 sed 's/^/| /' conftest.$ac_ext >&5
61081 ( exit $ac_status )
61082 ac_sectionLDflags=no
61084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61086 if test "$ac_test_CFLAGS" = set; then
61087 CFLAGS="$ac_save_CFLAGS"
61088 else
61089 # this is the suspicious part
61090 CFLAGS=''
61092 if test "$ac_sectionLDflags" = "yes"; then
61093 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61095 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61096 echo "${ECHO_T}$ac_sectionLDflags" >&6
61099 # Set linker optimization flags.
61100 if test x"$with_gnu_ld" = x"yes"; then
61101 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61109 echo "$as_me:$LINENO: checking for main in -lm" >&5
61110 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61111 if test "${ac_cv_lib_m_main+set}" = set; then
61112 echo $ECHO_N "(cached) $ECHO_C" >&6
61113 else
61114 ac_check_lib_save_LIBS=$LIBS
61115 LIBS="-lm $LIBS"
61116 if test x$gcc_no_link = xyes; then
61117 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61119 { (exit 1); exit 1; }; }
61121 cat >conftest.$ac_ext <<_ACEOF
61122 /* confdefs.h. */
61123 _ACEOF
61124 cat confdefs.h >>conftest.$ac_ext
61125 cat >>conftest.$ac_ext <<_ACEOF
61126 /* end confdefs.h. */
61130 main ()
61132 main ();
61134 return 0;
61136 _ACEOF
61137 rm -f conftest.$ac_objext conftest$ac_exeext
61138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61139 (eval $ac_link) 2>conftest.er1
61140 ac_status=$?
61141 grep -v '^ *+' conftest.er1 >conftest.err
61142 rm -f conftest.er1
61143 cat conftest.err >&5
61144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61145 (exit $ac_status); } &&
61146 { ac_try='test -z "$ac_c_werror_flag"
61147 || test ! -s conftest.err'
61148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61149 (eval $ac_try) 2>&5
61150 ac_status=$?
61151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61152 (exit $ac_status); }; } &&
61153 { ac_try='test -s conftest$ac_exeext'
61154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61155 (eval $ac_try) 2>&5
61156 ac_status=$?
61157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61158 (exit $ac_status); }; }; then
61159 ac_cv_lib_m_main=yes
61160 else
61161 echo "$as_me: failed program was:" >&5
61162 sed 's/^/| /' conftest.$ac_ext >&5
61164 ac_cv_lib_m_main=no
61166 rm -f conftest.err conftest.$ac_objext \
61167 conftest$ac_exeext conftest.$ac_ext
61168 LIBS=$ac_check_lib_save_LIBS
61170 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61171 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61172 if test $ac_cv_lib_m_main = yes; then
61173 cat >>confdefs.h <<_ACEOF
61174 #define HAVE_LIBM 1
61175 _ACEOF
61177 LIBS="-lm $LIBS"
61182 for ac_func in copysignf
61184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61185 echo "$as_me:$LINENO: checking for $ac_func" >&5
61186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61187 if eval "test \"\${$as_ac_var+set}\" = set"; then
61188 echo $ECHO_N "(cached) $ECHO_C" >&6
61189 else
61190 if test x$gcc_no_link = xyes; then
61191 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61193 { (exit 1); exit 1; }; }
61195 cat >conftest.$ac_ext <<_ACEOF
61196 /* confdefs.h. */
61197 _ACEOF
61198 cat confdefs.h >>conftest.$ac_ext
61199 cat >>conftest.$ac_ext <<_ACEOF
61200 /* end confdefs.h. */
61201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61203 #define $ac_func innocuous_$ac_func
61205 /* System header to define __stub macros and hopefully few prototypes,
61206 which can conflict with char $ac_func (); below.
61207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61208 <limits.h> exists even on freestanding compilers. */
61210 #ifdef __STDC__
61211 # include <limits.h>
61212 #else
61213 # include <assert.h>
61214 #endif
61216 #undef $ac_func
61218 /* Override any gcc2 internal prototype to avoid an error. */
61219 #ifdef __cplusplus
61220 extern "C"
61222 #endif
61223 /* We use char because int might match the return type of a gcc2
61224 builtin and then its argument prototype would still apply. */
61225 char $ac_func ();
61226 /* The GNU C library defines this for functions which it implements
61227 to always fail with ENOSYS. Some functions are actually named
61228 something starting with __ and the normal name is an alias. */
61229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61230 choke me
61231 #else
61232 char (*f) () = $ac_func;
61233 #endif
61234 #ifdef __cplusplus
61236 #endif
61239 main ()
61241 return f != $ac_func;
61243 return 0;
61245 _ACEOF
61246 rm -f conftest.$ac_objext conftest$ac_exeext
61247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61248 (eval $ac_link) 2>conftest.er1
61249 ac_status=$?
61250 grep -v '^ *+' conftest.er1 >conftest.err
61251 rm -f conftest.er1
61252 cat conftest.err >&5
61253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61254 (exit $ac_status); } &&
61255 { ac_try='test -z "$ac_c_werror_flag"
61256 || test ! -s conftest.err'
61257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61258 (eval $ac_try) 2>&5
61259 ac_status=$?
61260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61261 (exit $ac_status); }; } &&
61262 { ac_try='test -s conftest$ac_exeext'
61263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61264 (eval $ac_try) 2>&5
61265 ac_status=$?
61266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61267 (exit $ac_status); }; }; then
61268 eval "$as_ac_var=yes"
61269 else
61270 echo "$as_me: failed program was:" >&5
61271 sed 's/^/| /' conftest.$ac_ext >&5
61273 eval "$as_ac_var=no"
61275 rm -f conftest.err conftest.$ac_objext \
61276 conftest$ac_exeext conftest.$ac_ext
61278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61280 if test `eval echo '${'$as_ac_var'}'` = yes; then
61281 cat >>confdefs.h <<_ACEOF
61282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61283 _ACEOF
61285 else
61286 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61288 done
61292 for ac_func in __signbit
61294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61295 echo "$as_me:$LINENO: checking for $ac_func" >&5
61296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61297 if eval "test \"\${$as_ac_var+set}\" = set"; then
61298 echo $ECHO_N "(cached) $ECHO_C" >&6
61299 else
61300 if test x$gcc_no_link = xyes; then
61301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61303 { (exit 1); exit 1; }; }
61305 cat >conftest.$ac_ext <<_ACEOF
61306 /* confdefs.h. */
61307 _ACEOF
61308 cat confdefs.h >>conftest.$ac_ext
61309 cat >>conftest.$ac_ext <<_ACEOF
61310 /* end confdefs.h. */
61311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61313 #define $ac_func innocuous_$ac_func
61315 /* System header to define __stub macros and hopefully few prototypes,
61316 which can conflict with char $ac_func (); below.
61317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61318 <limits.h> exists even on freestanding compilers. */
61320 #ifdef __STDC__
61321 # include <limits.h>
61322 #else
61323 # include <assert.h>
61324 #endif
61326 #undef $ac_func
61328 /* Override any gcc2 internal prototype to avoid an error. */
61329 #ifdef __cplusplus
61330 extern "C"
61332 #endif
61333 /* We use char because int might match the return type of a gcc2
61334 builtin and then its argument prototype would still apply. */
61335 char $ac_func ();
61336 /* The GNU C library defines this for functions which it implements
61337 to always fail with ENOSYS. Some functions are actually named
61338 something starting with __ and the normal name is an alias. */
61339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61340 choke me
61341 #else
61342 char (*f) () = $ac_func;
61343 #endif
61344 #ifdef __cplusplus
61346 #endif
61349 main ()
61351 return f != $ac_func;
61353 return 0;
61355 _ACEOF
61356 rm -f conftest.$ac_objext conftest$ac_exeext
61357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61358 (eval $ac_link) 2>conftest.er1
61359 ac_status=$?
61360 grep -v '^ *+' conftest.er1 >conftest.err
61361 rm -f conftest.er1
61362 cat conftest.err >&5
61363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61364 (exit $ac_status); } &&
61365 { ac_try='test -z "$ac_c_werror_flag"
61366 || test ! -s conftest.err'
61367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61368 (eval $ac_try) 2>&5
61369 ac_status=$?
61370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61371 (exit $ac_status); }; } &&
61372 { ac_try='test -s conftest$ac_exeext'
61373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61374 (eval $ac_try) 2>&5
61375 ac_status=$?
61376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61377 (exit $ac_status); }; }; then
61378 eval "$as_ac_var=yes"
61379 else
61380 echo "$as_me: failed program was:" >&5
61381 sed 's/^/| /' conftest.$ac_ext >&5
61383 eval "$as_ac_var=no"
61385 rm -f conftest.err conftest.$ac_objext \
61386 conftest$ac_exeext conftest.$ac_ext
61388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61390 if test `eval echo '${'$as_ac_var'}'` = yes; then
61391 cat >>confdefs.h <<_ACEOF
61392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61393 _ACEOF
61395 else
61396 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61398 done
61401 for ac_func in __signbitf
61403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61404 echo "$as_me:$LINENO: checking for $ac_func" >&5
61405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61406 if eval "test \"\${$as_ac_var+set}\" = set"; then
61407 echo $ECHO_N "(cached) $ECHO_C" >&6
61408 else
61409 if test x$gcc_no_link = xyes; then
61410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61412 { (exit 1); exit 1; }; }
61414 cat >conftest.$ac_ext <<_ACEOF
61415 /* confdefs.h. */
61416 _ACEOF
61417 cat confdefs.h >>conftest.$ac_ext
61418 cat >>conftest.$ac_ext <<_ACEOF
61419 /* end confdefs.h. */
61420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61422 #define $ac_func innocuous_$ac_func
61424 /* System header to define __stub macros and hopefully few prototypes,
61425 which can conflict with char $ac_func (); below.
61426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61427 <limits.h> exists even on freestanding compilers. */
61429 #ifdef __STDC__
61430 # include <limits.h>
61431 #else
61432 # include <assert.h>
61433 #endif
61435 #undef $ac_func
61437 /* Override any gcc2 internal prototype to avoid an error. */
61438 #ifdef __cplusplus
61439 extern "C"
61441 #endif
61442 /* We use char because int might match the return type of a gcc2
61443 builtin and then its argument prototype would still apply. */
61444 char $ac_func ();
61445 /* The GNU C library defines this for functions which it implements
61446 to always fail with ENOSYS. Some functions are actually named
61447 something starting with __ and the normal name is an alias. */
61448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61449 choke me
61450 #else
61451 char (*f) () = $ac_func;
61452 #endif
61453 #ifdef __cplusplus
61455 #endif
61458 main ()
61460 return f != $ac_func;
61462 return 0;
61464 _ACEOF
61465 rm -f conftest.$ac_objext conftest$ac_exeext
61466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61467 (eval $ac_link) 2>conftest.er1
61468 ac_status=$?
61469 grep -v '^ *+' conftest.er1 >conftest.err
61470 rm -f conftest.er1
61471 cat conftest.err >&5
61472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61473 (exit $ac_status); } &&
61474 { ac_try='test -z "$ac_c_werror_flag"
61475 || test ! -s conftest.err'
61476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61477 (eval $ac_try) 2>&5
61478 ac_status=$?
61479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61480 (exit $ac_status); }; } &&
61481 { ac_try='test -s conftest$ac_exeext'
61482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61483 (eval $ac_try) 2>&5
61484 ac_status=$?
61485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61486 (exit $ac_status); }; }; then
61487 eval "$as_ac_var=yes"
61488 else
61489 echo "$as_me: failed program was:" >&5
61490 sed 's/^/| /' conftest.$ac_ext >&5
61492 eval "$as_ac_var=no"
61494 rm -f conftest.err conftest.$ac_objext \
61495 conftest$ac_exeext conftest.$ac_ext
61497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61499 if test `eval echo '${'$as_ac_var'}'` = yes; then
61500 cat >>confdefs.h <<_ACEOF
61501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61502 _ACEOF
61504 else
61505 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61507 done
61510 if test x$ac_cv_func_copysignl = x"yes"; then
61512 for ac_func in __signbitl
61514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61515 echo "$as_me:$LINENO: checking for $ac_func" >&5
61516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61517 if eval "test \"\${$as_ac_var+set}\" = set"; then
61518 echo $ECHO_N "(cached) $ECHO_C" >&6
61519 else
61520 if test x$gcc_no_link = xyes; then
61521 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61523 { (exit 1); exit 1; }; }
61525 cat >conftest.$ac_ext <<_ACEOF
61526 /* confdefs.h. */
61527 _ACEOF
61528 cat confdefs.h >>conftest.$ac_ext
61529 cat >>conftest.$ac_ext <<_ACEOF
61530 /* end confdefs.h. */
61531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61533 #define $ac_func innocuous_$ac_func
61535 /* System header to define __stub macros and hopefully few prototypes,
61536 which can conflict with char $ac_func (); below.
61537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61538 <limits.h> exists even on freestanding compilers. */
61540 #ifdef __STDC__
61541 # include <limits.h>
61542 #else
61543 # include <assert.h>
61544 #endif
61546 #undef $ac_func
61548 /* Override any gcc2 internal prototype to avoid an error. */
61549 #ifdef __cplusplus
61550 extern "C"
61552 #endif
61553 /* We use char because int might match the return type of a gcc2
61554 builtin and then its argument prototype would still apply. */
61555 char $ac_func ();
61556 /* The GNU C library defines this for functions which it implements
61557 to always fail with ENOSYS. Some functions are actually named
61558 something starting with __ and the normal name is an alias. */
61559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61560 choke me
61561 #else
61562 char (*f) () = $ac_func;
61563 #endif
61564 #ifdef __cplusplus
61566 #endif
61569 main ()
61571 return f != $ac_func;
61573 return 0;
61575 _ACEOF
61576 rm -f conftest.$ac_objext conftest$ac_exeext
61577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61578 (eval $ac_link) 2>conftest.er1
61579 ac_status=$?
61580 grep -v '^ *+' conftest.er1 >conftest.err
61581 rm -f conftest.er1
61582 cat conftest.err >&5
61583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61584 (exit $ac_status); } &&
61585 { ac_try='test -z "$ac_c_werror_flag"
61586 || test ! -s conftest.err'
61587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61588 (eval $ac_try) 2>&5
61589 ac_status=$?
61590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61591 (exit $ac_status); }; } &&
61592 { ac_try='test -s conftest$ac_exeext'
61593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61594 (eval $ac_try) 2>&5
61595 ac_status=$?
61596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61597 (exit $ac_status); }; }; then
61598 eval "$as_ac_var=yes"
61599 else
61600 echo "$as_me: failed program was:" >&5
61601 sed 's/^/| /' conftest.$ac_ext >&5
61603 eval "$as_ac_var=no"
61605 rm -f conftest.err conftest.$ac_objext \
61606 conftest$ac_exeext conftest.$ac_ext
61608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61610 if test `eval echo '${'$as_ac_var'}'` = yes; then
61611 cat >>confdefs.h <<_ACEOF
61612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61613 _ACEOF
61615 else
61616 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61618 done
61622 # XXX Review this. Nothing uses it.
61623 if test -n "$LIBMATHOBJS"; then
61624 need_libmath=yes
61629 # Test wchar.h for mbstate_t, which is needed for char_traits and
61630 # others even if wchar_t support is not on.
61631 echo "$as_me:$LINENO: checking for mbstate_t" >&5
61632 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61633 cat >conftest.$ac_ext <<_ACEOF
61634 /* confdefs.h. */
61635 _ACEOF
61636 cat confdefs.h >>conftest.$ac_ext
61637 cat >>conftest.$ac_ext <<_ACEOF
61638 /* end confdefs.h. */
61639 #include <wchar.h>
61641 main ()
61643 mbstate_t teststate;
61645 return 0;
61647 _ACEOF
61648 rm -f conftest.$ac_objext
61649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61650 (eval $ac_compile) 2>conftest.er1
61651 ac_status=$?
61652 grep -v '^ *+' conftest.er1 >conftest.err
61653 rm -f conftest.er1
61654 cat conftest.err >&5
61655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61656 (exit $ac_status); } &&
61657 { ac_try='test -z "$ac_c_werror_flag"
61658 || test ! -s conftest.err'
61659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61660 (eval $ac_try) 2>&5
61661 ac_status=$?
61662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61663 (exit $ac_status); }; } &&
61664 { ac_try='test -s conftest.$ac_objext'
61665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61666 (eval $ac_try) 2>&5
61667 ac_status=$?
61668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61669 (exit $ac_status); }; }; then
61670 have_mbstate_t=yes
61671 else
61672 echo "$as_me: failed program was:" >&5
61673 sed 's/^/| /' conftest.$ac_ext >&5
61675 have_mbstate_t=no
61677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61678 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61679 echo "${ECHO_T}$have_mbstate_t" >&6
61680 if test x"$have_mbstate_t" = xyes; then
61681 cat >>confdefs.h <<\_ACEOF
61682 #define HAVE_MBSTATE_T 1
61683 _ACEOF
61687 # Sanity check for existence of ISO C99 headers for extended encoding.
61689 for ac_header in wchar.h
61691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61693 echo "$as_me:$LINENO: checking for $ac_header" >&5
61694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61696 echo $ECHO_N "(cached) $ECHO_C" >&6
61698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61700 else
61701 # Is the header compilable?
61702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61704 cat >conftest.$ac_ext <<_ACEOF
61705 /* confdefs.h. */
61706 _ACEOF
61707 cat confdefs.h >>conftest.$ac_ext
61708 cat >>conftest.$ac_ext <<_ACEOF
61709 /* end confdefs.h. */
61710 $ac_includes_default
61711 #include <$ac_header>
61712 _ACEOF
61713 rm -f conftest.$ac_objext
61714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61715 (eval $ac_compile) 2>conftest.er1
61716 ac_status=$?
61717 grep -v '^ *+' conftest.er1 >conftest.err
61718 rm -f conftest.er1
61719 cat conftest.err >&5
61720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61721 (exit $ac_status); } &&
61722 { ac_try='test -z "$ac_c_werror_flag"
61723 || test ! -s conftest.err'
61724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61725 (eval $ac_try) 2>&5
61726 ac_status=$?
61727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61728 (exit $ac_status); }; } &&
61729 { ac_try='test -s conftest.$ac_objext'
61730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61731 (eval $ac_try) 2>&5
61732 ac_status=$?
61733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61734 (exit $ac_status); }; }; then
61735 ac_header_compiler=yes
61736 else
61737 echo "$as_me: failed program was:" >&5
61738 sed 's/^/| /' conftest.$ac_ext >&5
61740 ac_header_compiler=no
61742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61744 echo "${ECHO_T}$ac_header_compiler" >&6
61746 # Is the header present?
61747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61749 cat >conftest.$ac_ext <<_ACEOF
61750 /* confdefs.h. */
61751 _ACEOF
61752 cat confdefs.h >>conftest.$ac_ext
61753 cat >>conftest.$ac_ext <<_ACEOF
61754 /* end confdefs.h. */
61755 #include <$ac_header>
61756 _ACEOF
61757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61759 ac_status=$?
61760 grep -v '^ *+' conftest.er1 >conftest.err
61761 rm -f conftest.er1
61762 cat conftest.err >&5
61763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61764 (exit $ac_status); } >/dev/null; then
61765 if test -s conftest.err; then
61766 ac_cpp_err=$ac_c_preproc_warn_flag
61767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61768 else
61769 ac_cpp_err=
61771 else
61772 ac_cpp_err=yes
61774 if test -z "$ac_cpp_err"; then
61775 ac_header_preproc=yes
61776 else
61777 echo "$as_me: failed program was:" >&5
61778 sed 's/^/| /' conftest.$ac_ext >&5
61780 ac_header_preproc=no
61782 rm -f conftest.err conftest.$ac_ext
61783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61784 echo "${ECHO_T}$ac_header_preproc" >&6
61786 # So? What about this header?
61787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61788 yes:no: )
61789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61793 ac_header_preproc=yes
61795 no:yes:* )
61796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61809 cat <<\_ASBOX
61810 ## ----------------------------------------- ##
61811 ## Report this to the package-unused lists. ##
61812 ## ----------------------------------------- ##
61813 _ASBOX
61815 sed "s/^/$as_me: WARNING: /" >&2
61817 esac
61818 echo "$as_me:$LINENO: checking for $ac_header" >&5
61819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61821 echo $ECHO_N "(cached) $ECHO_C" >&6
61822 else
61823 eval "$as_ac_Header=\$ac_header_preproc"
61825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61830 cat >>confdefs.h <<_ACEOF
61831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61832 _ACEOF
61833 ac_has_wchar_h=yes
61834 else
61835 ac_has_wchar_h=no
61838 done
61841 for ac_header in wctype.h
61843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61845 echo "$as_me:$LINENO: checking for $ac_header" >&5
61846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61848 echo $ECHO_N "(cached) $ECHO_C" >&6
61850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61852 else
61853 # Is the header compilable?
61854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61856 cat >conftest.$ac_ext <<_ACEOF
61857 /* confdefs.h. */
61858 _ACEOF
61859 cat confdefs.h >>conftest.$ac_ext
61860 cat >>conftest.$ac_ext <<_ACEOF
61861 /* end confdefs.h. */
61862 $ac_includes_default
61863 #include <$ac_header>
61864 _ACEOF
61865 rm -f conftest.$ac_objext
61866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61867 (eval $ac_compile) 2>conftest.er1
61868 ac_status=$?
61869 grep -v '^ *+' conftest.er1 >conftest.err
61870 rm -f conftest.er1
61871 cat conftest.err >&5
61872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61873 (exit $ac_status); } &&
61874 { ac_try='test -z "$ac_c_werror_flag"
61875 || test ! -s conftest.err'
61876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61877 (eval $ac_try) 2>&5
61878 ac_status=$?
61879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61880 (exit $ac_status); }; } &&
61881 { ac_try='test -s conftest.$ac_objext'
61882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61883 (eval $ac_try) 2>&5
61884 ac_status=$?
61885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61886 (exit $ac_status); }; }; then
61887 ac_header_compiler=yes
61888 else
61889 echo "$as_me: failed program was:" >&5
61890 sed 's/^/| /' conftest.$ac_ext >&5
61892 ac_header_compiler=no
61894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61896 echo "${ECHO_T}$ac_header_compiler" >&6
61898 # Is the header present?
61899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61901 cat >conftest.$ac_ext <<_ACEOF
61902 /* confdefs.h. */
61903 _ACEOF
61904 cat confdefs.h >>conftest.$ac_ext
61905 cat >>conftest.$ac_ext <<_ACEOF
61906 /* end confdefs.h. */
61907 #include <$ac_header>
61908 _ACEOF
61909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61911 ac_status=$?
61912 grep -v '^ *+' conftest.er1 >conftest.err
61913 rm -f conftest.er1
61914 cat conftest.err >&5
61915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61916 (exit $ac_status); } >/dev/null; then
61917 if test -s conftest.err; then
61918 ac_cpp_err=$ac_c_preproc_warn_flag
61919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61920 else
61921 ac_cpp_err=
61923 else
61924 ac_cpp_err=yes
61926 if test -z "$ac_cpp_err"; then
61927 ac_header_preproc=yes
61928 else
61929 echo "$as_me: failed program was:" >&5
61930 sed 's/^/| /' conftest.$ac_ext >&5
61932 ac_header_preproc=no
61934 rm -f conftest.err conftest.$ac_ext
61935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61936 echo "${ECHO_T}$ac_header_preproc" >&6
61938 # So? What about this header?
61939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61940 yes:no: )
61941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61945 ac_header_preproc=yes
61947 no:yes:* )
61948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61961 cat <<\_ASBOX
61962 ## ----------------------------------------- ##
61963 ## Report this to the package-unused lists. ##
61964 ## ----------------------------------------- ##
61965 _ASBOX
61967 sed "s/^/$as_me: WARNING: /" >&2
61969 esac
61970 echo "$as_me:$LINENO: checking for $ac_header" >&5
61971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61973 echo $ECHO_N "(cached) $ECHO_C" >&6
61974 else
61975 eval "$as_ac_Header=\$ac_header_preproc"
61977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61982 cat >>confdefs.h <<_ACEOF
61983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61984 _ACEOF
61985 ac_has_wctype_h=yes
61986 else
61987 ac_has_wctype_h=no
61990 done
61993 # Only continue checking if the ISO C99 headers exist and support is on.
61994 if test x"$ac_has_wchar_h" = xyes &&
61995 test x"$ac_has_wctype_h" = xyes &&
61996 test x"$enable_c_mbchar" != xno; then
61998 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
61999 # numeric_limits can instantiate type_traits<wchar_t>
62000 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62001 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62002 cat >conftest.$ac_ext <<_ACEOF
62003 /* confdefs.h. */
62004 _ACEOF
62005 cat confdefs.h >>conftest.$ac_ext
62006 cat >>conftest.$ac_ext <<_ACEOF
62007 /* end confdefs.h. */
62008 #include <wchar.h>
62010 main ()
62012 int i = WCHAR_MIN; int j = WCHAR_MAX;
62014 return 0;
62016 _ACEOF
62017 rm -f conftest.$ac_objext
62018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62019 (eval $ac_compile) 2>conftest.er1
62020 ac_status=$?
62021 grep -v '^ *+' conftest.er1 >conftest.err
62022 rm -f conftest.er1
62023 cat conftest.err >&5
62024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62025 (exit $ac_status); } &&
62026 { ac_try='test -z "$ac_c_werror_flag"
62027 || test ! -s conftest.err'
62028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62029 (eval $ac_try) 2>&5
62030 ac_status=$?
62031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62032 (exit $ac_status); }; } &&
62033 { ac_try='test -s conftest.$ac_objext'
62034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62035 (eval $ac_try) 2>&5
62036 ac_status=$?
62037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62038 (exit $ac_status); }; }; then
62039 has_wchar_minmax=yes
62040 else
62041 echo "$as_me: failed program was:" >&5
62042 sed 's/^/| /' conftest.$ac_ext >&5
62044 has_wchar_minmax=no
62046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62047 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62048 echo "${ECHO_T}$has_wchar_minmax" >&6
62050 # Test wchar.h for WEOF, which is what we use to determine whether
62051 # to specialize for char_traits<wchar_t> or not.
62052 echo "$as_me:$LINENO: checking for WEOF" >&5
62053 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62054 cat >conftest.$ac_ext <<_ACEOF
62055 /* confdefs.h. */
62056 _ACEOF
62057 cat confdefs.h >>conftest.$ac_ext
62058 cat >>conftest.$ac_ext <<_ACEOF
62059 /* end confdefs.h. */
62061 #include <wchar.h>
62062 #include <stddef.h>
62064 main ()
62066 wint_t i = WEOF;
62068 return 0;
62070 _ACEOF
62071 rm -f conftest.$ac_objext
62072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62073 (eval $ac_compile) 2>conftest.er1
62074 ac_status=$?
62075 grep -v '^ *+' conftest.er1 >conftest.err
62076 rm -f conftest.er1
62077 cat conftest.err >&5
62078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62079 (exit $ac_status); } &&
62080 { ac_try='test -z "$ac_c_werror_flag"
62081 || test ! -s conftest.err'
62082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62083 (eval $ac_try) 2>&5
62084 ac_status=$?
62085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62086 (exit $ac_status); }; } &&
62087 { ac_try='test -s conftest.$ac_objext'
62088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62089 (eval $ac_try) 2>&5
62090 ac_status=$?
62091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62092 (exit $ac_status); }; }; then
62093 has_weof=yes
62094 else
62095 echo "$as_me: failed program was:" >&5
62096 sed 's/^/| /' conftest.$ac_ext >&5
62098 has_weof=no
62100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62101 echo "$as_me:$LINENO: result: $has_weof" >&5
62102 echo "${ECHO_T}$has_weof" >&6
62104 # Tests for wide character functions used in char_traits<wchar_t>.
62105 ac_wfuncs=yes
62112 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62115 echo "$as_me:$LINENO: checking for $ac_func" >&5
62116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62117 if eval "test \"\${$as_ac_var+set}\" = set"; then
62118 echo $ECHO_N "(cached) $ECHO_C" >&6
62119 else
62120 if test x$gcc_no_link = xyes; then
62121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62123 { (exit 1); exit 1; }; }
62125 cat >conftest.$ac_ext <<_ACEOF
62126 /* confdefs.h. */
62127 _ACEOF
62128 cat confdefs.h >>conftest.$ac_ext
62129 cat >>conftest.$ac_ext <<_ACEOF
62130 /* end confdefs.h. */
62131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62133 #define $ac_func innocuous_$ac_func
62135 /* System header to define __stub macros and hopefully few prototypes,
62136 which can conflict with char $ac_func (); below.
62137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62138 <limits.h> exists even on freestanding compilers. */
62140 #ifdef __STDC__
62141 # include <limits.h>
62142 #else
62143 # include <assert.h>
62144 #endif
62146 #undef $ac_func
62148 /* Override any gcc2 internal prototype to avoid an error. */
62149 #ifdef __cplusplus
62150 extern "C"
62152 #endif
62153 /* We use char because int might match the return type of a gcc2
62154 builtin and then its argument prototype would still apply. */
62155 char $ac_func ();
62156 /* The GNU C library defines this for functions which it implements
62157 to always fail with ENOSYS. Some functions are actually named
62158 something starting with __ and the normal name is an alias. */
62159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62160 choke me
62161 #else
62162 char (*f) () = $ac_func;
62163 #endif
62164 #ifdef __cplusplus
62166 #endif
62169 main ()
62171 return f != $ac_func;
62173 return 0;
62175 _ACEOF
62176 rm -f conftest.$ac_objext conftest$ac_exeext
62177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62178 (eval $ac_link) 2>conftest.er1
62179 ac_status=$?
62180 grep -v '^ *+' conftest.er1 >conftest.err
62181 rm -f conftest.er1
62182 cat conftest.err >&5
62183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62184 (exit $ac_status); } &&
62185 { ac_try='test -z "$ac_c_werror_flag"
62186 || test ! -s conftest.err'
62187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62188 (eval $ac_try) 2>&5
62189 ac_status=$?
62190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62191 (exit $ac_status); }; } &&
62192 { ac_try='test -s conftest$ac_exeext'
62193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62194 (eval $ac_try) 2>&5
62195 ac_status=$?
62196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62197 (exit $ac_status); }; }; then
62198 eval "$as_ac_var=yes"
62199 else
62200 echo "$as_me: failed program was:" >&5
62201 sed 's/^/| /' conftest.$ac_ext >&5
62203 eval "$as_ac_var=no"
62205 rm -f conftest.err conftest.$ac_objext \
62206 conftest$ac_exeext conftest.$ac_ext
62208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62210 if test `eval echo '${'$as_ac_var'}'` = yes; then
62211 cat >>confdefs.h <<_ACEOF
62212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62213 _ACEOF
62215 else
62216 ac_wfuncs=no
62218 done
62221 # Checks for names injected into std:: by the c_std headers.
62268 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62269 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62270 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62271 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62272 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62273 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62276 echo "$as_me:$LINENO: checking for $ac_func" >&5
62277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62278 if eval "test \"\${$as_ac_var+set}\" = set"; then
62279 echo $ECHO_N "(cached) $ECHO_C" >&6
62280 else
62281 if test x$gcc_no_link = xyes; then
62282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62284 { (exit 1); exit 1; }; }
62286 cat >conftest.$ac_ext <<_ACEOF
62287 /* confdefs.h. */
62288 _ACEOF
62289 cat confdefs.h >>conftest.$ac_ext
62290 cat >>conftest.$ac_ext <<_ACEOF
62291 /* end confdefs.h. */
62292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62294 #define $ac_func innocuous_$ac_func
62296 /* System header to define __stub macros and hopefully few prototypes,
62297 which can conflict with char $ac_func (); below.
62298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62299 <limits.h> exists even on freestanding compilers. */
62301 #ifdef __STDC__
62302 # include <limits.h>
62303 #else
62304 # include <assert.h>
62305 #endif
62307 #undef $ac_func
62309 /* Override any gcc2 internal prototype to avoid an error. */
62310 #ifdef __cplusplus
62311 extern "C"
62313 #endif
62314 /* We use char because int might match the return type of a gcc2
62315 builtin and then its argument prototype would still apply. */
62316 char $ac_func ();
62317 /* The GNU C library defines this for functions which it implements
62318 to always fail with ENOSYS. Some functions are actually named
62319 something starting with __ and the normal name is an alias. */
62320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62321 choke me
62322 #else
62323 char (*f) () = $ac_func;
62324 #endif
62325 #ifdef __cplusplus
62327 #endif
62330 main ()
62332 return f != $ac_func;
62334 return 0;
62336 _ACEOF
62337 rm -f conftest.$ac_objext conftest$ac_exeext
62338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62339 (eval $ac_link) 2>conftest.er1
62340 ac_status=$?
62341 grep -v '^ *+' conftest.er1 >conftest.err
62342 rm -f conftest.er1
62343 cat conftest.err >&5
62344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62345 (exit $ac_status); } &&
62346 { ac_try='test -z "$ac_c_werror_flag"
62347 || test ! -s conftest.err'
62348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62349 (eval $ac_try) 2>&5
62350 ac_status=$?
62351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62352 (exit $ac_status); }; } &&
62353 { ac_try='test -s conftest$ac_exeext'
62354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62355 (eval $ac_try) 2>&5
62356 ac_status=$?
62357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62358 (exit $ac_status); }; }; then
62359 eval "$as_ac_var=yes"
62360 else
62361 echo "$as_me: failed program was:" >&5
62362 sed 's/^/| /' conftest.$ac_ext >&5
62364 eval "$as_ac_var=no"
62366 rm -f conftest.err conftest.$ac_objext \
62367 conftest$ac_exeext conftest.$ac_ext
62369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62371 if test `eval echo '${'$as_ac_var'}'` = yes; then
62372 cat >>confdefs.h <<_ACEOF
62373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62374 _ACEOF
62376 else
62377 ac_wfuncs=no
62379 done
62382 # Checks for wide character functions that are not required
62383 # for basic wchar_t support. Don't disable support if they are missing.
62384 # Injection of these is wrapped with guard macros.
62390 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62393 echo "$as_me:$LINENO: checking for $ac_func" >&5
62394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62395 if eval "test \"\${$as_ac_var+set}\" = set"; then
62396 echo $ECHO_N "(cached) $ECHO_C" >&6
62397 else
62398 if test x$gcc_no_link = xyes; then
62399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62401 { (exit 1); exit 1; }; }
62403 cat >conftest.$ac_ext <<_ACEOF
62404 /* confdefs.h. */
62405 _ACEOF
62406 cat confdefs.h >>conftest.$ac_ext
62407 cat >>conftest.$ac_ext <<_ACEOF
62408 /* end confdefs.h. */
62409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62411 #define $ac_func innocuous_$ac_func
62413 /* System header to define __stub macros and hopefully few prototypes,
62414 which can conflict with char $ac_func (); below.
62415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62416 <limits.h> exists even on freestanding compilers. */
62418 #ifdef __STDC__
62419 # include <limits.h>
62420 #else
62421 # include <assert.h>
62422 #endif
62424 #undef $ac_func
62426 /* Override any gcc2 internal prototype to avoid an error. */
62427 #ifdef __cplusplus
62428 extern "C"
62430 #endif
62431 /* We use char because int might match the return type of a gcc2
62432 builtin and then its argument prototype would still apply. */
62433 char $ac_func ();
62434 /* The GNU C library defines this for functions which it implements
62435 to always fail with ENOSYS. Some functions are actually named
62436 something starting with __ and the normal name is an alias. */
62437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62438 choke me
62439 #else
62440 char (*f) () = $ac_func;
62441 #endif
62442 #ifdef __cplusplus
62444 #endif
62447 main ()
62449 return f != $ac_func;
62451 return 0;
62453 _ACEOF
62454 rm -f conftest.$ac_objext conftest$ac_exeext
62455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62456 (eval $ac_link) 2>conftest.er1
62457 ac_status=$?
62458 grep -v '^ *+' conftest.er1 >conftest.err
62459 rm -f conftest.er1
62460 cat conftest.err >&5
62461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62462 (exit $ac_status); } &&
62463 { ac_try='test -z "$ac_c_werror_flag"
62464 || test ! -s conftest.err'
62465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62466 (eval $ac_try) 2>&5
62467 ac_status=$?
62468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62469 (exit $ac_status); }; } &&
62470 { ac_try='test -s conftest$ac_exeext'
62471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62472 (eval $ac_try) 2>&5
62473 ac_status=$?
62474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62475 (exit $ac_status); }; }; then
62476 eval "$as_ac_var=yes"
62477 else
62478 echo "$as_me: failed program was:" >&5
62479 sed 's/^/| /' conftest.$ac_ext >&5
62481 eval "$as_ac_var=no"
62483 rm -f conftest.err conftest.$ac_objext \
62484 conftest$ac_exeext conftest.$ac_ext
62486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62488 if test `eval echo '${'$as_ac_var'}'` = yes; then
62489 cat >>confdefs.h <<_ACEOF
62490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62491 _ACEOF
62494 done
62497 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62498 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62499 if test x"$has_weof" = xyes &&
62500 test x"$has_wchar_minmax" = xyes &&
62501 test x"$ac_wfuncs" = xyes;
62502 then
62503 ac_isoC99_wchar_t=yes
62504 else
62505 ac_isoC99_wchar_t=no
62507 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62508 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62510 # Use iconv for wchar_t to char conversions. As such, check for
62511 # X/Open Portability Guide, version 2 features (XPG2).
62512 if test "${ac_cv_header_iconv_h+set}" = set; then
62513 echo "$as_me:$LINENO: checking for iconv.h" >&5
62514 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62515 if test "${ac_cv_header_iconv_h+set}" = set; then
62516 echo $ECHO_N "(cached) $ECHO_C" >&6
62518 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62519 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62520 else
62521 # Is the header compilable?
62522 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62523 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62524 cat >conftest.$ac_ext <<_ACEOF
62525 /* confdefs.h. */
62526 _ACEOF
62527 cat confdefs.h >>conftest.$ac_ext
62528 cat >>conftest.$ac_ext <<_ACEOF
62529 /* end confdefs.h. */
62530 $ac_includes_default
62531 #include <iconv.h>
62532 _ACEOF
62533 rm -f conftest.$ac_objext
62534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62535 (eval $ac_compile) 2>conftest.er1
62536 ac_status=$?
62537 grep -v '^ *+' conftest.er1 >conftest.err
62538 rm -f conftest.er1
62539 cat conftest.err >&5
62540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62541 (exit $ac_status); } &&
62542 { ac_try='test -z "$ac_c_werror_flag"
62543 || test ! -s conftest.err'
62544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62545 (eval $ac_try) 2>&5
62546 ac_status=$?
62547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62548 (exit $ac_status); }; } &&
62549 { ac_try='test -s conftest.$ac_objext'
62550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62551 (eval $ac_try) 2>&5
62552 ac_status=$?
62553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62554 (exit $ac_status); }; }; then
62555 ac_header_compiler=yes
62556 else
62557 echo "$as_me: failed program was:" >&5
62558 sed 's/^/| /' conftest.$ac_ext >&5
62560 ac_header_compiler=no
62562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62564 echo "${ECHO_T}$ac_header_compiler" >&6
62566 # Is the header present?
62567 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62568 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62569 cat >conftest.$ac_ext <<_ACEOF
62570 /* confdefs.h. */
62571 _ACEOF
62572 cat confdefs.h >>conftest.$ac_ext
62573 cat >>conftest.$ac_ext <<_ACEOF
62574 /* end confdefs.h. */
62575 #include <iconv.h>
62576 _ACEOF
62577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62579 ac_status=$?
62580 grep -v '^ *+' conftest.er1 >conftest.err
62581 rm -f conftest.er1
62582 cat conftest.err >&5
62583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62584 (exit $ac_status); } >/dev/null; then
62585 if test -s conftest.err; then
62586 ac_cpp_err=$ac_c_preproc_warn_flag
62587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62588 else
62589 ac_cpp_err=
62591 else
62592 ac_cpp_err=yes
62594 if test -z "$ac_cpp_err"; then
62595 ac_header_preproc=yes
62596 else
62597 echo "$as_me: failed program was:" >&5
62598 sed 's/^/| /' conftest.$ac_ext >&5
62600 ac_header_preproc=no
62602 rm -f conftest.err conftest.$ac_ext
62603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62604 echo "${ECHO_T}$ac_header_preproc" >&6
62606 # So? What about this header?
62607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62608 yes:no: )
62609 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62610 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62611 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62612 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62613 ac_header_preproc=yes
62615 no:yes:* )
62616 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62617 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62618 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62619 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62620 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62621 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62622 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
62623 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
62624 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62625 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62626 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62627 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62629 cat <<\_ASBOX
62630 ## ----------------------------------------- ##
62631 ## Report this to the package-unused lists. ##
62632 ## ----------------------------------------- ##
62633 _ASBOX
62635 sed "s/^/$as_me: WARNING: /" >&2
62637 esac
62638 echo "$as_me:$LINENO: checking for iconv.h" >&5
62639 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62640 if test "${ac_cv_header_iconv_h+set}" = set; then
62641 echo $ECHO_N "(cached) $ECHO_C" >&6
62642 else
62643 ac_cv_header_iconv_h=$ac_header_preproc
62645 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62646 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62649 if test $ac_cv_header_iconv_h = yes; then
62650 ac_has_iconv_h=yes
62651 else
62652 ac_has_iconv_h=no
62656 if test "${ac_cv_header_langinfo_h+set}" = set; then
62657 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62658 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62659 if test "${ac_cv_header_langinfo_h+set}" = set; then
62660 echo $ECHO_N "(cached) $ECHO_C" >&6
62662 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62663 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62664 else
62665 # Is the header compilable?
62666 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62667 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62668 cat >conftest.$ac_ext <<_ACEOF
62669 /* confdefs.h. */
62670 _ACEOF
62671 cat confdefs.h >>conftest.$ac_ext
62672 cat >>conftest.$ac_ext <<_ACEOF
62673 /* end confdefs.h. */
62674 $ac_includes_default
62675 #include <langinfo.h>
62676 _ACEOF
62677 rm -f conftest.$ac_objext
62678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62679 (eval $ac_compile) 2>conftest.er1
62680 ac_status=$?
62681 grep -v '^ *+' conftest.er1 >conftest.err
62682 rm -f conftest.er1
62683 cat conftest.err >&5
62684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62685 (exit $ac_status); } &&
62686 { ac_try='test -z "$ac_c_werror_flag"
62687 || test ! -s conftest.err'
62688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62689 (eval $ac_try) 2>&5
62690 ac_status=$?
62691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62692 (exit $ac_status); }; } &&
62693 { ac_try='test -s conftest.$ac_objext'
62694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62695 (eval $ac_try) 2>&5
62696 ac_status=$?
62697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62698 (exit $ac_status); }; }; then
62699 ac_header_compiler=yes
62700 else
62701 echo "$as_me: failed program was:" >&5
62702 sed 's/^/| /' conftest.$ac_ext >&5
62704 ac_header_compiler=no
62706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62708 echo "${ECHO_T}$ac_header_compiler" >&6
62710 # Is the header present?
62711 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62712 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62713 cat >conftest.$ac_ext <<_ACEOF
62714 /* confdefs.h. */
62715 _ACEOF
62716 cat confdefs.h >>conftest.$ac_ext
62717 cat >>conftest.$ac_ext <<_ACEOF
62718 /* end confdefs.h. */
62719 #include <langinfo.h>
62720 _ACEOF
62721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62723 ac_status=$?
62724 grep -v '^ *+' conftest.er1 >conftest.err
62725 rm -f conftest.er1
62726 cat conftest.err >&5
62727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62728 (exit $ac_status); } >/dev/null; then
62729 if test -s conftest.err; then
62730 ac_cpp_err=$ac_c_preproc_warn_flag
62731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62732 else
62733 ac_cpp_err=
62735 else
62736 ac_cpp_err=yes
62738 if test -z "$ac_cpp_err"; then
62739 ac_header_preproc=yes
62740 else
62741 echo "$as_me: failed program was:" >&5
62742 sed 's/^/| /' conftest.$ac_ext >&5
62744 ac_header_preproc=no
62746 rm -f conftest.err conftest.$ac_ext
62747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62748 echo "${ECHO_T}$ac_header_preproc" >&6
62750 # So? What about this header?
62751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62752 yes:no: )
62753 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62754 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62755 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
62756 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
62757 ac_header_preproc=yes
62759 no:yes:* )
62760 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62761 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62762 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
62763 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
62764 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
62765 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
62766 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
62767 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
62768 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62769 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62770 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
62771 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
62773 cat <<\_ASBOX
62774 ## ----------------------------------------- ##
62775 ## Report this to the package-unused lists. ##
62776 ## ----------------------------------------- ##
62777 _ASBOX
62779 sed "s/^/$as_me: WARNING: /" >&2
62781 esac
62782 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62783 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62784 if test "${ac_cv_header_langinfo_h+set}" = set; then
62785 echo $ECHO_N "(cached) $ECHO_C" >&6
62786 else
62787 ac_cv_header_langinfo_h=$ac_header_preproc
62789 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62790 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62793 if test $ac_cv_header_langinfo_h = yes; then
62794 ac_has_langinfo_h=yes
62795 else
62796 ac_has_langinfo_h=no
62801 # Check for existence of libiconv.a providing XPG2 wchar_t support.
62802 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62803 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62804 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62805 echo $ECHO_N "(cached) $ECHO_C" >&6
62806 else
62807 ac_check_lib_save_LIBS=$LIBS
62808 LIBS="-liconv $LIBS"
62809 if test x$gcc_no_link = xyes; then
62810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62812 { (exit 1); exit 1; }; }
62814 cat >conftest.$ac_ext <<_ACEOF
62815 /* confdefs.h. */
62816 _ACEOF
62817 cat confdefs.h >>conftest.$ac_ext
62818 cat >>conftest.$ac_ext <<_ACEOF
62819 /* end confdefs.h. */
62821 /* Override any gcc2 internal prototype to avoid an error. */
62822 #ifdef __cplusplus
62823 extern "C"
62824 #endif
62825 /* We use char because int might match the return type of a gcc2
62826 builtin and then its argument prototype would still apply. */
62827 char iconv ();
62829 main ()
62831 iconv ();
62833 return 0;
62835 _ACEOF
62836 rm -f conftest.$ac_objext conftest$ac_exeext
62837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62838 (eval $ac_link) 2>conftest.er1
62839 ac_status=$?
62840 grep -v '^ *+' conftest.er1 >conftest.err
62841 rm -f conftest.er1
62842 cat conftest.err >&5
62843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62844 (exit $ac_status); } &&
62845 { ac_try='test -z "$ac_c_werror_flag"
62846 || test ! -s conftest.err'
62847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62848 (eval $ac_try) 2>&5
62849 ac_status=$?
62850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62851 (exit $ac_status); }; } &&
62852 { ac_try='test -s conftest$ac_exeext'
62853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62854 (eval $ac_try) 2>&5
62855 ac_status=$?
62856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62857 (exit $ac_status); }; }; then
62858 ac_cv_lib_iconv_iconv=yes
62859 else
62860 echo "$as_me: failed program was:" >&5
62861 sed 's/^/| /' conftest.$ac_ext >&5
62863 ac_cv_lib_iconv_iconv=no
62865 rm -f conftest.err conftest.$ac_objext \
62866 conftest$ac_exeext conftest.$ac_ext
62867 LIBS=$ac_check_lib_save_LIBS
62869 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62870 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62871 if test $ac_cv_lib_iconv_iconv = yes; then
62872 libiconv="-liconv"
62875 ac_save_LIBS="$LIBS"
62876 LIBS="$LIBS $libiconv"
62882 for ac_func in iconv_open iconv_close iconv nl_langinfo
62884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62885 echo "$as_me:$LINENO: checking for $ac_func" >&5
62886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62887 if eval "test \"\${$as_ac_var+set}\" = set"; then
62888 echo $ECHO_N "(cached) $ECHO_C" >&6
62889 else
62890 if test x$gcc_no_link = xyes; then
62891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62893 { (exit 1); exit 1; }; }
62895 cat >conftest.$ac_ext <<_ACEOF
62896 /* confdefs.h. */
62897 _ACEOF
62898 cat confdefs.h >>conftest.$ac_ext
62899 cat >>conftest.$ac_ext <<_ACEOF
62900 /* end confdefs.h. */
62901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62903 #define $ac_func innocuous_$ac_func
62905 /* System header to define __stub macros and hopefully few prototypes,
62906 which can conflict with char $ac_func (); below.
62907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62908 <limits.h> exists even on freestanding compilers. */
62910 #ifdef __STDC__
62911 # include <limits.h>
62912 #else
62913 # include <assert.h>
62914 #endif
62916 #undef $ac_func
62918 /* Override any gcc2 internal prototype to avoid an error. */
62919 #ifdef __cplusplus
62920 extern "C"
62922 #endif
62923 /* We use char because int might match the return type of a gcc2
62924 builtin and then its argument prototype would still apply. */
62925 char $ac_func ();
62926 /* The GNU C library defines this for functions which it implements
62927 to always fail with ENOSYS. Some functions are actually named
62928 something starting with __ and the normal name is an alias. */
62929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62930 choke me
62931 #else
62932 char (*f) () = $ac_func;
62933 #endif
62934 #ifdef __cplusplus
62936 #endif
62939 main ()
62941 return f != $ac_func;
62943 return 0;
62945 _ACEOF
62946 rm -f conftest.$ac_objext conftest$ac_exeext
62947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62948 (eval $ac_link) 2>conftest.er1
62949 ac_status=$?
62950 grep -v '^ *+' conftest.er1 >conftest.err
62951 rm -f conftest.er1
62952 cat conftest.err >&5
62953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62954 (exit $ac_status); } &&
62955 { ac_try='test -z "$ac_c_werror_flag"
62956 || test ! -s conftest.err'
62957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62958 (eval $ac_try) 2>&5
62959 ac_status=$?
62960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62961 (exit $ac_status); }; } &&
62962 { ac_try='test -s conftest$ac_exeext'
62963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62964 (eval $ac_try) 2>&5
62965 ac_status=$?
62966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62967 (exit $ac_status); }; }; then
62968 eval "$as_ac_var=yes"
62969 else
62970 echo "$as_me: failed program was:" >&5
62971 sed 's/^/| /' conftest.$ac_ext >&5
62973 eval "$as_ac_var=no"
62975 rm -f conftest.err conftest.$ac_objext \
62976 conftest$ac_exeext conftest.$ac_ext
62978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62980 if test `eval echo '${'$as_ac_var'}'` = yes; then
62981 cat >>confdefs.h <<_ACEOF
62982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62983 _ACEOF
62984 ac_XPG2funcs=yes
62985 else
62986 ac_XPG2funcs=no
62988 done
62991 LIBS="$ac_save_LIBS"
62993 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
62994 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
62995 if test x"$ac_has_iconv_h" = xyes &&
62996 test x"$ac_has_langinfo_h" = xyes &&
62997 test x"$ac_XPG2funcs" = xyes;
62998 then
62999 ac_XPG2_wchar_t=yes
63000 else
63001 ac_XPG2_wchar_t=no
63003 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63004 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63006 # At the moment, only enable wchar_t specializations if all the
63007 # above support is present.
63008 if test x"$ac_isoC99_wchar_t" = xyes &&
63009 test x"$ac_XPG2_wchar_t" = xyes;
63010 then
63011 cat >>confdefs.h <<\_ACEOF
63012 #define _GLIBCXX_USE_WCHAR_T 1
63013 _ACEOF
63015 enable_wchar_t=yes
63018 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63019 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63020 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63021 echo "${ECHO_T}$enable_wchar_t" >&6
63024 *-netbsd*)
63037 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63038 machine/endian.h machine/param.h sys/machine.h sys/types.h \
63039 fp.h locale.h float.h inttypes.h
63041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63043 echo "$as_me:$LINENO: checking for $ac_header" >&5
63044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63046 echo $ECHO_N "(cached) $ECHO_C" >&6
63048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63050 else
63051 # Is the header compilable?
63052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63054 cat >conftest.$ac_ext <<_ACEOF
63055 /* confdefs.h. */
63056 _ACEOF
63057 cat confdefs.h >>conftest.$ac_ext
63058 cat >>conftest.$ac_ext <<_ACEOF
63059 /* end confdefs.h. */
63060 $ac_includes_default
63061 #include <$ac_header>
63062 _ACEOF
63063 rm -f conftest.$ac_objext
63064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63065 (eval $ac_compile) 2>conftest.er1
63066 ac_status=$?
63067 grep -v '^ *+' conftest.er1 >conftest.err
63068 rm -f conftest.er1
63069 cat conftest.err >&5
63070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63071 (exit $ac_status); } &&
63072 { ac_try='test -z "$ac_c_werror_flag"
63073 || test ! -s conftest.err'
63074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63075 (eval $ac_try) 2>&5
63076 ac_status=$?
63077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63078 (exit $ac_status); }; } &&
63079 { ac_try='test -s conftest.$ac_objext'
63080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63081 (eval $ac_try) 2>&5
63082 ac_status=$?
63083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63084 (exit $ac_status); }; }; then
63085 ac_header_compiler=yes
63086 else
63087 echo "$as_me: failed program was:" >&5
63088 sed 's/^/| /' conftest.$ac_ext >&5
63090 ac_header_compiler=no
63092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63094 echo "${ECHO_T}$ac_header_compiler" >&6
63096 # Is the header present?
63097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63099 cat >conftest.$ac_ext <<_ACEOF
63100 /* confdefs.h. */
63101 _ACEOF
63102 cat confdefs.h >>conftest.$ac_ext
63103 cat >>conftest.$ac_ext <<_ACEOF
63104 /* end confdefs.h. */
63105 #include <$ac_header>
63106 _ACEOF
63107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63109 ac_status=$?
63110 grep -v '^ *+' conftest.er1 >conftest.err
63111 rm -f conftest.er1
63112 cat conftest.err >&5
63113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63114 (exit $ac_status); } >/dev/null; then
63115 if test -s conftest.err; then
63116 ac_cpp_err=$ac_c_preproc_warn_flag
63117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63118 else
63119 ac_cpp_err=
63121 else
63122 ac_cpp_err=yes
63124 if test -z "$ac_cpp_err"; then
63125 ac_header_preproc=yes
63126 else
63127 echo "$as_me: failed program was:" >&5
63128 sed 's/^/| /' conftest.$ac_ext >&5
63130 ac_header_preproc=no
63132 rm -f conftest.err conftest.$ac_ext
63133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63134 echo "${ECHO_T}$ac_header_preproc" >&6
63136 # So? What about this header?
63137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63138 yes:no: )
63139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63143 ac_header_preproc=yes
63145 no:yes:* )
63146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
63154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63159 cat <<\_ASBOX
63160 ## ----------------------------------------- ##
63161 ## Report this to the package-unused lists. ##
63162 ## ----------------------------------------- ##
63163 _ASBOX
63165 sed "s/^/$as_me: WARNING: /" >&2
63167 esac
63168 echo "$as_me:$LINENO: checking for $ac_header" >&5
63169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63171 echo $ECHO_N "(cached) $ECHO_C" >&6
63172 else
63173 eval "$as_ac_Header=\$ac_header_preproc"
63175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63180 cat >>confdefs.h <<_ACEOF
63181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63182 _ACEOF
63186 done
63188 SECTION_FLAGS='-ffunction-sections -fdata-sections'
63191 # If we're not using GNU ld, then there's no point in even trying these
63192 # tests. Check for that first. We should have already tested for gld
63193 # by now (in libtool), but require it now just to be safe...
63194 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63195 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63199 # The name set by libtool depends on the version of libtool. Shame on us
63200 # for depending on an impl detail, but c'est la vie. Older versions used
63201 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63202 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63203 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
63204 # set (hence we're using an older libtool), then set it.
63205 if test x${with_gnu_ld+set} != xset; then
63206 if test x${ac_cv_prog_gnu_ld+set} != xset; then
63207 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
63208 with_gnu_ld=no
63209 else
63210 with_gnu_ld=$ac_cv_prog_gnu_ld
63214 # Start by getting the version number. I think the libtool test already
63215 # does some of this, but throws away the result.
63217 ldver=`$LD --version 2>/dev/null | head -1 | \
63218 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63220 glibcxx_gnu_ld_version=`echo $ldver | \
63221 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63223 # Set --gc-sections.
63224 if test "$with_gnu_ld" = "notbroken"; then
63225 # GNU ld it is! Joy and bunny rabbits!
63227 # All these tests are for C++; save the language and the compiler flags.
63228 # Need to do this so that g++ won't try to link in libstdc++
63229 ac_test_CFLAGS="${CFLAGS+set}"
63230 ac_save_CFLAGS="$CFLAGS"
63231 CFLAGS='-x c++ -Wl,--gc-sections'
63233 # Check for -Wl,--gc-sections
63234 # XXX This test is broken at the moment, as symbols required for linking
63235 # are now in libsupc++ (not built yet). In addition, this test has
63236 # cored on solaris in the past. In addition, --gc-sections doesn't
63237 # really work at the moment (keeps on discarding used sections, first
63238 # .eh_frame and now some of the glibc sections for iconv).
63239 # Bzzzzt. Thanks for playing, maybe next time.
63240 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63241 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63242 if test "$cross_compiling" = yes; then
63243 ac_sectionLDflags=yes
63244 else
63245 cat >conftest.$ac_ext <<_ACEOF
63246 /* confdefs.h. */
63247 _ACEOF
63248 cat confdefs.h >>conftest.$ac_ext
63249 cat >>conftest.$ac_ext <<_ACEOF
63250 /* end confdefs.h. */
63252 int main(void)
63254 try { throw 1; }
63255 catch (...) { };
63256 return 0;
63259 _ACEOF
63260 rm -f conftest$ac_exeext
63261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63262 (eval $ac_link) 2>&5
63263 ac_status=$?
63264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63267 (eval $ac_try) 2>&5
63268 ac_status=$?
63269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63270 (exit $ac_status); }; }; then
63271 ac_sectionLDflags=yes
63272 else
63273 echo "$as_me: program exited with status $ac_status" >&5
63274 echo "$as_me: failed program was:" >&5
63275 sed 's/^/| /' conftest.$ac_ext >&5
63277 ( exit $ac_status )
63278 ac_sectionLDflags=no
63280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63282 if test "$ac_test_CFLAGS" = set; then
63283 CFLAGS="$ac_save_CFLAGS"
63284 else
63285 # this is the suspicious part
63286 CFLAGS=''
63288 if test "$ac_sectionLDflags" = "yes"; then
63289 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63291 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63292 echo "${ECHO_T}$ac_sectionLDflags" >&6
63295 # Set linker optimization flags.
63296 if test x"$with_gnu_ld" = x"yes"; then
63297 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63305 echo "$as_me:$LINENO: checking for main in -lm" >&5
63306 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63307 if test "${ac_cv_lib_m_main+set}" = set; then
63308 echo $ECHO_N "(cached) $ECHO_C" >&6
63309 else
63310 ac_check_lib_save_LIBS=$LIBS
63311 LIBS="-lm $LIBS"
63312 if test x$gcc_no_link = xyes; then
63313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63315 { (exit 1); exit 1; }; }
63317 cat >conftest.$ac_ext <<_ACEOF
63318 /* confdefs.h. */
63319 _ACEOF
63320 cat confdefs.h >>conftest.$ac_ext
63321 cat >>conftest.$ac_ext <<_ACEOF
63322 /* end confdefs.h. */
63326 main ()
63328 main ();
63330 return 0;
63332 _ACEOF
63333 rm -f conftest.$ac_objext conftest$ac_exeext
63334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63335 (eval $ac_link) 2>conftest.er1
63336 ac_status=$?
63337 grep -v '^ *+' conftest.er1 >conftest.err
63338 rm -f conftest.er1
63339 cat conftest.err >&5
63340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63341 (exit $ac_status); } &&
63342 { ac_try='test -z "$ac_c_werror_flag"
63343 || test ! -s conftest.err'
63344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63345 (eval $ac_try) 2>&5
63346 ac_status=$?
63347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63348 (exit $ac_status); }; } &&
63349 { ac_try='test -s conftest$ac_exeext'
63350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63351 (eval $ac_try) 2>&5
63352 ac_status=$?
63353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63354 (exit $ac_status); }; }; then
63355 ac_cv_lib_m_main=yes
63356 else
63357 echo "$as_me: failed program was:" >&5
63358 sed 's/^/| /' conftest.$ac_ext >&5
63360 ac_cv_lib_m_main=no
63362 rm -f conftest.err conftest.$ac_objext \
63363 conftest$ac_exeext conftest.$ac_ext
63364 LIBS=$ac_check_lib_save_LIBS
63366 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63367 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63368 if test $ac_cv_lib_m_main = yes; then
63369 cat >>confdefs.h <<_ACEOF
63370 #define HAVE_LIBM 1
63371 _ACEOF
63373 LIBS="-lm $LIBS"
63378 for ac_func in copysignf
63380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63381 echo "$as_me:$LINENO: checking for $ac_func" >&5
63382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63383 if eval "test \"\${$as_ac_var+set}\" = set"; then
63384 echo $ECHO_N "(cached) $ECHO_C" >&6
63385 else
63386 if test x$gcc_no_link = xyes; then
63387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63389 { (exit 1); exit 1; }; }
63391 cat >conftest.$ac_ext <<_ACEOF
63392 /* confdefs.h. */
63393 _ACEOF
63394 cat confdefs.h >>conftest.$ac_ext
63395 cat >>conftest.$ac_ext <<_ACEOF
63396 /* end confdefs.h. */
63397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63399 #define $ac_func innocuous_$ac_func
63401 /* System header to define __stub macros and hopefully few prototypes,
63402 which can conflict with char $ac_func (); below.
63403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63404 <limits.h> exists even on freestanding compilers. */
63406 #ifdef __STDC__
63407 # include <limits.h>
63408 #else
63409 # include <assert.h>
63410 #endif
63412 #undef $ac_func
63414 /* Override any gcc2 internal prototype to avoid an error. */
63415 #ifdef __cplusplus
63416 extern "C"
63418 #endif
63419 /* We use char because int might match the return type of a gcc2
63420 builtin and then its argument prototype would still apply. */
63421 char $ac_func ();
63422 /* The GNU C library defines this for functions which it implements
63423 to always fail with ENOSYS. Some functions are actually named
63424 something starting with __ and the normal name is an alias. */
63425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63426 choke me
63427 #else
63428 char (*f) () = $ac_func;
63429 #endif
63430 #ifdef __cplusplus
63432 #endif
63435 main ()
63437 return f != $ac_func;
63439 return 0;
63441 _ACEOF
63442 rm -f conftest.$ac_objext conftest$ac_exeext
63443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63444 (eval $ac_link) 2>conftest.er1
63445 ac_status=$?
63446 grep -v '^ *+' conftest.er1 >conftest.err
63447 rm -f conftest.er1
63448 cat conftest.err >&5
63449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63450 (exit $ac_status); } &&
63451 { ac_try='test -z "$ac_c_werror_flag"
63452 || test ! -s conftest.err'
63453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63454 (eval $ac_try) 2>&5
63455 ac_status=$?
63456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63457 (exit $ac_status); }; } &&
63458 { ac_try='test -s conftest$ac_exeext'
63459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63460 (eval $ac_try) 2>&5
63461 ac_status=$?
63462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63463 (exit $ac_status); }; }; then
63464 eval "$as_ac_var=yes"
63465 else
63466 echo "$as_me: failed program was:" >&5
63467 sed 's/^/| /' conftest.$ac_ext >&5
63469 eval "$as_ac_var=no"
63471 rm -f conftest.err conftest.$ac_objext \
63472 conftest$ac_exeext conftest.$ac_ext
63474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63476 if test `eval echo '${'$as_ac_var'}'` = yes; then
63477 cat >>confdefs.h <<_ACEOF
63478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63479 _ACEOF
63481 else
63482 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63484 done
63488 for ac_func in __signbit
63490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63491 echo "$as_me:$LINENO: checking for $ac_func" >&5
63492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63493 if eval "test \"\${$as_ac_var+set}\" = set"; then
63494 echo $ECHO_N "(cached) $ECHO_C" >&6
63495 else
63496 if test x$gcc_no_link = xyes; then
63497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63499 { (exit 1); exit 1; }; }
63501 cat >conftest.$ac_ext <<_ACEOF
63502 /* confdefs.h. */
63503 _ACEOF
63504 cat confdefs.h >>conftest.$ac_ext
63505 cat >>conftest.$ac_ext <<_ACEOF
63506 /* end confdefs.h. */
63507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63509 #define $ac_func innocuous_$ac_func
63511 /* System header to define __stub macros and hopefully few prototypes,
63512 which can conflict with char $ac_func (); below.
63513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63514 <limits.h> exists even on freestanding compilers. */
63516 #ifdef __STDC__
63517 # include <limits.h>
63518 #else
63519 # include <assert.h>
63520 #endif
63522 #undef $ac_func
63524 /* Override any gcc2 internal prototype to avoid an error. */
63525 #ifdef __cplusplus
63526 extern "C"
63528 #endif
63529 /* We use char because int might match the return type of a gcc2
63530 builtin and then its argument prototype would still apply. */
63531 char $ac_func ();
63532 /* The GNU C library defines this for functions which it implements
63533 to always fail with ENOSYS. Some functions are actually named
63534 something starting with __ and the normal name is an alias. */
63535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63536 choke me
63537 #else
63538 char (*f) () = $ac_func;
63539 #endif
63540 #ifdef __cplusplus
63542 #endif
63545 main ()
63547 return f != $ac_func;
63549 return 0;
63551 _ACEOF
63552 rm -f conftest.$ac_objext conftest$ac_exeext
63553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63554 (eval $ac_link) 2>conftest.er1
63555 ac_status=$?
63556 grep -v '^ *+' conftest.er1 >conftest.err
63557 rm -f conftest.er1
63558 cat conftest.err >&5
63559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63560 (exit $ac_status); } &&
63561 { ac_try='test -z "$ac_c_werror_flag"
63562 || test ! -s conftest.err'
63563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63564 (eval $ac_try) 2>&5
63565 ac_status=$?
63566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63567 (exit $ac_status); }; } &&
63568 { ac_try='test -s conftest$ac_exeext'
63569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63570 (eval $ac_try) 2>&5
63571 ac_status=$?
63572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63573 (exit $ac_status); }; }; then
63574 eval "$as_ac_var=yes"
63575 else
63576 echo "$as_me: failed program was:" >&5
63577 sed 's/^/| /' conftest.$ac_ext >&5
63579 eval "$as_ac_var=no"
63581 rm -f conftest.err conftest.$ac_objext \
63582 conftest$ac_exeext conftest.$ac_ext
63584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63586 if test `eval echo '${'$as_ac_var'}'` = yes; then
63587 cat >>confdefs.h <<_ACEOF
63588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63589 _ACEOF
63591 else
63592 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63594 done
63597 for ac_func in __signbitf
63599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63600 echo "$as_me:$LINENO: checking for $ac_func" >&5
63601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63602 if eval "test \"\${$as_ac_var+set}\" = set"; then
63603 echo $ECHO_N "(cached) $ECHO_C" >&6
63604 else
63605 if test x$gcc_no_link = xyes; then
63606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63608 { (exit 1); exit 1; }; }
63610 cat >conftest.$ac_ext <<_ACEOF
63611 /* confdefs.h. */
63612 _ACEOF
63613 cat confdefs.h >>conftest.$ac_ext
63614 cat >>conftest.$ac_ext <<_ACEOF
63615 /* end confdefs.h. */
63616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63618 #define $ac_func innocuous_$ac_func
63620 /* System header to define __stub macros and hopefully few prototypes,
63621 which can conflict with char $ac_func (); below.
63622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63623 <limits.h> exists even on freestanding compilers. */
63625 #ifdef __STDC__
63626 # include <limits.h>
63627 #else
63628 # include <assert.h>
63629 #endif
63631 #undef $ac_func
63633 /* Override any gcc2 internal prototype to avoid an error. */
63634 #ifdef __cplusplus
63635 extern "C"
63637 #endif
63638 /* We use char because int might match the return type of a gcc2
63639 builtin and then its argument prototype would still apply. */
63640 char $ac_func ();
63641 /* The GNU C library defines this for functions which it implements
63642 to always fail with ENOSYS. Some functions are actually named
63643 something starting with __ and the normal name is an alias. */
63644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63645 choke me
63646 #else
63647 char (*f) () = $ac_func;
63648 #endif
63649 #ifdef __cplusplus
63651 #endif
63654 main ()
63656 return f != $ac_func;
63658 return 0;
63660 _ACEOF
63661 rm -f conftest.$ac_objext conftest$ac_exeext
63662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63663 (eval $ac_link) 2>conftest.er1
63664 ac_status=$?
63665 grep -v '^ *+' conftest.er1 >conftest.err
63666 rm -f conftest.er1
63667 cat conftest.err >&5
63668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63669 (exit $ac_status); } &&
63670 { ac_try='test -z "$ac_c_werror_flag"
63671 || test ! -s conftest.err'
63672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63673 (eval $ac_try) 2>&5
63674 ac_status=$?
63675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63676 (exit $ac_status); }; } &&
63677 { ac_try='test -s conftest$ac_exeext'
63678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63679 (eval $ac_try) 2>&5
63680 ac_status=$?
63681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63682 (exit $ac_status); }; }; then
63683 eval "$as_ac_var=yes"
63684 else
63685 echo "$as_me: failed program was:" >&5
63686 sed 's/^/| /' conftest.$ac_ext >&5
63688 eval "$as_ac_var=no"
63690 rm -f conftest.err conftest.$ac_objext \
63691 conftest$ac_exeext conftest.$ac_ext
63693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63695 if test `eval echo '${'$as_ac_var'}'` = yes; then
63696 cat >>confdefs.h <<_ACEOF
63697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63698 _ACEOF
63700 else
63701 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
63703 done
63706 if test x$ac_cv_func_copysignl = x"yes"; then
63708 for ac_func in __signbitl
63710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63711 echo "$as_me:$LINENO: checking for $ac_func" >&5
63712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63713 if eval "test \"\${$as_ac_var+set}\" = set"; then
63714 echo $ECHO_N "(cached) $ECHO_C" >&6
63715 else
63716 if test x$gcc_no_link = xyes; then
63717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63719 { (exit 1); exit 1; }; }
63721 cat >conftest.$ac_ext <<_ACEOF
63722 /* confdefs.h. */
63723 _ACEOF
63724 cat confdefs.h >>conftest.$ac_ext
63725 cat >>conftest.$ac_ext <<_ACEOF
63726 /* end confdefs.h. */
63727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63729 #define $ac_func innocuous_$ac_func
63731 /* System header to define __stub macros and hopefully few prototypes,
63732 which can conflict with char $ac_func (); below.
63733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63734 <limits.h> exists even on freestanding compilers. */
63736 #ifdef __STDC__
63737 # include <limits.h>
63738 #else
63739 # include <assert.h>
63740 #endif
63742 #undef $ac_func
63744 /* Override any gcc2 internal prototype to avoid an error. */
63745 #ifdef __cplusplus
63746 extern "C"
63748 #endif
63749 /* We use char because int might match the return type of a gcc2
63750 builtin and then its argument prototype would still apply. */
63751 char $ac_func ();
63752 /* The GNU C library defines this for functions which it implements
63753 to always fail with ENOSYS. Some functions are actually named
63754 something starting with __ and the normal name is an alias. */
63755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63756 choke me
63757 #else
63758 char (*f) () = $ac_func;
63759 #endif
63760 #ifdef __cplusplus
63762 #endif
63765 main ()
63767 return f != $ac_func;
63769 return 0;
63771 _ACEOF
63772 rm -f conftest.$ac_objext conftest$ac_exeext
63773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63774 (eval $ac_link) 2>conftest.er1
63775 ac_status=$?
63776 grep -v '^ *+' conftest.er1 >conftest.err
63777 rm -f conftest.er1
63778 cat conftest.err >&5
63779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63780 (exit $ac_status); } &&
63781 { ac_try='test -z "$ac_c_werror_flag"
63782 || test ! -s conftest.err'
63783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63784 (eval $ac_try) 2>&5
63785 ac_status=$?
63786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63787 (exit $ac_status); }; } &&
63788 { ac_try='test -s conftest$ac_exeext'
63789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63790 (eval $ac_try) 2>&5
63791 ac_status=$?
63792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63793 (exit $ac_status); }; }; then
63794 eval "$as_ac_var=yes"
63795 else
63796 echo "$as_me: failed program was:" >&5
63797 sed 's/^/| /' conftest.$ac_ext >&5
63799 eval "$as_ac_var=no"
63801 rm -f conftest.err conftest.$ac_objext \
63802 conftest$ac_exeext conftest.$ac_ext
63804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63806 if test `eval echo '${'$as_ac_var'}'` = yes; then
63807 cat >>confdefs.h <<_ACEOF
63808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63809 _ACEOF
63811 else
63812 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
63814 done
63818 # XXX Review this. Nothing uses it.
63819 if test -n "$LIBMATHOBJS"; then
63820 need_libmath=yes
63825 # Test wchar.h for mbstate_t, which is needed for char_traits and
63826 # others even if wchar_t support is not on.
63827 echo "$as_me:$LINENO: checking for mbstate_t" >&5
63828 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
63829 cat >conftest.$ac_ext <<_ACEOF
63830 /* confdefs.h. */
63831 _ACEOF
63832 cat confdefs.h >>conftest.$ac_ext
63833 cat >>conftest.$ac_ext <<_ACEOF
63834 /* end confdefs.h. */
63835 #include <wchar.h>
63837 main ()
63839 mbstate_t teststate;
63841 return 0;
63843 _ACEOF
63844 rm -f conftest.$ac_objext
63845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63846 (eval $ac_compile) 2>conftest.er1
63847 ac_status=$?
63848 grep -v '^ *+' conftest.er1 >conftest.err
63849 rm -f conftest.er1
63850 cat conftest.err >&5
63851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63852 (exit $ac_status); } &&
63853 { ac_try='test -z "$ac_c_werror_flag"
63854 || test ! -s conftest.err'
63855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63856 (eval $ac_try) 2>&5
63857 ac_status=$?
63858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63859 (exit $ac_status); }; } &&
63860 { ac_try='test -s conftest.$ac_objext'
63861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63862 (eval $ac_try) 2>&5
63863 ac_status=$?
63864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63865 (exit $ac_status); }; }; then
63866 have_mbstate_t=yes
63867 else
63868 echo "$as_me: failed program was:" >&5
63869 sed 's/^/| /' conftest.$ac_ext >&5
63871 have_mbstate_t=no
63873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63874 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
63875 echo "${ECHO_T}$have_mbstate_t" >&6
63876 if test x"$have_mbstate_t" = xyes; then
63877 cat >>confdefs.h <<\_ACEOF
63878 #define HAVE_MBSTATE_T 1
63879 _ACEOF
63883 # Sanity check for existence of ISO C99 headers for extended encoding.
63885 for ac_header in wchar.h
63887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63889 echo "$as_me:$LINENO: checking for $ac_header" >&5
63890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63892 echo $ECHO_N "(cached) $ECHO_C" >&6
63894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63896 else
63897 # Is the header compilable?
63898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63900 cat >conftest.$ac_ext <<_ACEOF
63901 /* confdefs.h. */
63902 _ACEOF
63903 cat confdefs.h >>conftest.$ac_ext
63904 cat >>conftest.$ac_ext <<_ACEOF
63905 /* end confdefs.h. */
63906 $ac_includes_default
63907 #include <$ac_header>
63908 _ACEOF
63909 rm -f conftest.$ac_objext
63910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63911 (eval $ac_compile) 2>conftest.er1
63912 ac_status=$?
63913 grep -v '^ *+' conftest.er1 >conftest.err
63914 rm -f conftest.er1
63915 cat conftest.err >&5
63916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63917 (exit $ac_status); } &&
63918 { ac_try='test -z "$ac_c_werror_flag"
63919 || test ! -s conftest.err'
63920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63921 (eval $ac_try) 2>&5
63922 ac_status=$?
63923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63924 (exit $ac_status); }; } &&
63925 { ac_try='test -s conftest.$ac_objext'
63926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63927 (eval $ac_try) 2>&5
63928 ac_status=$?
63929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63930 (exit $ac_status); }; }; then
63931 ac_header_compiler=yes
63932 else
63933 echo "$as_me: failed program was:" >&5
63934 sed 's/^/| /' conftest.$ac_ext >&5
63936 ac_header_compiler=no
63938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63940 echo "${ECHO_T}$ac_header_compiler" >&6
63942 # Is the header present?
63943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63945 cat >conftest.$ac_ext <<_ACEOF
63946 /* confdefs.h. */
63947 _ACEOF
63948 cat confdefs.h >>conftest.$ac_ext
63949 cat >>conftest.$ac_ext <<_ACEOF
63950 /* end confdefs.h. */
63951 #include <$ac_header>
63952 _ACEOF
63953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63955 ac_status=$?
63956 grep -v '^ *+' conftest.er1 >conftest.err
63957 rm -f conftest.er1
63958 cat conftest.err >&5
63959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63960 (exit $ac_status); } >/dev/null; then
63961 if test -s conftest.err; then
63962 ac_cpp_err=$ac_c_preproc_warn_flag
63963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63964 else
63965 ac_cpp_err=
63967 else
63968 ac_cpp_err=yes
63970 if test -z "$ac_cpp_err"; then
63971 ac_header_preproc=yes
63972 else
63973 echo "$as_me: failed program was:" >&5
63974 sed 's/^/| /' conftest.$ac_ext >&5
63976 ac_header_preproc=no
63978 rm -f conftest.err conftest.$ac_ext
63979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63980 echo "${ECHO_T}$ac_header_preproc" >&6
63982 # So? What about this header?
63983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63984 yes:no: )
63985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63989 ac_header_preproc=yes
63991 no:yes:* )
63992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64005 cat <<\_ASBOX
64006 ## ----------------------------------------- ##
64007 ## Report this to the package-unused lists. ##
64008 ## ----------------------------------------- ##
64009 _ASBOX
64011 sed "s/^/$as_me: WARNING: /" >&2
64013 esac
64014 echo "$as_me:$LINENO: checking for $ac_header" >&5
64015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64017 echo $ECHO_N "(cached) $ECHO_C" >&6
64018 else
64019 eval "$as_ac_Header=\$ac_header_preproc"
64021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64026 cat >>confdefs.h <<_ACEOF
64027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64028 _ACEOF
64029 ac_has_wchar_h=yes
64030 else
64031 ac_has_wchar_h=no
64034 done
64037 for ac_header in wctype.h
64039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64041 echo "$as_me:$LINENO: checking for $ac_header" >&5
64042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64044 echo $ECHO_N "(cached) $ECHO_C" >&6
64046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64048 else
64049 # Is the header compilable?
64050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64052 cat >conftest.$ac_ext <<_ACEOF
64053 /* confdefs.h. */
64054 _ACEOF
64055 cat confdefs.h >>conftest.$ac_ext
64056 cat >>conftest.$ac_ext <<_ACEOF
64057 /* end confdefs.h. */
64058 $ac_includes_default
64059 #include <$ac_header>
64060 _ACEOF
64061 rm -f conftest.$ac_objext
64062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64063 (eval $ac_compile) 2>conftest.er1
64064 ac_status=$?
64065 grep -v '^ *+' conftest.er1 >conftest.err
64066 rm -f conftest.er1
64067 cat conftest.err >&5
64068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64069 (exit $ac_status); } &&
64070 { ac_try='test -z "$ac_c_werror_flag"
64071 || test ! -s conftest.err'
64072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64073 (eval $ac_try) 2>&5
64074 ac_status=$?
64075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64076 (exit $ac_status); }; } &&
64077 { ac_try='test -s conftest.$ac_objext'
64078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64079 (eval $ac_try) 2>&5
64080 ac_status=$?
64081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64082 (exit $ac_status); }; }; then
64083 ac_header_compiler=yes
64084 else
64085 echo "$as_me: failed program was:" >&5
64086 sed 's/^/| /' conftest.$ac_ext >&5
64088 ac_header_compiler=no
64090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64092 echo "${ECHO_T}$ac_header_compiler" >&6
64094 # Is the header present?
64095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64097 cat >conftest.$ac_ext <<_ACEOF
64098 /* confdefs.h. */
64099 _ACEOF
64100 cat confdefs.h >>conftest.$ac_ext
64101 cat >>conftest.$ac_ext <<_ACEOF
64102 /* end confdefs.h. */
64103 #include <$ac_header>
64104 _ACEOF
64105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64107 ac_status=$?
64108 grep -v '^ *+' conftest.er1 >conftest.err
64109 rm -f conftest.er1
64110 cat conftest.err >&5
64111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64112 (exit $ac_status); } >/dev/null; then
64113 if test -s conftest.err; then
64114 ac_cpp_err=$ac_c_preproc_warn_flag
64115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64116 else
64117 ac_cpp_err=
64119 else
64120 ac_cpp_err=yes
64122 if test -z "$ac_cpp_err"; then
64123 ac_header_preproc=yes
64124 else
64125 echo "$as_me: failed program was:" >&5
64126 sed 's/^/| /' conftest.$ac_ext >&5
64128 ac_header_preproc=no
64130 rm -f conftest.err conftest.$ac_ext
64131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64132 echo "${ECHO_T}$ac_header_preproc" >&6
64134 # So? What about this header?
64135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64136 yes:no: )
64137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64141 ac_header_preproc=yes
64143 no:yes:* )
64144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64157 cat <<\_ASBOX
64158 ## ----------------------------------------- ##
64159 ## Report this to the package-unused lists. ##
64160 ## ----------------------------------------- ##
64161 _ASBOX
64163 sed "s/^/$as_me: WARNING: /" >&2
64165 esac
64166 echo "$as_me:$LINENO: checking for $ac_header" >&5
64167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64169 echo $ECHO_N "(cached) $ECHO_C" >&6
64170 else
64171 eval "$as_ac_Header=\$ac_header_preproc"
64173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64178 cat >>confdefs.h <<_ACEOF
64179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64180 _ACEOF
64181 ac_has_wctype_h=yes
64182 else
64183 ac_has_wctype_h=no
64186 done
64189 # Only continue checking if the ISO C99 headers exist and support is on.
64190 if test x"$ac_has_wchar_h" = xyes &&
64191 test x"$ac_has_wctype_h" = xyes &&
64192 test x"$enable_c_mbchar" != xno; then
64194 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64195 # numeric_limits can instantiate type_traits<wchar_t>
64196 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64197 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64198 cat >conftest.$ac_ext <<_ACEOF
64199 /* confdefs.h. */
64200 _ACEOF
64201 cat confdefs.h >>conftest.$ac_ext
64202 cat >>conftest.$ac_ext <<_ACEOF
64203 /* end confdefs.h. */
64204 #include <wchar.h>
64206 main ()
64208 int i = WCHAR_MIN; int j = WCHAR_MAX;
64210 return 0;
64212 _ACEOF
64213 rm -f conftest.$ac_objext
64214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64215 (eval $ac_compile) 2>conftest.er1
64216 ac_status=$?
64217 grep -v '^ *+' conftest.er1 >conftest.err
64218 rm -f conftest.er1
64219 cat conftest.err >&5
64220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64221 (exit $ac_status); } &&
64222 { ac_try='test -z "$ac_c_werror_flag"
64223 || test ! -s conftest.err'
64224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64225 (eval $ac_try) 2>&5
64226 ac_status=$?
64227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64228 (exit $ac_status); }; } &&
64229 { ac_try='test -s conftest.$ac_objext'
64230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64231 (eval $ac_try) 2>&5
64232 ac_status=$?
64233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64234 (exit $ac_status); }; }; then
64235 has_wchar_minmax=yes
64236 else
64237 echo "$as_me: failed program was:" >&5
64238 sed 's/^/| /' conftest.$ac_ext >&5
64240 has_wchar_minmax=no
64242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64243 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64244 echo "${ECHO_T}$has_wchar_minmax" >&6
64246 # Test wchar.h for WEOF, which is what we use to determine whether
64247 # to specialize for char_traits<wchar_t> or not.
64248 echo "$as_me:$LINENO: checking for WEOF" >&5
64249 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64250 cat >conftest.$ac_ext <<_ACEOF
64251 /* confdefs.h. */
64252 _ACEOF
64253 cat confdefs.h >>conftest.$ac_ext
64254 cat >>conftest.$ac_ext <<_ACEOF
64255 /* end confdefs.h. */
64257 #include <wchar.h>
64258 #include <stddef.h>
64260 main ()
64262 wint_t i = WEOF;
64264 return 0;
64266 _ACEOF
64267 rm -f conftest.$ac_objext
64268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64269 (eval $ac_compile) 2>conftest.er1
64270 ac_status=$?
64271 grep -v '^ *+' conftest.er1 >conftest.err
64272 rm -f conftest.er1
64273 cat conftest.err >&5
64274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64275 (exit $ac_status); } &&
64276 { ac_try='test -z "$ac_c_werror_flag"
64277 || test ! -s conftest.err'
64278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64279 (eval $ac_try) 2>&5
64280 ac_status=$?
64281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64282 (exit $ac_status); }; } &&
64283 { ac_try='test -s conftest.$ac_objext'
64284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64285 (eval $ac_try) 2>&5
64286 ac_status=$?
64287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64288 (exit $ac_status); }; }; then
64289 has_weof=yes
64290 else
64291 echo "$as_me: failed program was:" >&5
64292 sed 's/^/| /' conftest.$ac_ext >&5
64294 has_weof=no
64296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64297 echo "$as_me:$LINENO: result: $has_weof" >&5
64298 echo "${ECHO_T}$has_weof" >&6
64300 # Tests for wide character functions used in char_traits<wchar_t>.
64301 ac_wfuncs=yes
64308 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64311 echo "$as_me:$LINENO: checking for $ac_func" >&5
64312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64313 if eval "test \"\${$as_ac_var+set}\" = set"; then
64314 echo $ECHO_N "(cached) $ECHO_C" >&6
64315 else
64316 if test x$gcc_no_link = xyes; then
64317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64319 { (exit 1); exit 1; }; }
64321 cat >conftest.$ac_ext <<_ACEOF
64322 /* confdefs.h. */
64323 _ACEOF
64324 cat confdefs.h >>conftest.$ac_ext
64325 cat >>conftest.$ac_ext <<_ACEOF
64326 /* end confdefs.h. */
64327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64329 #define $ac_func innocuous_$ac_func
64331 /* System header to define __stub macros and hopefully few prototypes,
64332 which can conflict with char $ac_func (); below.
64333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64334 <limits.h> exists even on freestanding compilers. */
64336 #ifdef __STDC__
64337 # include <limits.h>
64338 #else
64339 # include <assert.h>
64340 #endif
64342 #undef $ac_func
64344 /* Override any gcc2 internal prototype to avoid an error. */
64345 #ifdef __cplusplus
64346 extern "C"
64348 #endif
64349 /* We use char because int might match the return type of a gcc2
64350 builtin and then its argument prototype would still apply. */
64351 char $ac_func ();
64352 /* The GNU C library defines this for functions which it implements
64353 to always fail with ENOSYS. Some functions are actually named
64354 something starting with __ and the normal name is an alias. */
64355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64356 choke me
64357 #else
64358 char (*f) () = $ac_func;
64359 #endif
64360 #ifdef __cplusplus
64362 #endif
64365 main ()
64367 return f != $ac_func;
64369 return 0;
64371 _ACEOF
64372 rm -f conftest.$ac_objext conftest$ac_exeext
64373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64374 (eval $ac_link) 2>conftest.er1
64375 ac_status=$?
64376 grep -v '^ *+' conftest.er1 >conftest.err
64377 rm -f conftest.er1
64378 cat conftest.err >&5
64379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64380 (exit $ac_status); } &&
64381 { ac_try='test -z "$ac_c_werror_flag"
64382 || test ! -s conftest.err'
64383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64384 (eval $ac_try) 2>&5
64385 ac_status=$?
64386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64387 (exit $ac_status); }; } &&
64388 { ac_try='test -s conftest$ac_exeext'
64389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64390 (eval $ac_try) 2>&5
64391 ac_status=$?
64392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64393 (exit $ac_status); }; }; then
64394 eval "$as_ac_var=yes"
64395 else
64396 echo "$as_me: failed program was:" >&5
64397 sed 's/^/| /' conftest.$ac_ext >&5
64399 eval "$as_ac_var=no"
64401 rm -f conftest.err conftest.$ac_objext \
64402 conftest$ac_exeext conftest.$ac_ext
64404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64406 if test `eval echo '${'$as_ac_var'}'` = yes; then
64407 cat >>confdefs.h <<_ACEOF
64408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64409 _ACEOF
64411 else
64412 ac_wfuncs=no
64414 done
64417 # Checks for names injected into std:: by the c_std headers.
64464 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64465 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64466 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64467 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64468 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64469 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64472 echo "$as_me:$LINENO: checking for $ac_func" >&5
64473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64474 if eval "test \"\${$as_ac_var+set}\" = set"; then
64475 echo $ECHO_N "(cached) $ECHO_C" >&6
64476 else
64477 if test x$gcc_no_link = xyes; then
64478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64480 { (exit 1); exit 1; }; }
64482 cat >conftest.$ac_ext <<_ACEOF
64483 /* confdefs.h. */
64484 _ACEOF
64485 cat confdefs.h >>conftest.$ac_ext
64486 cat >>conftest.$ac_ext <<_ACEOF
64487 /* end confdefs.h. */
64488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64490 #define $ac_func innocuous_$ac_func
64492 /* System header to define __stub macros and hopefully few prototypes,
64493 which can conflict with char $ac_func (); below.
64494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64495 <limits.h> exists even on freestanding compilers. */
64497 #ifdef __STDC__
64498 # include <limits.h>
64499 #else
64500 # include <assert.h>
64501 #endif
64503 #undef $ac_func
64505 /* Override any gcc2 internal prototype to avoid an error. */
64506 #ifdef __cplusplus
64507 extern "C"
64509 #endif
64510 /* We use char because int might match the return type of a gcc2
64511 builtin and then its argument prototype would still apply. */
64512 char $ac_func ();
64513 /* The GNU C library defines this for functions which it implements
64514 to always fail with ENOSYS. Some functions are actually named
64515 something starting with __ and the normal name is an alias. */
64516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64517 choke me
64518 #else
64519 char (*f) () = $ac_func;
64520 #endif
64521 #ifdef __cplusplus
64523 #endif
64526 main ()
64528 return f != $ac_func;
64530 return 0;
64532 _ACEOF
64533 rm -f conftest.$ac_objext conftest$ac_exeext
64534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64535 (eval $ac_link) 2>conftest.er1
64536 ac_status=$?
64537 grep -v '^ *+' conftest.er1 >conftest.err
64538 rm -f conftest.er1
64539 cat conftest.err >&5
64540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64541 (exit $ac_status); } &&
64542 { ac_try='test -z "$ac_c_werror_flag"
64543 || test ! -s conftest.err'
64544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64545 (eval $ac_try) 2>&5
64546 ac_status=$?
64547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64548 (exit $ac_status); }; } &&
64549 { ac_try='test -s conftest$ac_exeext'
64550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64551 (eval $ac_try) 2>&5
64552 ac_status=$?
64553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64554 (exit $ac_status); }; }; then
64555 eval "$as_ac_var=yes"
64556 else
64557 echo "$as_me: failed program was:" >&5
64558 sed 's/^/| /' conftest.$ac_ext >&5
64560 eval "$as_ac_var=no"
64562 rm -f conftest.err conftest.$ac_objext \
64563 conftest$ac_exeext conftest.$ac_ext
64565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64567 if test `eval echo '${'$as_ac_var'}'` = yes; then
64568 cat >>confdefs.h <<_ACEOF
64569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64570 _ACEOF
64572 else
64573 ac_wfuncs=no
64575 done
64578 # Checks for wide character functions that are not required
64579 # for basic wchar_t support. Don't disable support if they are missing.
64580 # Injection of these is wrapped with guard macros.
64586 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64589 echo "$as_me:$LINENO: checking for $ac_func" >&5
64590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64591 if eval "test \"\${$as_ac_var+set}\" = set"; then
64592 echo $ECHO_N "(cached) $ECHO_C" >&6
64593 else
64594 if test x$gcc_no_link = xyes; then
64595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64597 { (exit 1); exit 1; }; }
64599 cat >conftest.$ac_ext <<_ACEOF
64600 /* confdefs.h. */
64601 _ACEOF
64602 cat confdefs.h >>conftest.$ac_ext
64603 cat >>conftest.$ac_ext <<_ACEOF
64604 /* end confdefs.h. */
64605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64607 #define $ac_func innocuous_$ac_func
64609 /* System header to define __stub macros and hopefully few prototypes,
64610 which can conflict with char $ac_func (); below.
64611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64612 <limits.h> exists even on freestanding compilers. */
64614 #ifdef __STDC__
64615 # include <limits.h>
64616 #else
64617 # include <assert.h>
64618 #endif
64620 #undef $ac_func
64622 /* Override any gcc2 internal prototype to avoid an error. */
64623 #ifdef __cplusplus
64624 extern "C"
64626 #endif
64627 /* We use char because int might match the return type of a gcc2
64628 builtin and then its argument prototype would still apply. */
64629 char $ac_func ();
64630 /* The GNU C library defines this for functions which it implements
64631 to always fail with ENOSYS. Some functions are actually named
64632 something starting with __ and the normal name is an alias. */
64633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64634 choke me
64635 #else
64636 char (*f) () = $ac_func;
64637 #endif
64638 #ifdef __cplusplus
64640 #endif
64643 main ()
64645 return f != $ac_func;
64647 return 0;
64649 _ACEOF
64650 rm -f conftest.$ac_objext conftest$ac_exeext
64651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64652 (eval $ac_link) 2>conftest.er1
64653 ac_status=$?
64654 grep -v '^ *+' conftest.er1 >conftest.err
64655 rm -f conftest.er1
64656 cat conftest.err >&5
64657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64658 (exit $ac_status); } &&
64659 { ac_try='test -z "$ac_c_werror_flag"
64660 || test ! -s conftest.err'
64661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64662 (eval $ac_try) 2>&5
64663 ac_status=$?
64664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64665 (exit $ac_status); }; } &&
64666 { ac_try='test -s conftest$ac_exeext'
64667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64668 (eval $ac_try) 2>&5
64669 ac_status=$?
64670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64671 (exit $ac_status); }; }; then
64672 eval "$as_ac_var=yes"
64673 else
64674 echo "$as_me: failed program was:" >&5
64675 sed 's/^/| /' conftest.$ac_ext >&5
64677 eval "$as_ac_var=no"
64679 rm -f conftest.err conftest.$ac_objext \
64680 conftest$ac_exeext conftest.$ac_ext
64682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64684 if test `eval echo '${'$as_ac_var'}'` = yes; then
64685 cat >>confdefs.h <<_ACEOF
64686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64687 _ACEOF
64690 done
64693 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
64694 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
64695 if test x"$has_weof" = xyes &&
64696 test x"$has_wchar_minmax" = xyes &&
64697 test x"$ac_wfuncs" = xyes;
64698 then
64699 ac_isoC99_wchar_t=yes
64700 else
64701 ac_isoC99_wchar_t=no
64703 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
64704 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
64706 # Use iconv for wchar_t to char conversions. As such, check for
64707 # X/Open Portability Guide, version 2 features (XPG2).
64708 if test "${ac_cv_header_iconv_h+set}" = set; then
64709 echo "$as_me:$LINENO: checking for iconv.h" >&5
64710 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64711 if test "${ac_cv_header_iconv_h+set}" = set; then
64712 echo $ECHO_N "(cached) $ECHO_C" >&6
64714 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64715 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64716 else
64717 # Is the header compilable?
64718 echo "$as_me:$LINENO: checking iconv.h usability" >&5
64719 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
64720 cat >conftest.$ac_ext <<_ACEOF
64721 /* confdefs.h. */
64722 _ACEOF
64723 cat confdefs.h >>conftest.$ac_ext
64724 cat >>conftest.$ac_ext <<_ACEOF
64725 /* end confdefs.h. */
64726 $ac_includes_default
64727 #include <iconv.h>
64728 _ACEOF
64729 rm -f conftest.$ac_objext
64730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64731 (eval $ac_compile) 2>conftest.er1
64732 ac_status=$?
64733 grep -v '^ *+' conftest.er1 >conftest.err
64734 rm -f conftest.er1
64735 cat conftest.err >&5
64736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64737 (exit $ac_status); } &&
64738 { ac_try='test -z "$ac_c_werror_flag"
64739 || test ! -s conftest.err'
64740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64741 (eval $ac_try) 2>&5
64742 ac_status=$?
64743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64744 (exit $ac_status); }; } &&
64745 { ac_try='test -s conftest.$ac_objext'
64746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64747 (eval $ac_try) 2>&5
64748 ac_status=$?
64749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64750 (exit $ac_status); }; }; then
64751 ac_header_compiler=yes
64752 else
64753 echo "$as_me: failed program was:" >&5
64754 sed 's/^/| /' conftest.$ac_ext >&5
64756 ac_header_compiler=no
64758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64760 echo "${ECHO_T}$ac_header_compiler" >&6
64762 # Is the header present?
64763 echo "$as_me:$LINENO: checking iconv.h presence" >&5
64764 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
64765 cat >conftest.$ac_ext <<_ACEOF
64766 /* confdefs.h. */
64767 _ACEOF
64768 cat confdefs.h >>conftest.$ac_ext
64769 cat >>conftest.$ac_ext <<_ACEOF
64770 /* end confdefs.h. */
64771 #include <iconv.h>
64772 _ACEOF
64773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64775 ac_status=$?
64776 grep -v '^ *+' conftest.er1 >conftest.err
64777 rm -f conftest.er1
64778 cat conftest.err >&5
64779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64780 (exit $ac_status); } >/dev/null; then
64781 if test -s conftest.err; then
64782 ac_cpp_err=$ac_c_preproc_warn_flag
64783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64784 else
64785 ac_cpp_err=
64787 else
64788 ac_cpp_err=yes
64790 if test -z "$ac_cpp_err"; then
64791 ac_header_preproc=yes
64792 else
64793 echo "$as_me: failed program was:" >&5
64794 sed 's/^/| /' conftest.$ac_ext >&5
64796 ac_header_preproc=no
64798 rm -f conftest.err conftest.$ac_ext
64799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64800 echo "${ECHO_T}$ac_header_preproc" >&6
64802 # So? What about this header?
64803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64804 yes:no: )
64805 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
64806 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64807 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
64808 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
64809 ac_header_preproc=yes
64811 no:yes:* )
64812 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
64813 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
64814 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
64815 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
64816 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
64817 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
64818 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
64819 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
64820 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
64821 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
64822 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
64823 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
64825 cat <<\_ASBOX
64826 ## ----------------------------------------- ##
64827 ## Report this to the package-unused lists. ##
64828 ## ----------------------------------------- ##
64829 _ASBOX
64831 sed "s/^/$as_me: WARNING: /" >&2
64833 esac
64834 echo "$as_me:$LINENO: checking for iconv.h" >&5
64835 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64836 if test "${ac_cv_header_iconv_h+set}" = set; then
64837 echo $ECHO_N "(cached) $ECHO_C" >&6
64838 else
64839 ac_cv_header_iconv_h=$ac_header_preproc
64841 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64842 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64845 if test $ac_cv_header_iconv_h = yes; then
64846 ac_has_iconv_h=yes
64847 else
64848 ac_has_iconv_h=no
64852 if test "${ac_cv_header_langinfo_h+set}" = set; then
64853 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64854 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64855 if test "${ac_cv_header_langinfo_h+set}" = set; then
64856 echo $ECHO_N "(cached) $ECHO_C" >&6
64858 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64859 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64860 else
64861 # Is the header compilable?
64862 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
64863 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
64864 cat >conftest.$ac_ext <<_ACEOF
64865 /* confdefs.h. */
64866 _ACEOF
64867 cat confdefs.h >>conftest.$ac_ext
64868 cat >>conftest.$ac_ext <<_ACEOF
64869 /* end confdefs.h. */
64870 $ac_includes_default
64871 #include <langinfo.h>
64872 _ACEOF
64873 rm -f conftest.$ac_objext
64874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64875 (eval $ac_compile) 2>conftest.er1
64876 ac_status=$?
64877 grep -v '^ *+' conftest.er1 >conftest.err
64878 rm -f conftest.er1
64879 cat conftest.err >&5
64880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64881 (exit $ac_status); } &&
64882 { ac_try='test -z "$ac_c_werror_flag"
64883 || test ! -s conftest.err'
64884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64885 (eval $ac_try) 2>&5
64886 ac_status=$?
64887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64888 (exit $ac_status); }; } &&
64889 { ac_try='test -s conftest.$ac_objext'
64890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64891 (eval $ac_try) 2>&5
64892 ac_status=$?
64893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64894 (exit $ac_status); }; }; then
64895 ac_header_compiler=yes
64896 else
64897 echo "$as_me: failed program was:" >&5
64898 sed 's/^/| /' conftest.$ac_ext >&5
64900 ac_header_compiler=no
64902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64904 echo "${ECHO_T}$ac_header_compiler" >&6
64906 # Is the header present?
64907 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
64908 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
64909 cat >conftest.$ac_ext <<_ACEOF
64910 /* confdefs.h. */
64911 _ACEOF
64912 cat confdefs.h >>conftest.$ac_ext
64913 cat >>conftest.$ac_ext <<_ACEOF
64914 /* end confdefs.h. */
64915 #include <langinfo.h>
64916 _ACEOF
64917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64919 ac_status=$?
64920 grep -v '^ *+' conftest.er1 >conftest.err
64921 rm -f conftest.er1
64922 cat conftest.err >&5
64923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64924 (exit $ac_status); } >/dev/null; then
64925 if test -s conftest.err; then
64926 ac_cpp_err=$ac_c_preproc_warn_flag
64927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64928 else
64929 ac_cpp_err=
64931 else
64932 ac_cpp_err=yes
64934 if test -z "$ac_cpp_err"; then
64935 ac_header_preproc=yes
64936 else
64937 echo "$as_me: failed program was:" >&5
64938 sed 's/^/| /' conftest.$ac_ext >&5
64940 ac_header_preproc=no
64942 rm -f conftest.err conftest.$ac_ext
64943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64944 echo "${ECHO_T}$ac_header_preproc" >&6
64946 # So? What about this header?
64947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64948 yes:no: )
64949 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
64950 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64951 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
64952 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
64953 ac_header_preproc=yes
64955 no:yes:* )
64956 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
64957 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
64958 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
64959 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
64960 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
64961 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
64962 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
64963 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
64964 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
64965 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
64966 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
64967 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
64969 cat <<\_ASBOX
64970 ## ----------------------------------------- ##
64971 ## Report this to the package-unused lists. ##
64972 ## ----------------------------------------- ##
64973 _ASBOX
64975 sed "s/^/$as_me: WARNING: /" >&2
64977 esac
64978 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64979 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64980 if test "${ac_cv_header_langinfo_h+set}" = set; then
64981 echo $ECHO_N "(cached) $ECHO_C" >&6
64982 else
64983 ac_cv_header_langinfo_h=$ac_header_preproc
64985 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64986 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64989 if test $ac_cv_header_langinfo_h = yes; then
64990 ac_has_langinfo_h=yes
64991 else
64992 ac_has_langinfo_h=no
64997 # Check for existence of libiconv.a providing XPG2 wchar_t support.
64998 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
64999 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65000 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65001 echo $ECHO_N "(cached) $ECHO_C" >&6
65002 else
65003 ac_check_lib_save_LIBS=$LIBS
65004 LIBS="-liconv $LIBS"
65005 if test x$gcc_no_link = xyes; then
65006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65008 { (exit 1); exit 1; }; }
65010 cat >conftest.$ac_ext <<_ACEOF
65011 /* confdefs.h. */
65012 _ACEOF
65013 cat confdefs.h >>conftest.$ac_ext
65014 cat >>conftest.$ac_ext <<_ACEOF
65015 /* end confdefs.h. */
65017 /* Override any gcc2 internal prototype to avoid an error. */
65018 #ifdef __cplusplus
65019 extern "C"
65020 #endif
65021 /* We use char because int might match the return type of a gcc2
65022 builtin and then its argument prototype would still apply. */
65023 char iconv ();
65025 main ()
65027 iconv ();
65029 return 0;
65031 _ACEOF
65032 rm -f conftest.$ac_objext conftest$ac_exeext
65033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65034 (eval $ac_link) 2>conftest.er1
65035 ac_status=$?
65036 grep -v '^ *+' conftest.er1 >conftest.err
65037 rm -f conftest.er1
65038 cat conftest.err >&5
65039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65040 (exit $ac_status); } &&
65041 { ac_try='test -z "$ac_c_werror_flag"
65042 || test ! -s conftest.err'
65043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65044 (eval $ac_try) 2>&5
65045 ac_status=$?
65046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65047 (exit $ac_status); }; } &&
65048 { ac_try='test -s conftest$ac_exeext'
65049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65050 (eval $ac_try) 2>&5
65051 ac_status=$?
65052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65053 (exit $ac_status); }; }; then
65054 ac_cv_lib_iconv_iconv=yes
65055 else
65056 echo "$as_me: failed program was:" >&5
65057 sed 's/^/| /' conftest.$ac_ext >&5
65059 ac_cv_lib_iconv_iconv=no
65061 rm -f conftest.err conftest.$ac_objext \
65062 conftest$ac_exeext conftest.$ac_ext
65063 LIBS=$ac_check_lib_save_LIBS
65065 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65066 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65067 if test $ac_cv_lib_iconv_iconv = yes; then
65068 libiconv="-liconv"
65071 ac_save_LIBS="$LIBS"
65072 LIBS="$LIBS $libiconv"
65078 for ac_func in iconv_open iconv_close iconv nl_langinfo
65080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65081 echo "$as_me:$LINENO: checking for $ac_func" >&5
65082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65083 if eval "test \"\${$as_ac_var+set}\" = set"; then
65084 echo $ECHO_N "(cached) $ECHO_C" >&6
65085 else
65086 if test x$gcc_no_link = xyes; then
65087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65088 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65089 { (exit 1); exit 1; }; }
65091 cat >conftest.$ac_ext <<_ACEOF
65092 /* confdefs.h. */
65093 _ACEOF
65094 cat confdefs.h >>conftest.$ac_ext
65095 cat >>conftest.$ac_ext <<_ACEOF
65096 /* end confdefs.h. */
65097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65099 #define $ac_func innocuous_$ac_func
65101 /* System header to define __stub macros and hopefully few prototypes,
65102 which can conflict with char $ac_func (); below.
65103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65104 <limits.h> exists even on freestanding compilers. */
65106 #ifdef __STDC__
65107 # include <limits.h>
65108 #else
65109 # include <assert.h>
65110 #endif
65112 #undef $ac_func
65114 /* Override any gcc2 internal prototype to avoid an error. */
65115 #ifdef __cplusplus
65116 extern "C"
65118 #endif
65119 /* We use char because int might match the return type of a gcc2
65120 builtin and then its argument prototype would still apply. */
65121 char $ac_func ();
65122 /* The GNU C library defines this for functions which it implements
65123 to always fail with ENOSYS. Some functions are actually named
65124 something starting with __ and the normal name is an alias. */
65125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65126 choke me
65127 #else
65128 char (*f) () = $ac_func;
65129 #endif
65130 #ifdef __cplusplus
65132 #endif
65135 main ()
65137 return f != $ac_func;
65139 return 0;
65141 _ACEOF
65142 rm -f conftest.$ac_objext conftest$ac_exeext
65143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65144 (eval $ac_link) 2>conftest.er1
65145 ac_status=$?
65146 grep -v '^ *+' conftest.er1 >conftest.err
65147 rm -f conftest.er1
65148 cat conftest.err >&5
65149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65150 (exit $ac_status); } &&
65151 { ac_try='test -z "$ac_c_werror_flag"
65152 || test ! -s conftest.err'
65153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65154 (eval $ac_try) 2>&5
65155 ac_status=$?
65156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65157 (exit $ac_status); }; } &&
65158 { ac_try='test -s conftest$ac_exeext'
65159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65160 (eval $ac_try) 2>&5
65161 ac_status=$?
65162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65163 (exit $ac_status); }; }; then
65164 eval "$as_ac_var=yes"
65165 else
65166 echo "$as_me: failed program was:" >&5
65167 sed 's/^/| /' conftest.$ac_ext >&5
65169 eval "$as_ac_var=no"
65171 rm -f conftest.err conftest.$ac_objext \
65172 conftest$ac_exeext conftest.$ac_ext
65174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65176 if test `eval echo '${'$as_ac_var'}'` = yes; then
65177 cat >>confdefs.h <<_ACEOF
65178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65179 _ACEOF
65180 ac_XPG2funcs=yes
65181 else
65182 ac_XPG2funcs=no
65184 done
65187 LIBS="$ac_save_LIBS"
65189 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65190 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65191 if test x"$ac_has_iconv_h" = xyes &&
65192 test x"$ac_has_langinfo_h" = xyes &&
65193 test x"$ac_XPG2funcs" = xyes;
65194 then
65195 ac_XPG2_wchar_t=yes
65196 else
65197 ac_XPG2_wchar_t=no
65199 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65200 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65202 # At the moment, only enable wchar_t specializations if all the
65203 # above support is present.
65204 if test x"$ac_isoC99_wchar_t" = xyes &&
65205 test x"$ac_XPG2_wchar_t" = xyes;
65206 then
65207 cat >>confdefs.h <<\_ACEOF
65208 #define _GLIBCXX_USE_WCHAR_T 1
65209 _ACEOF
65211 enable_wchar_t=yes
65214 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65215 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65216 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65217 echo "${ECHO_T}$enable_wchar_t" >&6
65219 cat >>confdefs.h <<\_ACEOF
65220 #define HAVE_COPYSIGN 1
65221 _ACEOF
65223 cat >>confdefs.h <<\_ACEOF
65224 #define HAVE_COPYSIGNF 1
65225 _ACEOF
65227 cat >>confdefs.h <<\_ACEOF
65228 #define HAVE_FINITEF 1
65229 _ACEOF
65231 cat >>confdefs.h <<\_ACEOF
65232 #define HAVE_FINITE 1
65233 _ACEOF
65235 cat >>confdefs.h <<\_ACEOF
65236 #define HAVE_FREXPF 1
65237 _ACEOF
65239 cat >>confdefs.h <<\_ACEOF
65240 #define HAVE_HYPOTF 1
65241 _ACEOF
65243 cat >>confdefs.h <<\_ACEOF
65244 #define HAVE_ISINF 1
65245 _ACEOF
65247 cat >>confdefs.h <<\_ACEOF
65248 #define HAVE_ISINFF 1
65249 _ACEOF
65251 cat >>confdefs.h <<\_ACEOF
65252 #define HAVE_ISNAN 1
65253 _ACEOF
65255 cat >>confdefs.h <<\_ACEOF
65256 #define HAVE_ISNANF 1
65257 _ACEOF
65259 if test x"long_double_math_on_this_cpu" = x"yes"; then
65260 cat >>confdefs.h <<\_ACEOF
65261 #define HAVE_FINITEL 1
65262 _ACEOF
65264 cat >>confdefs.h <<\_ACEOF
65265 #define HAVE_ISINFL 1
65266 _ACEOF
65268 cat >>confdefs.h <<\_ACEOF
65269 #define HAVE_ISNANL 1
65270 _ACEOF
65274 *-qnx6.1* | *-qnx6.2*)
65275 SECTION_FLAGS='-ffunction-sections -fdata-sections'
65278 # If we're not using GNU ld, then there's no point in even trying these
65279 # tests. Check for that first. We should have already tested for gld
65280 # by now (in libtool), but require it now just to be safe...
65281 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65282 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65286 # The name set by libtool depends on the version of libtool. Shame on us
65287 # for depending on an impl detail, but c'est la vie. Older versions used
65288 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65289 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65290 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
65291 # set (hence we're using an older libtool), then set it.
65292 if test x${with_gnu_ld+set} != xset; then
65293 if test x${ac_cv_prog_gnu_ld+set} != xset; then
65294 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
65295 with_gnu_ld=no
65296 else
65297 with_gnu_ld=$ac_cv_prog_gnu_ld
65301 # Start by getting the version number. I think the libtool test already
65302 # does some of this, but throws away the result.
65304 ldver=`$LD --version 2>/dev/null | head -1 | \
65305 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65307 glibcxx_gnu_ld_version=`echo $ldver | \
65308 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65310 # Set --gc-sections.
65311 if test "$with_gnu_ld" = "notbroken"; then
65312 # GNU ld it is! Joy and bunny rabbits!
65314 # All these tests are for C++; save the language and the compiler flags.
65315 # Need to do this so that g++ won't try to link in libstdc++
65316 ac_test_CFLAGS="${CFLAGS+set}"
65317 ac_save_CFLAGS="$CFLAGS"
65318 CFLAGS='-x c++ -Wl,--gc-sections'
65320 # Check for -Wl,--gc-sections
65321 # XXX This test is broken at the moment, as symbols required for linking
65322 # are now in libsupc++ (not built yet). In addition, this test has
65323 # cored on solaris in the past. In addition, --gc-sections doesn't
65324 # really work at the moment (keeps on discarding used sections, first
65325 # .eh_frame and now some of the glibc sections for iconv).
65326 # Bzzzzt. Thanks for playing, maybe next time.
65327 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65328 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65329 if test "$cross_compiling" = yes; then
65330 ac_sectionLDflags=yes
65331 else
65332 cat >conftest.$ac_ext <<_ACEOF
65333 /* confdefs.h. */
65334 _ACEOF
65335 cat confdefs.h >>conftest.$ac_ext
65336 cat >>conftest.$ac_ext <<_ACEOF
65337 /* end confdefs.h. */
65339 int main(void)
65341 try { throw 1; }
65342 catch (...) { };
65343 return 0;
65346 _ACEOF
65347 rm -f conftest$ac_exeext
65348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65349 (eval $ac_link) 2>&5
65350 ac_status=$?
65351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65354 (eval $ac_try) 2>&5
65355 ac_status=$?
65356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65357 (exit $ac_status); }; }; then
65358 ac_sectionLDflags=yes
65359 else
65360 echo "$as_me: program exited with status $ac_status" >&5
65361 echo "$as_me: failed program was:" >&5
65362 sed 's/^/| /' conftest.$ac_ext >&5
65364 ( exit $ac_status )
65365 ac_sectionLDflags=no
65367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65369 if test "$ac_test_CFLAGS" = set; then
65370 CFLAGS="$ac_save_CFLAGS"
65371 else
65372 # this is the suspicious part
65373 CFLAGS=''
65375 if test "$ac_sectionLDflags" = "yes"; then
65376 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65378 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65379 echo "${ECHO_T}$ac_sectionLDflags" >&6
65382 # Set linker optimization flags.
65383 if test x"$with_gnu_ld" = x"yes"; then
65384 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65392 echo "$as_me:$LINENO: checking for main in -lm" >&5
65393 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65394 if test "${ac_cv_lib_m_main+set}" = set; then
65395 echo $ECHO_N "(cached) $ECHO_C" >&6
65396 else
65397 ac_check_lib_save_LIBS=$LIBS
65398 LIBS="-lm $LIBS"
65399 if test x$gcc_no_link = xyes; then
65400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65402 { (exit 1); exit 1; }; }
65404 cat >conftest.$ac_ext <<_ACEOF
65405 /* confdefs.h. */
65406 _ACEOF
65407 cat confdefs.h >>conftest.$ac_ext
65408 cat >>conftest.$ac_ext <<_ACEOF
65409 /* end confdefs.h. */
65413 main ()
65415 main ();
65417 return 0;
65419 _ACEOF
65420 rm -f conftest.$ac_objext conftest$ac_exeext
65421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65422 (eval $ac_link) 2>conftest.er1
65423 ac_status=$?
65424 grep -v '^ *+' conftest.er1 >conftest.err
65425 rm -f conftest.er1
65426 cat conftest.err >&5
65427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65428 (exit $ac_status); } &&
65429 { ac_try='test -z "$ac_c_werror_flag"
65430 || test ! -s conftest.err'
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); }; } &&
65436 { ac_try='test -s conftest$ac_exeext'
65437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65438 (eval $ac_try) 2>&5
65439 ac_status=$?
65440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65441 (exit $ac_status); }; }; then
65442 ac_cv_lib_m_main=yes
65443 else
65444 echo "$as_me: failed program was:" >&5
65445 sed 's/^/| /' conftest.$ac_ext >&5
65447 ac_cv_lib_m_main=no
65449 rm -f conftest.err conftest.$ac_objext \
65450 conftest$ac_exeext conftest.$ac_ext
65451 LIBS=$ac_check_lib_save_LIBS
65453 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65454 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65455 if test $ac_cv_lib_m_main = yes; then
65456 cat >>confdefs.h <<_ACEOF
65457 #define HAVE_LIBM 1
65458 _ACEOF
65460 LIBS="-lm $LIBS"
65465 for ac_func in copysignf
65467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65468 echo "$as_me:$LINENO: checking for $ac_func" >&5
65469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65470 if eval "test \"\${$as_ac_var+set}\" = set"; then
65471 echo $ECHO_N "(cached) $ECHO_C" >&6
65472 else
65473 if test x$gcc_no_link = xyes; then
65474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65476 { (exit 1); exit 1; }; }
65478 cat >conftest.$ac_ext <<_ACEOF
65479 /* confdefs.h. */
65480 _ACEOF
65481 cat confdefs.h >>conftest.$ac_ext
65482 cat >>conftest.$ac_ext <<_ACEOF
65483 /* end confdefs.h. */
65484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65486 #define $ac_func innocuous_$ac_func
65488 /* System header to define __stub macros and hopefully few prototypes,
65489 which can conflict with char $ac_func (); below.
65490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65491 <limits.h> exists even on freestanding compilers. */
65493 #ifdef __STDC__
65494 # include <limits.h>
65495 #else
65496 # include <assert.h>
65497 #endif
65499 #undef $ac_func
65501 /* Override any gcc2 internal prototype to avoid an error. */
65502 #ifdef __cplusplus
65503 extern "C"
65505 #endif
65506 /* We use char because int might match the return type of a gcc2
65507 builtin and then its argument prototype would still apply. */
65508 char $ac_func ();
65509 /* The GNU C library defines this for functions which it implements
65510 to always fail with ENOSYS. Some functions are actually named
65511 something starting with __ and the normal name is an alias. */
65512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65513 choke me
65514 #else
65515 char (*f) () = $ac_func;
65516 #endif
65517 #ifdef __cplusplus
65519 #endif
65522 main ()
65524 return f != $ac_func;
65526 return 0;
65528 _ACEOF
65529 rm -f conftest.$ac_objext conftest$ac_exeext
65530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65531 (eval $ac_link) 2>conftest.er1
65532 ac_status=$?
65533 grep -v '^ *+' conftest.er1 >conftest.err
65534 rm -f conftest.er1
65535 cat conftest.err >&5
65536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65537 (exit $ac_status); } &&
65538 { ac_try='test -z "$ac_c_werror_flag"
65539 || test ! -s conftest.err'
65540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65541 (eval $ac_try) 2>&5
65542 ac_status=$?
65543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65544 (exit $ac_status); }; } &&
65545 { ac_try='test -s conftest$ac_exeext'
65546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65547 (eval $ac_try) 2>&5
65548 ac_status=$?
65549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65550 (exit $ac_status); }; }; then
65551 eval "$as_ac_var=yes"
65552 else
65553 echo "$as_me: failed program was:" >&5
65554 sed 's/^/| /' conftest.$ac_ext >&5
65556 eval "$as_ac_var=no"
65558 rm -f conftest.err conftest.$ac_objext \
65559 conftest$ac_exeext conftest.$ac_ext
65561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65563 if test `eval echo '${'$as_ac_var'}'` = yes; then
65564 cat >>confdefs.h <<_ACEOF
65565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65566 _ACEOF
65568 else
65569 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65571 done
65575 for ac_func in __signbit
65577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65578 echo "$as_me:$LINENO: checking for $ac_func" >&5
65579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65580 if eval "test \"\${$as_ac_var+set}\" = set"; then
65581 echo $ECHO_N "(cached) $ECHO_C" >&6
65582 else
65583 if test x$gcc_no_link = xyes; then
65584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65586 { (exit 1); exit 1; }; }
65588 cat >conftest.$ac_ext <<_ACEOF
65589 /* confdefs.h. */
65590 _ACEOF
65591 cat confdefs.h >>conftest.$ac_ext
65592 cat >>conftest.$ac_ext <<_ACEOF
65593 /* end confdefs.h. */
65594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65596 #define $ac_func innocuous_$ac_func
65598 /* System header to define __stub macros and hopefully few prototypes,
65599 which can conflict with char $ac_func (); below.
65600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65601 <limits.h> exists even on freestanding compilers. */
65603 #ifdef __STDC__
65604 # include <limits.h>
65605 #else
65606 # include <assert.h>
65607 #endif
65609 #undef $ac_func
65611 /* Override any gcc2 internal prototype to avoid an error. */
65612 #ifdef __cplusplus
65613 extern "C"
65615 #endif
65616 /* We use char because int might match the return type of a gcc2
65617 builtin and then its argument prototype would still apply. */
65618 char $ac_func ();
65619 /* The GNU C library defines this for functions which it implements
65620 to always fail with ENOSYS. Some functions are actually named
65621 something starting with __ and the normal name is an alias. */
65622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65623 choke me
65624 #else
65625 char (*f) () = $ac_func;
65626 #endif
65627 #ifdef __cplusplus
65629 #endif
65632 main ()
65634 return f != $ac_func;
65636 return 0;
65638 _ACEOF
65639 rm -f conftest.$ac_objext conftest$ac_exeext
65640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65641 (eval $ac_link) 2>conftest.er1
65642 ac_status=$?
65643 grep -v '^ *+' conftest.er1 >conftest.err
65644 rm -f conftest.er1
65645 cat conftest.err >&5
65646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65647 (exit $ac_status); } &&
65648 { ac_try='test -z "$ac_c_werror_flag"
65649 || test ! -s conftest.err'
65650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65651 (eval $ac_try) 2>&5
65652 ac_status=$?
65653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65654 (exit $ac_status); }; } &&
65655 { ac_try='test -s conftest$ac_exeext'
65656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65657 (eval $ac_try) 2>&5
65658 ac_status=$?
65659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65660 (exit $ac_status); }; }; then
65661 eval "$as_ac_var=yes"
65662 else
65663 echo "$as_me: failed program was:" >&5
65664 sed 's/^/| /' conftest.$ac_ext >&5
65666 eval "$as_ac_var=no"
65668 rm -f conftest.err conftest.$ac_objext \
65669 conftest$ac_exeext conftest.$ac_ext
65671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65673 if test `eval echo '${'$as_ac_var'}'` = yes; then
65674 cat >>confdefs.h <<_ACEOF
65675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65676 _ACEOF
65678 else
65679 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65681 done
65684 for ac_func in __signbitf
65686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65687 echo "$as_me:$LINENO: checking for $ac_func" >&5
65688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65689 if eval "test \"\${$as_ac_var+set}\" = set"; then
65690 echo $ECHO_N "(cached) $ECHO_C" >&6
65691 else
65692 if test x$gcc_no_link = xyes; then
65693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65695 { (exit 1); exit 1; }; }
65697 cat >conftest.$ac_ext <<_ACEOF
65698 /* confdefs.h. */
65699 _ACEOF
65700 cat confdefs.h >>conftest.$ac_ext
65701 cat >>conftest.$ac_ext <<_ACEOF
65702 /* end confdefs.h. */
65703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65705 #define $ac_func innocuous_$ac_func
65707 /* System header to define __stub macros and hopefully few prototypes,
65708 which can conflict with char $ac_func (); below.
65709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65710 <limits.h> exists even on freestanding compilers. */
65712 #ifdef __STDC__
65713 # include <limits.h>
65714 #else
65715 # include <assert.h>
65716 #endif
65718 #undef $ac_func
65720 /* Override any gcc2 internal prototype to avoid an error. */
65721 #ifdef __cplusplus
65722 extern "C"
65724 #endif
65725 /* We use char because int might match the return type of a gcc2
65726 builtin and then its argument prototype would still apply. */
65727 char $ac_func ();
65728 /* The GNU C library defines this for functions which it implements
65729 to always fail with ENOSYS. Some functions are actually named
65730 something starting with __ and the normal name is an alias. */
65731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65732 choke me
65733 #else
65734 char (*f) () = $ac_func;
65735 #endif
65736 #ifdef __cplusplus
65738 #endif
65741 main ()
65743 return f != $ac_func;
65745 return 0;
65747 _ACEOF
65748 rm -f conftest.$ac_objext conftest$ac_exeext
65749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65750 (eval $ac_link) 2>conftest.er1
65751 ac_status=$?
65752 grep -v '^ *+' conftest.er1 >conftest.err
65753 rm -f conftest.er1
65754 cat conftest.err >&5
65755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65756 (exit $ac_status); } &&
65757 { ac_try='test -z "$ac_c_werror_flag"
65758 || test ! -s conftest.err'
65759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65760 (eval $ac_try) 2>&5
65761 ac_status=$?
65762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65763 (exit $ac_status); }; } &&
65764 { ac_try='test -s conftest$ac_exeext'
65765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65766 (eval $ac_try) 2>&5
65767 ac_status=$?
65768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65769 (exit $ac_status); }; }; then
65770 eval "$as_ac_var=yes"
65771 else
65772 echo "$as_me: failed program was:" >&5
65773 sed 's/^/| /' conftest.$ac_ext >&5
65775 eval "$as_ac_var=no"
65777 rm -f conftest.err conftest.$ac_objext \
65778 conftest$ac_exeext conftest.$ac_ext
65780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65782 if test `eval echo '${'$as_ac_var'}'` = yes; then
65783 cat >>confdefs.h <<_ACEOF
65784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65785 _ACEOF
65787 else
65788 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
65790 done
65793 if test x$ac_cv_func_copysignl = x"yes"; then
65795 for ac_func in __signbitl
65797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65798 echo "$as_me:$LINENO: checking for $ac_func" >&5
65799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65800 if eval "test \"\${$as_ac_var+set}\" = set"; then
65801 echo $ECHO_N "(cached) $ECHO_C" >&6
65802 else
65803 if test x$gcc_no_link = xyes; then
65804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65806 { (exit 1); exit 1; }; }
65808 cat >conftest.$ac_ext <<_ACEOF
65809 /* confdefs.h. */
65810 _ACEOF
65811 cat confdefs.h >>conftest.$ac_ext
65812 cat >>conftest.$ac_ext <<_ACEOF
65813 /* end confdefs.h. */
65814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65816 #define $ac_func innocuous_$ac_func
65818 /* System header to define __stub macros and hopefully few prototypes,
65819 which can conflict with char $ac_func (); below.
65820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65821 <limits.h> exists even on freestanding compilers. */
65823 #ifdef __STDC__
65824 # include <limits.h>
65825 #else
65826 # include <assert.h>
65827 #endif
65829 #undef $ac_func
65831 /* Override any gcc2 internal prototype to avoid an error. */
65832 #ifdef __cplusplus
65833 extern "C"
65835 #endif
65836 /* We use char because int might match the return type of a gcc2
65837 builtin and then its argument prototype would still apply. */
65838 char $ac_func ();
65839 /* The GNU C library defines this for functions which it implements
65840 to always fail with ENOSYS. Some functions are actually named
65841 something starting with __ and the normal name is an alias. */
65842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65843 choke me
65844 #else
65845 char (*f) () = $ac_func;
65846 #endif
65847 #ifdef __cplusplus
65849 #endif
65852 main ()
65854 return f != $ac_func;
65856 return 0;
65858 _ACEOF
65859 rm -f conftest.$ac_objext conftest$ac_exeext
65860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65861 (eval $ac_link) 2>conftest.er1
65862 ac_status=$?
65863 grep -v '^ *+' conftest.er1 >conftest.err
65864 rm -f conftest.er1
65865 cat conftest.err >&5
65866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65867 (exit $ac_status); } &&
65868 { ac_try='test -z "$ac_c_werror_flag"
65869 || test ! -s conftest.err'
65870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65871 (eval $ac_try) 2>&5
65872 ac_status=$?
65873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65874 (exit $ac_status); }; } &&
65875 { ac_try='test -s conftest$ac_exeext'
65876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65877 (eval $ac_try) 2>&5
65878 ac_status=$?
65879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65880 (exit $ac_status); }; }; then
65881 eval "$as_ac_var=yes"
65882 else
65883 echo "$as_me: failed program was:" >&5
65884 sed 's/^/| /' conftest.$ac_ext >&5
65886 eval "$as_ac_var=no"
65888 rm -f conftest.err conftest.$ac_objext \
65889 conftest$ac_exeext conftest.$ac_ext
65891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65893 if test `eval echo '${'$as_ac_var'}'` = yes; then
65894 cat >>confdefs.h <<_ACEOF
65895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65896 _ACEOF
65898 else
65899 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
65901 done
65905 # XXX Review this. Nothing uses it.
65906 if test -n "$LIBMATHOBJS"; then
65907 need_libmath=yes
65912 # Test wchar.h for mbstate_t, which is needed for char_traits and
65913 # others even if wchar_t support is not on.
65914 echo "$as_me:$LINENO: checking for mbstate_t" >&5
65915 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
65916 cat >conftest.$ac_ext <<_ACEOF
65917 /* confdefs.h. */
65918 _ACEOF
65919 cat confdefs.h >>conftest.$ac_ext
65920 cat >>conftest.$ac_ext <<_ACEOF
65921 /* end confdefs.h. */
65922 #include <wchar.h>
65924 main ()
65926 mbstate_t teststate;
65928 return 0;
65930 _ACEOF
65931 rm -f conftest.$ac_objext
65932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65933 (eval $ac_compile) 2>conftest.er1
65934 ac_status=$?
65935 grep -v '^ *+' conftest.er1 >conftest.err
65936 rm -f conftest.er1
65937 cat conftest.err >&5
65938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65939 (exit $ac_status); } &&
65940 { ac_try='test -z "$ac_c_werror_flag"
65941 || test ! -s conftest.err'
65942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65943 (eval $ac_try) 2>&5
65944 ac_status=$?
65945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65946 (exit $ac_status); }; } &&
65947 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
65953 have_mbstate_t=yes
65954 else
65955 echo "$as_me: failed program was:" >&5
65956 sed 's/^/| /' conftest.$ac_ext >&5
65958 have_mbstate_t=no
65960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65961 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
65962 echo "${ECHO_T}$have_mbstate_t" >&6
65963 if test x"$have_mbstate_t" = xyes; then
65964 cat >>confdefs.h <<\_ACEOF
65965 #define HAVE_MBSTATE_T 1
65966 _ACEOF
65970 # Sanity check for existence of ISO C99 headers for extended encoding.
65972 for ac_header in wchar.h
65974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
65975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
65976 echo "$as_me:$LINENO: checking for $ac_header" >&5
65977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
65978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
65979 echo $ECHO_N "(cached) $ECHO_C" >&6
65981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65983 else
65984 # Is the header compilable?
65985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
65986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
65987 cat >conftest.$ac_ext <<_ACEOF
65988 /* confdefs.h. */
65989 _ACEOF
65990 cat confdefs.h >>conftest.$ac_ext
65991 cat >>conftest.$ac_ext <<_ACEOF
65992 /* end confdefs.h. */
65993 $ac_includes_default
65994 #include <$ac_header>
65995 _ACEOF
65996 rm -f conftest.$ac_objext
65997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65998 (eval $ac_compile) 2>conftest.er1
65999 ac_status=$?
66000 grep -v '^ *+' conftest.er1 >conftest.err
66001 rm -f conftest.er1
66002 cat conftest.err >&5
66003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66004 (exit $ac_status); } &&
66005 { ac_try='test -z "$ac_c_werror_flag"
66006 || test ! -s conftest.err'
66007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66008 (eval $ac_try) 2>&5
66009 ac_status=$?
66010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66011 (exit $ac_status); }; } &&
66012 { ac_try='test -s conftest.$ac_objext'
66013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66014 (eval $ac_try) 2>&5
66015 ac_status=$?
66016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66017 (exit $ac_status); }; }; then
66018 ac_header_compiler=yes
66019 else
66020 echo "$as_me: failed program was:" >&5
66021 sed 's/^/| /' conftest.$ac_ext >&5
66023 ac_header_compiler=no
66025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66027 echo "${ECHO_T}$ac_header_compiler" >&6
66029 # Is the header present?
66030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66032 cat >conftest.$ac_ext <<_ACEOF
66033 /* confdefs.h. */
66034 _ACEOF
66035 cat confdefs.h >>conftest.$ac_ext
66036 cat >>conftest.$ac_ext <<_ACEOF
66037 /* end confdefs.h. */
66038 #include <$ac_header>
66039 _ACEOF
66040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66042 ac_status=$?
66043 grep -v '^ *+' conftest.er1 >conftest.err
66044 rm -f conftest.er1
66045 cat conftest.err >&5
66046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66047 (exit $ac_status); } >/dev/null; then
66048 if test -s conftest.err; then
66049 ac_cpp_err=$ac_c_preproc_warn_flag
66050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66051 else
66052 ac_cpp_err=
66054 else
66055 ac_cpp_err=yes
66057 if test -z "$ac_cpp_err"; then
66058 ac_header_preproc=yes
66059 else
66060 echo "$as_me: failed program was:" >&5
66061 sed 's/^/| /' conftest.$ac_ext >&5
66063 ac_header_preproc=no
66065 rm -f conftest.err conftest.$ac_ext
66066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66067 echo "${ECHO_T}$ac_header_preproc" >&6
66069 # So? What about this header?
66070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66071 yes:no: )
66072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66076 ac_header_preproc=yes
66078 no:yes:* )
66079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66092 cat <<\_ASBOX
66093 ## ----------------------------------------- ##
66094 ## Report this to the package-unused lists. ##
66095 ## ----------------------------------------- ##
66096 _ASBOX
66098 sed "s/^/$as_me: WARNING: /" >&2
66100 esac
66101 echo "$as_me:$LINENO: checking for $ac_header" >&5
66102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66104 echo $ECHO_N "(cached) $ECHO_C" >&6
66105 else
66106 eval "$as_ac_Header=\$ac_header_preproc"
66108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66113 cat >>confdefs.h <<_ACEOF
66114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66115 _ACEOF
66116 ac_has_wchar_h=yes
66117 else
66118 ac_has_wchar_h=no
66121 done
66124 for ac_header in wctype.h
66126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66128 echo "$as_me:$LINENO: checking for $ac_header" >&5
66129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66131 echo $ECHO_N "(cached) $ECHO_C" >&6
66133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66135 else
66136 # Is the header compilable?
66137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66139 cat >conftest.$ac_ext <<_ACEOF
66140 /* confdefs.h. */
66141 _ACEOF
66142 cat confdefs.h >>conftest.$ac_ext
66143 cat >>conftest.$ac_ext <<_ACEOF
66144 /* end confdefs.h. */
66145 $ac_includes_default
66146 #include <$ac_header>
66147 _ACEOF
66148 rm -f conftest.$ac_objext
66149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66150 (eval $ac_compile) 2>conftest.er1
66151 ac_status=$?
66152 grep -v '^ *+' conftest.er1 >conftest.err
66153 rm -f conftest.er1
66154 cat conftest.err >&5
66155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66156 (exit $ac_status); } &&
66157 { ac_try='test -z "$ac_c_werror_flag"
66158 || test ! -s conftest.err'
66159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66160 (eval $ac_try) 2>&5
66161 ac_status=$?
66162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66163 (exit $ac_status); }; } &&
66164 { ac_try='test -s conftest.$ac_objext'
66165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66166 (eval $ac_try) 2>&5
66167 ac_status=$?
66168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66169 (exit $ac_status); }; }; then
66170 ac_header_compiler=yes
66171 else
66172 echo "$as_me: failed program was:" >&5
66173 sed 's/^/| /' conftest.$ac_ext >&5
66175 ac_header_compiler=no
66177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66179 echo "${ECHO_T}$ac_header_compiler" >&6
66181 # Is the header present?
66182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66184 cat >conftest.$ac_ext <<_ACEOF
66185 /* confdefs.h. */
66186 _ACEOF
66187 cat confdefs.h >>conftest.$ac_ext
66188 cat >>conftest.$ac_ext <<_ACEOF
66189 /* end confdefs.h. */
66190 #include <$ac_header>
66191 _ACEOF
66192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66194 ac_status=$?
66195 grep -v '^ *+' conftest.er1 >conftest.err
66196 rm -f conftest.er1
66197 cat conftest.err >&5
66198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66199 (exit $ac_status); } >/dev/null; then
66200 if test -s conftest.err; then
66201 ac_cpp_err=$ac_c_preproc_warn_flag
66202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66203 else
66204 ac_cpp_err=
66206 else
66207 ac_cpp_err=yes
66209 if test -z "$ac_cpp_err"; then
66210 ac_header_preproc=yes
66211 else
66212 echo "$as_me: failed program was:" >&5
66213 sed 's/^/| /' conftest.$ac_ext >&5
66215 ac_header_preproc=no
66217 rm -f conftest.err conftest.$ac_ext
66218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66219 echo "${ECHO_T}$ac_header_preproc" >&6
66221 # So? What about this header?
66222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66223 yes:no: )
66224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66228 ac_header_preproc=yes
66230 no:yes:* )
66231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66244 cat <<\_ASBOX
66245 ## ----------------------------------------- ##
66246 ## Report this to the package-unused lists. ##
66247 ## ----------------------------------------- ##
66248 _ASBOX
66250 sed "s/^/$as_me: WARNING: /" >&2
66252 esac
66253 echo "$as_me:$LINENO: checking for $ac_header" >&5
66254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66256 echo $ECHO_N "(cached) $ECHO_C" >&6
66257 else
66258 eval "$as_ac_Header=\$ac_header_preproc"
66260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66265 cat >>confdefs.h <<_ACEOF
66266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66267 _ACEOF
66268 ac_has_wctype_h=yes
66269 else
66270 ac_has_wctype_h=no
66273 done
66276 # Only continue checking if the ISO C99 headers exist and support is on.
66277 if test x"$ac_has_wchar_h" = xyes &&
66278 test x"$ac_has_wctype_h" = xyes &&
66279 test x"$enable_c_mbchar" != xno; then
66281 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66282 # numeric_limits can instantiate type_traits<wchar_t>
66283 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66284 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66285 cat >conftest.$ac_ext <<_ACEOF
66286 /* confdefs.h. */
66287 _ACEOF
66288 cat confdefs.h >>conftest.$ac_ext
66289 cat >>conftest.$ac_ext <<_ACEOF
66290 /* end confdefs.h. */
66291 #include <wchar.h>
66293 main ()
66295 int i = WCHAR_MIN; int j = WCHAR_MAX;
66297 return 0;
66299 _ACEOF
66300 rm -f conftest.$ac_objext
66301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66302 (eval $ac_compile) 2>conftest.er1
66303 ac_status=$?
66304 grep -v '^ *+' conftest.er1 >conftest.err
66305 rm -f conftest.er1
66306 cat conftest.err >&5
66307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66308 (exit $ac_status); } &&
66309 { ac_try='test -z "$ac_c_werror_flag"
66310 || test ! -s conftest.err'
66311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66312 (eval $ac_try) 2>&5
66313 ac_status=$?
66314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66315 (exit $ac_status); }; } &&
66316 { ac_try='test -s conftest.$ac_objext'
66317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66318 (eval $ac_try) 2>&5
66319 ac_status=$?
66320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66321 (exit $ac_status); }; }; then
66322 has_wchar_minmax=yes
66323 else
66324 echo "$as_me: failed program was:" >&5
66325 sed 's/^/| /' conftest.$ac_ext >&5
66327 has_wchar_minmax=no
66329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66330 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66331 echo "${ECHO_T}$has_wchar_minmax" >&6
66333 # Test wchar.h for WEOF, which is what we use to determine whether
66334 # to specialize for char_traits<wchar_t> or not.
66335 echo "$as_me:$LINENO: checking for WEOF" >&5
66336 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66337 cat >conftest.$ac_ext <<_ACEOF
66338 /* confdefs.h. */
66339 _ACEOF
66340 cat confdefs.h >>conftest.$ac_ext
66341 cat >>conftest.$ac_ext <<_ACEOF
66342 /* end confdefs.h. */
66344 #include <wchar.h>
66345 #include <stddef.h>
66347 main ()
66349 wint_t i = WEOF;
66351 return 0;
66353 _ACEOF
66354 rm -f conftest.$ac_objext
66355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66356 (eval $ac_compile) 2>conftest.er1
66357 ac_status=$?
66358 grep -v '^ *+' conftest.er1 >conftest.err
66359 rm -f conftest.er1
66360 cat conftest.err >&5
66361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66362 (exit $ac_status); } &&
66363 { ac_try='test -z "$ac_c_werror_flag"
66364 || test ! -s conftest.err'
66365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66366 (eval $ac_try) 2>&5
66367 ac_status=$?
66368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66369 (exit $ac_status); }; } &&
66370 { ac_try='test -s conftest.$ac_objext'
66371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66372 (eval $ac_try) 2>&5
66373 ac_status=$?
66374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66375 (exit $ac_status); }; }; then
66376 has_weof=yes
66377 else
66378 echo "$as_me: failed program was:" >&5
66379 sed 's/^/| /' conftest.$ac_ext >&5
66381 has_weof=no
66383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66384 echo "$as_me:$LINENO: result: $has_weof" >&5
66385 echo "${ECHO_T}$has_weof" >&6
66387 # Tests for wide character functions used in char_traits<wchar_t>.
66388 ac_wfuncs=yes
66395 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66398 echo "$as_me:$LINENO: checking for $ac_func" >&5
66399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66400 if eval "test \"\${$as_ac_var+set}\" = set"; then
66401 echo $ECHO_N "(cached) $ECHO_C" >&6
66402 else
66403 if test x$gcc_no_link = xyes; then
66404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66406 { (exit 1); exit 1; }; }
66408 cat >conftest.$ac_ext <<_ACEOF
66409 /* confdefs.h. */
66410 _ACEOF
66411 cat confdefs.h >>conftest.$ac_ext
66412 cat >>conftest.$ac_ext <<_ACEOF
66413 /* end confdefs.h. */
66414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66416 #define $ac_func innocuous_$ac_func
66418 /* System header to define __stub macros and hopefully few prototypes,
66419 which can conflict with char $ac_func (); below.
66420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66421 <limits.h> exists even on freestanding compilers. */
66423 #ifdef __STDC__
66424 # include <limits.h>
66425 #else
66426 # include <assert.h>
66427 #endif
66429 #undef $ac_func
66431 /* Override any gcc2 internal prototype to avoid an error. */
66432 #ifdef __cplusplus
66433 extern "C"
66435 #endif
66436 /* We use char because int might match the return type of a gcc2
66437 builtin and then its argument prototype would still apply. */
66438 char $ac_func ();
66439 /* The GNU C library defines this for functions which it implements
66440 to always fail with ENOSYS. Some functions are actually named
66441 something starting with __ and the normal name is an alias. */
66442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66443 choke me
66444 #else
66445 char (*f) () = $ac_func;
66446 #endif
66447 #ifdef __cplusplus
66449 #endif
66452 main ()
66454 return f != $ac_func;
66456 return 0;
66458 _ACEOF
66459 rm -f conftest.$ac_objext conftest$ac_exeext
66460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66461 (eval $ac_link) 2>conftest.er1
66462 ac_status=$?
66463 grep -v '^ *+' conftest.er1 >conftest.err
66464 rm -f conftest.er1
66465 cat conftest.err >&5
66466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66467 (exit $ac_status); } &&
66468 { ac_try='test -z "$ac_c_werror_flag"
66469 || test ! -s conftest.err'
66470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66471 (eval $ac_try) 2>&5
66472 ac_status=$?
66473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66474 (exit $ac_status); }; } &&
66475 { ac_try='test -s conftest$ac_exeext'
66476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66477 (eval $ac_try) 2>&5
66478 ac_status=$?
66479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66480 (exit $ac_status); }; }; then
66481 eval "$as_ac_var=yes"
66482 else
66483 echo "$as_me: failed program was:" >&5
66484 sed 's/^/| /' conftest.$ac_ext >&5
66486 eval "$as_ac_var=no"
66488 rm -f conftest.err conftest.$ac_objext \
66489 conftest$ac_exeext conftest.$ac_ext
66491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66493 if test `eval echo '${'$as_ac_var'}'` = yes; then
66494 cat >>confdefs.h <<_ACEOF
66495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66496 _ACEOF
66498 else
66499 ac_wfuncs=no
66501 done
66504 # Checks for names injected into std:: by the c_std headers.
66551 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66552 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66553 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66554 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66555 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66556 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66559 echo "$as_me:$LINENO: checking for $ac_func" >&5
66560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66561 if eval "test \"\${$as_ac_var+set}\" = set"; then
66562 echo $ECHO_N "(cached) $ECHO_C" >&6
66563 else
66564 if test x$gcc_no_link = xyes; then
66565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66567 { (exit 1); exit 1; }; }
66569 cat >conftest.$ac_ext <<_ACEOF
66570 /* confdefs.h. */
66571 _ACEOF
66572 cat confdefs.h >>conftest.$ac_ext
66573 cat >>conftest.$ac_ext <<_ACEOF
66574 /* end confdefs.h. */
66575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66577 #define $ac_func innocuous_$ac_func
66579 /* System header to define __stub macros and hopefully few prototypes,
66580 which can conflict with char $ac_func (); below.
66581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66582 <limits.h> exists even on freestanding compilers. */
66584 #ifdef __STDC__
66585 # include <limits.h>
66586 #else
66587 # include <assert.h>
66588 #endif
66590 #undef $ac_func
66592 /* Override any gcc2 internal prototype to avoid an error. */
66593 #ifdef __cplusplus
66594 extern "C"
66596 #endif
66597 /* We use char because int might match the return type of a gcc2
66598 builtin and then its argument prototype would still apply. */
66599 char $ac_func ();
66600 /* The GNU C library defines this for functions which it implements
66601 to always fail with ENOSYS. Some functions are actually named
66602 something starting with __ and the normal name is an alias. */
66603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66604 choke me
66605 #else
66606 char (*f) () = $ac_func;
66607 #endif
66608 #ifdef __cplusplus
66610 #endif
66613 main ()
66615 return f != $ac_func;
66617 return 0;
66619 _ACEOF
66620 rm -f conftest.$ac_objext conftest$ac_exeext
66621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66622 (eval $ac_link) 2>conftest.er1
66623 ac_status=$?
66624 grep -v '^ *+' conftest.er1 >conftest.err
66625 rm -f conftest.er1
66626 cat conftest.err >&5
66627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66628 (exit $ac_status); } &&
66629 { ac_try='test -z "$ac_c_werror_flag"
66630 || test ! -s conftest.err'
66631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66632 (eval $ac_try) 2>&5
66633 ac_status=$?
66634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66635 (exit $ac_status); }; } &&
66636 { ac_try='test -s conftest$ac_exeext'
66637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66638 (eval $ac_try) 2>&5
66639 ac_status=$?
66640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66641 (exit $ac_status); }; }; then
66642 eval "$as_ac_var=yes"
66643 else
66644 echo "$as_me: failed program was:" >&5
66645 sed 's/^/| /' conftest.$ac_ext >&5
66647 eval "$as_ac_var=no"
66649 rm -f conftest.err conftest.$ac_objext \
66650 conftest$ac_exeext conftest.$ac_ext
66652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66654 if test `eval echo '${'$as_ac_var'}'` = yes; then
66655 cat >>confdefs.h <<_ACEOF
66656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66657 _ACEOF
66659 else
66660 ac_wfuncs=no
66662 done
66665 # Checks for wide character functions that are not required
66666 # for basic wchar_t support. Don't disable support if they are missing.
66667 # Injection of these is wrapped with guard macros.
66673 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66676 echo "$as_me:$LINENO: checking for $ac_func" >&5
66677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66678 if eval "test \"\${$as_ac_var+set}\" = set"; then
66679 echo $ECHO_N "(cached) $ECHO_C" >&6
66680 else
66681 if test x$gcc_no_link = xyes; then
66682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66684 { (exit 1); exit 1; }; }
66686 cat >conftest.$ac_ext <<_ACEOF
66687 /* confdefs.h. */
66688 _ACEOF
66689 cat confdefs.h >>conftest.$ac_ext
66690 cat >>conftest.$ac_ext <<_ACEOF
66691 /* end confdefs.h. */
66692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66694 #define $ac_func innocuous_$ac_func
66696 /* System header to define __stub macros and hopefully few prototypes,
66697 which can conflict with char $ac_func (); below.
66698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66699 <limits.h> exists even on freestanding compilers. */
66701 #ifdef __STDC__
66702 # include <limits.h>
66703 #else
66704 # include <assert.h>
66705 #endif
66707 #undef $ac_func
66709 /* Override any gcc2 internal prototype to avoid an error. */
66710 #ifdef __cplusplus
66711 extern "C"
66713 #endif
66714 /* We use char because int might match the return type of a gcc2
66715 builtin and then its argument prototype would still apply. */
66716 char $ac_func ();
66717 /* The GNU C library defines this for functions which it implements
66718 to always fail with ENOSYS. Some functions are actually named
66719 something starting with __ and the normal name is an alias. */
66720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66721 choke me
66722 #else
66723 char (*f) () = $ac_func;
66724 #endif
66725 #ifdef __cplusplus
66727 #endif
66730 main ()
66732 return f != $ac_func;
66734 return 0;
66736 _ACEOF
66737 rm -f conftest.$ac_objext conftest$ac_exeext
66738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66739 (eval $ac_link) 2>conftest.er1
66740 ac_status=$?
66741 grep -v '^ *+' conftest.er1 >conftest.err
66742 rm -f conftest.er1
66743 cat conftest.err >&5
66744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66745 (exit $ac_status); } &&
66746 { ac_try='test -z "$ac_c_werror_flag"
66747 || test ! -s conftest.err'
66748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66749 (eval $ac_try) 2>&5
66750 ac_status=$?
66751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66752 (exit $ac_status); }; } &&
66753 { ac_try='test -s conftest$ac_exeext'
66754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66755 (eval $ac_try) 2>&5
66756 ac_status=$?
66757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66758 (exit $ac_status); }; }; then
66759 eval "$as_ac_var=yes"
66760 else
66761 echo "$as_me: failed program was:" >&5
66762 sed 's/^/| /' conftest.$ac_ext >&5
66764 eval "$as_ac_var=no"
66766 rm -f conftest.err conftest.$ac_objext \
66767 conftest$ac_exeext conftest.$ac_ext
66769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66771 if test `eval echo '${'$as_ac_var'}'` = yes; then
66772 cat >>confdefs.h <<_ACEOF
66773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66774 _ACEOF
66777 done
66780 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
66781 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
66782 if test x"$has_weof" = xyes &&
66783 test x"$has_wchar_minmax" = xyes &&
66784 test x"$ac_wfuncs" = xyes;
66785 then
66786 ac_isoC99_wchar_t=yes
66787 else
66788 ac_isoC99_wchar_t=no
66790 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
66791 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
66793 # Use iconv for wchar_t to char conversions. As such, check for
66794 # X/Open Portability Guide, version 2 features (XPG2).
66795 if test "${ac_cv_header_iconv_h+set}" = set; then
66796 echo "$as_me:$LINENO: checking for iconv.h" >&5
66797 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66798 if test "${ac_cv_header_iconv_h+set}" = set; then
66799 echo $ECHO_N "(cached) $ECHO_C" >&6
66801 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66802 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66803 else
66804 # Is the header compilable?
66805 echo "$as_me:$LINENO: checking iconv.h usability" >&5
66806 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
66807 cat >conftest.$ac_ext <<_ACEOF
66808 /* confdefs.h. */
66809 _ACEOF
66810 cat confdefs.h >>conftest.$ac_ext
66811 cat >>conftest.$ac_ext <<_ACEOF
66812 /* end confdefs.h. */
66813 $ac_includes_default
66814 #include <iconv.h>
66815 _ACEOF
66816 rm -f conftest.$ac_objext
66817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66818 (eval $ac_compile) 2>conftest.er1
66819 ac_status=$?
66820 grep -v '^ *+' conftest.er1 >conftest.err
66821 rm -f conftest.er1
66822 cat conftest.err >&5
66823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66824 (exit $ac_status); } &&
66825 { ac_try='test -z "$ac_c_werror_flag"
66826 || test ! -s conftest.err'
66827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66828 (eval $ac_try) 2>&5
66829 ac_status=$?
66830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66831 (exit $ac_status); }; } &&
66832 { ac_try='test -s conftest.$ac_objext'
66833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66834 (eval $ac_try) 2>&5
66835 ac_status=$?
66836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66837 (exit $ac_status); }; }; then
66838 ac_header_compiler=yes
66839 else
66840 echo "$as_me: failed program was:" >&5
66841 sed 's/^/| /' conftest.$ac_ext >&5
66843 ac_header_compiler=no
66845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66847 echo "${ECHO_T}$ac_header_compiler" >&6
66849 # Is the header present?
66850 echo "$as_me:$LINENO: checking iconv.h presence" >&5
66851 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
66852 cat >conftest.$ac_ext <<_ACEOF
66853 /* confdefs.h. */
66854 _ACEOF
66855 cat confdefs.h >>conftest.$ac_ext
66856 cat >>conftest.$ac_ext <<_ACEOF
66857 /* end confdefs.h. */
66858 #include <iconv.h>
66859 _ACEOF
66860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66862 ac_status=$?
66863 grep -v '^ *+' conftest.er1 >conftest.err
66864 rm -f conftest.er1
66865 cat conftest.err >&5
66866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66867 (exit $ac_status); } >/dev/null; then
66868 if test -s conftest.err; then
66869 ac_cpp_err=$ac_c_preproc_warn_flag
66870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66871 else
66872 ac_cpp_err=
66874 else
66875 ac_cpp_err=yes
66877 if test -z "$ac_cpp_err"; then
66878 ac_header_preproc=yes
66879 else
66880 echo "$as_me: failed program was:" >&5
66881 sed 's/^/| /' conftest.$ac_ext >&5
66883 ac_header_preproc=no
66885 rm -f conftest.err conftest.$ac_ext
66886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66887 echo "${ECHO_T}$ac_header_preproc" >&6
66889 # So? What about this header?
66890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66891 yes:no: )
66892 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
66893 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
66894 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
66895 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
66896 ac_header_preproc=yes
66898 no:yes:* )
66899 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
66900 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
66901 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
66902 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
66903 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
66904 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
66905 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
66906 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
66907 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
66908 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
66909 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
66910 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
66912 cat <<\_ASBOX
66913 ## ----------------------------------------- ##
66914 ## Report this to the package-unused lists. ##
66915 ## ----------------------------------------- ##
66916 _ASBOX
66918 sed "s/^/$as_me: WARNING: /" >&2
66920 esac
66921 echo "$as_me:$LINENO: checking for iconv.h" >&5
66922 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66923 if test "${ac_cv_header_iconv_h+set}" = set; then
66924 echo $ECHO_N "(cached) $ECHO_C" >&6
66925 else
66926 ac_cv_header_iconv_h=$ac_header_preproc
66928 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66929 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66932 if test $ac_cv_header_iconv_h = yes; then
66933 ac_has_iconv_h=yes
66934 else
66935 ac_has_iconv_h=no
66939 if test "${ac_cv_header_langinfo_h+set}" = set; then
66940 echo "$as_me:$LINENO: checking for langinfo.h" >&5
66941 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
66942 if test "${ac_cv_header_langinfo_h+set}" = set; then
66943 echo $ECHO_N "(cached) $ECHO_C" >&6
66945 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
66946 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
66947 else
66948 # Is the header compilable?
66949 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
66950 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
66951 cat >conftest.$ac_ext <<_ACEOF
66952 /* confdefs.h. */
66953 _ACEOF
66954 cat confdefs.h >>conftest.$ac_ext
66955 cat >>conftest.$ac_ext <<_ACEOF
66956 /* end confdefs.h. */
66957 $ac_includes_default
66958 #include <langinfo.h>
66959 _ACEOF
66960 rm -f conftest.$ac_objext
66961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66962 (eval $ac_compile) 2>conftest.er1
66963 ac_status=$?
66964 grep -v '^ *+' conftest.er1 >conftest.err
66965 rm -f conftest.er1
66966 cat conftest.err >&5
66967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66968 (exit $ac_status); } &&
66969 { ac_try='test -z "$ac_c_werror_flag"
66970 || test ! -s conftest.err'
66971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66972 (eval $ac_try) 2>&5
66973 ac_status=$?
66974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66975 (exit $ac_status); }; } &&
66976 { ac_try='test -s conftest.$ac_objext'
66977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66978 (eval $ac_try) 2>&5
66979 ac_status=$?
66980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66981 (exit $ac_status); }; }; then
66982 ac_header_compiler=yes
66983 else
66984 echo "$as_me: failed program was:" >&5
66985 sed 's/^/| /' conftest.$ac_ext >&5
66987 ac_header_compiler=no
66989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66991 echo "${ECHO_T}$ac_header_compiler" >&6
66993 # Is the header present?
66994 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
66995 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
66996 cat >conftest.$ac_ext <<_ACEOF
66997 /* confdefs.h. */
66998 _ACEOF
66999 cat confdefs.h >>conftest.$ac_ext
67000 cat >>conftest.$ac_ext <<_ACEOF
67001 /* end confdefs.h. */
67002 #include <langinfo.h>
67003 _ACEOF
67004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67006 ac_status=$?
67007 grep -v '^ *+' conftest.er1 >conftest.err
67008 rm -f conftest.er1
67009 cat conftest.err >&5
67010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67011 (exit $ac_status); } >/dev/null; then
67012 if test -s conftest.err; then
67013 ac_cpp_err=$ac_c_preproc_warn_flag
67014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67015 else
67016 ac_cpp_err=
67018 else
67019 ac_cpp_err=yes
67021 if test -z "$ac_cpp_err"; then
67022 ac_header_preproc=yes
67023 else
67024 echo "$as_me: failed program was:" >&5
67025 sed 's/^/| /' conftest.$ac_ext >&5
67027 ac_header_preproc=no
67029 rm -f conftest.err conftest.$ac_ext
67030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67031 echo "${ECHO_T}$ac_header_preproc" >&6
67033 # So? What about this header?
67034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67035 yes:no: )
67036 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67037 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67038 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67039 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67040 ac_header_preproc=yes
67042 no:yes:* )
67043 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67044 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67045 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67046 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67047 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67048 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67049 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67050 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67051 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67052 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67053 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67054 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67056 cat <<\_ASBOX
67057 ## ----------------------------------------- ##
67058 ## Report this to the package-unused lists. ##
67059 ## ----------------------------------------- ##
67060 _ASBOX
67062 sed "s/^/$as_me: WARNING: /" >&2
67064 esac
67065 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67066 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67067 if test "${ac_cv_header_langinfo_h+set}" = set; then
67068 echo $ECHO_N "(cached) $ECHO_C" >&6
67069 else
67070 ac_cv_header_langinfo_h=$ac_header_preproc
67072 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67073 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67076 if test $ac_cv_header_langinfo_h = yes; then
67077 ac_has_langinfo_h=yes
67078 else
67079 ac_has_langinfo_h=no
67084 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67085 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67086 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67087 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67088 echo $ECHO_N "(cached) $ECHO_C" >&6
67089 else
67090 ac_check_lib_save_LIBS=$LIBS
67091 LIBS="-liconv $LIBS"
67092 if test x$gcc_no_link = xyes; then
67093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67095 { (exit 1); exit 1; }; }
67097 cat >conftest.$ac_ext <<_ACEOF
67098 /* confdefs.h. */
67099 _ACEOF
67100 cat confdefs.h >>conftest.$ac_ext
67101 cat >>conftest.$ac_ext <<_ACEOF
67102 /* end confdefs.h. */
67104 /* Override any gcc2 internal prototype to avoid an error. */
67105 #ifdef __cplusplus
67106 extern "C"
67107 #endif
67108 /* We use char because int might match the return type of a gcc2
67109 builtin and then its argument prototype would still apply. */
67110 char iconv ();
67112 main ()
67114 iconv ();
67116 return 0;
67118 _ACEOF
67119 rm -f conftest.$ac_objext conftest$ac_exeext
67120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67121 (eval $ac_link) 2>conftest.er1
67122 ac_status=$?
67123 grep -v '^ *+' conftest.er1 >conftest.err
67124 rm -f conftest.er1
67125 cat conftest.err >&5
67126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67127 (exit $ac_status); } &&
67128 { ac_try='test -z "$ac_c_werror_flag"
67129 || test ! -s conftest.err'
67130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67131 (eval $ac_try) 2>&5
67132 ac_status=$?
67133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67134 (exit $ac_status); }; } &&
67135 { ac_try='test -s conftest$ac_exeext'
67136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67137 (eval $ac_try) 2>&5
67138 ac_status=$?
67139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67140 (exit $ac_status); }; }; then
67141 ac_cv_lib_iconv_iconv=yes
67142 else
67143 echo "$as_me: failed program was:" >&5
67144 sed 's/^/| /' conftest.$ac_ext >&5
67146 ac_cv_lib_iconv_iconv=no
67148 rm -f conftest.err conftest.$ac_objext \
67149 conftest$ac_exeext conftest.$ac_ext
67150 LIBS=$ac_check_lib_save_LIBS
67152 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67153 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67154 if test $ac_cv_lib_iconv_iconv = yes; then
67155 libiconv="-liconv"
67158 ac_save_LIBS="$LIBS"
67159 LIBS="$LIBS $libiconv"
67165 for ac_func in iconv_open iconv_close iconv nl_langinfo
67167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67168 echo "$as_me:$LINENO: checking for $ac_func" >&5
67169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67170 if eval "test \"\${$as_ac_var+set}\" = set"; then
67171 echo $ECHO_N "(cached) $ECHO_C" >&6
67172 else
67173 if test x$gcc_no_link = xyes; then
67174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67176 { (exit 1); exit 1; }; }
67178 cat >conftest.$ac_ext <<_ACEOF
67179 /* confdefs.h. */
67180 _ACEOF
67181 cat confdefs.h >>conftest.$ac_ext
67182 cat >>conftest.$ac_ext <<_ACEOF
67183 /* end confdefs.h. */
67184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67186 #define $ac_func innocuous_$ac_func
67188 /* System header to define __stub macros and hopefully few prototypes,
67189 which can conflict with char $ac_func (); below.
67190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67191 <limits.h> exists even on freestanding compilers. */
67193 #ifdef __STDC__
67194 # include <limits.h>
67195 #else
67196 # include <assert.h>
67197 #endif
67199 #undef $ac_func
67201 /* Override any gcc2 internal prototype to avoid an error. */
67202 #ifdef __cplusplus
67203 extern "C"
67205 #endif
67206 /* We use char because int might match the return type of a gcc2
67207 builtin and then its argument prototype would still apply. */
67208 char $ac_func ();
67209 /* The GNU C library defines this for functions which it implements
67210 to always fail with ENOSYS. Some functions are actually named
67211 something starting with __ and the normal name is an alias. */
67212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67213 choke me
67214 #else
67215 char (*f) () = $ac_func;
67216 #endif
67217 #ifdef __cplusplus
67219 #endif
67222 main ()
67224 return f != $ac_func;
67226 return 0;
67228 _ACEOF
67229 rm -f conftest.$ac_objext conftest$ac_exeext
67230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67231 (eval $ac_link) 2>conftest.er1
67232 ac_status=$?
67233 grep -v '^ *+' conftest.er1 >conftest.err
67234 rm -f conftest.er1
67235 cat conftest.err >&5
67236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67237 (exit $ac_status); } &&
67238 { ac_try='test -z "$ac_c_werror_flag"
67239 || test ! -s conftest.err'
67240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67241 (eval $ac_try) 2>&5
67242 ac_status=$?
67243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67244 (exit $ac_status); }; } &&
67245 { ac_try='test -s conftest$ac_exeext'
67246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67247 (eval $ac_try) 2>&5
67248 ac_status=$?
67249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67250 (exit $ac_status); }; }; then
67251 eval "$as_ac_var=yes"
67252 else
67253 echo "$as_me: failed program was:" >&5
67254 sed 's/^/| /' conftest.$ac_ext >&5
67256 eval "$as_ac_var=no"
67258 rm -f conftest.err conftest.$ac_objext \
67259 conftest$ac_exeext conftest.$ac_ext
67261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67263 if test `eval echo '${'$as_ac_var'}'` = yes; then
67264 cat >>confdefs.h <<_ACEOF
67265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67266 _ACEOF
67267 ac_XPG2funcs=yes
67268 else
67269 ac_XPG2funcs=no
67271 done
67274 LIBS="$ac_save_LIBS"
67276 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67277 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67278 if test x"$ac_has_iconv_h" = xyes &&
67279 test x"$ac_has_langinfo_h" = xyes &&
67280 test x"$ac_XPG2funcs" = xyes;
67281 then
67282 ac_XPG2_wchar_t=yes
67283 else
67284 ac_XPG2_wchar_t=no
67286 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67287 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67289 # At the moment, only enable wchar_t specializations if all the
67290 # above support is present.
67291 if test x"$ac_isoC99_wchar_t" = xyes &&
67292 test x"$ac_XPG2_wchar_t" = xyes;
67293 then
67294 cat >>confdefs.h <<\_ACEOF
67295 #define _GLIBCXX_USE_WCHAR_T 1
67296 _ACEOF
67298 enable_wchar_t=yes
67301 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67302 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67303 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67304 echo "${ECHO_T}$enable_wchar_t" >&6
67306 cat >>confdefs.h <<\_ACEOF
67307 #define HAVE_COSF 1
67308 _ACEOF
67310 cat >>confdefs.h <<\_ACEOF
67311 #define HAVE_COSL 1
67312 _ACEOF
67314 cat >>confdefs.h <<\_ACEOF
67315 #define HAVE_COSHF 1
67316 _ACEOF
67318 cat >>confdefs.h <<\_ACEOF
67319 #define HAVE_COSHL 1
67320 _ACEOF
67322 cat >>confdefs.h <<\_ACEOF
67323 #define HAVE_LOGF 1
67324 _ACEOF
67326 cat >>confdefs.h <<\_ACEOF
67327 #define HAVE_LOGL 1
67328 _ACEOF
67330 cat >>confdefs.h <<\_ACEOF
67331 #define HAVE_LOG10F 1
67332 _ACEOF
67334 cat >>confdefs.h <<\_ACEOF
67335 #define HAVE_LOG10L 1
67336 _ACEOF
67338 cat >>confdefs.h <<\_ACEOF
67339 #define HAVE_SINF 1
67340 _ACEOF
67342 cat >>confdefs.h <<\_ACEOF
67343 #define HAVE_SINL 1
67344 _ACEOF
67346 cat >>confdefs.h <<\_ACEOF
67347 #define HAVE_SINHF 1
67348 _ACEOF
67350 cat >>confdefs.h <<\_ACEOF
67351 #define HAVE_SINHL 1
67352 _ACEOF
67355 *-solaris*)
67356 case "$target" in
67357 # *-solaris2.5)
67358 # os_include_dir="os/solaris/solaris2.5"
67359 # ;;
67360 # *-solaris2.6)
67361 # os_include_dir="os/solaris/solaris2.6"
67362 # ;;
67363 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67364 cat >>confdefs.h <<\_ACEOF
67365 #define HAVE_GETPAGESIZE 1
67366 _ACEOF
67368 cat >>confdefs.h <<\_ACEOF
67369 #define HAVE_SIGSETJMP 1
67370 _ACEOF
67372 cat >>confdefs.h <<\_ACEOF
67373 #define HAVE_MBSTATE_T 1
67374 _ACEOF
67376 cat >>confdefs.h <<\_ACEOF
67377 #define HAVE_POLL 1
67378 _ACEOF
67380 cat >>confdefs.h <<\_ACEOF
67381 #define HAVE_S_ISREG 1
67382 _ACEOF
67384 cat >>confdefs.h <<\_ACEOF
67385 #define HAVE_LC_MESSAGES 1
67386 _ACEOF
67388 cat >>confdefs.h <<\_ACEOF
67389 #define HAVE_BTOWC 1
67390 _ACEOF
67392 cat >>confdefs.h <<\_ACEOF
67393 #define HAVE_FGETWC 1
67394 _ACEOF
67396 cat >>confdefs.h <<\_ACEOF
67397 #define HAVE_FGETWS 1
67398 _ACEOF
67400 cat >>confdefs.h <<\_ACEOF
67401 #define HAVE_FINITE 1
67402 _ACEOF
67404 cat >>confdefs.h <<\_ACEOF
67405 #define HAVE_FPCLASS 1
67406 _ACEOF
67408 cat >>confdefs.h <<\_ACEOF
67409 #define HAVE_FPUTWC 1
67410 _ACEOF
67412 cat >>confdefs.h <<\_ACEOF
67413 #define HAVE_FPUTWS 1
67414 _ACEOF
67416 cat >>confdefs.h <<\_ACEOF
67417 #define HAVE_FWIDE 1
67418 _ACEOF
67420 cat >>confdefs.h <<\_ACEOF
67421 #define HAVE_FWPRINTF 1
67422 _ACEOF
67424 cat >>confdefs.h <<\_ACEOF
67425 #define HAVE_FWSCANF 1
67426 _ACEOF
67428 cat >>confdefs.h <<\_ACEOF
67429 #define HAVE_GETPAGESIZE 1
67430 _ACEOF
67432 cat >>confdefs.h <<\_ACEOF
67433 #define HAVE_GETWC 1
67434 _ACEOF
67436 cat >>confdefs.h <<\_ACEOF
67437 #define HAVE_GETWCHAR 1
67438 _ACEOF
67440 cat >>confdefs.h <<\_ACEOF
67441 #define HAVE_MBRLEN 1
67442 _ACEOF
67444 cat >>confdefs.h <<\_ACEOF
67445 #define HAVE_MBRTOWC 1
67446 _ACEOF
67448 cat >>confdefs.h <<\_ACEOF
67449 #define HAVE_MBSINIT 1
67450 _ACEOF
67452 cat >>confdefs.h <<\_ACEOF
67453 #define HAVE_MBSRTOWCS 1
67454 _ACEOF
67456 cat >>confdefs.h <<\_ACEOF
67457 #define HAVE_NL_LANGINFO 1
67458 _ACEOF
67460 cat >>confdefs.h <<\_ACEOF
67461 #define HAVE_PUTWC 1
67462 _ACEOF
67464 cat >>confdefs.h <<\_ACEOF
67465 #define HAVE_PUTWCHAR 1
67466 _ACEOF
67468 cat >>confdefs.h <<\_ACEOF
67469 #define HAVE_SWPRINTF 1
67470 _ACEOF
67472 cat >>confdefs.h <<\_ACEOF
67473 #define HAVE_SWSCANF 1
67474 _ACEOF
67476 cat >>confdefs.h <<\_ACEOF
67477 #define HAVE_UNGETWC 1
67478 _ACEOF
67480 cat >>confdefs.h <<\_ACEOF
67481 #define HAVE_VFWPRINTF 1
67482 _ACEOF
67484 cat >>confdefs.h <<\_ACEOF
67485 #define HAVE_VSWPRINTF 1
67486 _ACEOF
67488 cat >>confdefs.h <<\_ACEOF
67489 #define HAVE_VWPRINTF 1
67490 _ACEOF
67492 cat >>confdefs.h <<\_ACEOF
67493 #define HAVE_WCRTOMB 1
67494 _ACEOF
67496 cat >>confdefs.h <<\_ACEOF
67497 #define HAVE_WCSCAT 1
67498 _ACEOF
67500 cat >>confdefs.h <<\_ACEOF
67501 #define HAVE_WCSCHR 1
67502 _ACEOF
67504 cat >>confdefs.h <<\_ACEOF
67505 #define HAVE_WCSCMP 1
67506 _ACEOF
67508 cat >>confdefs.h <<\_ACEOF
67509 #define HAVE_WCSCOLL 1
67510 _ACEOF
67512 cat >>confdefs.h <<\_ACEOF
67513 #define HAVE_WCSCPY 1
67514 _ACEOF
67516 cat >>confdefs.h <<\_ACEOF
67517 #define HAVE_WCSCSPN 1
67518 _ACEOF
67520 cat >>confdefs.h <<\_ACEOF
67521 #define HAVE_WCSFTIME 1
67522 _ACEOF
67524 cat >>confdefs.h <<\_ACEOF
67525 #define HAVE_WCSLEN 1
67526 _ACEOF
67528 cat >>confdefs.h <<\_ACEOF
67529 #define HAVE_WCSNCAT 1
67530 _ACEOF
67532 cat >>confdefs.h <<\_ACEOF
67533 #define HAVE_WCSNCMP 1
67534 _ACEOF
67536 cat >>confdefs.h <<\_ACEOF
67537 #define HAVE_WCSNCPY 1
67538 _ACEOF
67540 cat >>confdefs.h <<\_ACEOF
67541 #define HAVE_WCSPBRK 1
67542 _ACEOF
67544 cat >>confdefs.h <<\_ACEOF
67545 #define HAVE_WCSRCHR 1
67546 _ACEOF
67548 cat >>confdefs.h <<\_ACEOF
67549 #define HAVE_WCSRTOMBS 1
67550 _ACEOF
67552 cat >>confdefs.h <<\_ACEOF
67553 #define HAVE_WCSSPN 1
67554 _ACEOF
67556 cat >>confdefs.h <<\_ACEOF
67557 #define HAVE_WCSSTR 1
67558 _ACEOF
67560 cat >>confdefs.h <<\_ACEOF
67561 #define HAVE_WCSTOD 1
67562 _ACEOF
67564 cat >>confdefs.h <<\_ACEOF
67565 #define HAVE_WCSTOK 1
67566 _ACEOF
67568 cat >>confdefs.h <<\_ACEOF
67569 #define HAVE_WCSTOL 1
67570 _ACEOF
67572 cat >>confdefs.h <<\_ACEOF
67573 #define HAVE_WCSTOUL 1
67574 _ACEOF
67576 cat >>confdefs.h <<\_ACEOF
67577 #define HAVE_WCSXFRM 1
67578 _ACEOF
67580 cat >>confdefs.h <<\_ACEOF
67581 #define HAVE_WCTOB 1
67582 _ACEOF
67584 cat >>confdefs.h <<\_ACEOF
67585 #define HAVE_WMEMCHR 1
67586 _ACEOF
67588 cat >>confdefs.h <<\_ACEOF
67589 #define HAVE_WMEMCMP 1
67590 _ACEOF
67592 cat >>confdefs.h <<\_ACEOF
67593 #define HAVE_WMEMCPY 1
67594 _ACEOF
67596 cat >>confdefs.h <<\_ACEOF
67597 #define HAVE_WMEMMOVE 1
67598 _ACEOF
67600 cat >>confdefs.h <<\_ACEOF
67601 #define HAVE_WMEMSET 1
67602 _ACEOF
67604 cat >>confdefs.h <<\_ACEOF
67605 #define HAVE_WPRINTF 1
67606 _ACEOF
67608 cat >>confdefs.h <<\_ACEOF
67609 #define HAVE_WSCANF 1
67610 _ACEOF
67612 cat >>confdefs.h <<\_ACEOF
67613 #define HAVE_ICONV 1
67614 _ACEOF
67616 cat >>confdefs.h <<\_ACEOF
67617 #define HAVE_ICONV_CLOSE 1
67618 _ACEOF
67620 cat >>confdefs.h <<\_ACEOF
67621 #define HAVE_ICONV_OPEN 1
67622 _ACEOF
67624 # Look for the pieces required for wchar_t support in order to
67625 # get all the right HAVE_* macros defined.
67627 # Test wchar.h for mbstate_t, which is needed for char_traits and
67628 # others even if wchar_t support is not on.
67629 echo "$as_me:$LINENO: checking for mbstate_t" >&5
67630 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67631 cat >conftest.$ac_ext <<_ACEOF
67632 /* confdefs.h. */
67633 _ACEOF
67634 cat confdefs.h >>conftest.$ac_ext
67635 cat >>conftest.$ac_ext <<_ACEOF
67636 /* end confdefs.h. */
67637 #include <wchar.h>
67639 main ()
67641 mbstate_t teststate;
67643 return 0;
67645 _ACEOF
67646 rm -f conftest.$ac_objext
67647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67648 (eval $ac_compile) 2>conftest.er1
67649 ac_status=$?
67650 grep -v '^ *+' conftest.er1 >conftest.err
67651 rm -f conftest.er1
67652 cat conftest.err >&5
67653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67654 (exit $ac_status); } &&
67655 { ac_try='test -z "$ac_c_werror_flag"
67656 || test ! -s conftest.err'
67657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67658 (eval $ac_try) 2>&5
67659 ac_status=$?
67660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67661 (exit $ac_status); }; } &&
67662 { ac_try='test -s conftest.$ac_objext'
67663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67664 (eval $ac_try) 2>&5
67665 ac_status=$?
67666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67667 (exit $ac_status); }; }; then
67668 have_mbstate_t=yes
67669 else
67670 echo "$as_me: failed program was:" >&5
67671 sed 's/^/| /' conftest.$ac_ext >&5
67673 have_mbstate_t=no
67675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67676 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67677 echo "${ECHO_T}$have_mbstate_t" >&6
67678 if test x"$have_mbstate_t" = xyes; then
67679 cat >>confdefs.h <<\_ACEOF
67680 #define HAVE_MBSTATE_T 1
67681 _ACEOF
67685 # Sanity check for existence of ISO C99 headers for extended encoding.
67687 for ac_header in wchar.h
67689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67691 echo "$as_me:$LINENO: checking for $ac_header" >&5
67692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67694 echo $ECHO_N "(cached) $ECHO_C" >&6
67696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67698 else
67699 # Is the header compilable?
67700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67702 cat >conftest.$ac_ext <<_ACEOF
67703 /* confdefs.h. */
67704 _ACEOF
67705 cat confdefs.h >>conftest.$ac_ext
67706 cat >>conftest.$ac_ext <<_ACEOF
67707 /* end confdefs.h. */
67708 $ac_includes_default
67709 #include <$ac_header>
67710 _ACEOF
67711 rm -f conftest.$ac_objext
67712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67713 (eval $ac_compile) 2>conftest.er1
67714 ac_status=$?
67715 grep -v '^ *+' conftest.er1 >conftest.err
67716 rm -f conftest.er1
67717 cat conftest.err >&5
67718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67719 (exit $ac_status); } &&
67720 { ac_try='test -z "$ac_c_werror_flag"
67721 || test ! -s conftest.err'
67722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67723 (eval $ac_try) 2>&5
67724 ac_status=$?
67725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67726 (exit $ac_status); }; } &&
67727 { ac_try='test -s conftest.$ac_objext'
67728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67729 (eval $ac_try) 2>&5
67730 ac_status=$?
67731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67732 (exit $ac_status); }; }; then
67733 ac_header_compiler=yes
67734 else
67735 echo "$as_me: failed program was:" >&5
67736 sed 's/^/| /' conftest.$ac_ext >&5
67738 ac_header_compiler=no
67740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67742 echo "${ECHO_T}$ac_header_compiler" >&6
67744 # Is the header present?
67745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67747 cat >conftest.$ac_ext <<_ACEOF
67748 /* confdefs.h. */
67749 _ACEOF
67750 cat confdefs.h >>conftest.$ac_ext
67751 cat >>conftest.$ac_ext <<_ACEOF
67752 /* end confdefs.h. */
67753 #include <$ac_header>
67754 _ACEOF
67755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67757 ac_status=$?
67758 grep -v '^ *+' conftest.er1 >conftest.err
67759 rm -f conftest.er1
67760 cat conftest.err >&5
67761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67762 (exit $ac_status); } >/dev/null; then
67763 if test -s conftest.err; then
67764 ac_cpp_err=$ac_c_preproc_warn_flag
67765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67766 else
67767 ac_cpp_err=
67769 else
67770 ac_cpp_err=yes
67772 if test -z "$ac_cpp_err"; then
67773 ac_header_preproc=yes
67774 else
67775 echo "$as_me: failed program was:" >&5
67776 sed 's/^/| /' conftest.$ac_ext >&5
67778 ac_header_preproc=no
67780 rm -f conftest.err conftest.$ac_ext
67781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67782 echo "${ECHO_T}$ac_header_preproc" >&6
67784 # So? What about this header?
67785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67786 yes:no: )
67787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67791 ac_header_preproc=yes
67793 no:yes:* )
67794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67807 cat <<\_ASBOX
67808 ## ----------------------------------------- ##
67809 ## Report this to the package-unused lists. ##
67810 ## ----------------------------------------- ##
67811 _ASBOX
67813 sed "s/^/$as_me: WARNING: /" >&2
67815 esac
67816 echo "$as_me:$LINENO: checking for $ac_header" >&5
67817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67819 echo $ECHO_N "(cached) $ECHO_C" >&6
67820 else
67821 eval "$as_ac_Header=\$ac_header_preproc"
67823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67828 cat >>confdefs.h <<_ACEOF
67829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67830 _ACEOF
67831 ac_has_wchar_h=yes
67832 else
67833 ac_has_wchar_h=no
67836 done
67839 for ac_header in wctype.h
67841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67843 echo "$as_me:$LINENO: checking for $ac_header" >&5
67844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67846 echo $ECHO_N "(cached) $ECHO_C" >&6
67848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67850 else
67851 # Is the header compilable?
67852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67854 cat >conftest.$ac_ext <<_ACEOF
67855 /* confdefs.h. */
67856 _ACEOF
67857 cat confdefs.h >>conftest.$ac_ext
67858 cat >>conftest.$ac_ext <<_ACEOF
67859 /* end confdefs.h. */
67860 $ac_includes_default
67861 #include <$ac_header>
67862 _ACEOF
67863 rm -f conftest.$ac_objext
67864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67865 (eval $ac_compile) 2>conftest.er1
67866 ac_status=$?
67867 grep -v '^ *+' conftest.er1 >conftest.err
67868 rm -f conftest.er1
67869 cat conftest.err >&5
67870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67871 (exit $ac_status); } &&
67872 { ac_try='test -z "$ac_c_werror_flag"
67873 || test ! -s conftest.err'
67874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67875 (eval $ac_try) 2>&5
67876 ac_status=$?
67877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67878 (exit $ac_status); }; } &&
67879 { ac_try='test -s conftest.$ac_objext'
67880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67881 (eval $ac_try) 2>&5
67882 ac_status=$?
67883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67884 (exit $ac_status); }; }; then
67885 ac_header_compiler=yes
67886 else
67887 echo "$as_me: failed program was:" >&5
67888 sed 's/^/| /' conftest.$ac_ext >&5
67890 ac_header_compiler=no
67892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67894 echo "${ECHO_T}$ac_header_compiler" >&6
67896 # Is the header present?
67897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67899 cat >conftest.$ac_ext <<_ACEOF
67900 /* confdefs.h. */
67901 _ACEOF
67902 cat confdefs.h >>conftest.$ac_ext
67903 cat >>conftest.$ac_ext <<_ACEOF
67904 /* end confdefs.h. */
67905 #include <$ac_header>
67906 _ACEOF
67907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67909 ac_status=$?
67910 grep -v '^ *+' conftest.er1 >conftest.err
67911 rm -f conftest.er1
67912 cat conftest.err >&5
67913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67914 (exit $ac_status); } >/dev/null; then
67915 if test -s conftest.err; then
67916 ac_cpp_err=$ac_c_preproc_warn_flag
67917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67918 else
67919 ac_cpp_err=
67921 else
67922 ac_cpp_err=yes
67924 if test -z "$ac_cpp_err"; then
67925 ac_header_preproc=yes
67926 else
67927 echo "$as_me: failed program was:" >&5
67928 sed 's/^/| /' conftest.$ac_ext >&5
67930 ac_header_preproc=no
67932 rm -f conftest.err conftest.$ac_ext
67933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67934 echo "${ECHO_T}$ac_header_preproc" >&6
67936 # So? What about this header?
67937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67938 yes:no: )
67939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67943 ac_header_preproc=yes
67945 no:yes:* )
67946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67959 cat <<\_ASBOX
67960 ## ----------------------------------------- ##
67961 ## Report this to the package-unused lists. ##
67962 ## ----------------------------------------- ##
67963 _ASBOX
67965 sed "s/^/$as_me: WARNING: /" >&2
67967 esac
67968 echo "$as_me:$LINENO: checking for $ac_header" >&5
67969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67971 echo $ECHO_N "(cached) $ECHO_C" >&6
67972 else
67973 eval "$as_ac_Header=\$ac_header_preproc"
67975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67980 cat >>confdefs.h <<_ACEOF
67981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67982 _ACEOF
67983 ac_has_wctype_h=yes
67984 else
67985 ac_has_wctype_h=no
67988 done
67991 # Only continue checking if the ISO C99 headers exist and support is on.
67992 if test x"$ac_has_wchar_h" = xyes &&
67993 test x"$ac_has_wctype_h" = xyes &&
67994 test x"$enable_c_mbchar" != xno; then
67996 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
67997 # numeric_limits can instantiate type_traits<wchar_t>
67998 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
67999 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68000 cat >conftest.$ac_ext <<_ACEOF
68001 /* confdefs.h. */
68002 _ACEOF
68003 cat confdefs.h >>conftest.$ac_ext
68004 cat >>conftest.$ac_ext <<_ACEOF
68005 /* end confdefs.h. */
68006 #include <wchar.h>
68008 main ()
68010 int i = WCHAR_MIN; int j = WCHAR_MAX;
68012 return 0;
68014 _ACEOF
68015 rm -f conftest.$ac_objext
68016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68017 (eval $ac_compile) 2>conftest.er1
68018 ac_status=$?
68019 grep -v '^ *+' conftest.er1 >conftest.err
68020 rm -f conftest.er1
68021 cat conftest.err >&5
68022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68023 (exit $ac_status); } &&
68024 { ac_try='test -z "$ac_c_werror_flag"
68025 || test ! -s conftest.err'
68026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68027 (eval $ac_try) 2>&5
68028 ac_status=$?
68029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68030 (exit $ac_status); }; } &&
68031 { ac_try='test -s conftest.$ac_objext'
68032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68033 (eval $ac_try) 2>&5
68034 ac_status=$?
68035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68036 (exit $ac_status); }; }; then
68037 has_wchar_minmax=yes
68038 else
68039 echo "$as_me: failed program was:" >&5
68040 sed 's/^/| /' conftest.$ac_ext >&5
68042 has_wchar_minmax=no
68044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68045 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68046 echo "${ECHO_T}$has_wchar_minmax" >&6
68048 # Test wchar.h for WEOF, which is what we use to determine whether
68049 # to specialize for char_traits<wchar_t> or not.
68050 echo "$as_me:$LINENO: checking for WEOF" >&5
68051 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68052 cat >conftest.$ac_ext <<_ACEOF
68053 /* confdefs.h. */
68054 _ACEOF
68055 cat confdefs.h >>conftest.$ac_ext
68056 cat >>conftest.$ac_ext <<_ACEOF
68057 /* end confdefs.h. */
68059 #include <wchar.h>
68060 #include <stddef.h>
68062 main ()
68064 wint_t i = WEOF;
68066 return 0;
68068 _ACEOF
68069 rm -f conftest.$ac_objext
68070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68071 (eval $ac_compile) 2>conftest.er1
68072 ac_status=$?
68073 grep -v '^ *+' conftest.er1 >conftest.err
68074 rm -f conftest.er1
68075 cat conftest.err >&5
68076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68077 (exit $ac_status); } &&
68078 { ac_try='test -z "$ac_c_werror_flag"
68079 || test ! -s conftest.err'
68080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68081 (eval $ac_try) 2>&5
68082 ac_status=$?
68083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68084 (exit $ac_status); }; } &&
68085 { ac_try='test -s conftest.$ac_objext'
68086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68087 (eval $ac_try) 2>&5
68088 ac_status=$?
68089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68090 (exit $ac_status); }; }; then
68091 has_weof=yes
68092 else
68093 echo "$as_me: failed program was:" >&5
68094 sed 's/^/| /' conftest.$ac_ext >&5
68096 has_weof=no
68098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68099 echo "$as_me:$LINENO: result: $has_weof" >&5
68100 echo "${ECHO_T}$has_weof" >&6
68102 # Tests for wide character functions used in char_traits<wchar_t>.
68103 ac_wfuncs=yes
68110 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68113 echo "$as_me:$LINENO: checking for $ac_func" >&5
68114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68115 if eval "test \"\${$as_ac_var+set}\" = set"; then
68116 echo $ECHO_N "(cached) $ECHO_C" >&6
68117 else
68118 if test x$gcc_no_link = xyes; then
68119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68121 { (exit 1); exit 1; }; }
68123 cat >conftest.$ac_ext <<_ACEOF
68124 /* confdefs.h. */
68125 _ACEOF
68126 cat confdefs.h >>conftest.$ac_ext
68127 cat >>conftest.$ac_ext <<_ACEOF
68128 /* end confdefs.h. */
68129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68131 #define $ac_func innocuous_$ac_func
68133 /* System header to define __stub macros and hopefully few prototypes,
68134 which can conflict with char $ac_func (); below.
68135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68136 <limits.h> exists even on freestanding compilers. */
68138 #ifdef __STDC__
68139 # include <limits.h>
68140 #else
68141 # include <assert.h>
68142 #endif
68144 #undef $ac_func
68146 /* Override any gcc2 internal prototype to avoid an error. */
68147 #ifdef __cplusplus
68148 extern "C"
68150 #endif
68151 /* We use char because int might match the return type of a gcc2
68152 builtin and then its argument prototype would still apply. */
68153 char $ac_func ();
68154 /* The GNU C library defines this for functions which it implements
68155 to always fail with ENOSYS. Some functions are actually named
68156 something starting with __ and the normal name is an alias. */
68157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68158 choke me
68159 #else
68160 char (*f) () = $ac_func;
68161 #endif
68162 #ifdef __cplusplus
68164 #endif
68167 main ()
68169 return f != $ac_func;
68171 return 0;
68173 _ACEOF
68174 rm -f conftest.$ac_objext conftest$ac_exeext
68175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68176 (eval $ac_link) 2>conftest.er1
68177 ac_status=$?
68178 grep -v '^ *+' conftest.er1 >conftest.err
68179 rm -f conftest.er1
68180 cat conftest.err >&5
68181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68182 (exit $ac_status); } &&
68183 { ac_try='test -z "$ac_c_werror_flag"
68184 || test ! -s conftest.err'
68185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68186 (eval $ac_try) 2>&5
68187 ac_status=$?
68188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68189 (exit $ac_status); }; } &&
68190 { ac_try='test -s conftest$ac_exeext'
68191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68192 (eval $ac_try) 2>&5
68193 ac_status=$?
68194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68195 (exit $ac_status); }; }; then
68196 eval "$as_ac_var=yes"
68197 else
68198 echo "$as_me: failed program was:" >&5
68199 sed 's/^/| /' conftest.$ac_ext >&5
68201 eval "$as_ac_var=no"
68203 rm -f conftest.err conftest.$ac_objext \
68204 conftest$ac_exeext conftest.$ac_ext
68206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68208 if test `eval echo '${'$as_ac_var'}'` = yes; then
68209 cat >>confdefs.h <<_ACEOF
68210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68211 _ACEOF
68213 else
68214 ac_wfuncs=no
68216 done
68219 # Checks for names injected into std:: by the c_std headers.
68266 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68267 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68268 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68269 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68270 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68271 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68274 echo "$as_me:$LINENO: checking for $ac_func" >&5
68275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68276 if eval "test \"\${$as_ac_var+set}\" = set"; then
68277 echo $ECHO_N "(cached) $ECHO_C" >&6
68278 else
68279 if test x$gcc_no_link = xyes; then
68280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68282 { (exit 1); exit 1; }; }
68284 cat >conftest.$ac_ext <<_ACEOF
68285 /* confdefs.h. */
68286 _ACEOF
68287 cat confdefs.h >>conftest.$ac_ext
68288 cat >>conftest.$ac_ext <<_ACEOF
68289 /* end confdefs.h. */
68290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68292 #define $ac_func innocuous_$ac_func
68294 /* System header to define __stub macros and hopefully few prototypes,
68295 which can conflict with char $ac_func (); below.
68296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68297 <limits.h> exists even on freestanding compilers. */
68299 #ifdef __STDC__
68300 # include <limits.h>
68301 #else
68302 # include <assert.h>
68303 #endif
68305 #undef $ac_func
68307 /* Override any gcc2 internal prototype to avoid an error. */
68308 #ifdef __cplusplus
68309 extern "C"
68311 #endif
68312 /* We use char because int might match the return type of a gcc2
68313 builtin and then its argument prototype would still apply. */
68314 char $ac_func ();
68315 /* The GNU C library defines this for functions which it implements
68316 to always fail with ENOSYS. Some functions are actually named
68317 something starting with __ and the normal name is an alias. */
68318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68319 choke me
68320 #else
68321 char (*f) () = $ac_func;
68322 #endif
68323 #ifdef __cplusplus
68325 #endif
68328 main ()
68330 return f != $ac_func;
68332 return 0;
68334 _ACEOF
68335 rm -f conftest.$ac_objext conftest$ac_exeext
68336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68337 (eval $ac_link) 2>conftest.er1
68338 ac_status=$?
68339 grep -v '^ *+' conftest.er1 >conftest.err
68340 rm -f conftest.er1
68341 cat conftest.err >&5
68342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68343 (exit $ac_status); } &&
68344 { ac_try='test -z "$ac_c_werror_flag"
68345 || test ! -s conftest.err'
68346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68347 (eval $ac_try) 2>&5
68348 ac_status=$?
68349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68350 (exit $ac_status); }; } &&
68351 { ac_try='test -s conftest$ac_exeext'
68352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68353 (eval $ac_try) 2>&5
68354 ac_status=$?
68355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68356 (exit $ac_status); }; }; then
68357 eval "$as_ac_var=yes"
68358 else
68359 echo "$as_me: failed program was:" >&5
68360 sed 's/^/| /' conftest.$ac_ext >&5
68362 eval "$as_ac_var=no"
68364 rm -f conftest.err conftest.$ac_objext \
68365 conftest$ac_exeext conftest.$ac_ext
68367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68369 if test `eval echo '${'$as_ac_var'}'` = yes; then
68370 cat >>confdefs.h <<_ACEOF
68371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68372 _ACEOF
68374 else
68375 ac_wfuncs=no
68377 done
68380 # Checks for wide character functions that are not required
68381 # for basic wchar_t support. Don't disable support if they are missing.
68382 # Injection of these is wrapped with guard macros.
68388 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68391 echo "$as_me:$LINENO: checking for $ac_func" >&5
68392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68393 if eval "test \"\${$as_ac_var+set}\" = set"; then
68394 echo $ECHO_N "(cached) $ECHO_C" >&6
68395 else
68396 if test x$gcc_no_link = xyes; then
68397 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68398 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68399 { (exit 1); exit 1; }; }
68401 cat >conftest.$ac_ext <<_ACEOF
68402 /* confdefs.h. */
68403 _ACEOF
68404 cat confdefs.h >>conftest.$ac_ext
68405 cat >>conftest.$ac_ext <<_ACEOF
68406 /* end confdefs.h. */
68407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68409 #define $ac_func innocuous_$ac_func
68411 /* System header to define __stub macros and hopefully few prototypes,
68412 which can conflict with char $ac_func (); below.
68413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68414 <limits.h> exists even on freestanding compilers. */
68416 #ifdef __STDC__
68417 # include <limits.h>
68418 #else
68419 # include <assert.h>
68420 #endif
68422 #undef $ac_func
68424 /* Override any gcc2 internal prototype to avoid an error. */
68425 #ifdef __cplusplus
68426 extern "C"
68428 #endif
68429 /* We use char because int might match the return type of a gcc2
68430 builtin and then its argument prototype would still apply. */
68431 char $ac_func ();
68432 /* The GNU C library defines this for functions which it implements
68433 to always fail with ENOSYS. Some functions are actually named
68434 something starting with __ and the normal name is an alias. */
68435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68436 choke me
68437 #else
68438 char (*f) () = $ac_func;
68439 #endif
68440 #ifdef __cplusplus
68442 #endif
68445 main ()
68447 return f != $ac_func;
68449 return 0;
68451 _ACEOF
68452 rm -f conftest.$ac_objext conftest$ac_exeext
68453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68454 (eval $ac_link) 2>conftest.er1
68455 ac_status=$?
68456 grep -v '^ *+' conftest.er1 >conftest.err
68457 rm -f conftest.er1
68458 cat conftest.err >&5
68459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68460 (exit $ac_status); } &&
68461 { ac_try='test -z "$ac_c_werror_flag"
68462 || test ! -s conftest.err'
68463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68464 (eval $ac_try) 2>&5
68465 ac_status=$?
68466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68467 (exit $ac_status); }; } &&
68468 { ac_try='test -s conftest$ac_exeext'
68469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68470 (eval $ac_try) 2>&5
68471 ac_status=$?
68472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68473 (exit $ac_status); }; }; then
68474 eval "$as_ac_var=yes"
68475 else
68476 echo "$as_me: failed program was:" >&5
68477 sed 's/^/| /' conftest.$ac_ext >&5
68479 eval "$as_ac_var=no"
68481 rm -f conftest.err conftest.$ac_objext \
68482 conftest$ac_exeext conftest.$ac_ext
68484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68486 if test `eval echo '${'$as_ac_var'}'` = yes; then
68487 cat >>confdefs.h <<_ACEOF
68488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68489 _ACEOF
68492 done
68495 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68496 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68497 if test x"$has_weof" = xyes &&
68498 test x"$has_wchar_minmax" = xyes &&
68499 test x"$ac_wfuncs" = xyes;
68500 then
68501 ac_isoC99_wchar_t=yes
68502 else
68503 ac_isoC99_wchar_t=no
68505 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68506 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68508 # Use iconv for wchar_t to char conversions. As such, check for
68509 # X/Open Portability Guide, version 2 features (XPG2).
68510 if test "${ac_cv_header_iconv_h+set}" = set; then
68511 echo "$as_me:$LINENO: checking for iconv.h" >&5
68512 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68513 if test "${ac_cv_header_iconv_h+set}" = set; then
68514 echo $ECHO_N "(cached) $ECHO_C" >&6
68516 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68517 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68518 else
68519 # Is the header compilable?
68520 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68521 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68522 cat >conftest.$ac_ext <<_ACEOF
68523 /* confdefs.h. */
68524 _ACEOF
68525 cat confdefs.h >>conftest.$ac_ext
68526 cat >>conftest.$ac_ext <<_ACEOF
68527 /* end confdefs.h. */
68528 $ac_includes_default
68529 #include <iconv.h>
68530 _ACEOF
68531 rm -f conftest.$ac_objext
68532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68533 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
68554 else
68555 echo "$as_me: failed program was:" >&5
68556 sed 's/^/| /' conftest.$ac_ext >&5
68558 ac_header_compiler=no
68560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68562 echo "${ECHO_T}$ac_header_compiler" >&6
68564 # Is the header present?
68565 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68566 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68567 cat >conftest.$ac_ext <<_ACEOF
68568 /* confdefs.h. */
68569 _ACEOF
68570 cat confdefs.h >>conftest.$ac_ext
68571 cat >>conftest.$ac_ext <<_ACEOF
68572 /* end confdefs.h. */
68573 #include <iconv.h>
68574 _ACEOF
68575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68577 ac_status=$?
68578 grep -v '^ *+' conftest.er1 >conftest.err
68579 rm -f conftest.er1
68580 cat conftest.err >&5
68581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68582 (exit $ac_status); } >/dev/null; then
68583 if test -s conftest.err; then
68584 ac_cpp_err=$ac_c_preproc_warn_flag
68585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68586 else
68587 ac_cpp_err=
68589 else
68590 ac_cpp_err=yes
68592 if test -z "$ac_cpp_err"; then
68593 ac_header_preproc=yes
68594 else
68595 echo "$as_me: failed program was:" >&5
68596 sed 's/^/| /' conftest.$ac_ext >&5
68598 ac_header_preproc=no
68600 rm -f conftest.err conftest.$ac_ext
68601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68602 echo "${ECHO_T}$ac_header_preproc" >&6
68604 # So? What about this header?
68605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68606 yes:no: )
68607 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68608 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68609 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68610 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68611 ac_header_preproc=yes
68613 no:yes:* )
68614 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68615 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68616 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
68617 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
68618 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68619 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68620 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
68621 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
68622 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68623 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68624 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68625 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68627 cat <<\_ASBOX
68628 ## ----------------------------------------- ##
68629 ## Report this to the package-unused lists. ##
68630 ## ----------------------------------------- ##
68631 _ASBOX
68633 sed "s/^/$as_me: WARNING: /" >&2
68635 esac
68636 echo "$as_me:$LINENO: checking for iconv.h" >&5
68637 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68638 if test "${ac_cv_header_iconv_h+set}" = set; then
68639 echo $ECHO_N "(cached) $ECHO_C" >&6
68640 else
68641 ac_cv_header_iconv_h=$ac_header_preproc
68643 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68644 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68647 if test $ac_cv_header_iconv_h = yes; then
68648 ac_has_iconv_h=yes
68649 else
68650 ac_has_iconv_h=no
68654 if test "${ac_cv_header_langinfo_h+set}" = set; then
68655 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68656 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68657 if test "${ac_cv_header_langinfo_h+set}" = set; then
68658 echo $ECHO_N "(cached) $ECHO_C" >&6
68660 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68661 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68662 else
68663 # Is the header compilable?
68664 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68665 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68666 cat >conftest.$ac_ext <<_ACEOF
68667 /* confdefs.h. */
68668 _ACEOF
68669 cat confdefs.h >>conftest.$ac_ext
68670 cat >>conftest.$ac_ext <<_ACEOF
68671 /* end confdefs.h. */
68672 $ac_includes_default
68673 #include <langinfo.h>
68674 _ACEOF
68675 rm -f conftest.$ac_objext
68676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68677 (eval $ac_compile) 2>conftest.er1
68678 ac_status=$?
68679 grep -v '^ *+' conftest.er1 >conftest.err
68680 rm -f conftest.er1
68681 cat conftest.err >&5
68682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68683 (exit $ac_status); } &&
68684 { ac_try='test -z "$ac_c_werror_flag"
68685 || test ! -s conftest.err'
68686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68687 (eval $ac_try) 2>&5
68688 ac_status=$?
68689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68690 (exit $ac_status); }; } &&
68691 { ac_try='test -s conftest.$ac_objext'
68692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68693 (eval $ac_try) 2>&5
68694 ac_status=$?
68695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68696 (exit $ac_status); }; }; then
68697 ac_header_compiler=yes
68698 else
68699 echo "$as_me: failed program was:" >&5
68700 sed 's/^/| /' conftest.$ac_ext >&5
68702 ac_header_compiler=no
68704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68706 echo "${ECHO_T}$ac_header_compiler" >&6
68708 # Is the header present?
68709 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
68710 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
68711 cat >conftest.$ac_ext <<_ACEOF
68712 /* confdefs.h. */
68713 _ACEOF
68714 cat confdefs.h >>conftest.$ac_ext
68715 cat >>conftest.$ac_ext <<_ACEOF
68716 /* end confdefs.h. */
68717 #include <langinfo.h>
68718 _ACEOF
68719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68721 ac_status=$?
68722 grep -v '^ *+' conftest.er1 >conftest.err
68723 rm -f conftest.er1
68724 cat conftest.err >&5
68725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68726 (exit $ac_status); } >/dev/null; then
68727 if test -s conftest.err; then
68728 ac_cpp_err=$ac_c_preproc_warn_flag
68729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68730 else
68731 ac_cpp_err=
68733 else
68734 ac_cpp_err=yes
68736 if test -z "$ac_cpp_err"; then
68737 ac_header_preproc=yes
68738 else
68739 echo "$as_me: failed program was:" >&5
68740 sed 's/^/| /' conftest.$ac_ext >&5
68742 ac_header_preproc=no
68744 rm -f conftest.err conftest.$ac_ext
68745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68746 echo "${ECHO_T}$ac_header_preproc" >&6
68748 # So? What about this header?
68749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68750 yes:no: )
68751 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
68752 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68753 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
68754 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
68755 ac_header_preproc=yes
68757 no:yes:* )
68758 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
68759 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
68760 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
68761 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
68762 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
68763 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
68764 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
68765 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
68766 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
68767 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
68768 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
68769 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
68771 cat <<\_ASBOX
68772 ## ----------------------------------------- ##
68773 ## Report this to the package-unused lists. ##
68774 ## ----------------------------------------- ##
68775 _ASBOX
68777 sed "s/^/$as_me: WARNING: /" >&2
68779 esac
68780 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68781 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68782 if test "${ac_cv_header_langinfo_h+set}" = set; then
68783 echo $ECHO_N "(cached) $ECHO_C" >&6
68784 else
68785 ac_cv_header_langinfo_h=$ac_header_preproc
68787 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68788 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68791 if test $ac_cv_header_langinfo_h = yes; then
68792 ac_has_langinfo_h=yes
68793 else
68794 ac_has_langinfo_h=no
68799 # Check for existence of libiconv.a providing XPG2 wchar_t support.
68800 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
68801 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
68802 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
68803 echo $ECHO_N "(cached) $ECHO_C" >&6
68804 else
68805 ac_check_lib_save_LIBS=$LIBS
68806 LIBS="-liconv $LIBS"
68807 if test x$gcc_no_link = xyes; then
68808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68810 { (exit 1); exit 1; }; }
68812 cat >conftest.$ac_ext <<_ACEOF
68813 /* confdefs.h. */
68814 _ACEOF
68815 cat confdefs.h >>conftest.$ac_ext
68816 cat >>conftest.$ac_ext <<_ACEOF
68817 /* end confdefs.h. */
68819 /* Override any gcc2 internal prototype to avoid an error. */
68820 #ifdef __cplusplus
68821 extern "C"
68822 #endif
68823 /* We use char because int might match the return type of a gcc2
68824 builtin and then its argument prototype would still apply. */
68825 char iconv ();
68827 main ()
68829 iconv ();
68831 return 0;
68833 _ACEOF
68834 rm -f conftest.$ac_objext conftest$ac_exeext
68835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68836 (eval $ac_link) 2>conftest.er1
68837 ac_status=$?
68838 grep -v '^ *+' conftest.er1 >conftest.err
68839 rm -f conftest.er1
68840 cat conftest.err >&5
68841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68842 (exit $ac_status); } &&
68843 { ac_try='test -z "$ac_c_werror_flag"
68844 || test ! -s conftest.err'
68845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68846 (eval $ac_try) 2>&5
68847 ac_status=$?
68848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68849 (exit $ac_status); }; } &&
68850 { ac_try='test -s conftest$ac_exeext'
68851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68852 (eval $ac_try) 2>&5
68853 ac_status=$?
68854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68855 (exit $ac_status); }; }; then
68856 ac_cv_lib_iconv_iconv=yes
68857 else
68858 echo "$as_me: failed program was:" >&5
68859 sed 's/^/| /' conftest.$ac_ext >&5
68861 ac_cv_lib_iconv_iconv=no
68863 rm -f conftest.err conftest.$ac_objext \
68864 conftest$ac_exeext conftest.$ac_ext
68865 LIBS=$ac_check_lib_save_LIBS
68867 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
68868 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
68869 if test $ac_cv_lib_iconv_iconv = yes; then
68870 libiconv="-liconv"
68873 ac_save_LIBS="$LIBS"
68874 LIBS="$LIBS $libiconv"
68880 for ac_func in iconv_open iconv_close iconv nl_langinfo
68882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68883 echo "$as_me:$LINENO: checking for $ac_func" >&5
68884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68885 if eval "test \"\${$as_ac_var+set}\" = set"; then
68886 echo $ECHO_N "(cached) $ECHO_C" >&6
68887 else
68888 if test x$gcc_no_link = xyes; then
68889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68891 { (exit 1); exit 1; }; }
68893 cat >conftest.$ac_ext <<_ACEOF
68894 /* confdefs.h. */
68895 _ACEOF
68896 cat confdefs.h >>conftest.$ac_ext
68897 cat >>conftest.$ac_ext <<_ACEOF
68898 /* end confdefs.h. */
68899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68901 #define $ac_func innocuous_$ac_func
68903 /* System header to define __stub macros and hopefully few prototypes,
68904 which can conflict with char $ac_func (); below.
68905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68906 <limits.h> exists even on freestanding compilers. */
68908 #ifdef __STDC__
68909 # include <limits.h>
68910 #else
68911 # include <assert.h>
68912 #endif
68914 #undef $ac_func
68916 /* Override any gcc2 internal prototype to avoid an error. */
68917 #ifdef __cplusplus
68918 extern "C"
68920 #endif
68921 /* We use char because int might match the return type of a gcc2
68922 builtin and then its argument prototype would still apply. */
68923 char $ac_func ();
68924 /* The GNU C library defines this for functions which it implements
68925 to always fail with ENOSYS. Some functions are actually named
68926 something starting with __ and the normal name is an alias. */
68927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68928 choke me
68929 #else
68930 char (*f) () = $ac_func;
68931 #endif
68932 #ifdef __cplusplus
68934 #endif
68937 main ()
68939 return f != $ac_func;
68941 return 0;
68943 _ACEOF
68944 rm -f conftest.$ac_objext conftest$ac_exeext
68945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68946 (eval $ac_link) 2>conftest.er1
68947 ac_status=$?
68948 grep -v '^ *+' conftest.er1 >conftest.err
68949 rm -f conftest.er1
68950 cat conftest.err >&5
68951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68952 (exit $ac_status); } &&
68953 { ac_try='test -z "$ac_c_werror_flag"
68954 || test ! -s conftest.err'
68955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68956 (eval $ac_try) 2>&5
68957 ac_status=$?
68958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68959 (exit $ac_status); }; } &&
68960 { ac_try='test -s conftest$ac_exeext'
68961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68962 (eval $ac_try) 2>&5
68963 ac_status=$?
68964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68965 (exit $ac_status); }; }; then
68966 eval "$as_ac_var=yes"
68967 else
68968 echo "$as_me: failed program was:" >&5
68969 sed 's/^/| /' conftest.$ac_ext >&5
68971 eval "$as_ac_var=no"
68973 rm -f conftest.err conftest.$ac_objext \
68974 conftest$ac_exeext conftest.$ac_ext
68976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68978 if test `eval echo '${'$as_ac_var'}'` = yes; then
68979 cat >>confdefs.h <<_ACEOF
68980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68981 _ACEOF
68982 ac_XPG2funcs=yes
68983 else
68984 ac_XPG2funcs=no
68986 done
68989 LIBS="$ac_save_LIBS"
68991 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
68992 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
68993 if test x"$ac_has_iconv_h" = xyes &&
68994 test x"$ac_has_langinfo_h" = xyes &&
68995 test x"$ac_XPG2funcs" = xyes;
68996 then
68997 ac_XPG2_wchar_t=yes
68998 else
68999 ac_XPG2_wchar_t=no
69001 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69002 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69004 # At the moment, only enable wchar_t specializations if all the
69005 # above support is present.
69006 if test x"$ac_isoC99_wchar_t" = xyes &&
69007 test x"$ac_XPG2_wchar_t" = xyes;
69008 then
69009 cat >>confdefs.h <<\_ACEOF
69010 #define _GLIBCXX_USE_WCHAR_T 1
69011 _ACEOF
69013 enable_wchar_t=yes
69016 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69017 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69018 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69019 echo "${ECHO_T}$enable_wchar_t" >&6
69021 # All of the dependencies for wide character support are here, so
69022 # turn it on. This requires some syncronization with the
69023 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69024 cat >>confdefs.h <<\_ACEOF
69025 #define _GLIBCXX_USE_WCHAR_T 1
69026 _ACEOF
69028 # Are these tested for even when cross?
69029 cat >>confdefs.h <<\_ACEOF
69030 #define HAVE_FLOAT_H 1
69031 _ACEOF
69033 cat >>confdefs.h <<\_ACEOF
69034 #define HAVE_IEEEFP_H 1
69035 _ACEOF
69037 cat >>confdefs.h <<\_ACEOF
69038 #define HAVE_INTTYPES_H 1
69039 _ACEOF
69041 cat >>confdefs.h <<\_ACEOF
69042 #define HAVE_LOCALE_H 1
69043 _ACEOF
69045 cat >>confdefs.h <<\_ACEOF
69046 #define HAVE_NAN_H 1
69047 _ACEOF
69049 cat >>confdefs.h <<\_ACEOF
69050 #define HAVE_SYS_FILIO_H 1
69051 _ACEOF
69053 cat >>confdefs.h <<\_ACEOF
69054 #define HAVE_SYS_IOCTL_H 1
69055 _ACEOF
69057 cat >>confdefs.h <<\_ACEOF
69058 #define HAVE_SYS_ISA_DEFS_H 1
69059 _ACEOF
69061 cat >>confdefs.h <<\_ACEOF
69062 #define HAVE_SYS_RESOURCE_H 1
69063 _ACEOF
69065 cat >>confdefs.h <<\_ACEOF
69066 #define HAVE_SYS_TIME_H 1
69067 _ACEOF
69069 cat >>confdefs.h <<\_ACEOF
69070 #define HAVE_SYS_TYPES_H 1
69071 _ACEOF
69073 cat >>confdefs.h <<\_ACEOF
69074 #define HAVE_UNISTD_H 1
69075 _ACEOF
69077 cat >>confdefs.h <<\_ACEOF
69078 #define HAVE_WCHAR_H 1
69079 _ACEOF
69081 cat >>confdefs.h <<\_ACEOF
69082 #define HAVE_WCTYPE_H 1
69083 _ACEOF
69085 cat >>confdefs.h <<\_ACEOF
69086 #define HAVE_LIBM 1
69087 _ACEOF
69090 esac
69091 case "$target" in
69092 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69093 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69094 cat >>confdefs.h <<\_ACEOF
69095 #define HAVE___BUILTIN_ABS 1
69096 _ACEOF
69098 cat >>confdefs.h <<\_ACEOF
69099 #define HAVE___BUILTIN_LABS 1
69100 _ACEOF
69102 cat >>confdefs.h <<\_ACEOF
69103 #define HAVE___BUILTIN_FABS 1
69104 _ACEOF
69106 cat >>confdefs.h <<\_ACEOF
69107 #define HAVE___BUILTIN_FABSF 1
69108 _ACEOF
69110 cat >>confdefs.h <<\_ACEOF
69111 #define HAVE___BUILTIN_FABSL 1
69112 _ACEOF
69114 cat >>confdefs.h <<\_ACEOF
69115 #define HAVE___BUILTIN_COS 1
69116 _ACEOF
69118 cat >>confdefs.h <<\_ACEOF
69119 #define HAVE___BUILTIN_COSF 1
69120 _ACEOF
69122 cat >>confdefs.h <<\_ACEOF
69123 #define HAVE___BUILTIN_SIN 1
69124 _ACEOF
69126 cat >>confdefs.h <<\_ACEOF
69127 #define HAVE___BUILTIN_SINF 1
69128 _ACEOF
69131 esac
69132 cat >>confdefs.h <<\_ACEOF
69133 #define HAVE_STRTOF 1
69134 _ACEOF
69136 cat >>confdefs.h <<\_ACEOF
69137 #define HAVE_STRTOLD 1
69138 _ACEOF
69140 cat >>confdefs.h <<\_ACEOF
69141 #define HAVE_MMAP 1
69142 _ACEOF
69144 cat >>confdefs.h <<\_ACEOF
69145 #define HAVE_COPYSIGN 1
69146 _ACEOF
69148 cat >>confdefs.h <<\_ACEOF
69149 #define HAVE_ISNAN 1
69150 _ACEOF
69152 cat >>confdefs.h <<\_ACEOF
69153 #define HAVE_ISNANF 1
69154 _ACEOF
69156 cat >>confdefs.h <<\_ACEOF
69157 #define HAVE_MODFF 1
69158 _ACEOF
69160 cat >>confdefs.h <<\_ACEOF
69161 #define HAVE_HYPOT 1
69162 _ACEOF
69165 *-tpf)
69174 for ac_header in nan.h endian.h machine/endian.h \
69175 sys/param.h sys/types.h locale.h float.h inttypes.h
69177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69179 echo "$as_me:$LINENO: checking for $ac_header" >&5
69180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69182 echo $ECHO_N "(cached) $ECHO_C" >&6
69184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69186 else
69187 # Is the header compilable?
69188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69190 cat >conftest.$ac_ext <<_ACEOF
69191 /* confdefs.h. */
69192 _ACEOF
69193 cat confdefs.h >>conftest.$ac_ext
69194 cat >>conftest.$ac_ext <<_ACEOF
69195 /* end confdefs.h. */
69196 $ac_includes_default
69197 #include <$ac_header>
69198 _ACEOF
69199 rm -f conftest.$ac_objext
69200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69201 (eval $ac_compile) 2>conftest.er1
69202 ac_status=$?
69203 grep -v '^ *+' conftest.er1 >conftest.err
69204 rm -f conftest.er1
69205 cat conftest.err >&5
69206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69207 (exit $ac_status); } &&
69208 { ac_try='test -z "$ac_c_werror_flag"
69209 || test ! -s conftest.err'
69210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69211 (eval $ac_try) 2>&5
69212 ac_status=$?
69213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69214 (exit $ac_status); }; } &&
69215 { ac_try='test -s conftest.$ac_objext'
69216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69217 (eval $ac_try) 2>&5
69218 ac_status=$?
69219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69220 (exit $ac_status); }; }; then
69221 ac_header_compiler=yes
69222 else
69223 echo "$as_me: failed program was:" >&5
69224 sed 's/^/| /' conftest.$ac_ext >&5
69226 ac_header_compiler=no
69228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69230 echo "${ECHO_T}$ac_header_compiler" >&6
69232 # Is the header present?
69233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69235 cat >conftest.$ac_ext <<_ACEOF
69236 /* confdefs.h. */
69237 _ACEOF
69238 cat confdefs.h >>conftest.$ac_ext
69239 cat >>conftest.$ac_ext <<_ACEOF
69240 /* end confdefs.h. */
69241 #include <$ac_header>
69242 _ACEOF
69243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69245 ac_status=$?
69246 grep -v '^ *+' conftest.er1 >conftest.err
69247 rm -f conftest.er1
69248 cat conftest.err >&5
69249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69250 (exit $ac_status); } >/dev/null; then
69251 if test -s conftest.err; then
69252 ac_cpp_err=$ac_c_preproc_warn_flag
69253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69254 else
69255 ac_cpp_err=
69257 else
69258 ac_cpp_err=yes
69260 if test -z "$ac_cpp_err"; then
69261 ac_header_preproc=yes
69262 else
69263 echo "$as_me: failed program was:" >&5
69264 sed 's/^/| /' conftest.$ac_ext >&5
69266 ac_header_preproc=no
69268 rm -f conftest.err conftest.$ac_ext
69269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69270 echo "${ECHO_T}$ac_header_preproc" >&6
69272 # So? What about this header?
69273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69274 yes:no: )
69275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69279 ac_header_preproc=yes
69281 no:yes:* )
69282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
69285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
69286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
69289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
69290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69295 cat <<\_ASBOX
69296 ## ----------------------------------------- ##
69297 ## Report this to the package-unused lists. ##
69298 ## ----------------------------------------- ##
69299 _ASBOX
69301 sed "s/^/$as_me: WARNING: /" >&2
69303 esac
69304 echo "$as_me:$LINENO: checking for $ac_header" >&5
69305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69307 echo $ECHO_N "(cached) $ECHO_C" >&6
69308 else
69309 eval "$as_ac_Header=\$ac_header_preproc"
69311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69316 cat >>confdefs.h <<_ACEOF
69317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69318 _ACEOF
69322 done
69324 SECTION_FLAGS='-ffunction-sections -fdata-sections'
69327 # If we're not using GNU ld, then there's no point in even trying these
69328 # tests. Check for that first. We should have already tested for gld
69329 # by now (in libtool), but require it now just to be safe...
69330 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69331 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69335 # The name set by libtool depends on the version of libtool. Shame on us
69336 # for depending on an impl detail, but c'est la vie. Older versions used
69337 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69338 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69339 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
69340 # set (hence we're using an older libtool), then set it.
69341 if test x${with_gnu_ld+set} != xset; then
69342 if test x${ac_cv_prog_gnu_ld+set} != xset; then
69343 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
69344 with_gnu_ld=no
69345 else
69346 with_gnu_ld=$ac_cv_prog_gnu_ld
69350 # Start by getting the version number. I think the libtool test already
69351 # does some of this, but throws away the result.
69353 ldver=`$LD --version 2>/dev/null | head -1 | \
69354 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69356 glibcxx_gnu_ld_version=`echo $ldver | \
69357 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69359 # Set --gc-sections.
69360 if test "$with_gnu_ld" = "notbroken"; then
69361 # GNU ld it is! Joy and bunny rabbits!
69363 # All these tests are for C++; save the language and the compiler flags.
69364 # Need to do this so that g++ won't try to link in libstdc++
69365 ac_test_CFLAGS="${CFLAGS+set}"
69366 ac_save_CFLAGS="$CFLAGS"
69367 CFLAGS='-x c++ -Wl,--gc-sections'
69369 # Check for -Wl,--gc-sections
69370 # XXX This test is broken at the moment, as symbols required for linking
69371 # are now in libsupc++ (not built yet). In addition, this test has
69372 # cored on solaris in the past. In addition, --gc-sections doesn't
69373 # really work at the moment (keeps on discarding used sections, first
69374 # .eh_frame and now some of the glibc sections for iconv).
69375 # Bzzzzt. Thanks for playing, maybe next time.
69376 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69377 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69378 if test "$cross_compiling" = yes; then
69379 ac_sectionLDflags=yes
69380 else
69381 cat >conftest.$ac_ext <<_ACEOF
69382 /* confdefs.h. */
69383 _ACEOF
69384 cat confdefs.h >>conftest.$ac_ext
69385 cat >>conftest.$ac_ext <<_ACEOF
69386 /* end confdefs.h. */
69388 int main(void)
69390 try { throw 1; }
69391 catch (...) { };
69392 return 0;
69395 _ACEOF
69396 rm -f conftest$ac_exeext
69397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69398 (eval $ac_link) 2>&5
69399 ac_status=$?
69400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69403 (eval $ac_try) 2>&5
69404 ac_status=$?
69405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69406 (exit $ac_status); }; }; then
69407 ac_sectionLDflags=yes
69408 else
69409 echo "$as_me: program exited with status $ac_status" >&5
69410 echo "$as_me: failed program was:" >&5
69411 sed 's/^/| /' conftest.$ac_ext >&5
69413 ( exit $ac_status )
69414 ac_sectionLDflags=no
69416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69418 if test "$ac_test_CFLAGS" = set; then
69419 CFLAGS="$ac_save_CFLAGS"
69420 else
69421 # this is the suspicious part
69422 CFLAGS=''
69424 if test "$ac_sectionLDflags" = "yes"; then
69425 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69427 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69428 echo "${ECHO_T}$ac_sectionLDflags" >&6
69431 # Set linker optimization flags.
69432 if test x"$with_gnu_ld" = x"yes"; then
69433 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69441 echo "$as_me:$LINENO: checking for main in -lm" >&5
69442 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69443 if test "${ac_cv_lib_m_main+set}" = set; then
69444 echo $ECHO_N "(cached) $ECHO_C" >&6
69445 else
69446 ac_check_lib_save_LIBS=$LIBS
69447 LIBS="-lm $LIBS"
69448 if test x$gcc_no_link = xyes; then
69449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69451 { (exit 1); exit 1; }; }
69453 cat >conftest.$ac_ext <<_ACEOF
69454 /* confdefs.h. */
69455 _ACEOF
69456 cat confdefs.h >>conftest.$ac_ext
69457 cat >>conftest.$ac_ext <<_ACEOF
69458 /* end confdefs.h. */
69462 main ()
69464 main ();
69466 return 0;
69468 _ACEOF
69469 rm -f conftest.$ac_objext conftest$ac_exeext
69470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69471 (eval $ac_link) 2>conftest.er1
69472 ac_status=$?
69473 grep -v '^ *+' conftest.er1 >conftest.err
69474 rm -f conftest.er1
69475 cat conftest.err >&5
69476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69477 (exit $ac_status); } &&
69478 { ac_try='test -z "$ac_c_werror_flag"
69479 || test ! -s conftest.err'
69480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69481 (eval $ac_try) 2>&5
69482 ac_status=$?
69483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69484 (exit $ac_status); }; } &&
69485 { ac_try='test -s conftest$ac_exeext'
69486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69487 (eval $ac_try) 2>&5
69488 ac_status=$?
69489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69490 (exit $ac_status); }; }; then
69491 ac_cv_lib_m_main=yes
69492 else
69493 echo "$as_me: failed program was:" >&5
69494 sed 's/^/| /' conftest.$ac_ext >&5
69496 ac_cv_lib_m_main=no
69498 rm -f conftest.err conftest.$ac_objext \
69499 conftest$ac_exeext conftest.$ac_ext
69500 LIBS=$ac_check_lib_save_LIBS
69502 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69503 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69504 if test $ac_cv_lib_m_main = yes; then
69505 cat >>confdefs.h <<_ACEOF
69506 #define HAVE_LIBM 1
69507 _ACEOF
69509 LIBS="-lm $LIBS"
69514 for ac_func in copysignf
69516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69517 echo "$as_me:$LINENO: checking for $ac_func" >&5
69518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69519 if eval "test \"\${$as_ac_var+set}\" = set"; then
69520 echo $ECHO_N "(cached) $ECHO_C" >&6
69521 else
69522 if test x$gcc_no_link = xyes; then
69523 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69524 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69525 { (exit 1); exit 1; }; }
69527 cat >conftest.$ac_ext <<_ACEOF
69528 /* confdefs.h. */
69529 _ACEOF
69530 cat confdefs.h >>conftest.$ac_ext
69531 cat >>conftest.$ac_ext <<_ACEOF
69532 /* end confdefs.h. */
69533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69535 #define $ac_func innocuous_$ac_func
69537 /* System header to define __stub macros and hopefully few prototypes,
69538 which can conflict with char $ac_func (); below.
69539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69540 <limits.h> exists even on freestanding compilers. */
69542 #ifdef __STDC__
69543 # include <limits.h>
69544 #else
69545 # include <assert.h>
69546 #endif
69548 #undef $ac_func
69550 /* Override any gcc2 internal prototype to avoid an error. */
69551 #ifdef __cplusplus
69552 extern "C"
69554 #endif
69555 /* We use char because int might match the return type of a gcc2
69556 builtin and then its argument prototype would still apply. */
69557 char $ac_func ();
69558 /* The GNU C library defines this for functions which it implements
69559 to always fail with ENOSYS. Some functions are actually named
69560 something starting with __ and the normal name is an alias. */
69561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69562 choke me
69563 #else
69564 char (*f) () = $ac_func;
69565 #endif
69566 #ifdef __cplusplus
69568 #endif
69571 main ()
69573 return f != $ac_func;
69575 return 0;
69577 _ACEOF
69578 rm -f conftest.$ac_objext conftest$ac_exeext
69579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69580 (eval $ac_link) 2>conftest.er1
69581 ac_status=$?
69582 grep -v '^ *+' conftest.er1 >conftest.err
69583 rm -f conftest.er1
69584 cat conftest.err >&5
69585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69586 (exit $ac_status); } &&
69587 { ac_try='test -z "$ac_c_werror_flag"
69588 || test ! -s conftest.err'
69589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69590 (eval $ac_try) 2>&5
69591 ac_status=$?
69592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69593 (exit $ac_status); }; } &&
69594 { ac_try='test -s conftest$ac_exeext'
69595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69596 (eval $ac_try) 2>&5
69597 ac_status=$?
69598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69599 (exit $ac_status); }; }; then
69600 eval "$as_ac_var=yes"
69601 else
69602 echo "$as_me: failed program was:" >&5
69603 sed 's/^/| /' conftest.$ac_ext >&5
69605 eval "$as_ac_var=no"
69607 rm -f conftest.err conftest.$ac_objext \
69608 conftest$ac_exeext conftest.$ac_ext
69610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69612 if test `eval echo '${'$as_ac_var'}'` = yes; then
69613 cat >>confdefs.h <<_ACEOF
69614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69615 _ACEOF
69617 else
69618 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69620 done
69624 for ac_func in __signbit
69626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69627 echo "$as_me:$LINENO: checking for $ac_func" >&5
69628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69629 if eval "test \"\${$as_ac_var+set}\" = set"; then
69630 echo $ECHO_N "(cached) $ECHO_C" >&6
69631 else
69632 if test x$gcc_no_link = xyes; then
69633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69635 { (exit 1); exit 1; }; }
69637 cat >conftest.$ac_ext <<_ACEOF
69638 /* confdefs.h. */
69639 _ACEOF
69640 cat confdefs.h >>conftest.$ac_ext
69641 cat >>conftest.$ac_ext <<_ACEOF
69642 /* end confdefs.h. */
69643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69645 #define $ac_func innocuous_$ac_func
69647 /* System header to define __stub macros and hopefully few prototypes,
69648 which can conflict with char $ac_func (); below.
69649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69650 <limits.h> exists even on freestanding compilers. */
69652 #ifdef __STDC__
69653 # include <limits.h>
69654 #else
69655 # include <assert.h>
69656 #endif
69658 #undef $ac_func
69660 /* Override any gcc2 internal prototype to avoid an error. */
69661 #ifdef __cplusplus
69662 extern "C"
69664 #endif
69665 /* We use char because int might match the return type of a gcc2
69666 builtin and then its argument prototype would still apply. */
69667 char $ac_func ();
69668 /* The GNU C library defines this for functions which it implements
69669 to always fail with ENOSYS. Some functions are actually named
69670 something starting with __ and the normal name is an alias. */
69671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69672 choke me
69673 #else
69674 char (*f) () = $ac_func;
69675 #endif
69676 #ifdef __cplusplus
69678 #endif
69681 main ()
69683 return f != $ac_func;
69685 return 0;
69687 _ACEOF
69688 rm -f conftest.$ac_objext conftest$ac_exeext
69689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69690 (eval $ac_link) 2>conftest.er1
69691 ac_status=$?
69692 grep -v '^ *+' conftest.er1 >conftest.err
69693 rm -f conftest.er1
69694 cat conftest.err >&5
69695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69696 (exit $ac_status); } &&
69697 { ac_try='test -z "$ac_c_werror_flag"
69698 || test ! -s conftest.err'
69699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69700 (eval $ac_try) 2>&5
69701 ac_status=$?
69702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69703 (exit $ac_status); }; } &&
69704 { ac_try='test -s conftest$ac_exeext'
69705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69706 (eval $ac_try) 2>&5
69707 ac_status=$?
69708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69709 (exit $ac_status); }; }; then
69710 eval "$as_ac_var=yes"
69711 else
69712 echo "$as_me: failed program was:" >&5
69713 sed 's/^/| /' conftest.$ac_ext >&5
69715 eval "$as_ac_var=no"
69717 rm -f conftest.err conftest.$ac_objext \
69718 conftest$ac_exeext conftest.$ac_ext
69720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69722 if test `eval echo '${'$as_ac_var'}'` = yes; then
69723 cat >>confdefs.h <<_ACEOF
69724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69725 _ACEOF
69727 else
69728 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
69730 done
69733 for ac_func in __signbitf
69735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69736 echo "$as_me:$LINENO: checking for $ac_func" >&5
69737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69738 if eval "test \"\${$as_ac_var+set}\" = set"; then
69739 echo $ECHO_N "(cached) $ECHO_C" >&6
69740 else
69741 if test x$gcc_no_link = xyes; then
69742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69744 { (exit 1); exit 1; }; }
69746 cat >conftest.$ac_ext <<_ACEOF
69747 /* confdefs.h. */
69748 _ACEOF
69749 cat confdefs.h >>conftest.$ac_ext
69750 cat >>conftest.$ac_ext <<_ACEOF
69751 /* end confdefs.h. */
69752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69754 #define $ac_func innocuous_$ac_func
69756 /* System header to define __stub macros and hopefully few prototypes,
69757 which can conflict with char $ac_func (); below.
69758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69759 <limits.h> exists even on freestanding compilers. */
69761 #ifdef __STDC__
69762 # include <limits.h>
69763 #else
69764 # include <assert.h>
69765 #endif
69767 #undef $ac_func
69769 /* Override any gcc2 internal prototype to avoid an error. */
69770 #ifdef __cplusplus
69771 extern "C"
69773 #endif
69774 /* We use char because int might match the return type of a gcc2
69775 builtin and then its argument prototype would still apply. */
69776 char $ac_func ();
69777 /* The GNU C library defines this for functions which it implements
69778 to always fail with ENOSYS. Some functions are actually named
69779 something starting with __ and the normal name is an alias. */
69780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69781 choke me
69782 #else
69783 char (*f) () = $ac_func;
69784 #endif
69785 #ifdef __cplusplus
69787 #endif
69790 main ()
69792 return f != $ac_func;
69794 return 0;
69796 _ACEOF
69797 rm -f conftest.$ac_objext conftest$ac_exeext
69798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69799 (eval $ac_link) 2>conftest.er1
69800 ac_status=$?
69801 grep -v '^ *+' conftest.er1 >conftest.err
69802 rm -f conftest.er1
69803 cat conftest.err >&5
69804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69805 (exit $ac_status); } &&
69806 { ac_try='test -z "$ac_c_werror_flag"
69807 || test ! -s conftest.err'
69808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69809 (eval $ac_try) 2>&5
69810 ac_status=$?
69811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69812 (exit $ac_status); }; } &&
69813 { ac_try='test -s conftest$ac_exeext'
69814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69815 (eval $ac_try) 2>&5
69816 ac_status=$?
69817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69818 (exit $ac_status); }; }; then
69819 eval "$as_ac_var=yes"
69820 else
69821 echo "$as_me: failed program was:" >&5
69822 sed 's/^/| /' conftest.$ac_ext >&5
69824 eval "$as_ac_var=no"
69826 rm -f conftest.err conftest.$ac_objext \
69827 conftest$ac_exeext conftest.$ac_ext
69829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69831 if test `eval echo '${'$as_ac_var'}'` = yes; then
69832 cat >>confdefs.h <<_ACEOF
69833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69834 _ACEOF
69836 else
69837 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
69839 done
69842 if test x$ac_cv_func_copysignl = x"yes"; then
69844 for ac_func in __signbitl
69846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69847 echo "$as_me:$LINENO: checking for $ac_func" >&5
69848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69849 if eval "test \"\${$as_ac_var+set}\" = set"; then
69850 echo $ECHO_N "(cached) $ECHO_C" >&6
69851 else
69852 if test x$gcc_no_link = xyes; then
69853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69855 { (exit 1); exit 1; }; }
69857 cat >conftest.$ac_ext <<_ACEOF
69858 /* confdefs.h. */
69859 _ACEOF
69860 cat confdefs.h >>conftest.$ac_ext
69861 cat >>conftest.$ac_ext <<_ACEOF
69862 /* end confdefs.h. */
69863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69865 #define $ac_func innocuous_$ac_func
69867 /* System header to define __stub macros and hopefully few prototypes,
69868 which can conflict with char $ac_func (); below.
69869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69870 <limits.h> exists even on freestanding compilers. */
69872 #ifdef __STDC__
69873 # include <limits.h>
69874 #else
69875 # include <assert.h>
69876 #endif
69878 #undef $ac_func
69880 /* Override any gcc2 internal prototype to avoid an error. */
69881 #ifdef __cplusplus
69882 extern "C"
69884 #endif
69885 /* We use char because int might match the return type of a gcc2
69886 builtin and then its argument prototype would still apply. */
69887 char $ac_func ();
69888 /* The GNU C library defines this for functions which it implements
69889 to always fail with ENOSYS. Some functions are actually named
69890 something starting with __ and the normal name is an alias. */
69891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69892 choke me
69893 #else
69894 char (*f) () = $ac_func;
69895 #endif
69896 #ifdef __cplusplus
69898 #endif
69901 main ()
69903 return f != $ac_func;
69905 return 0;
69907 _ACEOF
69908 rm -f conftest.$ac_objext conftest$ac_exeext
69909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69910 (eval $ac_link) 2>conftest.er1
69911 ac_status=$?
69912 grep -v '^ *+' conftest.er1 >conftest.err
69913 rm -f conftest.er1
69914 cat conftest.err >&5
69915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69916 (exit $ac_status); } &&
69917 { ac_try='test -z "$ac_c_werror_flag"
69918 || test ! -s conftest.err'
69919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69920 (eval $ac_try) 2>&5
69921 ac_status=$?
69922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69923 (exit $ac_status); }; } &&
69924 { ac_try='test -s conftest$ac_exeext'
69925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69926 (eval $ac_try) 2>&5
69927 ac_status=$?
69928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69929 (exit $ac_status); }; }; then
69930 eval "$as_ac_var=yes"
69931 else
69932 echo "$as_me: failed program was:" >&5
69933 sed 's/^/| /' conftest.$ac_ext >&5
69935 eval "$as_ac_var=no"
69937 rm -f conftest.err conftest.$ac_objext \
69938 conftest$ac_exeext conftest.$ac_ext
69940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69942 if test `eval echo '${'$as_ac_var'}'` = yes; then
69943 cat >>confdefs.h <<_ACEOF
69944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69945 _ACEOF
69947 else
69948 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
69950 done
69954 # XXX Review this. Nothing uses it.
69955 if test -n "$LIBMATHOBJS"; then
69956 need_libmath=yes
69961 # Test wchar.h for mbstate_t, which is needed for char_traits and
69962 # others even if wchar_t support is not on.
69963 echo "$as_me:$LINENO: checking for mbstate_t" >&5
69964 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
69965 cat >conftest.$ac_ext <<_ACEOF
69966 /* confdefs.h. */
69967 _ACEOF
69968 cat confdefs.h >>conftest.$ac_ext
69969 cat >>conftest.$ac_ext <<_ACEOF
69970 /* end confdefs.h. */
69971 #include <wchar.h>
69973 main ()
69975 mbstate_t teststate;
69977 return 0;
69979 _ACEOF
69980 rm -f conftest.$ac_objext
69981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69982 (eval $ac_compile) 2>conftest.er1
69983 ac_status=$?
69984 grep -v '^ *+' conftest.er1 >conftest.err
69985 rm -f conftest.er1
69986 cat conftest.err >&5
69987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69988 (exit $ac_status); } &&
69989 { ac_try='test -z "$ac_c_werror_flag"
69990 || test ! -s conftest.err'
69991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69992 (eval $ac_try) 2>&5
69993 ac_status=$?
69994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69995 (exit $ac_status); }; } &&
69996 { ac_try='test -s conftest.$ac_objext'
69997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69998 (eval $ac_try) 2>&5
69999 ac_status=$?
70000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70001 (exit $ac_status); }; }; then
70002 have_mbstate_t=yes
70003 else
70004 echo "$as_me: failed program was:" >&5
70005 sed 's/^/| /' conftest.$ac_ext >&5
70007 have_mbstate_t=no
70009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70010 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70011 echo "${ECHO_T}$have_mbstate_t" >&6
70012 if test x"$have_mbstate_t" = xyes; then
70013 cat >>confdefs.h <<\_ACEOF
70014 #define HAVE_MBSTATE_T 1
70015 _ACEOF
70019 # Sanity check for existence of ISO C99 headers for extended encoding.
70021 for ac_header in wchar.h
70023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70025 echo "$as_me:$LINENO: checking for $ac_header" >&5
70026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70028 echo $ECHO_N "(cached) $ECHO_C" >&6
70030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70032 else
70033 # Is the header compilable?
70034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70036 cat >conftest.$ac_ext <<_ACEOF
70037 /* confdefs.h. */
70038 _ACEOF
70039 cat confdefs.h >>conftest.$ac_ext
70040 cat >>conftest.$ac_ext <<_ACEOF
70041 /* end confdefs.h. */
70042 $ac_includes_default
70043 #include <$ac_header>
70044 _ACEOF
70045 rm -f conftest.$ac_objext
70046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70047 (eval $ac_compile) 2>conftest.er1
70048 ac_status=$?
70049 grep -v '^ *+' conftest.er1 >conftest.err
70050 rm -f conftest.er1
70051 cat conftest.err >&5
70052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70053 (exit $ac_status); } &&
70054 { ac_try='test -z "$ac_c_werror_flag"
70055 || test ! -s conftest.err'
70056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70057 (eval $ac_try) 2>&5
70058 ac_status=$?
70059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70060 (exit $ac_status); }; } &&
70061 { ac_try='test -s conftest.$ac_objext'
70062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70063 (eval $ac_try) 2>&5
70064 ac_status=$?
70065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70066 (exit $ac_status); }; }; then
70067 ac_header_compiler=yes
70068 else
70069 echo "$as_me: failed program was:" >&5
70070 sed 's/^/| /' conftest.$ac_ext >&5
70072 ac_header_compiler=no
70074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70076 echo "${ECHO_T}$ac_header_compiler" >&6
70078 # Is the header present?
70079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70081 cat >conftest.$ac_ext <<_ACEOF
70082 /* confdefs.h. */
70083 _ACEOF
70084 cat confdefs.h >>conftest.$ac_ext
70085 cat >>conftest.$ac_ext <<_ACEOF
70086 /* end confdefs.h. */
70087 #include <$ac_header>
70088 _ACEOF
70089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70091 ac_status=$?
70092 grep -v '^ *+' conftest.er1 >conftest.err
70093 rm -f conftest.er1
70094 cat conftest.err >&5
70095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70096 (exit $ac_status); } >/dev/null; then
70097 if test -s conftest.err; then
70098 ac_cpp_err=$ac_c_preproc_warn_flag
70099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70100 else
70101 ac_cpp_err=
70103 else
70104 ac_cpp_err=yes
70106 if test -z "$ac_cpp_err"; then
70107 ac_header_preproc=yes
70108 else
70109 echo "$as_me: failed program was:" >&5
70110 sed 's/^/| /' conftest.$ac_ext >&5
70112 ac_header_preproc=no
70114 rm -f conftest.err conftest.$ac_ext
70115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70116 echo "${ECHO_T}$ac_header_preproc" >&6
70118 # So? What about this header?
70119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70120 yes:no: )
70121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70125 ac_header_preproc=yes
70127 no:yes:* )
70128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70141 cat <<\_ASBOX
70142 ## ----------------------------------------- ##
70143 ## Report this to the package-unused lists. ##
70144 ## ----------------------------------------- ##
70145 _ASBOX
70147 sed "s/^/$as_me: WARNING: /" >&2
70149 esac
70150 echo "$as_me:$LINENO: checking for $ac_header" >&5
70151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70153 echo $ECHO_N "(cached) $ECHO_C" >&6
70154 else
70155 eval "$as_ac_Header=\$ac_header_preproc"
70157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70162 cat >>confdefs.h <<_ACEOF
70163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70164 _ACEOF
70165 ac_has_wchar_h=yes
70166 else
70167 ac_has_wchar_h=no
70170 done
70173 for ac_header in wctype.h
70175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70177 echo "$as_me:$LINENO: checking for $ac_header" >&5
70178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70180 echo $ECHO_N "(cached) $ECHO_C" >&6
70182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70184 else
70185 # Is the header compilable?
70186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70188 cat >conftest.$ac_ext <<_ACEOF
70189 /* confdefs.h. */
70190 _ACEOF
70191 cat confdefs.h >>conftest.$ac_ext
70192 cat >>conftest.$ac_ext <<_ACEOF
70193 /* end confdefs.h. */
70194 $ac_includes_default
70195 #include <$ac_header>
70196 _ACEOF
70197 rm -f conftest.$ac_objext
70198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70199 (eval $ac_compile) 2>conftest.er1
70200 ac_status=$?
70201 grep -v '^ *+' conftest.er1 >conftest.err
70202 rm -f conftest.er1
70203 cat conftest.err >&5
70204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70205 (exit $ac_status); } &&
70206 { ac_try='test -z "$ac_c_werror_flag"
70207 || test ! -s conftest.err'
70208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70209 (eval $ac_try) 2>&5
70210 ac_status=$?
70211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70212 (exit $ac_status); }; } &&
70213 { ac_try='test -s conftest.$ac_objext'
70214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70215 (eval $ac_try) 2>&5
70216 ac_status=$?
70217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70218 (exit $ac_status); }; }; then
70219 ac_header_compiler=yes
70220 else
70221 echo "$as_me: failed program was:" >&5
70222 sed 's/^/| /' conftest.$ac_ext >&5
70224 ac_header_compiler=no
70226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70228 echo "${ECHO_T}$ac_header_compiler" >&6
70230 # Is the header present?
70231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70233 cat >conftest.$ac_ext <<_ACEOF
70234 /* confdefs.h. */
70235 _ACEOF
70236 cat confdefs.h >>conftest.$ac_ext
70237 cat >>conftest.$ac_ext <<_ACEOF
70238 /* end confdefs.h. */
70239 #include <$ac_header>
70240 _ACEOF
70241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70243 ac_status=$?
70244 grep -v '^ *+' conftest.er1 >conftest.err
70245 rm -f conftest.er1
70246 cat conftest.err >&5
70247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70248 (exit $ac_status); } >/dev/null; then
70249 if test -s conftest.err; then
70250 ac_cpp_err=$ac_c_preproc_warn_flag
70251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70252 else
70253 ac_cpp_err=
70255 else
70256 ac_cpp_err=yes
70258 if test -z "$ac_cpp_err"; then
70259 ac_header_preproc=yes
70260 else
70261 echo "$as_me: failed program was:" >&5
70262 sed 's/^/| /' conftest.$ac_ext >&5
70264 ac_header_preproc=no
70266 rm -f conftest.err conftest.$ac_ext
70267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70268 echo "${ECHO_T}$ac_header_preproc" >&6
70270 # So? What about this header?
70271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70272 yes:no: )
70273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70277 ac_header_preproc=yes
70279 no:yes:* )
70280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70293 cat <<\_ASBOX
70294 ## ----------------------------------------- ##
70295 ## Report this to the package-unused lists. ##
70296 ## ----------------------------------------- ##
70297 _ASBOX
70299 sed "s/^/$as_me: WARNING: /" >&2
70301 esac
70302 echo "$as_me:$LINENO: checking for $ac_header" >&5
70303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70305 echo $ECHO_N "(cached) $ECHO_C" >&6
70306 else
70307 eval "$as_ac_Header=\$ac_header_preproc"
70309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70314 cat >>confdefs.h <<_ACEOF
70315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70316 _ACEOF
70317 ac_has_wctype_h=yes
70318 else
70319 ac_has_wctype_h=no
70322 done
70325 # Only continue checking if the ISO C99 headers exist and support is on.
70326 if test x"$ac_has_wchar_h" = xyes &&
70327 test x"$ac_has_wctype_h" = xyes &&
70328 test x"$enable_c_mbchar" != xno; then
70330 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70331 # numeric_limits can instantiate type_traits<wchar_t>
70332 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70333 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70334 cat >conftest.$ac_ext <<_ACEOF
70335 /* confdefs.h. */
70336 _ACEOF
70337 cat confdefs.h >>conftest.$ac_ext
70338 cat >>conftest.$ac_ext <<_ACEOF
70339 /* end confdefs.h. */
70340 #include <wchar.h>
70342 main ()
70344 int i = WCHAR_MIN; int j = WCHAR_MAX;
70346 return 0;
70348 _ACEOF
70349 rm -f conftest.$ac_objext
70350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70351 (eval $ac_compile) 2>conftest.er1
70352 ac_status=$?
70353 grep -v '^ *+' conftest.er1 >conftest.err
70354 rm -f conftest.er1
70355 cat conftest.err >&5
70356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70357 (exit $ac_status); } &&
70358 { ac_try='test -z "$ac_c_werror_flag"
70359 || test ! -s conftest.err'
70360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70361 (eval $ac_try) 2>&5
70362 ac_status=$?
70363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70364 (exit $ac_status); }; } &&
70365 { ac_try='test -s conftest.$ac_objext'
70366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70367 (eval $ac_try) 2>&5
70368 ac_status=$?
70369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70370 (exit $ac_status); }; }; then
70371 has_wchar_minmax=yes
70372 else
70373 echo "$as_me: failed program was:" >&5
70374 sed 's/^/| /' conftest.$ac_ext >&5
70376 has_wchar_minmax=no
70378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70379 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70380 echo "${ECHO_T}$has_wchar_minmax" >&6
70382 # Test wchar.h for WEOF, which is what we use to determine whether
70383 # to specialize for char_traits<wchar_t> or not.
70384 echo "$as_me:$LINENO: checking for WEOF" >&5
70385 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70386 cat >conftest.$ac_ext <<_ACEOF
70387 /* confdefs.h. */
70388 _ACEOF
70389 cat confdefs.h >>conftest.$ac_ext
70390 cat >>conftest.$ac_ext <<_ACEOF
70391 /* end confdefs.h. */
70393 #include <wchar.h>
70394 #include <stddef.h>
70396 main ()
70398 wint_t i = WEOF;
70400 return 0;
70402 _ACEOF
70403 rm -f conftest.$ac_objext
70404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70405 (eval $ac_compile) 2>conftest.er1
70406 ac_status=$?
70407 grep -v '^ *+' conftest.er1 >conftest.err
70408 rm -f conftest.er1
70409 cat conftest.err >&5
70410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70411 (exit $ac_status); } &&
70412 { ac_try='test -z "$ac_c_werror_flag"
70413 || test ! -s conftest.err'
70414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70415 (eval $ac_try) 2>&5
70416 ac_status=$?
70417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70418 (exit $ac_status); }; } &&
70419 { ac_try='test -s conftest.$ac_objext'
70420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70421 (eval $ac_try) 2>&5
70422 ac_status=$?
70423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70424 (exit $ac_status); }; }; then
70425 has_weof=yes
70426 else
70427 echo "$as_me: failed program was:" >&5
70428 sed 's/^/| /' conftest.$ac_ext >&5
70430 has_weof=no
70432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70433 echo "$as_me:$LINENO: result: $has_weof" >&5
70434 echo "${ECHO_T}$has_weof" >&6
70436 # Tests for wide character functions used in char_traits<wchar_t>.
70437 ac_wfuncs=yes
70444 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70447 echo "$as_me:$LINENO: checking for $ac_func" >&5
70448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70449 if eval "test \"\${$as_ac_var+set}\" = set"; then
70450 echo $ECHO_N "(cached) $ECHO_C" >&6
70451 else
70452 if test x$gcc_no_link = xyes; then
70453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70455 { (exit 1); exit 1; }; }
70457 cat >conftest.$ac_ext <<_ACEOF
70458 /* confdefs.h. */
70459 _ACEOF
70460 cat confdefs.h >>conftest.$ac_ext
70461 cat >>conftest.$ac_ext <<_ACEOF
70462 /* end confdefs.h. */
70463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70465 #define $ac_func innocuous_$ac_func
70467 /* System header to define __stub macros and hopefully few prototypes,
70468 which can conflict with char $ac_func (); below.
70469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70470 <limits.h> exists even on freestanding compilers. */
70472 #ifdef __STDC__
70473 # include <limits.h>
70474 #else
70475 # include <assert.h>
70476 #endif
70478 #undef $ac_func
70480 /* Override any gcc2 internal prototype to avoid an error. */
70481 #ifdef __cplusplus
70482 extern "C"
70484 #endif
70485 /* We use char because int might match the return type of a gcc2
70486 builtin and then its argument prototype would still apply. */
70487 char $ac_func ();
70488 /* The GNU C library defines this for functions which it implements
70489 to always fail with ENOSYS. Some functions are actually named
70490 something starting with __ and the normal name is an alias. */
70491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70492 choke me
70493 #else
70494 char (*f) () = $ac_func;
70495 #endif
70496 #ifdef __cplusplus
70498 #endif
70501 main ()
70503 return f != $ac_func;
70505 return 0;
70507 _ACEOF
70508 rm -f conftest.$ac_objext conftest$ac_exeext
70509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70510 (eval $ac_link) 2>conftest.er1
70511 ac_status=$?
70512 grep -v '^ *+' conftest.er1 >conftest.err
70513 rm -f conftest.er1
70514 cat conftest.err >&5
70515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70516 (exit $ac_status); } &&
70517 { ac_try='test -z "$ac_c_werror_flag"
70518 || test ! -s conftest.err'
70519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70520 (eval $ac_try) 2>&5
70521 ac_status=$?
70522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70523 (exit $ac_status); }; } &&
70524 { ac_try='test -s conftest$ac_exeext'
70525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70526 (eval $ac_try) 2>&5
70527 ac_status=$?
70528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70529 (exit $ac_status); }; }; then
70530 eval "$as_ac_var=yes"
70531 else
70532 echo "$as_me: failed program was:" >&5
70533 sed 's/^/| /' conftest.$ac_ext >&5
70535 eval "$as_ac_var=no"
70537 rm -f conftest.err conftest.$ac_objext \
70538 conftest$ac_exeext conftest.$ac_ext
70540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70542 if test `eval echo '${'$as_ac_var'}'` = yes; then
70543 cat >>confdefs.h <<_ACEOF
70544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70545 _ACEOF
70547 else
70548 ac_wfuncs=no
70550 done
70553 # Checks for names injected into std:: by the c_std headers.
70600 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70601 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70602 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70603 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70604 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70605 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70608 echo "$as_me:$LINENO: checking for $ac_func" >&5
70609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70610 if eval "test \"\${$as_ac_var+set}\" = set"; then
70611 echo $ECHO_N "(cached) $ECHO_C" >&6
70612 else
70613 if test x$gcc_no_link = xyes; then
70614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70616 { (exit 1); exit 1; }; }
70618 cat >conftest.$ac_ext <<_ACEOF
70619 /* confdefs.h. */
70620 _ACEOF
70621 cat confdefs.h >>conftest.$ac_ext
70622 cat >>conftest.$ac_ext <<_ACEOF
70623 /* end confdefs.h. */
70624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70626 #define $ac_func innocuous_$ac_func
70628 /* System header to define __stub macros and hopefully few prototypes,
70629 which can conflict with char $ac_func (); below.
70630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70631 <limits.h> exists even on freestanding compilers. */
70633 #ifdef __STDC__
70634 # include <limits.h>
70635 #else
70636 # include <assert.h>
70637 #endif
70639 #undef $ac_func
70641 /* Override any gcc2 internal prototype to avoid an error. */
70642 #ifdef __cplusplus
70643 extern "C"
70645 #endif
70646 /* We use char because int might match the return type of a gcc2
70647 builtin and then its argument prototype would still apply. */
70648 char $ac_func ();
70649 /* The GNU C library defines this for functions which it implements
70650 to always fail with ENOSYS. Some functions are actually named
70651 something starting with __ and the normal name is an alias. */
70652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70653 choke me
70654 #else
70655 char (*f) () = $ac_func;
70656 #endif
70657 #ifdef __cplusplus
70659 #endif
70662 main ()
70664 return f != $ac_func;
70666 return 0;
70668 _ACEOF
70669 rm -f conftest.$ac_objext conftest$ac_exeext
70670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70671 (eval $ac_link) 2>conftest.er1
70672 ac_status=$?
70673 grep -v '^ *+' conftest.er1 >conftest.err
70674 rm -f conftest.er1
70675 cat conftest.err >&5
70676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70677 (exit $ac_status); } &&
70678 { ac_try='test -z "$ac_c_werror_flag"
70679 || test ! -s conftest.err'
70680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70681 (eval $ac_try) 2>&5
70682 ac_status=$?
70683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70684 (exit $ac_status); }; } &&
70685 { ac_try='test -s conftest$ac_exeext'
70686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70687 (eval $ac_try) 2>&5
70688 ac_status=$?
70689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70690 (exit $ac_status); }; }; then
70691 eval "$as_ac_var=yes"
70692 else
70693 echo "$as_me: failed program was:" >&5
70694 sed 's/^/| /' conftest.$ac_ext >&5
70696 eval "$as_ac_var=no"
70698 rm -f conftest.err conftest.$ac_objext \
70699 conftest$ac_exeext conftest.$ac_ext
70701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70703 if test `eval echo '${'$as_ac_var'}'` = yes; then
70704 cat >>confdefs.h <<_ACEOF
70705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70706 _ACEOF
70708 else
70709 ac_wfuncs=no
70711 done
70714 # Checks for wide character functions that are not required
70715 # for basic wchar_t support. Don't disable support if they are missing.
70716 # Injection of these is wrapped with guard macros.
70722 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
70724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70725 echo "$as_me:$LINENO: checking for $ac_func" >&5
70726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70727 if eval "test \"\${$as_ac_var+set}\" = set"; then
70728 echo $ECHO_N "(cached) $ECHO_C" >&6
70729 else
70730 if test x$gcc_no_link = xyes; then
70731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70733 { (exit 1); exit 1; }; }
70735 cat >conftest.$ac_ext <<_ACEOF
70736 /* confdefs.h. */
70737 _ACEOF
70738 cat confdefs.h >>conftest.$ac_ext
70739 cat >>conftest.$ac_ext <<_ACEOF
70740 /* end confdefs.h. */
70741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70743 #define $ac_func innocuous_$ac_func
70745 /* System header to define __stub macros and hopefully few prototypes,
70746 which can conflict with char $ac_func (); below.
70747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70748 <limits.h> exists even on freestanding compilers. */
70750 #ifdef __STDC__
70751 # include <limits.h>
70752 #else
70753 # include <assert.h>
70754 #endif
70756 #undef $ac_func
70758 /* Override any gcc2 internal prototype to avoid an error. */
70759 #ifdef __cplusplus
70760 extern "C"
70762 #endif
70763 /* We use char because int might match the return type of a gcc2
70764 builtin and then its argument prototype would still apply. */
70765 char $ac_func ();
70766 /* The GNU C library defines this for functions which it implements
70767 to always fail with ENOSYS. Some functions are actually named
70768 something starting with __ and the normal name is an alias. */
70769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70770 choke me
70771 #else
70772 char (*f) () = $ac_func;
70773 #endif
70774 #ifdef __cplusplus
70776 #endif
70779 main ()
70781 return f != $ac_func;
70783 return 0;
70785 _ACEOF
70786 rm -f conftest.$ac_objext conftest$ac_exeext
70787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70788 (eval $ac_link) 2>conftest.er1
70789 ac_status=$?
70790 grep -v '^ *+' conftest.er1 >conftest.err
70791 rm -f conftest.er1
70792 cat conftest.err >&5
70793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70794 (exit $ac_status); } &&
70795 { ac_try='test -z "$ac_c_werror_flag"
70796 || test ! -s conftest.err'
70797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70798 (eval $ac_try) 2>&5
70799 ac_status=$?
70800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70801 (exit $ac_status); }; } &&
70802 { ac_try='test -s conftest$ac_exeext'
70803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70804 (eval $ac_try) 2>&5
70805 ac_status=$?
70806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70807 (exit $ac_status); }; }; then
70808 eval "$as_ac_var=yes"
70809 else
70810 echo "$as_me: failed program was:" >&5
70811 sed 's/^/| /' conftest.$ac_ext >&5
70813 eval "$as_ac_var=no"
70815 rm -f conftest.err conftest.$ac_objext \
70816 conftest$ac_exeext conftest.$ac_ext
70818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70820 if test `eval echo '${'$as_ac_var'}'` = yes; then
70821 cat >>confdefs.h <<_ACEOF
70822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70823 _ACEOF
70826 done
70829 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
70830 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
70831 if test x"$has_weof" = xyes &&
70832 test x"$has_wchar_minmax" = xyes &&
70833 test x"$ac_wfuncs" = xyes;
70834 then
70835 ac_isoC99_wchar_t=yes
70836 else
70837 ac_isoC99_wchar_t=no
70839 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
70840 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
70842 # Use iconv for wchar_t to char conversions. As such, check for
70843 # X/Open Portability Guide, version 2 features (XPG2).
70844 if test "${ac_cv_header_iconv_h+set}" = set; then
70845 echo "$as_me:$LINENO: checking for iconv.h" >&5
70846 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70847 if test "${ac_cv_header_iconv_h+set}" = set; then
70848 echo $ECHO_N "(cached) $ECHO_C" >&6
70850 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70851 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70852 else
70853 # Is the header compilable?
70854 echo "$as_me:$LINENO: checking iconv.h usability" >&5
70855 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
70856 cat >conftest.$ac_ext <<_ACEOF
70857 /* confdefs.h. */
70858 _ACEOF
70859 cat confdefs.h >>conftest.$ac_ext
70860 cat >>conftest.$ac_ext <<_ACEOF
70861 /* end confdefs.h. */
70862 $ac_includes_default
70863 #include <iconv.h>
70864 _ACEOF
70865 rm -f conftest.$ac_objext
70866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70867 (eval $ac_compile) 2>conftest.er1
70868 ac_status=$?
70869 grep -v '^ *+' conftest.er1 >conftest.err
70870 rm -f conftest.er1
70871 cat conftest.err >&5
70872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70873 (exit $ac_status); } &&
70874 { ac_try='test -z "$ac_c_werror_flag"
70875 || test ! -s conftest.err'
70876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70877 (eval $ac_try) 2>&5
70878 ac_status=$?
70879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70880 (exit $ac_status); }; } &&
70881 { ac_try='test -s conftest.$ac_objext'
70882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70883 (eval $ac_try) 2>&5
70884 ac_status=$?
70885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70886 (exit $ac_status); }; }; then
70887 ac_header_compiler=yes
70888 else
70889 echo "$as_me: failed program was:" >&5
70890 sed 's/^/| /' conftest.$ac_ext >&5
70892 ac_header_compiler=no
70894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70896 echo "${ECHO_T}$ac_header_compiler" >&6
70898 # Is the header present?
70899 echo "$as_me:$LINENO: checking iconv.h presence" >&5
70900 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
70901 cat >conftest.$ac_ext <<_ACEOF
70902 /* confdefs.h. */
70903 _ACEOF
70904 cat confdefs.h >>conftest.$ac_ext
70905 cat >>conftest.$ac_ext <<_ACEOF
70906 /* end confdefs.h. */
70907 #include <iconv.h>
70908 _ACEOF
70909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70911 ac_status=$?
70912 grep -v '^ *+' conftest.er1 >conftest.err
70913 rm -f conftest.er1
70914 cat conftest.err >&5
70915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70916 (exit $ac_status); } >/dev/null; then
70917 if test -s conftest.err; then
70918 ac_cpp_err=$ac_c_preproc_warn_flag
70919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70920 else
70921 ac_cpp_err=
70923 else
70924 ac_cpp_err=yes
70926 if test -z "$ac_cpp_err"; then
70927 ac_header_preproc=yes
70928 else
70929 echo "$as_me: failed program was:" >&5
70930 sed 's/^/| /' conftest.$ac_ext >&5
70932 ac_header_preproc=no
70934 rm -f conftest.err conftest.$ac_ext
70935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70936 echo "${ECHO_T}$ac_header_preproc" >&6
70938 # So? What about this header?
70939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70940 yes:no: )
70941 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
70942 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
70943 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
70944 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
70945 ac_header_preproc=yes
70947 no:yes:* )
70948 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
70949 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
70950 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
70951 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
70952 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
70953 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
70954 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
70955 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
70956 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
70957 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
70958 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
70959 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
70961 cat <<\_ASBOX
70962 ## ----------------------------------------- ##
70963 ## Report this to the package-unused lists. ##
70964 ## ----------------------------------------- ##
70965 _ASBOX
70967 sed "s/^/$as_me: WARNING: /" >&2
70969 esac
70970 echo "$as_me:$LINENO: checking for iconv.h" >&5
70971 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70972 if test "${ac_cv_header_iconv_h+set}" = set; then
70973 echo $ECHO_N "(cached) $ECHO_C" >&6
70974 else
70975 ac_cv_header_iconv_h=$ac_header_preproc
70977 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70978 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70981 if test $ac_cv_header_iconv_h = yes; then
70982 ac_has_iconv_h=yes
70983 else
70984 ac_has_iconv_h=no
70988 if test "${ac_cv_header_langinfo_h+set}" = set; then
70989 echo "$as_me:$LINENO: checking for langinfo.h" >&5
70990 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
70991 if test "${ac_cv_header_langinfo_h+set}" = set; then
70992 echo $ECHO_N "(cached) $ECHO_C" >&6
70994 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
70995 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
70996 else
70997 # Is the header compilable?
70998 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
70999 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71000 cat >conftest.$ac_ext <<_ACEOF
71001 /* confdefs.h. */
71002 _ACEOF
71003 cat confdefs.h >>conftest.$ac_ext
71004 cat >>conftest.$ac_ext <<_ACEOF
71005 /* end confdefs.h. */
71006 $ac_includes_default
71007 #include <langinfo.h>
71008 _ACEOF
71009 rm -f conftest.$ac_objext
71010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71011 (eval $ac_compile) 2>conftest.er1
71012 ac_status=$?
71013 grep -v '^ *+' conftest.er1 >conftest.err
71014 rm -f conftest.er1
71015 cat conftest.err >&5
71016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71017 (exit $ac_status); } &&
71018 { ac_try='test -z "$ac_c_werror_flag"
71019 || test ! -s conftest.err'
71020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71021 (eval $ac_try) 2>&5
71022 ac_status=$?
71023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71024 (exit $ac_status); }; } &&
71025 { ac_try='test -s conftest.$ac_objext'
71026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71027 (eval $ac_try) 2>&5
71028 ac_status=$?
71029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71030 (exit $ac_status); }; }; then
71031 ac_header_compiler=yes
71032 else
71033 echo "$as_me: failed program was:" >&5
71034 sed 's/^/| /' conftest.$ac_ext >&5
71036 ac_header_compiler=no
71038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71040 echo "${ECHO_T}$ac_header_compiler" >&6
71042 # Is the header present?
71043 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71044 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71045 cat >conftest.$ac_ext <<_ACEOF
71046 /* confdefs.h. */
71047 _ACEOF
71048 cat confdefs.h >>conftest.$ac_ext
71049 cat >>conftest.$ac_ext <<_ACEOF
71050 /* end confdefs.h. */
71051 #include <langinfo.h>
71052 _ACEOF
71053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71055 ac_status=$?
71056 grep -v '^ *+' conftest.er1 >conftest.err
71057 rm -f conftest.er1
71058 cat conftest.err >&5
71059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71060 (exit $ac_status); } >/dev/null; then
71061 if test -s conftest.err; then
71062 ac_cpp_err=$ac_c_preproc_warn_flag
71063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71064 else
71065 ac_cpp_err=
71067 else
71068 ac_cpp_err=yes
71070 if test -z "$ac_cpp_err"; then
71071 ac_header_preproc=yes
71072 else
71073 echo "$as_me: failed program was:" >&5
71074 sed 's/^/| /' conftest.$ac_ext >&5
71076 ac_header_preproc=no
71078 rm -f conftest.err conftest.$ac_ext
71079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71080 echo "${ECHO_T}$ac_header_preproc" >&6
71082 # So? What about this header?
71083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71084 yes:no: )
71085 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71086 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71087 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71088 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71089 ac_header_preproc=yes
71091 no:yes:* )
71092 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71093 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71094 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
71095 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
71096 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71097 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71098 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
71099 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
71100 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71101 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71102 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71103 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71105 cat <<\_ASBOX
71106 ## ----------------------------------------- ##
71107 ## Report this to the package-unused lists. ##
71108 ## ----------------------------------------- ##
71109 _ASBOX
71111 sed "s/^/$as_me: WARNING: /" >&2
71113 esac
71114 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71115 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71116 if test "${ac_cv_header_langinfo_h+set}" = set; then
71117 echo $ECHO_N "(cached) $ECHO_C" >&6
71118 else
71119 ac_cv_header_langinfo_h=$ac_header_preproc
71121 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71122 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71125 if test $ac_cv_header_langinfo_h = yes; then
71126 ac_has_langinfo_h=yes
71127 else
71128 ac_has_langinfo_h=no
71133 # Check for existence of libiconv.a providing XPG2 wchar_t support.
71134 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71135 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71136 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71137 echo $ECHO_N "(cached) $ECHO_C" >&6
71138 else
71139 ac_check_lib_save_LIBS=$LIBS
71140 LIBS="-liconv $LIBS"
71141 if test x$gcc_no_link = xyes; then
71142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71144 { (exit 1); exit 1; }; }
71146 cat >conftest.$ac_ext <<_ACEOF
71147 /* confdefs.h. */
71148 _ACEOF
71149 cat confdefs.h >>conftest.$ac_ext
71150 cat >>conftest.$ac_ext <<_ACEOF
71151 /* end confdefs.h. */
71153 /* Override any gcc2 internal prototype to avoid an error. */
71154 #ifdef __cplusplus
71155 extern "C"
71156 #endif
71157 /* We use char because int might match the return type of a gcc2
71158 builtin and then its argument prototype would still apply. */
71159 char iconv ();
71161 main ()
71163 iconv ();
71165 return 0;
71167 _ACEOF
71168 rm -f conftest.$ac_objext conftest$ac_exeext
71169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71170 (eval $ac_link) 2>conftest.er1
71171 ac_status=$?
71172 grep -v '^ *+' conftest.er1 >conftest.err
71173 rm -f conftest.er1
71174 cat conftest.err >&5
71175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71176 (exit $ac_status); } &&
71177 { ac_try='test -z "$ac_c_werror_flag"
71178 || test ! -s conftest.err'
71179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71180 (eval $ac_try) 2>&5
71181 ac_status=$?
71182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71183 (exit $ac_status); }; } &&
71184 { ac_try='test -s conftest$ac_exeext'
71185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71186 (eval $ac_try) 2>&5
71187 ac_status=$?
71188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71189 (exit $ac_status); }; }; then
71190 ac_cv_lib_iconv_iconv=yes
71191 else
71192 echo "$as_me: failed program was:" >&5
71193 sed 's/^/| /' conftest.$ac_ext >&5
71195 ac_cv_lib_iconv_iconv=no
71197 rm -f conftest.err conftest.$ac_objext \
71198 conftest$ac_exeext conftest.$ac_ext
71199 LIBS=$ac_check_lib_save_LIBS
71201 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71202 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71203 if test $ac_cv_lib_iconv_iconv = yes; then
71204 libiconv="-liconv"
71207 ac_save_LIBS="$LIBS"
71208 LIBS="$LIBS $libiconv"
71214 for ac_func in iconv_open iconv_close iconv nl_langinfo
71216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71217 echo "$as_me:$LINENO: checking for $ac_func" >&5
71218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71219 if eval "test \"\${$as_ac_var+set}\" = set"; then
71220 echo $ECHO_N "(cached) $ECHO_C" >&6
71221 else
71222 if test x$gcc_no_link = xyes; then
71223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71225 { (exit 1); exit 1; }; }
71227 cat >conftest.$ac_ext <<_ACEOF
71228 /* confdefs.h. */
71229 _ACEOF
71230 cat confdefs.h >>conftest.$ac_ext
71231 cat >>conftest.$ac_ext <<_ACEOF
71232 /* end confdefs.h. */
71233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71235 #define $ac_func innocuous_$ac_func
71237 /* System header to define __stub macros and hopefully few prototypes,
71238 which can conflict with char $ac_func (); below.
71239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71240 <limits.h> exists even on freestanding compilers. */
71242 #ifdef __STDC__
71243 # include <limits.h>
71244 #else
71245 # include <assert.h>
71246 #endif
71248 #undef $ac_func
71250 /* Override any gcc2 internal prototype to avoid an error. */
71251 #ifdef __cplusplus
71252 extern "C"
71254 #endif
71255 /* We use char because int might match the return type of a gcc2
71256 builtin and then its argument prototype would still apply. */
71257 char $ac_func ();
71258 /* The GNU C library defines this for functions which it implements
71259 to always fail with ENOSYS. Some functions are actually named
71260 something starting with __ and the normal name is an alias. */
71261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71262 choke me
71263 #else
71264 char (*f) () = $ac_func;
71265 #endif
71266 #ifdef __cplusplus
71268 #endif
71271 main ()
71273 return f != $ac_func;
71275 return 0;
71277 _ACEOF
71278 rm -f conftest.$ac_objext conftest$ac_exeext
71279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71280 (eval $ac_link) 2>conftest.er1
71281 ac_status=$?
71282 grep -v '^ *+' conftest.er1 >conftest.err
71283 rm -f conftest.er1
71284 cat conftest.err >&5
71285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71286 (exit $ac_status); } &&
71287 { ac_try='test -z "$ac_c_werror_flag"
71288 || test ! -s conftest.err'
71289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71290 (eval $ac_try) 2>&5
71291 ac_status=$?
71292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71293 (exit $ac_status); }; } &&
71294 { ac_try='test -s conftest$ac_exeext'
71295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71296 (eval $ac_try) 2>&5
71297 ac_status=$?
71298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71299 (exit $ac_status); }; }; then
71300 eval "$as_ac_var=yes"
71301 else
71302 echo "$as_me: failed program was:" >&5
71303 sed 's/^/| /' conftest.$ac_ext >&5
71305 eval "$as_ac_var=no"
71307 rm -f conftest.err conftest.$ac_objext \
71308 conftest$ac_exeext conftest.$ac_ext
71310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71312 if test `eval echo '${'$as_ac_var'}'` = yes; then
71313 cat >>confdefs.h <<_ACEOF
71314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71315 _ACEOF
71316 ac_XPG2funcs=yes
71317 else
71318 ac_XPG2funcs=no
71320 done
71323 LIBS="$ac_save_LIBS"
71325 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71326 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71327 if test x"$ac_has_iconv_h" = xyes &&
71328 test x"$ac_has_langinfo_h" = xyes &&
71329 test x"$ac_XPG2funcs" = xyes;
71330 then
71331 ac_XPG2_wchar_t=yes
71332 else
71333 ac_XPG2_wchar_t=no
71335 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71336 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71338 # At the moment, only enable wchar_t specializations if all the
71339 # above support is present.
71340 if test x"$ac_isoC99_wchar_t" = xyes &&
71341 test x"$ac_XPG2_wchar_t" = xyes;
71342 then
71343 cat >>confdefs.h <<\_ACEOF
71344 #define _GLIBCXX_USE_WCHAR_T 1
71345 _ACEOF
71347 enable_wchar_t=yes
71350 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71351 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71352 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71353 echo "${ECHO_T}$enable_wchar_t" >&6
71355 cat >>confdefs.h <<\_ACEOF
71356 #define HAVE_COPYSIGN 1
71357 _ACEOF
71359 cat >>confdefs.h <<\_ACEOF
71360 #define HAVE_COPYSIGNF 1
71361 _ACEOF
71363 cat >>confdefs.h <<\_ACEOF
71364 #define HAVE_FINITE 1
71365 _ACEOF
71367 cat >>confdefs.h <<\_ACEOF
71368 #define HAVE_FINITEF 1
71369 _ACEOF
71371 cat >>confdefs.h <<\_ACEOF
71372 #define HAVE_FREXPF 1
71373 _ACEOF
71375 cat >>confdefs.h <<\_ACEOF
71376 #define HAVE_HYPOTF 1
71377 _ACEOF
71379 cat >>confdefs.h <<\_ACEOF
71380 #define HAVE_ISINF 1
71381 _ACEOF
71383 cat >>confdefs.h <<\_ACEOF
71384 #define HAVE_ISINFF 1
71385 _ACEOF
71387 cat >>confdefs.h <<\_ACEOF
71388 #define HAVE_ISNAN 1
71389 _ACEOF
71391 cat >>confdefs.h <<\_ACEOF
71392 #define HAVE_ISNANF 1
71393 _ACEOF
71395 cat >>confdefs.h <<\_ACEOF
71396 #define HAVE_SINCOS 1
71397 _ACEOF
71399 cat >>confdefs.h <<\_ACEOF
71400 #define HAVE_SINCOSF 1
71401 _ACEOF
71403 if test x"long_double_math_on_this_cpu" = x"yes"; then
71404 cat >>confdefs.h <<\_ACEOF
71405 #define HAVE_FINITEL 1
71406 _ACEOF
71408 cat >>confdefs.h <<\_ACEOF
71409 #define HAVE_HYPOTL 1
71410 _ACEOF
71412 cat >>confdefs.h <<\_ACEOF
71413 #define HAVE_ISINFL 1
71414 _ACEOF
71416 cat >>confdefs.h <<\_ACEOF
71417 #define HAVE_ISNANL 1
71418 _ACEOF
71422 *-vxworks)
71423 cat >>confdefs.h <<\_ACEOF
71424 #define HAVE_MMAP 1
71425 _ACEOF
71427 cat >>confdefs.h <<\_ACEOF
71428 #define HAVE_ACOSF 1
71429 _ACEOF
71431 cat >>confdefs.h <<\_ACEOF
71432 #define HAVE_ASINF 1
71433 _ACEOF
71435 cat >>confdefs.h <<\_ACEOF
71436 #define HAVE_ATAN2F 1
71437 _ACEOF
71439 cat >>confdefs.h <<\_ACEOF
71440 #define HAVE_ATANF 1
71441 _ACEOF
71443 cat >>confdefs.h <<\_ACEOF
71444 #define HAVE_CEILF 1
71445 _ACEOF
71447 cat >>confdefs.h <<\_ACEOF
71448 #define HAVE_COSF 1
71449 _ACEOF
71451 cat >>confdefs.h <<\_ACEOF
71452 #define HAVE_COSHF 1
71453 _ACEOF
71455 cat >>confdefs.h <<\_ACEOF
71456 #define HAVE_EXPF 1
71457 _ACEOF
71459 cat >>confdefs.h <<\_ACEOF
71460 #define HAVE_FABSF 1
71461 _ACEOF
71463 cat >>confdefs.h <<\_ACEOF
71464 #define HAVE_FLOORF 1
71465 _ACEOF
71467 cat >>confdefs.h <<\_ACEOF
71468 #define HAVE_FMODF 1
71469 _ACEOF
71471 cat >>confdefs.h <<\_ACEOF
71472 #define HAVE_HYPOT 1
71473 _ACEOF
71475 cat >>confdefs.h <<\_ACEOF
71476 #define HAVE_LOG10F 1
71477 _ACEOF
71479 cat >>confdefs.h <<\_ACEOF
71480 #define HAVE_LOGF 1
71481 _ACEOF
71483 cat >>confdefs.h <<\_ACEOF
71484 #define HAVE_POWF 1
71485 _ACEOF
71487 cat >>confdefs.h <<\_ACEOF
71488 #define HAVE_SINF 1
71489 _ACEOF
71491 cat >>confdefs.h <<\_ACEOF
71492 #define HAVE_SINHF 1
71493 _ACEOF
71495 cat >>confdefs.h <<\_ACEOF
71496 #define HAVE_SQRTF 1
71497 _ACEOF
71499 cat >>confdefs.h <<\_ACEOF
71500 #define HAVE_TANF 1
71501 _ACEOF
71503 cat >>confdefs.h <<\_ACEOF
71504 #define HAVE_TANHF 1
71505 _ACEOF
71508 *-windiss*)
71509 cat >>confdefs.h <<\_ACEOF
71510 #define HAVE_ACOSF 1
71511 _ACEOF
71513 cat >>confdefs.h <<\_ACEOF
71514 #define HAVE_ACOSL 1
71515 _ACEOF
71517 cat >>confdefs.h <<\_ACEOF
71518 #define HAVE_ASINF 1
71519 _ACEOF
71521 cat >>confdefs.h <<\_ACEOF
71522 #define HAVE_ASINL 1
71523 _ACEOF
71525 cat >>confdefs.h <<\_ACEOF
71526 #define HAVE_ATAN2F 1
71527 _ACEOF
71529 cat >>confdefs.h <<\_ACEOF
71530 #define HAVE_ATAN2L 1
71531 _ACEOF
71533 cat >>confdefs.h <<\_ACEOF
71534 #define HAVE_ATANF 1
71535 _ACEOF
71537 cat >>confdefs.h <<\_ACEOF
71538 #define HAVE_ATANL 1
71539 _ACEOF
71541 cat >>confdefs.h <<\_ACEOF
71542 #define HAVE_CEILF 1
71543 _ACEOF
71545 cat >>confdefs.h <<\_ACEOF
71546 #define HAVE_CEILL 1
71547 _ACEOF
71549 cat >>confdefs.h <<\_ACEOF
71550 #define HAVE_COPYSIGN 1
71551 _ACEOF
71553 cat >>confdefs.h <<\_ACEOF
71554 #define HAVE_COPYSIGNF 1
71555 _ACEOF
71557 cat >>confdefs.h <<\_ACEOF
71558 #define HAVE_COSF 1
71559 _ACEOF
71561 cat >>confdefs.h <<\_ACEOF
71562 #define HAVE_COSL 1
71563 _ACEOF
71565 cat >>confdefs.h <<\_ACEOF
71566 #define HAVE_COSHF 1
71567 _ACEOF
71569 cat >>confdefs.h <<\_ACEOF
71570 #define HAVE_COSHL 1
71571 _ACEOF
71573 cat >>confdefs.h <<\_ACEOF
71574 #define HAVE_EXPF 1
71575 _ACEOF
71577 cat >>confdefs.h <<\_ACEOF
71578 #define HAVE_EXPL 1
71579 _ACEOF
71581 cat >>confdefs.h <<\_ACEOF
71582 #define HAVE_FABSF 1
71583 _ACEOF
71585 cat >>confdefs.h <<\_ACEOF
71586 #define HAVE_FABSL 1
71587 _ACEOF
71589 cat >>confdefs.h <<\_ACEOF
71590 #define HAVE_FLOORF 1
71591 _ACEOF
71593 cat >>confdefs.h <<\_ACEOF
71594 #define HAVE_FLOORL 1
71595 _ACEOF
71597 cat >>confdefs.h <<\_ACEOF
71598 #define HAVE_FMODF 1
71599 _ACEOF
71601 cat >>confdefs.h <<\_ACEOF
71602 #define HAVE_FMODL 1
71603 _ACEOF
71605 cat >>confdefs.h <<\_ACEOF
71606 #define HAVE_FREXPF 1
71607 _ACEOF
71609 cat >>confdefs.h <<\_ACEOF
71610 #define HAVE_FREXPL 1
71611 _ACEOF
71613 cat >>confdefs.h <<\_ACEOF
71614 #define HAVE_LDEXPF 1
71615 _ACEOF
71617 cat >>confdefs.h <<\_ACEOF
71618 #define HAVE_LDEXPL 1
71619 _ACEOF
71621 cat >>confdefs.h <<\_ACEOF
71622 #define HAVE_LOG10F 1
71623 _ACEOF
71625 cat >>confdefs.h <<\_ACEOF
71626 #define HAVE_LOG10L 1
71627 _ACEOF
71629 cat >>confdefs.h <<\_ACEOF
71630 #define HAVE_LOGF 1
71631 _ACEOF
71633 cat >>confdefs.h <<\_ACEOF
71634 #define HAVE_MODFF 1
71635 _ACEOF
71637 cat >>confdefs.h <<\_ACEOF
71638 #define HAVE_MODFL 1
71639 _ACEOF
71641 cat >>confdefs.h <<\_ACEOF
71642 #define HAVE_POWF 1
71643 _ACEOF
71645 cat >>confdefs.h <<\_ACEOF
71646 #define HAVE_POWL 1
71647 _ACEOF
71649 cat >>confdefs.h <<\_ACEOF
71650 #define HAVE_SINF 1
71651 _ACEOF
71653 cat >>confdefs.h <<\_ACEOF
71654 #define HAVE_SINL 1
71655 _ACEOF
71657 cat >>confdefs.h <<\_ACEOF
71658 #define HAVE_SINHF 1
71659 _ACEOF
71661 cat >>confdefs.h <<\_ACEOF
71662 #define HAVE_SINHL 1
71663 _ACEOF
71665 cat >>confdefs.h <<\_ACEOF
71666 #define HAVE_SQRTF 1
71667 _ACEOF
71669 cat >>confdefs.h <<\_ACEOF
71670 #define HAVE_SQRTL 1
71671 _ACEOF
71673 cat >>confdefs.h <<\_ACEOF
71674 #define HAVE_TANF 1
71675 _ACEOF
71677 cat >>confdefs.h <<\_ACEOF
71678 #define HAVE_TANL 1
71679 _ACEOF
71681 cat >>confdefs.h <<\_ACEOF
71682 #define HAVE_TANHF 1
71683 _ACEOF
71685 cat >>confdefs.h <<\_ACEOF
71686 #define HAVE_TANHL 1
71687 _ACEOF
71691 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
71692 echo "$as_me: error: No support for this host/target combination." >&2;}
71693 { (exit 1); exit 1; }; }
71695 esac
71700 # At some point, we should differentiate between architectures
71701 # like x86, which have long double versions, and alpha/powerpc/etc.,
71702 # which don't. For the time being, punt.
71703 if test x"long_double_math_on_this_cpu" = x"yes"; then
71704 cat >>confdefs.h <<\_ACEOF
71705 #define HAVE_ACOSL 1
71706 _ACEOF
71708 cat >>confdefs.h <<\_ACEOF
71709 #define HAVE_ASINL 1
71710 _ACEOF
71712 cat >>confdefs.h <<\_ACEOF
71713 #define HAVE_ATAN2L 1
71714 _ACEOF
71716 cat >>confdefs.h <<\_ACEOF
71717 #define HAVE_ATANL 1
71718 _ACEOF
71720 cat >>confdefs.h <<\_ACEOF
71721 #define HAVE_CEILL 1
71722 _ACEOF
71724 cat >>confdefs.h <<\_ACEOF
71725 #define HAVE_COPYSIGNL 1
71726 _ACEOF
71728 cat >>confdefs.h <<\_ACEOF
71729 #define HAVE_COSL 1
71730 _ACEOF
71732 cat >>confdefs.h <<\_ACEOF
71733 #define HAVE_COSHL 1
71734 _ACEOF
71736 cat >>confdefs.h <<\_ACEOF
71737 #define HAVE_EXPL 1
71738 _ACEOF
71740 cat >>confdefs.h <<\_ACEOF
71741 #define HAVE_FABSL 1
71742 _ACEOF
71744 cat >>confdefs.h <<\_ACEOF
71745 #define HAVE_FLOORL 1
71746 _ACEOF
71748 cat >>confdefs.h <<\_ACEOF
71749 #define HAVE_FMODL 1
71750 _ACEOF
71752 cat >>confdefs.h <<\_ACEOF
71753 #define HAVE_FREXPL 1
71754 _ACEOF
71756 cat >>confdefs.h <<\_ACEOF
71757 #define HAVE_LDEXPL 1
71758 _ACEOF
71760 cat >>confdefs.h <<\_ACEOF
71761 #define HAVE_LOG10L 1
71762 _ACEOF
71764 cat >>confdefs.h <<\_ACEOF
71765 #define HAVE_LOGL 1
71766 _ACEOF
71768 cat >>confdefs.h <<\_ACEOF
71769 #define HAVE_MODFL 1
71770 _ACEOF
71772 cat >>confdefs.h <<\_ACEOF
71773 #define HAVE_POWL 1
71774 _ACEOF
71776 cat >>confdefs.h <<\_ACEOF
71777 #define HAVE_SINCOSL 1
71778 _ACEOF
71780 cat >>confdefs.h <<\_ACEOF
71781 #define HAVE_SINL 1
71782 _ACEOF
71784 cat >>confdefs.h <<\_ACEOF
71785 #define HAVE_SINHL 1
71786 _ACEOF
71788 cat >>confdefs.h <<\_ACEOF
71789 #define HAVE_SQRTL 1
71790 _ACEOF
71792 cat >>confdefs.h <<\_ACEOF
71793 #define HAVE_TANL 1
71794 _ACEOF
71796 cat >>confdefs.h <<\_ACEOF
71797 #define HAVE_TANHL 1
71798 _ACEOF
71804 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
71807 # Check whether --enable-symvers or --disable-symvers was given.
71808 if test "${enable_symvers+set}" = set; then
71809 enableval="$enable_symvers"
71811 case "$enableval" in
71812 yes|no|gnu) ;;
71813 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
71814 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
71815 { (exit 1); exit 1; }; } ;;
71816 esac
71818 else
71819 enable_symvers=yes
71823 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
71824 # don't know enough about $LD to do tricks...
71826 # FIXME The following test is too strict, in theory.
71827 if test $enable_shared = no ||
71828 test "x$LD" = x ||
71829 test x$glibcxx_gnu_ld_version = x; then
71830 enable_symvers=no
71833 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
71834 if test $enable_symvers != no; then
71835 echo "$as_me:$LINENO: checking for shared libgcc" >&5
71836 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
71837 ac_save_CFLAGS="$CFLAGS"
71838 CFLAGS=' -lgcc_s'
71839 if test x$gcc_no_link = xyes; then
71840 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71842 { (exit 1); exit 1; }; }
71844 cat >conftest.$ac_ext <<_ACEOF
71845 /* confdefs.h. */
71846 _ACEOF
71847 cat confdefs.h >>conftest.$ac_ext
71848 cat >>conftest.$ac_ext <<_ACEOF
71849 /* end confdefs.h. */
71852 main ()
71854 return 0;
71856 return 0;
71858 _ACEOF
71859 rm -f conftest.$ac_objext conftest$ac_exeext
71860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71861 (eval $ac_link) 2>conftest.er1
71862 ac_status=$?
71863 grep -v '^ *+' conftest.er1 >conftest.err
71864 rm -f conftest.er1
71865 cat conftest.err >&5
71866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71867 (exit $ac_status); } &&
71868 { ac_try='test -z "$ac_c_werror_flag"
71869 || test ! -s conftest.err'
71870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71871 (eval $ac_try) 2>&5
71872 ac_status=$?
71873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71874 (exit $ac_status); }; } &&
71875 { ac_try='test -s conftest$ac_exeext'
71876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71877 (eval $ac_try) 2>&5
71878 ac_status=$?
71879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71880 (exit $ac_status); }; }; then
71881 glibcxx_shared_libgcc=yes
71882 else
71883 echo "$as_me: failed program was:" >&5
71884 sed 's/^/| /' conftest.$ac_ext >&5
71886 glibcxx_shared_libgcc=no
71888 rm -f conftest.err conftest.$ac_objext \
71889 conftest$ac_exeext conftest.$ac_ext
71890 CFLAGS="$ac_save_CFLAGS"
71891 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
71892 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
71895 # For GNU ld, we need at least this version. The format is described in
71896 # GLIBCXX_CHECK_LINKER_FEATURES above.
71897 glibcxx_min_gnu_ld_version=21400
71898 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
71900 # Check to see if unspecified "yes" value can win, given results above.
71901 # Change "yes" into either "no" or a style name.
71902 if test $enable_symvers = yes; then
71903 if test $with_gnu_ld = yes &&
71904 test $glibcxx_shared_libgcc = yes;
71905 then
71906 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
71907 enable_symvers=gnu
71908 else
71909 # The right tools, the right setup, but too old. Fallbacks?
71910 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
71911 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
71912 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
71913 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
71914 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
71915 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
71916 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
71917 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
71918 if test $glibcxx_gnu_ld_version -ge 21200 ; then
71919 # Globbing fix is present, proper block support is not.
71920 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71921 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71922 enable_symvers=no
71923 else
71924 # 2.11 or older.
71925 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71926 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71927 enable_symvers=no
71930 else
71931 # just fail for now
71932 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
71933 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
71934 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
71935 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
71936 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
71937 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
71938 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71939 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71940 enable_symvers=no
71944 # Everything parsed; figure out what file to use.
71945 case $enable_symvers in
71947 SYMVER_MAP=config/linker-map.dummy
71949 gnu)
71950 SYMVER_MAP=config/linker-map.gnu
71951 cat >>confdefs.h <<\_ACEOF
71952 #define _GLIBCXX_SYMVER 1
71953 _ACEOF
71956 esac
71961 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
71962 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
71965 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
71967 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
71968 # Do checks for memory limit functions.
71970 setrlimit_have_headers=yes
71974 for ac_header in unistd.h sys/time.h sys/resource.h
71976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
71977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
71978 echo "$as_me:$LINENO: checking for $ac_header" >&5
71979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
71980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
71981 echo $ECHO_N "(cached) $ECHO_C" >&6
71983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
71984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
71985 else
71986 # Is the header compilable?
71987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
71988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
71989 cat >conftest.$ac_ext <<_ACEOF
71990 /* confdefs.h. */
71991 _ACEOF
71992 cat confdefs.h >>conftest.$ac_ext
71993 cat >>conftest.$ac_ext <<_ACEOF
71994 /* end confdefs.h. */
71995 $ac_includes_default
71996 #include <$ac_header>
71997 _ACEOF
71998 rm -f conftest.$ac_objext
71999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72000 (eval $ac_compile) 2>conftest.er1
72001 ac_status=$?
72002 grep -v '^ *+' conftest.er1 >conftest.err
72003 rm -f conftest.er1
72004 cat conftest.err >&5
72005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72006 (exit $ac_status); } &&
72007 { ac_try='test -z "$ac_c_werror_flag"
72008 || test ! -s conftest.err'
72009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72010 (eval $ac_try) 2>&5
72011 ac_status=$?
72012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72013 (exit $ac_status); }; } &&
72014 { ac_try='test -s conftest.$ac_objext'
72015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72016 (eval $ac_try) 2>&5
72017 ac_status=$?
72018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72019 (exit $ac_status); }; }; then
72020 ac_header_compiler=yes
72021 else
72022 echo "$as_me: failed program was:" >&5
72023 sed 's/^/| /' conftest.$ac_ext >&5
72025 ac_header_compiler=no
72027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72029 echo "${ECHO_T}$ac_header_compiler" >&6
72031 # Is the header present?
72032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72034 cat >conftest.$ac_ext <<_ACEOF
72035 /* confdefs.h. */
72036 _ACEOF
72037 cat confdefs.h >>conftest.$ac_ext
72038 cat >>conftest.$ac_ext <<_ACEOF
72039 /* end confdefs.h. */
72040 #include <$ac_header>
72041 _ACEOF
72042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72044 ac_status=$?
72045 grep -v '^ *+' conftest.er1 >conftest.err
72046 rm -f conftest.er1
72047 cat conftest.err >&5
72048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72049 (exit $ac_status); } >/dev/null; then
72050 if test -s conftest.err; then
72051 ac_cpp_err=$ac_c_preproc_warn_flag
72052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72053 else
72054 ac_cpp_err=
72056 else
72057 ac_cpp_err=yes
72059 if test -z "$ac_cpp_err"; then
72060 ac_header_preproc=yes
72061 else
72062 echo "$as_me: failed program was:" >&5
72063 sed 's/^/| /' conftest.$ac_ext >&5
72065 ac_header_preproc=no
72067 rm -f conftest.err conftest.$ac_ext
72068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72069 echo "${ECHO_T}$ac_header_preproc" >&6
72071 # So? What about this header?
72072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72073 yes:no: )
72074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72078 ac_header_preproc=yes
72080 no:yes:* )
72081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
72084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
72085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
72088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
72089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72094 cat <<\_ASBOX
72095 ## ----------------------------------------- ##
72096 ## Report this to the package-unused lists. ##
72097 ## ----------------------------------------- ##
72098 _ASBOX
72100 sed "s/^/$as_me: WARNING: /" >&2
72102 esac
72103 echo "$as_me:$LINENO: checking for $ac_header" >&5
72104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72106 echo $ECHO_N "(cached) $ECHO_C" >&6
72107 else
72108 eval "$as_ac_Header=\$ac_header_preproc"
72110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72115 cat >>confdefs.h <<_ACEOF
72116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72117 _ACEOF
72119 else
72120 setrlimit_have_headers=no
72123 done
72125 # If don't have the headers, then we can't run the tests now, and we
72126 # won't be seeing any of these during testsuite compilation.
72127 if test $setrlimit_have_headers = yes; then
72128 # Can't do these in a loop, else the resulting syntax is wrong.
72130 cat >conftest.$ac_ext <<_ACEOF
72131 /* confdefs.h. */
72132 _ACEOF
72133 cat confdefs.h >>conftest.$ac_ext
72134 cat >>conftest.$ac_ext <<_ACEOF
72135 /* end confdefs.h. */
72136 #include <unistd.h>
72137 #include <sys/time.h>
72138 #include <sys/resource.h>
72141 main ()
72143 int f = RLIMIT_DATA ;
72145 return 0;
72147 _ACEOF
72148 rm -f conftest.$ac_objext
72149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72150 (eval $ac_compile) 2>conftest.er1
72151 ac_status=$?
72152 grep -v '^ *+' conftest.er1 >conftest.err
72153 rm -f conftest.er1
72154 cat conftest.err >&5
72155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72156 (exit $ac_status); } &&
72157 { ac_try='test -z "$ac_c_werror_flag"
72158 || test ! -s conftest.err'
72159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72160 (eval $ac_try) 2>&5
72161 ac_status=$?
72162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72163 (exit $ac_status); }; } &&
72164 { ac_try='test -s conftest.$ac_objext'
72165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72166 (eval $ac_try) 2>&5
72167 ac_status=$?
72168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72169 (exit $ac_status); }; }; then
72170 glibcxx_mresult=1
72171 else
72172 echo "$as_me: failed program was:" >&5
72173 sed 's/^/| /' conftest.$ac_ext >&5
72175 glibcxx_mresult=0
72177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72179 cat >>confdefs.h <<_ACEOF
72180 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
72181 _ACEOF
72185 cat >conftest.$ac_ext <<_ACEOF
72186 /* confdefs.h. */
72187 _ACEOF
72188 cat confdefs.h >>conftest.$ac_ext
72189 cat >>conftest.$ac_ext <<_ACEOF
72190 /* end confdefs.h. */
72191 #include <unistd.h>
72192 #include <sys/time.h>
72193 #include <sys/resource.h>
72196 main ()
72198 int f = RLIMIT_RSS ;
72200 return 0;
72202 _ACEOF
72203 rm -f conftest.$ac_objext
72204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72205 (eval $ac_compile) 2>conftest.er1
72206 ac_status=$?
72207 grep -v '^ *+' conftest.er1 >conftest.err
72208 rm -f conftest.er1
72209 cat conftest.err >&5
72210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72211 (exit $ac_status); } &&
72212 { ac_try='test -z "$ac_c_werror_flag"
72213 || test ! -s conftest.err'
72214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72215 (eval $ac_try) 2>&5
72216 ac_status=$?
72217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72218 (exit $ac_status); }; } &&
72219 { ac_try='test -s conftest.$ac_objext'
72220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72221 (eval $ac_try) 2>&5
72222 ac_status=$?
72223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72224 (exit $ac_status); }; }; then
72225 glibcxx_mresult=1
72226 else
72227 echo "$as_me: failed program was:" >&5
72228 sed 's/^/| /' conftest.$ac_ext >&5
72230 glibcxx_mresult=0
72232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72234 cat >>confdefs.h <<_ACEOF
72235 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
72236 _ACEOF
72240 cat >conftest.$ac_ext <<_ACEOF
72241 /* confdefs.h. */
72242 _ACEOF
72243 cat confdefs.h >>conftest.$ac_ext
72244 cat >>conftest.$ac_ext <<_ACEOF
72245 /* end confdefs.h. */
72246 #include <unistd.h>
72247 #include <sys/time.h>
72248 #include <sys/resource.h>
72251 main ()
72253 int f = RLIMIT_VMEM ;
72255 return 0;
72257 _ACEOF
72258 rm -f conftest.$ac_objext
72259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72260 (eval $ac_compile) 2>conftest.er1
72261 ac_status=$?
72262 grep -v '^ *+' conftest.er1 >conftest.err
72263 rm -f conftest.er1
72264 cat conftest.err >&5
72265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72266 (exit $ac_status); } &&
72267 { ac_try='test -z "$ac_c_werror_flag"
72268 || test ! -s conftest.err'
72269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72270 (eval $ac_try) 2>&5
72271 ac_status=$?
72272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72273 (exit $ac_status); }; } &&
72274 { ac_try='test -s conftest.$ac_objext'
72275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72276 (eval $ac_try) 2>&5
72277 ac_status=$?
72278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72279 (exit $ac_status); }; }; then
72280 glibcxx_mresult=1
72281 else
72282 echo "$as_me: failed program was:" >&5
72283 sed 's/^/| /' conftest.$ac_ext >&5
72285 glibcxx_mresult=0
72287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72289 cat >>confdefs.h <<_ACEOF
72290 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
72291 _ACEOF
72295 cat >conftest.$ac_ext <<_ACEOF
72296 /* confdefs.h. */
72297 _ACEOF
72298 cat confdefs.h >>conftest.$ac_ext
72299 cat >>conftest.$ac_ext <<_ACEOF
72300 /* end confdefs.h. */
72301 #include <unistd.h>
72302 #include <sys/time.h>
72303 #include <sys/resource.h>
72306 main ()
72308 int f = RLIMIT_AS ;
72310 return 0;
72312 _ACEOF
72313 rm -f conftest.$ac_objext
72314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72315 (eval $ac_compile) 2>conftest.er1
72316 ac_status=$?
72317 grep -v '^ *+' conftest.er1 >conftest.err
72318 rm -f conftest.er1
72319 cat conftest.err >&5
72320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72321 (exit $ac_status); } &&
72322 { ac_try='test -z "$ac_c_werror_flag"
72323 || test ! -s conftest.err'
72324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72325 (eval $ac_try) 2>&5
72326 ac_status=$?
72327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72328 (exit $ac_status); }; } &&
72329 { ac_try='test -s conftest.$ac_objext'
72330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72331 (eval $ac_try) 2>&5
72332 ac_status=$?
72333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72334 (exit $ac_status); }; }; then
72335 glibcxx_mresult=1
72336 else
72337 echo "$as_me: failed program was:" >&5
72338 sed 's/^/| /' conftest.$ac_ext >&5
72340 glibcxx_mresult=0
72342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72344 cat >>confdefs.h <<_ACEOF
72345 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
72346 _ACEOF
72350 # Check for rlimit, setrlimit.
72351 if test "${ac_setrlimit+set}" = set; then
72352 echo $ECHO_N "(cached) $ECHO_C" >&6
72353 else
72355 cat >conftest.$ac_ext <<_ACEOF
72356 /* confdefs.h. */
72357 _ACEOF
72358 cat confdefs.h >>conftest.$ac_ext
72359 cat >>conftest.$ac_ext <<_ACEOF
72360 /* end confdefs.h. */
72361 #include <unistd.h>
72362 #include <sys/time.h>
72363 #include <sys/resource.h>
72366 main ()
72368 struct rlimit r;
72369 setrlimit(0, &r);
72371 return 0;
72373 _ACEOF
72374 rm -f conftest.$ac_objext
72375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72376 (eval $ac_compile) 2>conftest.er1
72377 ac_status=$?
72378 grep -v '^ *+' conftest.er1 >conftest.err
72379 rm -f conftest.er1
72380 cat conftest.err >&5
72381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72382 (exit $ac_status); } &&
72383 { ac_try='test -z "$ac_c_werror_flag"
72384 || test ! -s conftest.err'
72385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72386 (eval $ac_try) 2>&5
72387 ac_status=$?
72388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72389 (exit $ac_status); }; } &&
72390 { ac_try='test -s conftest.$ac_objext'
72391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72392 (eval $ac_try) 2>&5
72393 ac_status=$?
72394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72395 (exit $ac_status); }; }; then
72396 ac_setrlimit=yes
72397 else
72398 echo "$as_me: failed program was:" >&5
72399 sed 's/^/| /' conftest.$ac_ext >&5
72401 ac_setrlimit=no
72403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72409 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
72410 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
72411 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72412 ac_mem_limits=yes
72413 cat >>confdefs.h <<\_ACEOF
72414 #define _GLIBCXX_MEM_LIMITS 1
72415 _ACEOF
72417 else
72418 ac_mem_limits=no
72420 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
72421 echo "${ECHO_T}$ac_mem_limits" >&6
72424 # Look for setenv, so that extended locale tests can be performed.
72426 echo "$as_me:$LINENO: checking for setenv declaration" >&5
72427 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72428 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72429 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72430 echo $ECHO_N "(cached) $ECHO_C" >&6
72431 else
72435 ac_ext=cc
72436 ac_cpp='$CXXCPP $CPPFLAGS'
72437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72441 cat >conftest.$ac_ext <<_ACEOF
72442 /* confdefs.h. */
72443 _ACEOF
72444 cat confdefs.h >>conftest.$ac_ext
72445 cat >>conftest.$ac_ext <<_ACEOF
72446 /* end confdefs.h. */
72447 #include <stdlib.h>
72449 main ()
72451 setenv(0, 0, 0);
72453 return 0;
72455 _ACEOF
72456 rm -f conftest.$ac_objext
72457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72458 (eval $ac_compile) 2>conftest.er1
72459 ac_status=$?
72460 grep -v '^ *+' conftest.er1 >conftest.err
72461 rm -f conftest.er1
72462 cat conftest.err >&5
72463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72464 (exit $ac_status); } &&
72465 { ac_try='test -z "$ac_cxx_werror_flag"
72466 || test ! -s conftest.err'
72467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72468 (eval $ac_try) 2>&5
72469 ac_status=$?
72470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72471 (exit $ac_status); }; } &&
72472 { ac_try='test -s conftest.$ac_objext'
72473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72474 (eval $ac_try) 2>&5
72475 ac_status=$?
72476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72477 (exit $ac_status); }; }; then
72478 glibcxx_cv_func_setenv_use=yes
72479 else
72480 echo "$as_me: failed program was:" >&5
72481 sed 's/^/| /' conftest.$ac_ext >&5
72483 glibcxx_cv_func_setenv_use=no
72485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72486 ac_ext=c
72487 ac_cpp='$CPP $CPPFLAGS'
72488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72496 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72497 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72498 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72500 for ac_func in setenv
72502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72503 echo "$as_me:$LINENO: checking for $ac_func" >&5
72504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72505 if eval "test \"\${$as_ac_var+set}\" = set"; then
72506 echo $ECHO_N "(cached) $ECHO_C" >&6
72507 else
72508 if test x$gcc_no_link = xyes; then
72509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72511 { (exit 1); exit 1; }; }
72513 cat >conftest.$ac_ext <<_ACEOF
72514 /* confdefs.h. */
72515 _ACEOF
72516 cat confdefs.h >>conftest.$ac_ext
72517 cat >>conftest.$ac_ext <<_ACEOF
72518 /* end confdefs.h. */
72519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72521 #define $ac_func innocuous_$ac_func
72523 /* System header to define __stub macros and hopefully few prototypes,
72524 which can conflict with char $ac_func (); below.
72525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72526 <limits.h> exists even on freestanding compilers. */
72528 #ifdef __STDC__
72529 # include <limits.h>
72530 #else
72531 # include <assert.h>
72532 #endif
72534 #undef $ac_func
72536 /* Override any gcc2 internal prototype to avoid an error. */
72537 #ifdef __cplusplus
72538 extern "C"
72540 #endif
72541 /* We use char because int might match the return type of a gcc2
72542 builtin and then its argument prototype would still apply. */
72543 char $ac_func ();
72544 /* The GNU C library defines this for functions which it implements
72545 to always fail with ENOSYS. Some functions are actually named
72546 something starting with __ and the normal name is an alias. */
72547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72548 choke me
72549 #else
72550 char (*f) () = $ac_func;
72551 #endif
72552 #ifdef __cplusplus
72554 #endif
72557 main ()
72559 return f != $ac_func;
72561 return 0;
72563 _ACEOF
72564 rm -f conftest.$ac_objext conftest$ac_exeext
72565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72566 (eval $ac_link) 2>conftest.er1
72567 ac_status=$?
72568 grep -v '^ *+' conftest.er1 >conftest.err
72569 rm -f conftest.er1
72570 cat conftest.err >&5
72571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72572 (exit $ac_status); } &&
72573 { ac_try='test -z "$ac_c_werror_flag"
72574 || test ! -s conftest.err'
72575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72576 (eval $ac_try) 2>&5
72577 ac_status=$?
72578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72579 (exit $ac_status); }; } &&
72580 { ac_try='test -s conftest$ac_exeext'
72581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72582 (eval $ac_try) 2>&5
72583 ac_status=$?
72584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72585 (exit $ac_status); }; }; then
72586 eval "$as_ac_var=yes"
72587 else
72588 echo "$as_me: failed program was:" >&5
72589 sed 's/^/| /' conftest.$ac_ext >&5
72591 eval "$as_ac_var=no"
72593 rm -f conftest.err conftest.$ac_objext \
72594 conftest$ac_exeext conftest.$ac_ext
72596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72598 if test `eval echo '${'$as_ac_var'}'` = yes; then
72599 cat >>confdefs.h <<_ACEOF
72600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72601 _ACEOF
72604 done
72609 if test $enable_symvers = no; then
72610 enable_abi_check=no
72611 else
72612 case "$host" in
72613 *-*-cygwin*)
72614 enable_abi_check=no ;;
72616 enable_abi_check=yes ;;
72617 esac
72619 else
72620 # Only build this as native, since automake does not understand
72621 # CXX_FOR_BUILD.
72622 enable_abi_check=no
72625 # Export file names for ABI checking.
72626 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
72633 # Propagate the target-specific source directories through the build chain.
72634 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
72635 # uses it, and it only gets used in this file.)
72636 ATOMICITY_SRCDIR=config/${atomicity_dir}
72637 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
72638 OS_INC_SRCDIR=config/${os_include_dir}
72643 # Determine cross-compile flags and AM_CONDITIONALs.
72644 #AC_SUBST(GLIBCXX_IS_NATIVE)
72645 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
72646 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
72647 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
72650 if test $is_hosted = yes; then
72651 GLIBCXX_HOSTED_TRUE=
72652 GLIBCXX_HOSTED_FALSE='#'
72653 else
72654 GLIBCXX_HOSTED_TRUE='#'
72655 GLIBCXX_HOSTED_FALSE=
72661 if test $enable_libstdcxx_pch = yes; then
72662 GLIBCXX_BUILD_PCH_TRUE=
72663 GLIBCXX_BUILD_PCH_FALSE='#'
72664 else
72665 GLIBCXX_BUILD_PCH_TRUE='#'
72666 GLIBCXX_BUILD_PCH_FALSE=
72672 if test $enable_cheaders = c; then
72673 GLIBCXX_C_HEADERS_C_TRUE=
72674 GLIBCXX_C_HEADERS_C_FALSE='#'
72675 else
72676 GLIBCXX_C_HEADERS_C_TRUE='#'
72677 GLIBCXX_C_HEADERS_C_FALSE=
72683 if test $enable_cheaders = c_std; then
72684 GLIBCXX_C_HEADERS_C_STD_TRUE=
72685 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
72686 else
72687 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
72688 GLIBCXX_C_HEADERS_C_STD_FALSE=
72694 if test $c_compatibility = yes; then
72695 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
72696 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
72697 else
72698 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
72699 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
72705 if test $enable_libstdcxx_debug = yes; then
72706 GLIBCXX_BUILD_DEBUG_TRUE=
72707 GLIBCXX_BUILD_DEBUG_FALSE='#'
72708 else
72709 GLIBCXX_BUILD_DEBUG_TRUE='#'
72710 GLIBCXX_BUILD_DEBUG_FALSE=
72716 if test $enable_symvers != no; then
72717 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
72718 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
72719 else
72720 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
72721 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
72727 if test $enable_wchar_t = yes; then
72728 GLIBCXX_TEST_WCHAR_T_TRUE=
72729 GLIBCXX_TEST_WCHAR_T_FALSE='#'
72730 else
72731 GLIBCXX_TEST_WCHAR_T_TRUE='#'
72732 GLIBCXX_TEST_WCHAR_T_FALSE=
72738 if test $enable_abi_check = yes; then
72739 GLIBCXX_TEST_ABI_TRUE=
72740 GLIBCXX_TEST_ABI_FALSE='#'
72741 else
72742 GLIBCXX_TEST_ABI_TRUE='#'
72743 GLIBCXX_TEST_ABI_FALSE=
72749 cat >confcache <<\_ACEOF
72750 # This file is a shell script that caches the results of configure
72751 # tests run on this system so they can be shared between configure
72752 # scripts and configure runs, see configure's option --config-cache.
72753 # It is not useful on other systems. If it contains results you don't
72754 # want to keep, you may remove or edit it.
72756 # config.status only pays attention to the cache file if you give it
72757 # the --recheck option to rerun configure.
72759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72761 # following values.
72763 _ACEOF
72765 # The following way of writing the cache mishandles newlines in values,
72766 # but we know of no workaround that is simple, portable, and efficient.
72767 # So, don't put newlines in cache variables' values.
72768 # Ultrix sh set writes to stderr and can't be redirected directly,
72769 # and sets the high bit in the cache file unless we assign to the vars.
72771 (set) 2>&1 |
72772 case `(ac_space=' '; set | grep ac_space) 2>&1` in
72773 *ac_space=\ *)
72774 # `set' does not quote correctly, so add quotes (double-quote
72775 # substitution turns \\\\ into \\, and sed turns \\ into \).
72776 sed -n \
72777 "s/'/'\\\\''/g;
72778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72781 # `set' quotes correctly as required by POSIX, so do not add quotes.
72782 sed -n \
72783 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72785 esac;
72787 sed '
72788 t clear
72789 : clear
72790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72791 t end
72792 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72793 : end' >>confcache
72794 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72795 if test -w $cache_file; then
72796 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
72797 cat confcache >$cache_file
72798 else
72799 echo "not updating unwritable cache $cache_file"
72802 rm -f confcache
72804 if test ${multilib} = yes; then
72805 multilib_arg="--enable-multilib"
72806 else
72807 multilib_arg=
72810 # Export all the install information.
72812 glibcxx_toolexecdir=no
72813 glibcxx_toolexeclibdir=no
72814 glibcxx_prefixdir=$prefix
72816 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
72817 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
72819 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
72820 if test "${with_gxx_include_dir+set}" = set; then
72821 withval="$with_gxx_include_dir"
72822 case "$withval" in
72823 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
72824 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
72825 { (exit 1); exit 1; }; } ;;
72826 no) gxx_include_dir=no ;;
72827 *) gxx_include_dir=$withval ;;
72828 esac
72829 else
72830 gxx_include_dir=no
72832 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72833 echo "${ECHO_T}$gxx_include_dir" >&6
72835 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
72836 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
72837 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
72838 if test "${enable_version_specific_runtime_libs+set}" = set; then
72839 enableval="$enable_version_specific_runtime_libs"
72840 case "$enableval" in
72841 yes) version_specific_libs=yes ;;
72842 no) version_specific_libs=no ;;
72843 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
72844 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
72845 { (exit 1); exit 1; }; };;
72846 esac
72847 else
72848 version_specific_libs=no
72850 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
72851 echo "${ECHO_T}$version_specific_libs" >&6
72853 # Default case for install directory for include files.
72854 if test $version_specific_libs = no && test $gxx_include_dir = no; then
72855 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
72858 # Version-specific runtime libs processing.
72859 if test $version_specific_libs = yes; then
72860 # Need the gcc compiler version to know where to install libraries
72861 # and header files if --enable-version-specific-runtime-libs option
72862 # is selected. FIXME: these variables are misnamed, there are
72863 # no executables installed in _toolexecdir or _toolexeclibdir.
72864 if test x"$gxx_include_dir" = x"no"; then
72865 gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
72867 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72868 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
72871 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
72872 # Install a library built with a cross compiler in tooldir, not libdir.
72873 if test x"$glibcxx_toolexecdir" = x"no"; then
72874 if test -n "$with_cross_host" &&
72875 test x"$with_cross_host" != x"no"; then
72876 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
72877 glibcxx_toolexeclibdir='${toolexecdir}/lib'
72878 else
72879 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72880 glibcxx_toolexeclibdir='${libdir}'
72882 multi_os_directory=`$CXX -print-multi-os-directory`
72883 case $multi_os_directory in
72884 .) ;; # Avoid trailing /.
72885 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
72886 esac
72889 echo "$as_me:$LINENO: checking for install location" >&5
72890 echo $ECHO_N "checking for install location... $ECHO_C" >&6
72891 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72892 echo "${ECHO_T}$gxx_include_dir" >&6
72900 # Export all the include and flag information to Makefiles.
72902 # Used for every C++ compile we perform.
72903 GLIBCXX_INCLUDES="\
72904 -I$glibcxx_builddir/include/$host_alias \
72905 -I$glibcxx_builddir/include \
72906 -I$glibcxx_srcdir/libsupc++"
72908 # For Canadian crosses, pick this up too.
72909 if test $CANADIAN = yes; then
72910 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
72913 # Stuff in the actual top level. Currently only used by libsupc++ to
72914 # get unwind* headers from the gcc dir.
72915 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
72916 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
72918 # Now, export this to all the little Makefiles....
72923 # Optimization flags that are probably a good idea for thrill-seekers. Just
72924 # uncomment the lines below and make, everything else is ready to go...
72925 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
72926 OPTIMIZE_CXXFLAGS=
72929 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
72933 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
72934 grep "enable shared" > /dev/null;
72935 then
72936 LIBSUPCXX_PICFLAGS=-prefer-pic
72937 else
72938 LIBSUPCXX_PICFLAGS=
72942 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
72944 ac_config_files="$ac_config_files scripts/check_survey"
72946 ac_config_files="$ac_config_files scripts/testsuite_flags"
72949 ac_config_commands="$ac_config_commands default"
72952 cat >confcache <<\_ACEOF
72953 # This file is a shell script that caches the results of configure
72954 # tests run on this system so they can be shared between configure
72955 # scripts and configure runs, see configure's option --config-cache.
72956 # It is not useful on other systems. If it contains results you don't
72957 # want to keep, you may remove or edit it.
72959 # config.status only pays attention to the cache file if you give it
72960 # the --recheck option to rerun configure.
72962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72964 # following values.
72966 _ACEOF
72968 # The following way of writing the cache mishandles newlines in values,
72969 # but we know of no workaround that is simple, portable, and efficient.
72970 # So, don't put newlines in cache variables' values.
72971 # Ultrix sh set writes to stderr and can't be redirected directly,
72972 # and sets the high bit in the cache file unless we assign to the vars.
72974 (set) 2>&1 |
72975 case `(ac_space=' '; set | grep ac_space) 2>&1` in
72976 *ac_space=\ *)
72977 # `set' does not quote correctly, so add quotes (double-quote
72978 # substitution turns \\\\ into \\, and sed turns \\ into \).
72979 sed -n \
72980 "s/'/'\\\\''/g;
72981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72984 # `set' quotes correctly as required by POSIX, so do not add quotes.
72985 sed -n \
72986 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72988 esac;
72990 sed '
72991 t clear
72992 : clear
72993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72994 t end
72995 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72996 : end' >>confcache
72997 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72998 if test -w $cache_file; then
72999 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73000 cat confcache >$cache_file
73001 else
73002 echo "not updating unwritable cache $cache_file"
73005 rm -f confcache
73007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73008 # Let make expand exec_prefix.
73009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73013 # trailing colons and then remove the whole line if VPATH becomes empty
73014 # (actually we leave an empty line to preserve line numbers).
73015 if test "x$srcdir" = x.; then
73016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73017 s/:*\$(srcdir):*/:/;
73018 s/:*\${srcdir}:*/:/;
73019 s/:*@srcdir@:*/:/;
73020 s/^\([^=]*=[ ]*\):*/\1/;
73021 s/:*$//;
73022 s/^[^=]*=[ ]*$//;
73026 DEFS=-DHAVE_CONFIG_H
73028 ac_libobjs=
73029 ac_ltlibobjs=
73030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73031 # 1. Remove the extension, and $U if already installed.
73032 ac_i=`echo "$ac_i" |
73033 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73034 # 2. Add them.
73035 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73036 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73037 done
73038 LIBOBJS=$ac_libobjs
73040 LTLIBOBJS=$ac_ltlibobjs
73043 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73044 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73045 Usually this means the macro was only invoked conditionally." >&5
73046 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73047 Usually this means the macro was only invoked conditionally." >&2;}
73048 { (exit 1); exit 1; }; }
73050 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73051 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73052 Usually this means the macro was only invoked conditionally." >&5
73053 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73054 Usually this means the macro was only invoked conditionally." >&2;}
73055 { (exit 1); exit 1; }; }
73057 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73058 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73059 Usually this means the macro was only invoked conditionally." >&5
73060 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73061 Usually this means the macro was only invoked conditionally." >&2;}
73062 { (exit 1); exit 1; }; }
73064 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73065 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73066 Usually this means the macro was only invoked conditionally." >&5
73067 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73068 Usually this means the macro was only invoked conditionally." >&2;}
73069 { (exit 1); exit 1; }; }
73071 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73072 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73073 Usually this means the macro was only invoked conditionally." >&5
73074 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73075 Usually this means the macro was only invoked conditionally." >&2;}
73076 { (exit 1); exit 1; }; }
73078 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73079 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73080 Usually this means the macro was only invoked conditionally." >&5
73081 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73082 Usually this means the macro was only invoked conditionally." >&2;}
73083 { (exit 1); exit 1; }; }
73085 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73086 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73087 Usually this means the macro was only invoked conditionally." >&5
73088 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73089 Usually this means the macro was only invoked conditionally." >&2;}
73090 { (exit 1); exit 1; }; }
73092 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73093 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73094 Usually this means the macro was only invoked conditionally." >&5
73095 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73096 Usually this means the macro was only invoked conditionally." >&2;}
73097 { (exit 1); exit 1; }; }
73099 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73100 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73101 Usually this means the macro was only invoked conditionally." >&5
73102 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73103 Usually this means the macro was only invoked conditionally." >&2;}
73104 { (exit 1); exit 1; }; }
73106 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73107 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73108 Usually this means the macro was only invoked conditionally." >&5
73109 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73110 Usually this means the macro was only invoked conditionally." >&2;}
73111 { (exit 1); exit 1; }; }
73114 : ${CONFIG_STATUS=./config.status}
73115 ac_clean_files_save=$ac_clean_files
73116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73119 cat >$CONFIG_STATUS <<_ACEOF
73120 #! $SHELL
73121 # Generated by $as_me.
73122 # Run this file to recreate the current configuration.
73123 # Compiler output produced by configure, useful for debugging
73124 # configure, is in config.log if it exists.
73126 debug=false
73127 ac_cs_recheck=false
73128 ac_cs_silent=false
73129 SHELL=\${CONFIG_SHELL-$SHELL}
73130 _ACEOF
73132 cat >>$CONFIG_STATUS <<\_ACEOF
73133 ## --------------------- ##
73134 ## M4sh Initialization. ##
73135 ## --------------------- ##
73137 # Be Bourne compatible
73138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73139 emulate sh
73140 NULLCMD=:
73141 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73142 # is contrary to our usage. Disable this feature.
73143 alias -g '${1+"$@"}'='"$@"'
73144 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73145 set -o posix
73147 DUALCASE=1; export DUALCASE # for MKS sh
73149 # Support unset when possible.
73150 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73151 as_unset=unset
73152 else
73153 as_unset=false
73157 # Work around bugs in pre-3.0 UWIN ksh.
73158 $as_unset ENV MAIL MAILPATH
73159 PS1='$ '
73160 PS2='> '
73161 PS4='+ '
73163 # NLS nuisances.
73164 for as_var in \
73165 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73166 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73167 LC_TELEPHONE LC_TIME
73169 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73170 eval $as_var=C; export $as_var
73171 else
73172 $as_unset $as_var
73174 done
73176 # Required to use basename.
73177 if expr a : '\(a\)' >/dev/null 2>&1; then
73178 as_expr=expr
73179 else
73180 as_expr=false
73183 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73184 as_basename=basename
73185 else
73186 as_basename=false
73190 # Name of the executable.
73191 as_me=`$as_basename "$0" ||
73192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73193 X"$0" : 'X\(//\)$' \| \
73194 X"$0" : 'X\(/\)$' \| \
73195 . : '\(.\)' 2>/dev/null ||
73196 echo X/"$0" |
73197 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73198 /^X\/\(\/\/\)$/{ s//\1/; q; }
73199 /^X\/\(\/\).*/{ s//\1/; q; }
73200 s/.*/./; q'`
73203 # PATH needs CR, and LINENO needs CR and PATH.
73204 # Avoid depending upon Character Ranges.
73205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73208 as_cr_digits='0123456789'
73209 as_cr_alnum=$as_cr_Letters$as_cr_digits
73211 # The user is always right.
73212 if test "${PATH_SEPARATOR+set}" != set; then
73213 echo "#! /bin/sh" >conf$$.sh
73214 echo "exit 0" >>conf$$.sh
73215 chmod +x conf$$.sh
73216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73217 PATH_SEPARATOR=';'
73218 else
73219 PATH_SEPARATOR=:
73221 rm -f conf$$.sh
73225 as_lineno_1=$LINENO
73226 as_lineno_2=$LINENO
73227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73228 test "x$as_lineno_1" != "x$as_lineno_2" &&
73229 test "x$as_lineno_3" = "x$as_lineno_2" || {
73230 # Find who we are. Look in the path if we contain no path at all
73231 # relative or not.
73232 case $0 in
73233 *[\\/]* ) as_myself=$0 ;;
73234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73235 for as_dir in $PATH
73237 IFS=$as_save_IFS
73238 test -z "$as_dir" && as_dir=.
73239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73240 done
73243 esac
73244 # We did not find ourselves, most probably we were run as `sh COMMAND'
73245 # in which case we are not to be found in the path.
73246 if test "x$as_myself" = x; then
73247 as_myself=$0
73249 if test ! -f "$as_myself"; then
73250 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73251 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73252 { (exit 1); exit 1; }; }
73254 case $CONFIG_SHELL in
73256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73257 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73259 IFS=$as_save_IFS
73260 test -z "$as_dir" && as_dir=.
73261 for as_base in sh bash ksh sh5; do
73262 case $as_dir in
73264 if ("$as_dir/$as_base" -c '
73265 as_lineno_1=$LINENO
73266 as_lineno_2=$LINENO
73267 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73268 test "x$as_lineno_1" != "x$as_lineno_2" &&
73269 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
73270 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73271 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73272 CONFIG_SHELL=$as_dir/$as_base
73273 export CONFIG_SHELL
73274 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73275 fi;;
73276 esac
73277 done
73278 done
73280 esac
73282 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73283 # uniformly replaced by the line number. The first 'sed' inserts a
73284 # line-number line before each line; the second 'sed' does the real
73285 # work. The second script uses 'N' to pair each line-number line
73286 # with the numbered line, and appends trailing '-' during
73287 # substitution so that $LINENO is not a special case at line end.
73288 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73289 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
73290 sed '=' <$as_myself |
73291 sed '
73293 s,$,-,
73294 : loop
73295 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73296 t loop
73297 s,-$,,
73298 s,^['$as_cr_digits']*\n,,
73299 ' >$as_me.lineno &&
73300 chmod +x $as_me.lineno ||
73301 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73302 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73303 { (exit 1); exit 1; }; }
73305 # Don't try to exec as it changes $[0], causing all sort of problems
73306 # (the dirname of $[0] is not the place where we might find the
73307 # original and so on. Autoconf is especially sensible to this).
73308 . ./$as_me.lineno
73309 # Exit status is that of the last command.
73310 exit
73314 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73315 *c*,-n*) ECHO_N= ECHO_C='
73316 ' ECHO_T=' ' ;;
73317 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73318 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
73319 esac
73321 if expr a : '\(a\)' >/dev/null 2>&1; then
73322 as_expr=expr
73323 else
73324 as_expr=false
73327 rm -f conf$$ conf$$.exe conf$$.file
73328 echo >conf$$.file
73329 if ln -s conf$$.file conf$$ 2>/dev/null; then
73330 # We could just check for DJGPP; but this test a) works b) is more generic
73331 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73332 if test -f conf$$.exe; then
73333 # Don't use ln at all; we don't have any links
73334 as_ln_s='cp -p'
73335 else
73336 as_ln_s='ln -s'
73338 elif ln conf$$.file conf$$ 2>/dev/null; then
73339 as_ln_s=ln
73340 else
73341 as_ln_s='cp -p'
73343 rm -f conf$$ conf$$.exe conf$$.file
73345 if mkdir -p . 2>/dev/null; then
73346 as_mkdir_p=:
73347 else
73348 test -d ./-p && rmdir ./-p
73349 as_mkdir_p=false
73352 as_executable_p="test -f"
73354 # Sed expression to map a string onto a valid CPP name.
73355 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73357 # Sed expression to map a string onto a valid variable name.
73358 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73361 # IFS
73362 # We need space, tab and new line, in precisely that order.
73363 as_nl='
73365 IFS=" $as_nl"
73367 # CDPATH.
73368 $as_unset CDPATH
73370 exec 6>&1
73372 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73373 # report actual input values of CONFIG_FILES etc. instead of their
73374 # values after options handling. Logging --version etc. is OK.
73375 exec 5>>config.log
73377 echo
73378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73379 ## Running $as_me. ##
73380 _ASBOX
73381 } >&5
73382 cat >&5 <<_CSEOF
73384 This file was extended by package-unused $as_me version-unused, which was
73385 generated by GNU Autoconf 2.59. Invocation command line was
73387 CONFIG_FILES = $CONFIG_FILES
73388 CONFIG_HEADERS = $CONFIG_HEADERS
73389 CONFIG_LINKS = $CONFIG_LINKS
73390 CONFIG_COMMANDS = $CONFIG_COMMANDS
73391 $ $0 $@
73393 _CSEOF
73394 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73395 echo >&5
73396 _ACEOF
73398 # Files that config.status was made for.
73399 if test -n "$ac_config_files"; then
73400 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73403 if test -n "$ac_config_headers"; then
73404 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73407 if test -n "$ac_config_links"; then
73408 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73411 if test -n "$ac_config_commands"; then
73412 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73415 cat >>$CONFIG_STATUS <<\_ACEOF
73417 ac_cs_usage="\
73418 \`$as_me' instantiates files from templates according to the
73419 current configuration.
73421 Usage: $0 [OPTIONS] [FILE]...
73423 -h, --help print this help, then exit
73424 -V, --version print version number, then exit
73425 -q, --quiet do not print progress messages
73426 -d, --debug don't remove temporary files
73427 --recheck update $as_me by reconfiguring in the same conditions
73428 --file=FILE[:TEMPLATE]
73429 instantiate the configuration file FILE
73430 --header=FILE[:TEMPLATE]
73431 instantiate the configuration header FILE
73433 Configuration files:
73434 $config_files
73436 Configuration headers:
73437 $config_headers
73439 Configuration commands:
73440 $config_commands
73442 Report bugs to <bug-autoconf@gnu.org>."
73443 _ACEOF
73445 cat >>$CONFIG_STATUS <<_ACEOF
73446 ac_cs_version="\\
73447 package-unused config.status version-unused
73448 configured by $0, generated by GNU Autoconf 2.59,
73449 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73451 Copyright (C) 2003 Free Software Foundation, Inc.
73452 This config.status script is free software; the Free Software Foundation
73453 gives unlimited permission to copy, distribute and modify it."
73454 srcdir=$srcdir
73455 INSTALL="$INSTALL"
73456 _ACEOF
73458 cat >>$CONFIG_STATUS <<\_ACEOF
73459 # If no file are specified by the user, then we need to provide default
73460 # value. By we need to know if files were specified by the user.
73461 ac_need_defaults=:
73462 while test $# != 0
73464 case $1 in
73465 --*=*)
73466 ac_option=`expr "x$1" : 'x\([^=]*\)='`
73467 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73468 ac_shift=:
73471 ac_option=$1
73472 ac_optarg=$2
73473 ac_shift=shift
73475 *) # This is not an option, so the user has probably given explicit
73476 # arguments.
73477 ac_option=$1
73478 ac_need_defaults=false;;
73479 esac
73481 case $ac_option in
73482 # Handling of the options.
73483 _ACEOF
73484 cat >>$CONFIG_STATUS <<\_ACEOF
73485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73486 ac_cs_recheck=: ;;
73487 --version | --vers* | -V )
73488 echo "$ac_cs_version"; exit 0 ;;
73489 --he | --h)
73490 # Conflict between --help and --header
73491 { { echo "$as_me:$LINENO: error: ambiguous option: $1
73492 Try \`$0 --help' for more information." >&5
73493 echo "$as_me: error: ambiguous option: $1
73494 Try \`$0 --help' for more information." >&2;}
73495 { (exit 1); exit 1; }; };;
73496 --help | --hel | -h )
73497 echo "$ac_cs_usage"; exit 0 ;;
73498 --debug | --d* | -d )
73499 debug=: ;;
73500 --file | --fil | --fi | --f )
73501 $ac_shift
73502 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73503 ac_need_defaults=false;;
73504 --header | --heade | --head | --hea )
73505 $ac_shift
73506 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73507 ac_need_defaults=false;;
73508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73509 | -silent | --silent | --silen | --sile | --sil | --si | --s)
73510 ac_cs_silent=: ;;
73512 # This is an error.
73513 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73514 Try \`$0 --help' for more information." >&5
73515 echo "$as_me: error: unrecognized option: $1
73516 Try \`$0 --help' for more information." >&2;}
73517 { (exit 1); exit 1; }; } ;;
73519 *) ac_config_targets="$ac_config_targets $1" ;;
73521 esac
73522 shift
73523 done
73525 ac_configure_extra_args=
73527 if $ac_cs_silent; then
73528 exec 6>/dev/null
73529 ac_configure_extra_args="$ac_configure_extra_args --silent"
73532 _ACEOF
73533 cat >>$CONFIG_STATUS <<_ACEOF
73534 if \$ac_cs_recheck; then
73535 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73536 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73539 _ACEOF
73541 cat >>$CONFIG_STATUS <<_ACEOF
73543 # INIT-COMMANDS section.
73547 srcdir="$srcdir"
73548 host="$host"
73549 target="$target"
73550 with_multisubdir="$with_multisubdir"
73551 with_multisrctop="$with_multisrctop"
73552 with_target_subdir="$with_target_subdir"
73553 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73554 multi_basedir="$multi_basedir"
73555 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73556 CC="$CC"
73558 # Variables needed in config.status (file generation) which aren't already
73559 # passed by autoconf.
73560 SUBDIRS="$SUBDIRS"
73563 _ACEOF
73567 cat >>$CONFIG_STATUS <<\_ACEOF
73568 for ac_config_target in $ac_config_targets
73570 case "$ac_config_target" in
73571 # Handling of arguments.
73572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73573 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73574 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73575 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73576 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73577 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73578 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73579 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73580 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73581 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73582 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73583 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73585 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73586 { (exit 1); exit 1; }; };;
73587 esac
73588 done
73590 # If the user did not use the arguments to specify the items to instantiate,
73591 # then the envvar interface is used. Set only those that are not.
73592 # We use the long form for the default assignment because of an extremely
73593 # bizarre bug on SunOS 4.1.3.
73594 if $ac_need_defaults; then
73595 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73596 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73600 # Have a temporary directory for convenience. Make it in the build tree
73601 # simply because there is no reason to put it here, and in addition,
73602 # creating and moving files from /tmp can sometimes cause problems.
73603 # Create a temporary directory, and hook for its removal unless debugging.
73604 $debug ||
73606 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73607 trap '{ (exit 1); exit 1; }' 1 2 13 15
73610 # Create a (secure) tmp directory for tmp files.
73613 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73614 test -n "$tmp" && test -d "$tmp"
73615 } ||
73617 tmp=./confstat$$-$RANDOM
73618 (umask 077 && mkdir $tmp)
73619 } ||
73621 echo "$me: cannot create a temporary directory in ." >&2
73622 { (exit 1); exit 1; }
73625 _ACEOF
73627 cat >>$CONFIG_STATUS <<_ACEOF
73630 # CONFIG_FILES section.
73633 # No need to generate the scripts if there are no CONFIG_FILES.
73634 # This happens for instance when ./config.status config.h
73635 if test -n "\$CONFIG_FILES"; then
73636 # Protect against being on the right side of a sed subst in config.status.
73637 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
73638 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
73639 s,@SHELL@,$SHELL,;t t
73640 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
73641 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
73642 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
73643 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
73644 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
73645 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
73646 s,@exec_prefix@,$exec_prefix,;t t
73647 s,@prefix@,$prefix,;t t
73648 s,@program_transform_name@,$program_transform_name,;t t
73649 s,@bindir@,$bindir,;t t
73650 s,@sbindir@,$sbindir,;t t
73651 s,@libexecdir@,$libexecdir,;t t
73652 s,@datadir@,$datadir,;t t
73653 s,@sysconfdir@,$sysconfdir,;t t
73654 s,@sharedstatedir@,$sharedstatedir,;t t
73655 s,@localstatedir@,$localstatedir,;t t
73656 s,@libdir@,$libdir,;t t
73657 s,@includedir@,$includedir,;t t
73658 s,@oldincludedir@,$oldincludedir,;t t
73659 s,@infodir@,$infodir,;t t
73660 s,@mandir@,$mandir,;t t
73661 s,@build_alias@,$build_alias,;t t
73662 s,@host_alias@,$host_alias,;t t
73663 s,@target_alias@,$target_alias,;t t
73664 s,@DEFS@,$DEFS,;t t
73665 s,@ECHO_C@,$ECHO_C,;t t
73666 s,@ECHO_N@,$ECHO_N,;t t
73667 s,@ECHO_T@,$ECHO_T,;t t
73668 s,@LIBS@,$LIBS,;t t
73669 s,@libtool_VERSION@,$libtool_VERSION,;t t
73670 s,@multi_basedir@,$multi_basedir,;t t
73671 s,@build@,$build,;t t
73672 s,@build_cpu@,$build_cpu,;t t
73673 s,@build_vendor@,$build_vendor,;t t
73674 s,@build_os@,$build_os,;t t
73675 s,@host@,$host,;t t
73676 s,@host_cpu@,$host_cpu,;t t
73677 s,@host_vendor@,$host_vendor,;t t
73678 s,@host_os@,$host_os,;t t
73679 s,@target@,$target,;t t
73680 s,@target_cpu@,$target_cpu,;t t
73681 s,@target_vendor@,$target_vendor,;t t
73682 s,@target_os@,$target_os,;t t
73683 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
73684 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
73685 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
73686 s,@CYGPATH_W@,$CYGPATH_W,;t t
73687 s,@PACKAGE@,$PACKAGE,;t t
73688 s,@VERSION@,$VERSION,;t t
73689 s,@ACLOCAL@,$ACLOCAL,;t t
73690 s,@AUTOCONF@,$AUTOCONF,;t t
73691 s,@AUTOMAKE@,$AUTOMAKE,;t t
73692 s,@AUTOHEADER@,$AUTOHEADER,;t t
73693 s,@MAKEINFO@,$MAKEINFO,;t t
73694 s,@AMTAR@,$AMTAR,;t t
73695 s,@install_sh@,$install_sh,;t t
73696 s,@STRIP@,$STRIP,;t t
73697 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
73698 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
73699 s,@mkdir_p@,$mkdir_p,;t t
73700 s,@AWK@,$AWK,;t t
73701 s,@SET_MAKE@,$SET_MAKE,;t t
73702 s,@am__leading_dot@,$am__leading_dot,;t t
73703 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
73704 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
73705 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
73706 s,@CC@,$CC,;t t
73707 s,@ac_ct_CC@,$ac_ct_CC,;t t
73708 s,@EXEEXT@,$EXEEXT,;t t
73709 s,@OBJEXT@,$OBJEXT,;t t
73710 s,@CXX@,$CXX,;t t
73711 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
73712 s,@CFLAGS@,$CFLAGS,;t t
73713 s,@CXXFLAGS@,$CXXFLAGS,;t t
73714 s,@LN_S@,$LN_S,;t t
73715 s,@AS@,$AS,;t t
73716 s,@ac_ct_AS@,$ac_ct_AS,;t t
73717 s,@AR@,$AR,;t t
73718 s,@ac_ct_AR@,$ac_ct_AR,;t t
73719 s,@RANLIB@,$RANLIB,;t t
73720 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
73721 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
73722 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
73723 s,@MAINT@,$MAINT,;t t
73724 s,@LIBTOOL@,$LIBTOOL,;t t
73725 s,@CXXCPP@,$CXXCPP,;t t
73726 s,@CPPFLAGS@,$CPPFLAGS,;t t
73727 s,@enable_shared@,$enable_shared,;t t
73728 s,@enable_static@,$enable_static,;t t
73729 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
73730 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
73731 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
73732 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
73733 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
73734 s,@CSTDIO_H@,$CSTDIO_H,;t t
73735 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
73736 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
73737 s,@CPP@,$CPP,;t t
73738 s,@EGREP@,$EGREP,;t t
73739 s,@check_msgfmt@,$check_msgfmt,;t t
73740 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
73741 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
73742 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
73743 s,@USE_NLS@,$USE_NLS,;t t
73744 s,@CLOCALE_H@,$CLOCALE_H,;t t
73745 s,@CCODECVT_H@,$CCODECVT_H,;t t
73746 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
73747 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
73748 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
73749 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
73750 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
73751 s,@CMONEY_CC@,$CMONEY_CC,;t t
73752 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
73753 s,@CTIME_H@,$CTIME_H,;t t
73754 s,@CTIME_CC@,$CTIME_CC,;t t
73755 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
73756 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
73757 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
73758 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
73759 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
73760 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
73761 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
73762 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
73763 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
73764 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
73765 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
73766 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
73767 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
73768 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
73769 s,@WERROR@,$WERROR,;t t
73770 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
73771 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
73772 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
73773 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
73774 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
73775 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
73776 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
73777 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
73778 s,@baseline_dir@,$baseline_dir,;t t
73779 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
73780 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
73781 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
73782 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
73783 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
73784 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
73785 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
73786 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
73787 s,@gxx_include_dir@,$gxx_include_dir,;t t
73788 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
73789 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
73790 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
73791 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
73792 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
73793 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
73794 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
73795 s,@LIBOBJS@,$LIBOBJS,;t t
73796 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
73797 CEOF
73799 _ACEOF
73801 cat >>$CONFIG_STATUS <<\_ACEOF
73802 # Split the substitutions into bite-sized pieces for seds with
73803 # small command number limits, like on Digital OSF/1 and HP-UX.
73804 ac_max_sed_lines=48
73805 ac_sed_frag=1 # Number of current file.
73806 ac_beg=1 # First line for current file.
73807 ac_end=$ac_max_sed_lines # Line after last line for current file.
73808 ac_more_lines=:
73809 ac_sed_cmds=
73810 while $ac_more_lines; do
73811 if test $ac_beg -gt 1; then
73812 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73813 else
73814 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73816 if test ! -s $tmp/subs.frag; then
73817 ac_more_lines=false
73818 else
73819 # The purpose of the label and of the branching condition is to
73820 # speed up the sed processing (if there are no `@' at all, there
73821 # is no need to browse any of the substitutions).
73822 # These are the two extra sed commands mentioned above.
73823 (echo ':t
73824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
73825 if test -z "$ac_sed_cmds"; then
73826 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
73827 else
73828 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
73830 ac_sed_frag=`expr $ac_sed_frag + 1`
73831 ac_beg=$ac_end
73832 ac_end=`expr $ac_end + $ac_max_sed_lines`
73834 done
73835 if test -z "$ac_sed_cmds"; then
73836 ac_sed_cmds=cat
73838 fi # test -n "$CONFIG_FILES"
73840 _ACEOF
73841 cat >>$CONFIG_STATUS <<\_ACEOF
73842 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
73843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
73844 case $ac_file in
73845 - | *:- | *:-:* ) # input from stdin
73846 cat >$tmp/stdin
73847 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73849 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73851 * ) ac_file_in=$ac_file.in ;;
73852 esac
73854 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
73855 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
73856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73857 X"$ac_file" : 'X\(//\)[^/]' \| \
73858 X"$ac_file" : 'X\(//\)$' \| \
73859 X"$ac_file" : 'X\(/\)' \| \
73860 . : '\(.\)' 2>/dev/null ||
73861 echo X"$ac_file" |
73862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73864 /^X\(\/\/\)$/{ s//\1/; q; }
73865 /^X\(\/\).*/{ s//\1/; q; }
73866 s/.*/./; q'`
73867 { if $as_mkdir_p; then
73868 mkdir -p "$ac_dir"
73869 else
73870 as_dir="$ac_dir"
73871 as_dirs=
73872 while test ! -d "$as_dir"; do
73873 as_dirs="$as_dir $as_dirs"
73874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
73875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73876 X"$as_dir" : 'X\(//\)[^/]' \| \
73877 X"$as_dir" : 'X\(//\)$' \| \
73878 X"$as_dir" : 'X\(/\)' \| \
73879 . : '\(.\)' 2>/dev/null ||
73880 echo X"$as_dir" |
73881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73883 /^X\(\/\/\)$/{ s//\1/; q; }
73884 /^X\(\/\).*/{ s//\1/; q; }
73885 s/.*/./; q'`
73886 done
73887 test ! -n "$as_dirs" || mkdir $as_dirs
73888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
73889 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
73890 { (exit 1); exit 1; }; }; }
73892 ac_builddir=.
73894 if test "$ac_dir" != .; then
73895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
73896 # A "../" for each directory in $ac_dir_suffix.
73897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
73898 else
73899 ac_dir_suffix= ac_top_builddir=
73902 case $srcdir in
73903 .) # No --srcdir option. We are building in place.
73904 ac_srcdir=.
73905 if test -z "$ac_top_builddir"; then
73906 ac_top_srcdir=.
73907 else
73908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
73909 fi ;;
73910 [\\/]* | ?:[\\/]* ) # Absolute path.
73911 ac_srcdir=$srcdir$ac_dir_suffix;
73912 ac_top_srcdir=$srcdir ;;
73913 *) # Relative path.
73914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
73915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
73916 esac
73918 # Do not use `cd foo && pwd` to compute absolute paths, because
73919 # the directories may not exist.
73920 case `pwd` in
73921 .) ac_abs_builddir="$ac_dir";;
73923 case "$ac_dir" in
73924 .) ac_abs_builddir=`pwd`;;
73925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
73926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
73927 esac;;
73928 esac
73929 case $ac_abs_builddir in
73930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
73932 case ${ac_top_builddir}. in
73933 .) ac_abs_top_builddir=$ac_abs_builddir;;
73934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
73935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
73936 esac;;
73937 esac
73938 case $ac_abs_builddir in
73939 .) ac_abs_srcdir=$ac_srcdir;;
73941 case $ac_srcdir in
73942 .) ac_abs_srcdir=$ac_abs_builddir;;
73943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
73944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
73945 esac;;
73946 esac
73947 case $ac_abs_builddir in
73948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
73950 case $ac_top_srcdir in
73951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
73952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
73953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
73954 esac;;
73955 esac
73958 case $INSTALL in
73959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
73960 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
73961 esac
73963 if test x"$ac_file" != x-; then
73964 { echo "$as_me:$LINENO: creating $ac_file" >&5
73965 echo "$as_me: creating $ac_file" >&6;}
73966 rm -f "$ac_file"
73968 # Let's still pretend it is `configure' which instantiates (i.e., don't
73969 # use $as_me), people would be surprised to read:
73970 # /* config.h. Generated by config.status. */
73971 if test x"$ac_file" = x-; then
73972 configure_input=
73973 else
73974 configure_input="$ac_file. "
73976 configure_input=$configure_input"Generated from `echo $ac_file_in |
73977 sed 's,.*/,,'` by configure."
73979 # First look for the input files in the build tree, otherwise in the
73980 # src tree.
73981 ac_file_inputs=`IFS=:
73982 for f in $ac_file_in; do
73983 case $f in
73984 -) echo $tmp/stdin ;;
73985 [\\/$]*)
73986 # Absolute (can't be DOS-style, as IFS=:)
73987 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
73988 echo "$as_me: error: cannot find input file: $f" >&2;}
73989 { (exit 1); exit 1; }; }
73990 echo "$f";;
73991 *) # Relative
73992 if test -f "$f"; then
73993 # Build tree
73994 echo "$f"
73995 elif test -f "$srcdir/$f"; then
73996 # Source tree
73997 echo "$srcdir/$f"
73998 else
73999 # /dev/null tree
74000 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74001 echo "$as_me: error: cannot find input file: $f" >&2;}
74002 { (exit 1); exit 1; }; }
74003 fi;;
74004 esac
74005 done` || { (exit 1); exit 1; }
74006 _ACEOF
74007 cat >>$CONFIG_STATUS <<_ACEOF
74008 sed "$ac_vpsub
74009 $extrasub
74010 _ACEOF
74011 cat >>$CONFIG_STATUS <<\_ACEOF
74013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74014 s,@configure_input@,$configure_input,;t t
74015 s,@srcdir@,$ac_srcdir,;t t
74016 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74017 s,@top_srcdir@,$ac_top_srcdir,;t t
74018 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74019 s,@builddir@,$ac_builddir,;t t
74020 s,@abs_builddir@,$ac_abs_builddir,;t t
74021 s,@top_builddir@,$ac_top_builddir,;t t
74022 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74023 s,@INSTALL@,$ac_INSTALL,;t t
74024 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74025 rm -f $tmp/stdin
74026 if test x"$ac_file" != x-; then
74027 mv $tmp/out $ac_file
74028 else
74029 cat $tmp/out
74030 rm -f $tmp/out
74033 # Run the commands associated with the file.
74034 case $ac_file in
74035 scripts/check_survey ) chmod +x scripts/check_survey ;;
74036 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74037 esac
74038 done
74039 _ACEOF
74040 cat >>$CONFIG_STATUS <<\_ACEOF
74043 # CONFIG_HEADER section.
74046 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74047 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74049 # ac_d sets the value in "#define NAME VALUE" lines.
74050 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
74051 ac_dB='[ ].*$,\1#\2'
74052 ac_dC=' '
74053 ac_dD=',;t'
74054 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74055 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
74056 ac_uB='$,\1#\2define\3'
74057 ac_uC=' '
74058 ac_uD=',;t'
74060 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74062 case $ac_file in
74063 - | *:- | *:-:* ) # input from stdin
74064 cat >$tmp/stdin
74065 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74067 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74069 * ) ac_file_in=$ac_file.in ;;
74070 esac
74072 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74073 echo "$as_me: creating $ac_file" >&6;}
74075 # First look for the input files in the build tree, otherwise in the
74076 # src tree.
74077 ac_file_inputs=`IFS=:
74078 for f in $ac_file_in; do
74079 case $f in
74080 -) echo $tmp/stdin ;;
74081 [\\/$]*)
74082 # Absolute (can't be DOS-style, as IFS=:)
74083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74084 echo "$as_me: error: cannot find input file: $f" >&2;}
74085 { (exit 1); exit 1; }; }
74086 # Do quote $f, to prevent DOS paths from being IFS'd.
74087 echo "$f";;
74088 *) # Relative
74089 if test -f "$f"; then
74090 # Build tree
74091 echo "$f"
74092 elif test -f "$srcdir/$f"; then
74093 # Source tree
74094 echo "$srcdir/$f"
74095 else
74096 # /dev/null tree
74097 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74098 echo "$as_me: error: cannot find input file: $f" >&2;}
74099 { (exit 1); exit 1; }; }
74100 fi;;
74101 esac
74102 done` || { (exit 1); exit 1; }
74103 # Remove the trailing spaces.
74104 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
74106 _ACEOF
74108 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74109 # `conftest.undefs', that substitutes the proper values into
74110 # config.h.in to produce config.h. The first handles `#define'
74111 # templates, and the second `#undef' templates.
74112 # And first: Protect against being on the right side of a sed subst in
74113 # config.status. Protect against being in an unquoted here document
74114 # in config.status.
74115 rm -f conftest.defines conftest.undefs
74116 # Using a here document instead of a string reduces the quoting nightmare.
74117 # Putting comments in sed scripts is not portable.
74119 # `end' is used to avoid that the second main sed command (meant for
74120 # 0-ary CPP macros) applies to n-ary macro definitions.
74121 # See the Autoconf documentation for `clear'.
74122 cat >confdef2sed.sed <<\_ACEOF
74123 s/[\\&,]/\\&/g
74124 s,[\\$`],\\&,g
74125 t clear
74126 : clear
74127 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74128 t end
74129 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74130 : end
74131 _ACEOF
74132 # If some macros were called several times there might be several times
74133 # the same #defines, which is useless. Nevertheless, we may not want to
74134 # sort them, since we want the *last* AC-DEFINE to be honored.
74135 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74136 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74137 rm -f confdef2sed.sed
74139 # This sed command replaces #undef with comments. This is necessary, for
74140 # example, in the case of _POSIX_SOURCE, which is predefined and required
74141 # on some systems where configure will not decide to define it.
74142 cat >>conftest.undefs <<\_ACEOF
74143 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74144 _ACEOF
74146 # Break up conftest.defines because some shells have a limit on the size
74147 # of here documents, and old seds have small limits too (100 cmds).
74148 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74149 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74150 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74151 echo ' :' >>$CONFIG_STATUS
74152 rm -f conftest.tail
74153 while grep . conftest.defines >/dev/null
74155 # Write a limited-size here document to $tmp/defines.sed.
74156 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74157 # Speed up: don't consider the non `#define' lines.
74158 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
74159 # Work around the forget-to-reset-the-flag bug.
74160 echo 't clr' >>$CONFIG_STATUS
74161 echo ': clr' >>$CONFIG_STATUS
74162 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74163 echo 'CEOF
74164 sed -f $tmp/defines.sed $tmp/in >$tmp/out
74165 rm -f $tmp/in
74166 mv $tmp/out $tmp/in
74167 ' >>$CONFIG_STATUS
74168 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74169 rm -f conftest.defines
74170 mv conftest.tail conftest.defines
74171 done
74172 rm -f conftest.defines
74173 echo ' fi # grep' >>$CONFIG_STATUS
74174 echo >>$CONFIG_STATUS
74176 # Break up conftest.undefs because some shells have a limit on the size
74177 # of here documents, and old seds have small limits too (100 cmds).
74178 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
74179 rm -f conftest.tail
74180 while grep . conftest.undefs >/dev/null
74182 # Write a limited-size here document to $tmp/undefs.sed.
74183 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74184 # Speed up: don't consider the non `#undef'
74185 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
74186 # Work around the forget-to-reset-the-flag bug.
74187 echo 't clr' >>$CONFIG_STATUS
74188 echo ': clr' >>$CONFIG_STATUS
74189 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74190 echo 'CEOF
74191 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74192 rm -f $tmp/in
74193 mv $tmp/out $tmp/in
74194 ' >>$CONFIG_STATUS
74195 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74196 rm -f conftest.undefs
74197 mv conftest.tail conftest.undefs
74198 done
74199 rm -f conftest.undefs
74201 cat >>$CONFIG_STATUS <<\_ACEOF
74202 # Let's still pretend it is `configure' which instantiates (i.e., don't
74203 # use $as_me), people would be surprised to read:
74204 # /* config.h. Generated by config.status. */
74205 if test x"$ac_file" = x-; then
74206 echo "/* Generated by configure. */" >$tmp/config.h
74207 else
74208 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
74210 cat $tmp/in >>$tmp/config.h
74211 rm -f $tmp/in
74212 if test x"$ac_file" != x-; then
74213 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74214 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74215 echo "$as_me: $ac_file is unchanged" >&6;}
74216 else
74217 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74219 X"$ac_file" : 'X\(//\)[^/]' \| \
74220 X"$ac_file" : 'X\(//\)$' \| \
74221 X"$ac_file" : 'X\(/\)' \| \
74222 . : '\(.\)' 2>/dev/null ||
74223 echo X"$ac_file" |
74224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74226 /^X\(\/\/\)$/{ s//\1/; q; }
74227 /^X\(\/\).*/{ s//\1/; q; }
74228 s/.*/./; q'`
74229 { if $as_mkdir_p; then
74230 mkdir -p "$ac_dir"
74231 else
74232 as_dir="$ac_dir"
74233 as_dirs=
74234 while test ! -d "$as_dir"; do
74235 as_dirs="$as_dir $as_dirs"
74236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74238 X"$as_dir" : 'X\(//\)[^/]' \| \
74239 X"$as_dir" : 'X\(//\)$' \| \
74240 X"$as_dir" : 'X\(/\)' \| \
74241 . : '\(.\)' 2>/dev/null ||
74242 echo X"$as_dir" |
74243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74245 /^X\(\/\/\)$/{ s//\1/; q; }
74246 /^X\(\/\).*/{ s//\1/; q; }
74247 s/.*/./; q'`
74248 done
74249 test ! -n "$as_dirs" || mkdir $as_dirs
74250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74252 { (exit 1); exit 1; }; }; }
74254 rm -f $ac_file
74255 mv $tmp/config.h $ac_file
74257 else
74258 cat $tmp/config.h
74259 rm -f $tmp/config.h
74261 # Compute $ac_file's index in $config_headers.
74262 _am_stamp_count=1
74263 for _am_header in $config_headers :; do
74264 case $_am_header in
74265 $ac_file | $ac_file:* )
74266 break ;;
74268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74269 esac
74270 done
74271 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74272 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74273 X$ac_file : 'X\(//\)[^/]' \| \
74274 X$ac_file : 'X\(//\)$' \| \
74275 X$ac_file : 'X\(/\)' \| \
74276 . : '\(.\)' 2>/dev/null ||
74277 echo X$ac_file |
74278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74280 /^X\(\/\/\)$/{ s//\1/; q; }
74281 /^X\(\/\).*/{ s//\1/; q; }
74282 s/.*/./; q'`/stamp-h$_am_stamp_count
74283 done
74284 _ACEOF
74285 cat >>$CONFIG_STATUS <<\_ACEOF
74288 # CONFIG_COMMANDS section.
74290 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74291 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74292 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74293 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74294 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74295 X"$ac_dest" : 'X\(//\)[^/]' \| \
74296 X"$ac_dest" : 'X\(//\)$' \| \
74297 X"$ac_dest" : 'X\(/\)' \| \
74298 . : '\(.\)' 2>/dev/null ||
74299 echo X"$ac_dest" |
74300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74302 /^X\(\/\/\)$/{ s//\1/; q; }
74303 /^X\(\/\).*/{ s//\1/; q; }
74304 s/.*/./; q'`
74305 { if $as_mkdir_p; then
74306 mkdir -p "$ac_dir"
74307 else
74308 as_dir="$ac_dir"
74309 as_dirs=
74310 while test ! -d "$as_dir"; do
74311 as_dirs="$as_dir $as_dirs"
74312 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74314 X"$as_dir" : 'X\(//\)[^/]' \| \
74315 X"$as_dir" : 'X\(//\)$' \| \
74316 X"$as_dir" : 'X\(/\)' \| \
74317 . : '\(.\)' 2>/dev/null ||
74318 echo X"$as_dir" |
74319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74321 /^X\(\/\/\)$/{ s//\1/; q; }
74322 /^X\(\/\).*/{ s//\1/; q; }
74323 s/.*/./; q'`
74324 done
74325 test ! -n "$as_dirs" || mkdir $as_dirs
74326 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74327 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74328 { (exit 1); exit 1; }; }; }
74330 ac_builddir=.
74332 if test "$ac_dir" != .; then
74333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74334 # A "../" for each directory in $ac_dir_suffix.
74335 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74336 else
74337 ac_dir_suffix= ac_top_builddir=
74340 case $srcdir in
74341 .) # No --srcdir option. We are building in place.
74342 ac_srcdir=.
74343 if test -z "$ac_top_builddir"; then
74344 ac_top_srcdir=.
74345 else
74346 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74347 fi ;;
74348 [\\/]* | ?:[\\/]* ) # Absolute path.
74349 ac_srcdir=$srcdir$ac_dir_suffix;
74350 ac_top_srcdir=$srcdir ;;
74351 *) # Relative path.
74352 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74353 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74354 esac
74356 # Do not use `cd foo && pwd` to compute absolute paths, because
74357 # the directories may not exist.
74358 case `pwd` in
74359 .) ac_abs_builddir="$ac_dir";;
74361 case "$ac_dir" in
74362 .) ac_abs_builddir=`pwd`;;
74363 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74364 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74365 esac;;
74366 esac
74367 case $ac_abs_builddir in
74368 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74370 case ${ac_top_builddir}. in
74371 .) ac_abs_top_builddir=$ac_abs_builddir;;
74372 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74373 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74374 esac;;
74375 esac
74376 case $ac_abs_builddir in
74377 .) ac_abs_srcdir=$ac_srcdir;;
74379 case $ac_srcdir in
74380 .) ac_abs_srcdir=$ac_abs_builddir;;
74381 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74382 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74383 esac;;
74384 esac
74385 case $ac_abs_builddir in
74386 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74388 case $ac_top_srcdir in
74389 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74390 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74391 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74392 esac;;
74393 esac
74396 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74397 echo "$as_me: executing $ac_dest commands" >&6;}
74398 case $ac_dest in
74399 default-1 )
74400 # Only add multilib support code if we just rebuilt the top-level
74401 # Makefile.
74402 case " $CONFIG_FILES " in
74403 *" Makefile "*)
74404 ac_file=Makefile . ${multi_basedir}/config-ml.in
74406 esac ;;
74407 default ) if test -n "$CONFIG_FILES"; then
74408 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74409 # that multilib installs will end up installed in the correct place.
74410 # The testsuite needs it for multilib-aware ABI baseline files.
74411 # To work around this not being passed down from config-ml.in ->
74412 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74413 # append it here. Only modify Makefiles that have just been created.
74415 # Also, get rid of this simulated-VPATH thing that automake does.
74416 cat > vpsed << \_EOF
74417 s!`test -f '$<' || echo '$(srcdir)/'`!!
74418 _EOF
74419 for i in $SUBDIRS; do
74420 case $CONFIG_FILES in
74421 *${i}/Makefile*)
74422 #echo "Adding MULTISUBDIR to $i/Makefile"
74423 sed -f vpsed $i/Makefile > tmp
74424 grep '^MULTISUBDIR =' Makefile >> tmp
74425 mv tmp $i/Makefile
74427 esac
74428 done
74429 rm vpsed
74431 (cd include && ${MAKE-make})
74433 esac
74434 done
74435 _ACEOF
74437 cat >>$CONFIG_STATUS <<\_ACEOF
74439 { (exit 0); exit 0; }
74440 _ACEOF
74441 chmod +x $CONFIG_STATUS
74442 ac_clean_files=$ac_clean_files_save
74445 # configure is writing to config.log, and then calls config.status.
74446 # config.status does its own redirection, appending to config.log.
74447 # Unfortunately, on DOS this fails, as config.log is still kept open
74448 # by configure, so config.status won't be able to write to it; its
74449 # output is simply discarded. So we exec the FD to /dev/null,
74450 # effectively closing config.log, so it can be properly (re)opened and
74451 # appended to by config.status. When coming back to configure, we
74452 # need to make the FD available again.
74453 if test "$no_create" != yes; then
74454 ac_cs_success=:
74455 ac_config_status_args=
74456 test "$silent" = yes &&
74457 ac_config_status_args="$ac_config_status_args --quiet"
74458 exec 5>/dev/null
74459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74460 exec 5>>config.log
74461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74462 # would make configure fail if this is the last instruction.
74463 $ac_cs_success || { (exit 1); exit 1; }