* config/sparc/sparc.h: Correct comment about availability of
[official-gcc.git] / libstdc++-v3 / configure
blobc2f20097ce62a6fe14a70d75ede49200cf543a09
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="src/ios.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
767 # Report the --help message.
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
775 Usage: $0 [OPTION]... [VAR=VALUE]...
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
780 Defaults for the options are specified in brackets.
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 _ACEOF
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
807 For better control, use the options below.
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
824 cat <<\_ACEOF
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of package-unused version-unused:";;
841 esac
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-multilib build many library versions (default)
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
856 --enable-sjlj-exceptions
857 force use of builtin_setjmp for exceptions
858 [default=auto]
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
860 [default=$is_hosted]
861 --enable-cstdio=PACKAGE use target-specific I/O package
862 [default=stdio]
863 --enable-clocale[=MODEL]
864 use MODEL for target locale package
865 [default=auto]
866 --enable-nls use Native Language Support (default)
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
869 [default=auto]
870 --enable-cheaders=KIND construct "C" headers for g++
871 [default=$c_model]
872 --enable-c-mbchar enable multibyte (wide) characters
873 [default=yes]
874 --enable-c99 turns on ISO/IEC 9899:1999 support
875 [default=yes]
876 --enable-long-long enables I/O support for 'long long'
877 [default=yes]
878 --enable-concept-checks use Boost-derived template checks [default=no]
879 --enable-libstdcxx-debug-flags=FLAGS
880 pass compiler FLAGS when building debug library
881 [default="-g3 -O0"]
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
885 pass compiler FLAGS when building library
886 [default=]
887 --enable-symvers=STYLE enables symbol versioning of the shared library
888 [default=yes]
889 --enable-version-specific-runtime-libs
890 Specify that runtime libraries should be installed
891 in a compiler-specific directory
893 Optional Packages:
894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
896 --with-target-subdir=SUBDIR
897 configuring in a subdirectory
898 --with-cross-host=HOST configuring with a cross compiler
899 --with-newlib assume newlib as a system C library
900 --with-gnu-ld assume the C compiler uses GNU ld default=no
901 --with-pic try to use only PIC/non-PIC objects default=use both
902 --with-gxx-include-dir=DIR
903 installation directory for include files
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CXX C++ compiler command
913 CXXFLAGS C++ compiler flags
914 CXXCPP C++ preprocessor
915 CPP C preprocessor
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
920 _ACEOF
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935 ac_dir_suffix= ac_top_builddir=
938 case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
959 case "$ac_dir" in
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
977 case $ac_srcdir in
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 esac;;
991 esac
993 cd $ac_dir
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
996 echo
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
999 echo
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1003 echo
1004 $ac_configure --help
1005 else
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 cd $ac_popdir
1009 done
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014 cat <<\_ACEOF
1015 package-unused configure version-unused
1016 generated by GNU Autoconf 2.59
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021 _ACEOF
1022 exit 0
1024 exec 5>config.log
1025 cat >&5 <<_ACEOF
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1029 It was created by package-unused $as_me version-unused, which was
1030 generated by GNU Autoconf 2.59. Invocation command line was
1032 $ $0 $@
1034 _ACEOF
1036 cat <<_ASUNAME
1037 ## --------- ##
1038 ## Platform. ##
1039 ## --------- ##
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 _ASUNAME
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 for as_dir in $PATH
1063 IFS=$as_save_IFS
1064 test -z "$as_dir" && as_dir=.
1065 echo "PATH: $as_dir"
1066 done
1068 } >&5
1070 cat >&5 <<_ACEOF
1073 ## ----------- ##
1074 ## Core tests. ##
1075 ## ----------- ##
1077 _ACEOF
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_configure_args=
1086 ac_configure_args0=
1087 ac_configure_args1=
1088 ac_sep=
1089 ac_must_keep_next=false
1090 for ac_pass in 1 2
1092 for ac_arg
1094 case $ac_arg in
1095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 continue ;;
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 esac
1102 case $ac_pass in
1103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106 if test $ac_must_keep_next = true; then
1107 ac_must_keep_next=false # Got value, back to normal.
1108 else
1109 case $ac_arg in
1110 *=* | --config-cache | -C | -disable-* | --disable-* \
1111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113 | -with-* | --with-* | -without-* | --without-* | --x)
1114 case "$ac_configure_args0 " in
1115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 esac
1118 -* ) ac_must_keep_next=true ;;
1119 esac
1121 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122 # Get rid of the leading space.
1123 ac_sep=" "
1125 esac
1126 done
1127 done
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log. We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137 # Save into config.log some information that might help in debugging.
1139 echo
1141 cat <<\_ASBOX
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1145 _ASBOX
1146 echo
1147 # The following way of writing the cache mishandles newlines in values,
1149 (set) 2>&1 |
1150 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 *ac_space=\ *)
1152 sed -n \
1153 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 sed -n \
1158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 esac;
1162 echo
1164 cat <<\_ASBOX
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_vars
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1177 if test -n "$ac_subst_files"; then
1178 cat <<\_ASBOX
1179 ## ------------- ##
1180 ## Output files. ##
1181 ## ------------- ##
1182 _ASBOX
1183 echo
1184 for ac_var in $ac_subst_files
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1188 done | sort
1189 echo
1192 if test -s confdefs.h; then
1193 cat <<\_ASBOX
1194 ## ----------- ##
1195 ## confdefs.h. ##
1196 ## ----------- ##
1197 _ASBOX
1198 echo
1199 sed "/^$/d" confdefs.h | sort
1200 echo
1202 test "$ac_signal" != 0 &&
1203 echo "$as_me: caught signal $ac_signal"
1204 echo "$as_me: exit $exit_status"
1205 } >&5
1206 rm -f core *.core &&
1207 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 exit $exit_status
1210 for ac_signal in 1 2 13 15; do
1211 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 done
1213 ac_signal=0
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 echo >confdefs.h
1220 # Predefined preprocessor variables.
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 _ACEOF
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 _ACEOF
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250 if test "x$prefix" != xNONE; then
1251 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252 else
1253 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 for ac_site_file in $CONFIG_SITE; do
1257 if test -r "$ac_site_file"; then
1258 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260 sed 's/^/| /' "$ac_site_file" >&5
1261 . "$ac_site_file"
1263 done
1265 if test -r "$cache_file"; then
1266 # Some versions of bash will fail to source /dev/null (special
1267 # files actually), so we avoid doing that.
1268 if test -f "$cache_file"; then
1269 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1271 case $cache_file in
1272 [\\/]* | ?:[\\/]* ) . $cache_file;;
1273 *) . ./$cache_file;;
1274 esac
1276 else
1277 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1279 >$cache_file
1282 # Check that the precious variables saved in the cache have kept the same
1283 # value.
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288 eval ac_new_set=\$ac_env_${ac_var}_set
1289 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290 eval ac_new_val="\$ac_env_${ac_var}_value"
1291 case $ac_old_set,$ac_new_set in
1292 set,)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,set)
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1300 ,);;
1302 if test "x$ac_old_val" != "x$ac_new_val"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306 echo "$as_me: former value: $ac_old_val" >&2;}
1307 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308 echo "$as_me: current value: $ac_new_val" >&2;}
1309 ac_cache_corrupted=:
1310 fi;;
1311 esac
1312 # Pass precious variables to config.status.
1313 if test "$ac_new_set" = set; then
1314 case $ac_new_val in
1315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317 *) ac_arg=$ac_var=$ac_new_val ;;
1318 esac
1319 case " $ac_configure_args " in
1320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 esac
1324 done
1325 if $ac_cache_corrupted; then
1326 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330 { (exit 1); exit 1; }; }
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 ac_config_headers="$ac_config_headers config.h"
1369 # This works around the fact that libtool configuration may change LD
1370 # for this particular configuration, but some shells, instead of
1371 # keeping the changes in LD private, export them just because LD is
1372 # exported. Only used at the end of this file.
1373 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1375 # For libtool versioning info, format is CURRENT:REVISION:AGE
1376 libtool_VERSION=6:1:0
1379 # Find the rest of the source tree framework.
1381 # Sets up multi_basedir, which is srcdir/.. plus the usual
1382 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1383 # Default to --enable-multilib
1384 # Check whether --enable-multilib or --disable-multilib was given.
1385 if test "${enable_multilib+set}" = set; then
1386 enableval="$enable_multilib"
1387 case "$enableval" in
1388 yes) multilib=yes ;;
1389 no) multilib=no ;;
1390 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392 { (exit 1); exit 1; }; } ;;
1393 esac
1394 else
1395 multilib=yes
1398 # We may get other options which we leave undocumented:
1399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1400 # See config-ml.in if you want the gory details.
1402 if test "$srcdir" = "."; then
1403 if test "$with_target_subdir" != "."; then
1404 multi_basedir="$srcdir/$with_multisrctop../.."
1405 else
1406 multi_basedir="$srcdir/$with_multisrctop.."
1408 else
1409 multi_basedir="$srcdir/.."
1413 ac_config_commands="$ac_config_commands default-1"
1416 # The generated code is exactly the same, except that automake's looks in
1417 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1418 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1419 # know what they are or what the other differences might be (and they keep
1420 # changing anyhow).
1422 # Looking in multi_basedir seems smarter, so actually execute that branch.
1423 if false; then
1424 # this is for automake
1425 ac_aux_dir=
1426 for ac_dir in .. $srcdir/..; do
1427 if test -f $ac_dir/install-sh; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/install-sh -c"
1430 break
1431 elif test -f $ac_dir/install.sh; then
1432 ac_aux_dir=$ac_dir
1433 ac_install_sh="$ac_aux_dir/install.sh -c"
1434 break
1435 elif test -f $ac_dir/shtool; then
1436 ac_aux_dir=$ac_dir
1437 ac_install_sh="$ac_aux_dir/shtool install -c"
1438 break
1440 done
1441 if test -z "$ac_aux_dir"; then
1442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1444 { (exit 1); exit 1; }; }
1446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1450 else
1451 # this is for autoconf
1452 ac_aux_dir=
1453 for ac_dir in ${multi_basedir}; do
1454 if test -f $ac_dir/install-sh; then
1455 ac_aux_dir=$ac_dir
1456 ac_install_sh="$ac_aux_dir/install-sh -c"
1457 break
1458 elif test -f $ac_dir/install.sh; then
1459 ac_aux_dir=$ac_dir
1460 ac_install_sh="$ac_aux_dir/install.sh -c"
1461 break
1462 elif test -f $ac_dir/shtool; then
1463 ac_aux_dir=$ac_dir
1464 ac_install_sh="$ac_aux_dir/shtool install -c"
1465 break
1467 done
1468 if test -z "$ac_aux_dir"; then
1469 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1471 { (exit 1); exit 1; }; }
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1481 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1483 # You will slowly go insane if you do not grok the following fact: when
1484 # building v3 as part of the compiler, the top-level /target/ becomes the
1485 # library's /host/. configure then causes --target to default to --host,
1486 # exactly like any other package using autoconf. Therefore, 'target' and
1487 # 'host' will always be the same. This makes sense both for native and
1488 # cross compilers, just think about it for a little while. :-)
1490 # Also, if v3 is being configured as part of a cross compiler, the top-level
1491 # configure script will pass the "real" host as $with_cross_host.
1493 # Do not delete or change the following two lines. For why, see
1494 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534 ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549 echo "$as_me:$LINENO: checking target system type" >&5
1550 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551 if test "${ac_cv_target+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_target_alias=$target_alias
1555 test "x$ac_cv_target_alias" = "x" &&
1556 ac_cv_target_alias=$ac_cv_host_alias
1557 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564 echo "${ECHO_T}$ac_cv_target" >&6
1565 target=$ac_cv_target
1566 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 # The aliases save the names the user supplied, while $host etc.
1572 # will get canonicalized.
1573 test -n "$target_alias" &&
1574 test "$program_prefix$program_suffix$program_transform_name" = \
1575 NONENONEs,x,x, &&
1576 program_prefix=${target_alias}-
1577 target_alias=${target_alias-$host_alias}
1579 # Handy for debugging:
1580 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1582 if test "$build" != "$host"; then
1583 # We are being configured with some form of cross compiler.
1584 GLIBCXX_IS_NATIVE=false
1586 else
1587 GLIBCXX_IS_NATIVE=true
1590 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1591 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1592 # 1.x: minimum required version
1593 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1594 # of other PACKAGE_* variables will, however, and there's nothing
1595 # we can do about that; they come from AC_INIT).
1596 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1597 # file in the top srcdir, etc, etc), so stop complaining.
1598 # no-dependencies: turns off auto dependency generation (just for now)
1599 # -Wall: turns on all automake warnings...
1600 # -Wno-portability: ...except this one, since GNU make is now required.
1601 am__api_version="1.8"
1602 # Find a good install program. We prefer a C program (faster),
1603 # so one script is as good as another. But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # OS/2's system install, which has a completely different semantic
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 # Account for people who put trailing slashes in PATH elements.
1627 case $as_dir/ in
1628 ./ | .// | /cC/* | \
1629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631 /usr/ucb/* ) ;;
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 # Don't use installbsd from OSF since it installs stuff as root
1635 # by default.
1636 for ac_prog in ginstall scoinst install; do
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639 if test $ac_prog = install &&
1640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # AIX install. It has an incompatible calling convention.
1643 elif test $ac_prog = install &&
1644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645 # program-specific install script used by HP pwplus--don't use.
1647 else
1648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649 break 3
1652 done
1653 done
1655 esac
1656 done
1660 if test "${ac_cv_path_install+set}" = set; then
1661 INSTALL=$ac_cv_path_install
1662 else
1663 # As a last resort, use the slow shell script. We don't cache a
1664 # path for INSTALL within a source directory, because that will
1665 # break other packages using the cache if that directory is
1666 # removed, or if the path is relative.
1667 INSTALL=$ac_install_sh
1670 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671 echo "${ECHO_T}$INSTALL" >&6
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1681 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1682 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1683 # Just in case
1684 sleep 1
1685 echo timestamp > conftest.file
1686 # Do `set' in a subshell so we don't clobber the current shell's
1687 # arguments. Must try -L first in case configure is actually a
1688 # symlink; some systems play weird games with the mod time of symlinks
1689 # (eg FreeBSD returns the mod time of the symlink's containing
1690 # directory).
1691 if (
1692 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1693 if test "$*" = "X"; then
1694 # -L didn't work.
1695 set X `ls -t $srcdir/configure conftest.file`
1697 rm -f conftest.file
1698 if test "$*" != "X $srcdir/configure conftest.file" \
1699 && test "$*" != "X conftest.file $srcdir/configure"; then
1701 # If neither matched, then we have a broken ls. This can happen
1702 # if, for instance, CONFIG_SHELL is bash and it inherits a
1703 # broken ls alias from the environment. This has actually
1704 # happened. Such a system could not be considered "sane".
1705 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1706 alias in your environment" >&5
1707 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1708 alias in your environment" >&2;}
1709 { (exit 1); exit 1; }; }
1712 test "$2" = conftest.file
1714 then
1715 # Ok.
1717 else
1718 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1719 Check your system clock" >&5
1720 echo "$as_me: error: newly created file is older than distributed files!
1721 Check your system clock" >&2;}
1722 { (exit 1); exit 1; }; }
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726 test "$program_prefix" != NONE &&
1727 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $. echo might interpret backslashes.
1732 # By default was `s,x,x', remove it if useless.
1733 cat <<\_ACEOF >conftest.sed
1734 s/[\\$]/&&/g;s/;s,x,x,$//
1735 _ACEOF
1736 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1737 rm conftest.sed
1739 # expand $ac_aux_dir to an absolute path
1740 am_aux_dir=`cd $ac_aux_dir && pwd`
1742 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1743 # Use eval to expand $SHELL
1744 if eval "$MISSING --run true"; then
1745 am_missing_run="$MISSING --run "
1746 else
1747 am_missing_run=
1748 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1749 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1752 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1753 # Keeping the `.' argument allows $(mkdir_p) to be used without
1754 # argument. Indeed, we sometimes output rules like
1755 # $(mkdir_p) $(somedir)
1756 # where $(somedir) is conditionally defined.
1757 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1758 # expensive solution, as it forces Make to start a sub-shell.)
1759 mkdir_p='mkdir -p -- .'
1760 else
1761 # On NextStep and OpenStep, the `mkdir' command does not
1762 # recognize any option. It will interpret all options as
1763 # directories to create, and then abort because `.' already
1764 # exists.
1765 for d in ./-p ./--version;
1767 test -d $d && rmdir $d
1768 done
1769 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770 if test -f "$ac_aux_dir/mkinstalldirs"; then
1771 mkdir_p='$(mkinstalldirs)'
1772 else
1773 mkdir_p='$(install_sh) -d'
1777 for ac_prog in gawk mawk nawk awk
1779 # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 if test -n "$AWK"; then
1787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_AWK="$ac_prog"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1800 done
1801 done
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807 echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 test -n "$AWK" && break
1815 done
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 cat >conftest.make <<\_ACEOF
1824 all:
1825 @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830 eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832 eval ac_cv_prog_make_${ac_make}_set=no
1834 rm -f conftest.make
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839 SET_MAKE=
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 SET_MAKE="MAKE=${MAKE-make}"
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849 am__leading_dot=.
1850 else
1851 am__leading_dot=_
1853 rmdir .tst 2>/dev/null
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857 test -f $srcdir/config.status; then
1858 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860 { (exit 1); exit 1; }; }
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865 if (cygpath --version) >/dev/null 2>/dev/null; then
1866 CYGPATH_W='cygpath -w'
1867 else
1868 CYGPATH_W=echo
1873 # Define the identity of the package.
1874 PACKAGE='libstdc++'
1875 VERSION='version-unused'
1878 # Some tools Automake needs.
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1895 AMTAR=${AMTAR-"${am_missing_run}tar"}
1897 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1899 # Installed binaries are usually stripped using `strip' when the user
1900 # run `make install-strip'. However `strip' might not be the right
1901 # tool to use in cross-compilation environments, therefore Automake
1902 # will honor the `STRIP' environment variable to overrule this program.
1903 if test "$cross_compiling" != no; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}strip; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_STRIP+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$STRIP"; then
1913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 STRIP=$ac_cv_prog_STRIP
1932 if test -n "$STRIP"; then
1933 echo "$as_me:$LINENO: result: $STRIP" >&5
1934 echo "${ECHO_T}$STRIP" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_STRIP"; then
1942 ac_ct_STRIP=$STRIP
1943 # Extract the first word of "strip", so it can be a program name with args.
1944 set dummy strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_STRIP"; then
1951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_STRIP="strip"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1967 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971 if test -n "$ac_ct_STRIP"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973 echo "${ECHO_T}$ac_ct_STRIP" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 STRIP=$ac_ct_STRIP
1980 else
1981 STRIP="$ac_cv_prog_STRIP"
1985 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1987 # We need awk for the "check" target. The system "awk" is bad on
1988 # some platforms.
1993 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1994 # up critical shell variables.
1996 # Keep these sync'd with the list in Makefile.am. The first provides an
1997 # expandable list at autoconf time; the second provides an expandable list
1998 # (i.e., shell variable) at configure time.
2000 SUBDIRS='include libmath libsupc++ src po testsuite'
2002 # These need to be absolute paths, yet at the same time need to
2003 # canonicalize only relative paths, because then amd will not unmount
2004 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2005 glibcxx_builddir=`${PWDCMD-pwd}`
2006 case $srcdir in
2007 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2008 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2009 esac
2010 toplevel_srcdir=${glibcxx_srcdir}/..
2015 # We use these options to decide which functions to include. They are
2016 # set from the top level.
2018 # Check whether --with-target-subdir or --without-target-subdir was given.
2019 if test "${with_target_subdir+set}" = set; then
2020 withval="$with_target_subdir"
2025 # Check whether --with-cross-host or --without-cross-host was given.
2026 if test "${with_cross_host+set}" = set; then
2027 withval="$with_cross_host"
2032 # Check whether --with-newlib or --without-newlib was given.
2033 if test "${with_newlib+set}" = set; then
2034 withval="$with_newlib"
2038 # We're almost certainly being configured before anything else which uses
2039 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2040 # we not cache the value of CXX that we "discover" here, because it's set
2041 # to something unique for us and libjava. Other target libraries need to
2042 # find CXX for themselves. We yank the rug out from under the normal AC_*
2043 # process by sneakily renaming the cache variable. This also lets us debug
2044 # the value of "our" CXX in postmortems.
2046 # We must also force CXX to /not/ be a precious variable, otherwise the
2047 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2048 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2049 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2050 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2052 # -fno-builtin must be present here so that a non-conflicting form of
2053 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2058 save_CXXFLAGS="$CXXFLAGS"
2059 CXXFLAGS="$CXXFLAGS -fno-builtin"
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2102 if test -z "$ac_cv_prog_CC"; then
2103 ac_ct_CC=$CC
2104 # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_ac_ct_CC="gcc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 CC=$ac_ct_CC
2140 else
2141 CC="$ac_cv_prog_CC"
2144 if test -z "$CC"; then
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="${ac_tool_prefix}cc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2182 if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="cc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2219 CC=$ac_ct_CC
2220 else
2221 CC="$ac_cv_prog_CC"
2225 if test -z "$CC"; then
2226 # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2246 continue
2248 ac_cv_prog_CC="cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2255 if test $ac_prog_rejected = yes; then
2256 # We found a bogon in the path, so make sure we never use it.
2257 set dummy $ac_cv_prog_CC
2258 shift
2259 if test $# != 0; then
2260 # We chose a different compiler from the bogus one.
2261 # However, it has the same basename, so the bogon will be chosen
2262 # first if we set CC to just the basename; use the full file name.
2263 shift
2264 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 for ac_prog in cl
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2318 test -n "$CC" && break
2319 done
2321 if test -z "$CC"; then
2322 ac_ct_CC=$CC
2323 for ac_prog in cl
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_ac_ct_CC="$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2346 done
2347 done
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2355 else
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2360 test -n "$ac_ct_CC" && break
2361 done
2363 CC=$ac_ct_CC
2369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377 "checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380 (eval $ac_compiler --version </dev/null >&5) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385 (eval $ac_compiler -v </dev/null >&5) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390 (eval $ac_compiler -V </dev/null >&5) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 main ()
2407 return 0;
2409 _ACEOF
2410 # FIXME: Cleanup?
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 gcc_no_link=no
2417 else
2418 gcc_no_link=yes
2421 if test x$gcc_no_link = xyes; then
2422 # Setting cross_compile will disable run tests; it will
2423 # also disable AC_CHECK_FILE but that's generally
2424 # correct if we can't link.
2425 cross_compiling=yes
2426 EXEEXT=
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452 (eval $ac_link_default) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Find the output, starting from the most likely. This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2466 test -f "$ac_file" || continue
2467 case $ac_file in
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2470 conftest.$ac_ext )
2471 # This is the source file.
2473 [ab].out )
2474 # We found the default executable, but exeext='' is most
2475 # certainly right.
2476 break;;
2477 *.* )
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 # FIXME: I believe we export ac_cv_exeext for Libtool,
2480 # but it would be cool to find out if it's true. Does anybody
2481 # maintain Libtool? --akim.
2482 export ac_cv_exeext
2483 break;;
2485 break;;
2486 esac
2487 done
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496 { (exit 77); exit 77; }; }
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2503 # Check the compiler produces executables we can run. If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510 if { ac_try='./$ac_file'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 cross_compiling=no
2517 else
2518 if test "$cross_compiling" = maybe; then
2519 cross_compiling=yes
2520 else
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 export ac_cv_exeext
2560 break;;
2561 * ) break;;
2562 esac
2563 done
2564 else
2565 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2593 main ()
2597 return 0;
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 break;;
2611 esac
2612 done
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h. */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 main ()
2645 #ifndef __GNUC__
2646 choke me
2647 #endif
2650 return 0;
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -z "$ac_c_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_compiler_gnu=yes
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_compiler_gnu=no
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 CFLAGS="-g"
2692 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2693 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2694 if test "${ac_cv_prog_cc_g+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2705 main ()
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_g=yes
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 ac_cv_prog_cc_g=no
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2749 CFLAGS="-g -O2"
2750 else
2751 CFLAGS="-g"
2753 else
2754 if test "$GCC" = yes; then
2755 CFLAGS="-O2"
2756 else
2757 CFLAGS=
2760 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2761 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_cv_prog_cc_stdc=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781 char **p;
2782 int i;
2784 return p[i];
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2788 char *s;
2789 va_list v;
2790 va_start (v,p);
2791 s = g (p, va_arg (v,int));
2792 va_end (v);
2793 return s;
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2797 function prototypes and stuff, but not '\xHH' hex character constants.
2798 These don't provoke an error unfortunately, instead are silently treated
2799 as 'x'. The following induces an error, until -std1 is added to get
2800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2801 array size at least. It's necessary to write '\x00'==0 to get something
2802 that's true only with -std1. */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 int argc;
2810 char **argv;
2812 main ()
2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2816 return 0;
2818 _ACEOF
2819 # Don't try gcc -ansi; that turns off useful extensions and
2820 # breaks some systems' header files.
2821 # AIX -qlanglvl=ansi
2822 # Ultrix and OSF/1 -std1
2823 # HP-UX 10.20 and later -Ae
2824 # HP-UX older versions -Aa -D_HPUX_SOURCE
2825 # SVR4 -Xc -D__EXTENSIONS__
2826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 CC="$ac_save_CC $ac_arg"
2829 rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try='test -z "$ac_c_werror_flag"
2839 || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_stdc=$ac_arg
2852 break
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.err conftest.$ac_objext
2859 done
2860 rm -f conftest.$ac_ext conftest.$ac_objext
2861 CC=$ac_save_CC
2865 case "x$ac_cv_prog_cc_stdc" in
2866 x|xno)
2867 echo "$as_me:$LINENO: result: none needed" >&5
2868 echo "${ECHO_T}none needed" >&6 ;;
2870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2872 CC="$CC $ac_cv_prog_cc_stdc" ;;
2873 esac
2875 # Some people use a C++ compiler to compile C. Since we use `exit',
2876 # in C++ we need to declare it. In case someone uses the same compiler
2877 # for both compiling C and C++ we need to have the C++ compiler decide
2878 # the declaration of exit, since it's the most demanding environment.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #ifndef __cplusplus
2881 choke me
2882 #endif
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration in \
2907 '' \
2908 'extern "C" void std::exit (int) throw (); using std::exit;' \
2909 'extern "C" void std::exit (int); using std::exit;' \
2910 'extern "C" void exit (int) throw ();' \
2911 'extern "C" void exit (int);' \
2912 'void exit (int);'
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 $ac_declaration
2921 #include <stdlib.h>
2923 main ()
2925 exit (42);
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 (eval $ac_compile) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_c_werror_flag"
2940 || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 continue
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 $ac_declaration
2968 main ()
2970 exit (42);
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 break
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 done
3005 rm -f conftest*
3006 if test -n "$ac_declaration"; then
3007 echo '#ifdef __cplusplus' >>confdefs.h
3008 echo $ac_declaration >>confdefs.h
3009 echo '#endif' >>confdefs.h
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_ext=cc
3025 ac_cpp='$CXXCPP $CPPFLAGS'
3026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$CXX"; then
3040 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3058 CXX=$glibcxx_cv_prog_CXX
3059 if test -n "$CXX"; then
3060 echo "$as_me:$LINENO: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CXX" && break
3068 done
3070 if test -z "$CXX"; then
3071 ac_ct_CXX=$CXX
3072 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101 if test -n "$ac_ct_CXX"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3103 echo "${ECHO_T}$ac_ct_CXX" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CXX" && break
3110 done
3111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3113 CXX=$ac_ct_CXX
3117 # Provide some information about the compiler.
3118 echo "$as_me:$LINENO:" \
3119 "checking for C++ compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3122 (eval $ac_compiler --version </dev/null >&5) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }
3126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3127 (eval $ac_compiler -v </dev/null >&5) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3132 (eval $ac_compiler -V </dev/null >&5) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3150 main ()
3152 #ifndef __GNUC__
3153 choke me
3154 #endif
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_compiler_gnu=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_compiler_gnu=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3193 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3195 GXX=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CXXFLAGS=${CXXFLAGS+set}
3197 ac_save_CXXFLAGS=$CXXFLAGS
3198 CXXFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3200 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cxx_g+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_cxx_werror_flag"
3229 || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cxx_g=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_prog_cxx_g=no
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3252 if test "$ac_test_CXXFLAGS" = set; then
3253 CXXFLAGS=$ac_save_CXXFLAGS
3254 elif test $ac_cv_prog_cxx_g = yes; then
3255 if test "$GXX" = yes; then
3256 CXXFLAGS="-g -O2"
3257 else
3258 CXXFLAGS="-g"
3260 else
3261 if test "$GXX" = yes; then
3262 CXXFLAGS="-O2"
3263 else
3264 CXXFLAGS=
3267 for ac_declaration in \
3268 '' \
3269 'extern "C" void std::exit (int) throw (); using std::exit;' \
3270 'extern "C" void std::exit (int); using std::exit;' \
3271 'extern "C" void exit (int) throw ();' \
3272 'extern "C" void exit (int);' \
3273 'void exit (int);'
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 $ac_declaration
3282 #include <stdlib.h>
3284 main ()
3286 exit (42);
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293 (eval $ac_compile) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag"
3301 || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 continue
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 $ac_declaration
3329 main ()
3331 exit (42);
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_cxx_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 break
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 done
3366 rm -f conftest*
3367 if test -n "$ac_declaration"; then
3368 echo '#ifdef __cplusplus' >>confdefs.h
3369 echo $ac_declaration >>confdefs.h
3370 echo '#endif' >>confdefs.h
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 CXXFLAGS="$save_CXXFLAGS"
3384 # For directory versioning (e.g., headers) and other variables.
3385 echo "$as_me:$LINENO: checking for GCC version number" >&5
3386 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3387 gcc_version=`$CXX -dumpversion`
3388 echo "$as_me:$LINENO: result: $gcc_version" >&5
3389 echo "${ECHO_T}$gcc_version" >&6
3391 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3392 # available). Uncomment the next line to force a particular method.
3393 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3394 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 LN_S=$as_ln_s
3396 if test "$LN_S" = "ln -s"; then
3397 echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3401 echo "${ECHO_T}no, using $LN_S" >&6
3404 #LN_S='cp -p'
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}as; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_AS+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$AS"; then
3415 ac_cv_prog_AS="$AS" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_AS="${ac_tool_prefix}as"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3433 AS=$ac_cv_prog_AS
3434 if test -n "$AS"; then
3435 echo "$as_me:$LINENO: result: $AS" >&5
3436 echo "${ECHO_T}$AS" >&6
3437 else
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_AS"; then
3444 ac_ct_AS=$AS
3445 # Extract the first word of "as", so it can be a program name with args.
3446 set dummy as; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$ac_ct_AS"; then
3453 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_AS="as"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3472 if test -n "$ac_ct_AS"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3474 echo "${ECHO_T}$ac_ct_AS" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 AS=$ac_ct_AS
3481 else
3482 AS="$ac_cv_prog_AS"
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ar; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_AR+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$AR"; then
3494 ac_cv_prog_AR="$AR" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_AR="${ac_tool_prefix}ar"
3504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3507 done
3508 done
3512 AR=$ac_cv_prog_AR
3513 if test -n "$AR"; then
3514 echo "$as_me:$LINENO: result: $AR" >&5
3515 echo "${ECHO_T}$AR" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3522 if test -z "$ac_cv_prog_AR"; then
3523 ac_ct_AR=$AR
3524 # Extract the first word of "ar", so it can be a program name with args.
3525 set dummy ar; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -n "$ac_ct_AR"; then
3532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_AR="ar"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3551 if test -n "$ac_ct_AR"; then
3552 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3553 echo "${ECHO_T}$ac_ct_AR" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 AR=$ac_ct_AR
3560 else
3561 AR="$ac_cv_prog_AR"
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_RANLIB+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 if test -n "$RANLIB"; then
3573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3586 done
3587 done
3591 RANLIB=$ac_cv_prog_RANLIB
3592 if test -n "$RANLIB"; then
3593 echo "$as_me:$LINENO: result: $RANLIB" >&5
3594 echo "${ECHO_T}$RANLIB" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3601 if test -z "$ac_cv_prog_RANLIB"; then
3602 ac_ct_RANLIB=$RANLIB
3603 # Extract the first word of "ranlib", so it can be a program name with args.
3604 set dummy ranlib; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -n "$ac_ct_RANLIB"; then
3611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_RANLIB="ranlib"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3624 done
3625 done
3627 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3631 if test -n "$ac_ct_RANLIB"; then
3632 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3633 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 RANLIB=$ac_ct_RANLIB
3640 else
3641 RANLIB="$ac_cv_prog_RANLIB"
3645 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3646 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3647 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3648 if test "${enable_maintainer_mode+set}" = set; then
3649 enableval="$enable_maintainer_mode"
3650 USE_MAINTAINER_MODE=$enableval
3651 else
3652 USE_MAINTAINER_MODE=no
3654 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3655 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINTAINER_MODE_TRUE=
3660 MAINTAINER_MODE_FALSE='#'
3661 else
3662 MAINTAINER_MODE_TRUE='#'
3663 MAINTAINER_MODE_FALSE=
3666 MAINT=$MAINTAINER_MODE_TRUE
3670 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3671 # which are themselves conditionally expanded.
3672 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3673 ## other macros from doing the same. This should be automated.) -pme
3674 need_libmath=no
3675 enable_wchar_t=no
3676 #enable_libstdcxx_debug=no
3677 #enable_libstdcxx_pch=no
3678 #enable_cheaders=c
3679 #c_compatibility=no
3680 #enable_abi_check=no
3681 #enable_symvers=no
3682 #enable_hosted_libstdcxx=yes
3684 # Find platform-specific directories containing configuration info.
3685 # Also possibly modify flags used elsewhere, as needed by the platform.
3687 . $glibcxx_srcdir/configure.host
3688 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3689 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3690 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3691 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3695 #AC_MSG_NOTICE([====== Starting libtool configuration])
3697 # Check whether --enable-shared or --disable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699 enableval="$enable_shared"
3700 p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_shared=yes ;;
3703 no) enable_shared=no ;;
3705 enable_shared=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3712 done
3713 IFS="$ac_save_ifs"
3715 esac
3716 else
3717 enable_shared=yes
3719 # Check whether --enable-static or --disable-static was given.
3720 if test "${enable_static+set}" = set; then
3721 enableval="$enable_static"
3722 p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3727 enable_static=no
3728 # Look at the argument we got. We use all the common list separators.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_static=yes
3734 done
3735 IFS="$ac_save_ifs"
3737 esac
3738 else
3739 enable_static=yes
3741 # Check whether --enable-fast-install or --disable-fast-install was given.
3742 if test "${enable_fast_install+set}" = set; then
3743 enableval="$enable_fast_install"
3744 p=${PACKAGE-default}
3745 case $enableval in
3746 yes) enable_fast_install=yes ;;
3747 no) enable_fast_install=no ;;
3749 enable_fast_install=no
3750 # Look at the argument we got. We use all the common list separators.
3751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3752 for pkg in $enableval; do
3753 if test "X$pkg" = "X$p"; then
3754 enable_fast_install=yes
3756 done
3757 IFS="$ac_save_ifs"
3759 esac
3760 else
3761 enable_fast_install=yes
3764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then
3766 withval="$with_gnu_ld"
3767 test "$withval" = no || with_gnu_ld=yes
3768 else
3769 with_gnu_ld=no
3771 ac_prog=ld
3772 if test "$GCC" = yes; then
3773 # Check if gcc -print-prog-name=ld gives a path.
3774 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3776 case $host in
3777 *-*-mingw*)
3778 # gcc leaves a trailing carriage return which upsets mingw
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782 esac
3783 case $ac_prog in
3784 # Accept absolute paths.
3785 [\\/]* | [A-Za-z]:[\\/]*)
3786 re_direlt='/[^/][^/]*/\.\./'
3787 # Canonicalize the path of ld
3788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3791 done
3792 test -z "$LD" && LD="$ac_prog"
3795 # If it fails, then pretend we aren't using GCC.
3796 ac_prog=ld
3799 # If it is relative, then search for the first ld in PATH.
3800 with_gnu_ld=unknown
3802 esac
3803 elif test "$with_gnu_ld" = yes; then
3804 echo "$as_me:$LINENO: checking for GNU ld" >&5
3805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3806 else
3807 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3810 if test "${lt_cv_path_LD+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 if test -z "$LD"; then
3814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3815 for ac_dir in $PATH; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3818 lt_cv_path_LD="$ac_dir/$ac_prog"
3819 # Check to see if the program is GNU ld. I'd rather use --version,
3820 # but apparently some GNU ld's only accept -v.
3821 # Break only if it was the GNU/non-GNU ld that we prefer.
3822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3823 test "$with_gnu_ld" != no && break
3824 else
3825 test "$with_gnu_ld" != yes && break
3828 done
3829 IFS="$ac_save_ifs"
3830 else
3831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837 echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845 { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3853 lt_cv_prog_gnu_ld=yes
3854 else
3855 lt_cv_prog_gnu_ld=no
3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3860 with_gnu_ld=$lt_cv_prog_gnu_ld
3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3865 if test "${lt_cv_ld_reload_flag+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 lt_cv_ld_reload_flag='-r'
3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3872 reload_flag=$lt_cv_ld_reload_flag
3873 test -n "$reload_flag" && reload_flag=" $reload_flag"
3875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3877 if test "${lt_cv_path_NM+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 if test -n "$NM"; then
3881 # Let the user override the test.
3882 lt_cv_path_NM="$NM"
3883 else
3884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3885 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3886 test -z "$ac_dir" && ac_dir=.
3887 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3888 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3889 # Check to see if the nm accepts a BSD-compat flag.
3890 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3891 # nm: unknown option "B" ignored
3892 # Tru64's nm complains that /dev/null is an invalid object file
3893 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3894 lt_cv_path_NM="$tmp_nm -B"
3895 break
3896 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3897 lt_cv_path_NM="$tmp_nm -p"
3898 break
3899 else
3900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901 continue # so that we can try to find one that supports BSD flags
3904 done
3905 IFS="$ac_save_ifs"
3906 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3910 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: result: $NM" >&5
3912 echo "${ECHO_T}$NM" >&6
3914 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3915 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3916 if test "${lt_cv_deplibs_check_method+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 lt_cv_file_magic_cmd='$MAGIC_CMD'
3920 lt_cv_file_magic_test_file=
3921 lt_cv_deplibs_check_method='unknown'
3922 # Need to set the preceding variable on all platforms that support
3923 # interlibrary dependencies.
3924 # 'none' -- dependencies not supported.
3925 # `unknown' -- same as none, but documents that we really don't know.
3926 # 'pass_all' -- all dependencies passed with no checks.
3927 # 'test_compile' -- check by making test program.
3928 # 'file_magic [regex]' -- check by looking for files in library path
3929 # which responds to the $file_magic_cmd with a given egrep regex.
3930 # If you have `file' or equivalent on your system and you're not sure
3931 # whether `pass_all' will *always* work, you probably want this one.
3933 case $host_os in
3934 aix*)
3935 lt_cv_deplibs_check_method=pass_all
3938 beos*)
3939 lt_cv_deplibs_check_method=pass_all
3942 bsdi4*)
3943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3944 lt_cv_file_magic_cmd='/usr/bin/file -L'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3948 cygwin* | mingw* |pw32*)
3949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950 lt_cv_file_magic_cmd='$OBJDUMP -f'
3953 darwin* | rhapsody*)
3954 # this will be overwritten by pass_all, but leave it in just in case
3955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3956 lt_cv_file_magic_cmd='/usr/bin/file -L'
3957 case "$host_os" in
3958 rhapsody* | darwin1.012)
3959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3961 *) # Darwin 1.3 on
3962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3964 esac
3965 lt_cv_deplibs_check_method=pass_all
3968 freebsd* | kfreebsd*-gnu)
3969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970 case $host_cpu in
3971 i*86 )
3972 # Not sure whether the presence of OpenBSD here was a mistake.
3973 # Let's accept both of them until this is cleared up.
3974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3975 lt_cv_file_magic_cmd=/usr/bin/file
3976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3978 esac
3979 else
3980 lt_cv_deplibs_check_method=pass_all
3984 gnu*)
3985 lt_cv_deplibs_check_method=pass_all
3988 hpux10.20*|hpux11*)
3989 case $host_cpu in
3990 hppa*)
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3992 lt_cv_file_magic_cmd=/usr/bin/file
3993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3995 ia64*)
3996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3997 lt_cv_file_magic_cmd=/usr/bin/file
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4000 esac
4003 irix5* | irix6*)
4004 case $host_os in
4005 irix5*)
4006 # this will be overridden with pass_all, but let us keep it just in case
4007 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4010 case $LD in
4011 *-32|*"-32 ") libmagic=32-bit;;
4012 *-n32|*"-n32 ") libmagic=N32;;
4013 *-64|*"-64 ") libmagic=64-bit;;
4014 *) libmagic=never-match;;
4015 esac
4016 # this will be overridden with pass_all, but let us keep it just in case
4017 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4019 esac
4020 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4021 lt_cv_deplibs_check_method=pass_all
4024 # This must be Linux ELF.
4025 linux-gnu*)
4026 case $host_cpu in
4027 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4028 lt_cv_deplibs_check_method=pass_all ;;
4030 # glibc up to 2.1.1 does not perform some relocations on ARM
4031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4032 esac
4033 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4036 netbsd* | knetbsd*-gnu)
4037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4039 else
4040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4044 newsos6)
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4046 lt_cv_file_magic_cmd=/usr/bin/file
4047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4050 osf3* | osf4* | osf5*)
4051 # this will be overridden with pass_all, but let us keep it just in case
4052 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4053 lt_cv_file_magic_test_file=/shlib/libc.so
4054 lt_cv_deplibs_check_method=pass_all
4057 sco3.2v5*)
4058 lt_cv_deplibs_check_method=pass_all
4061 solaris*)
4062 lt_cv_deplibs_check_method=pass_all
4063 lt_cv_file_magic_test_file=/lib/libc.so
4066 sysv5uw[78]* | sysv4*uw2*)
4067 lt_cv_deplibs_check_method=pass_all
4070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4071 case $host_vendor in
4072 ncr)
4073 lt_cv_deplibs_check_method=pass_all
4075 motorola)
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 esac
4081 esac
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4095 # Only perform the check for file, if the check method requires it
4096 case $deplibs_check_method in
4097 file_magic*)
4098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4099 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 case $MAGIC_CMD in
4106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4108 ?:/*)
4109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4112 ac_save_MAGIC_CMD="$MAGIC_CMD"
4113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4114 ac_dummy="/usr/bin:$PATH"
4115 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f $ac_dir/${ac_tool_prefix}file; then
4118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4119 if test -n "$file_magic_test_file"; then
4120 case $deplibs_check_method in
4121 "file_magic "*)
4122 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4125 egrep "$file_magic_regex" > /dev/null; then
4127 else
4128 cat <<EOF 1>&2
4130 *** Warning: the command libtool uses to detect shared libraries,
4131 *** $file_magic_cmd, produces output that libtool cannot recognize.
4132 *** The result is that libtool may fail to recognize shared libraries
4133 *** as such. This will affect the creation of libtool libraries that
4134 *** depend on shared libraries, but programs linked with such libtool
4135 *** libraries will work regardless of this problem. Nevertheless, you
4136 *** may want to report the problem to your system manager and/or to
4137 *** bug-libtool@gnu.org
4140 fi ;;
4141 esac
4143 break
4145 done
4146 IFS="$ac_save_ifs"
4147 MAGIC_CMD="$ac_save_MAGIC_CMD"
4149 esac
4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4153 if test -n "$MAGIC_CMD"; then
4154 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4155 echo "${ECHO_T}$MAGIC_CMD" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 if test -z "$lt_cv_path_MAGIC_CMD"; then
4162 if test -n "$ac_tool_prefix"; then
4163 echo "$as_me:$LINENO: checking for file" >&5
4164 echo $ECHO_N "checking for file... $ECHO_C" >&6
4165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 case $MAGIC_CMD in
4170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4172 ?:/*)
4173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4176 ac_save_MAGIC_CMD="$MAGIC_CMD"
4177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4178 ac_dummy="/usr/bin:$PATH"
4179 for ac_dir in $ac_dummy; do
4180 test -z "$ac_dir" && ac_dir=.
4181 if test -f $ac_dir/file; then
4182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4183 if test -n "$file_magic_test_file"; then
4184 case $deplibs_check_method in
4185 "file_magic "*)
4186 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4189 egrep "$file_magic_regex" > /dev/null; then
4191 else
4192 cat <<EOF 1>&2
4194 *** Warning: the command libtool uses to detect shared libraries,
4195 *** $file_magic_cmd, produces output that libtool cannot recognize.
4196 *** The result is that libtool may fail to recognize shared libraries
4197 *** as such. This will affect the creation of libtool libraries that
4198 *** depend on shared libraries, but programs linked with such libtool
4199 *** libraries will work regardless of this problem. Nevertheless, you
4200 *** may want to report the problem to your system manager and/or to
4201 *** bug-libtool@gnu.org
4204 fi ;;
4205 esac
4207 break
4209 done
4210 IFS="$ac_save_ifs"
4211 MAGIC_CMD="$ac_save_MAGIC_CMD"
4213 esac
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if test -n "$MAGIC_CMD"; then
4218 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4219 echo "${ECHO_T}$MAGIC_CMD" >&6
4220 else
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 else
4226 MAGIC_CMD=:
4232 esac
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_RANLIB+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263 echo "$as_me:$LINENO: result: $RANLIB" >&5
4264 echo "${ECHO_T}$RANLIB" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4271 if test -z "$ac_cv_prog_RANLIB"; then
4272 ac_ct_RANLIB=$RANLIB
4273 # Extract the first word of "ranlib", so it can be a program name with args.
4274 set dummy ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_RANLIB"; then
4281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_RANLIB="ranlib"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4297 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4301 if test -n "$ac_ct_RANLIB"; then
4302 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4303 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 else
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 RANLIB=$ac_ct_RANLIB
4310 else
4311 RANLIB="$ac_cv_prog_RANLIB"
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$STRIP"; then
4323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343 echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_STRIP"; then
4352 ac_ct_STRIP=$STRIP
4353 # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_STRIP="strip"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4377 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 STRIP=$ac_ct_STRIP
4390 else
4391 STRIP="$ac_cv_prog_STRIP"
4395 # Check for any special flags to pass to ltconfig.
4396 libtool_flags="--cache-file=$cache_file"
4397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406 enableval="$enable_libtool_lock"
4409 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4410 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4413 # Check whether --with-pic or --without-pic was given.
4414 if test "${with_pic+set}" = set; then
4415 withval="$with_pic"
4416 pic_mode="$withval"
4417 else
4418 pic_mode=default
4420 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4421 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4423 # Some flags need to be propagated to the compiler or linker for good
4424 # libtool support.
4425 case $host in
4426 *-*-irix6*)
4427 # Find out which ABI we are using.
4428 echo '#line 4428 "configure"' > conftest.$ac_ext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 if test "$lt_cv_prog_gnu_ld" = yes; then
4435 case `/usr/bin/file conftest.$ac_objext` in
4436 *32-bit*)
4437 LD="${LD-ld} -melf32bsmip"
4439 *N32*)
4440 LD="${LD-ld} -melf32bmipn32"
4442 *64-bit*)
4443 LD="${LD-ld} -melf64bmip"
4445 esac
4446 else
4447 case `/usr/bin/file conftest.$ac_objext` in
4448 *32-bit*)
4449 LD="${LD-ld} -32"
4451 *N32*)
4452 LD="${LD-ld} -n32"
4454 *64-bit*)
4455 LD="${LD-ld} -64"
4457 esac
4460 rm -rf conftest*
4463 ia64-*-hpux*)
4464 # Find out which ABI we are using.
4465 echo 'int i;' > conftest.$ac_ext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; then
4471 case "`/usr/bin/file conftest.o`" in
4472 *ELF-32*)
4473 HPUX_IA64_MODE="32"
4475 *ELF-64*)
4476 HPUX_IA64_MODE="64"
4478 esac
4480 rm -rf conftest*
4483 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4484 # Find out which ABI we are using.
4485 echo 'int i;' > conftest.$ac_ext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; then
4491 case "`/usr/bin/file conftest.o`" in
4492 *32-bit*)
4493 case $host in
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_i386"
4497 ppc64-*linux*|powerpc64-*linux*)
4498 LD="${LD-ld} -m elf32ppclinux"
4500 s390x-*linux*)
4501 LD="${LD-ld} -m elf_s390"
4503 sparc64-*linux*)
4504 LD="${LD-ld} -m elf32_sparc"
4506 esac
4508 *64-bit*)
4509 case $host in
4510 x86_64-*linux*)
4511 LD="${LD-ld} -m elf_x86_64"
4513 ppc*-*linux*|powerpc*-*linux*)
4514 LD="${LD-ld} -m elf64ppc"
4516 s390*-*linux*)
4517 LD="${LD-ld} -m elf64_s390"
4519 sparc*-*linux*)
4520 LD="${LD-ld} -m elf64_sparc"
4522 esac
4524 esac
4526 rm -rf conftest*
4529 *-*-sco3.2v5*)
4530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531 SAVE_CFLAGS="$CFLAGS"
4532 CFLAGS="$CFLAGS -belf"
4533 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4534 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4535 if test "${lt_cv_cc_needs_belf+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 if test x$gcc_no_link = xyes; then
4547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4549 { (exit 1); exit 1; }; }
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 lt_cv_cc_needs_belf=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 lt_cv_cc_needs_belf=no
4595 rm -f conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4608 CFLAGS="$SAVE_CFLAGS"
4613 esac
4616 # Save cache, so that ltconfig can load it
4617 cat >confcache <<\_ACEOF
4618 # This file is a shell script that caches the results of configure
4619 # tests run on this system so they can be shared between configure
4620 # scripts and configure runs, see configure's option --config-cache.
4621 # It is not useful on other systems. If it contains results you don't
4622 # want to keep, you may remove or edit it.
4624 # config.status only pays attention to the cache file if you give it
4625 # the --recheck option to rerun configure.
4627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4629 # following values.
4631 _ACEOF
4633 # The following way of writing the cache mishandles newlines in values,
4634 # but we know of no workaround that is simple, portable, and efficient.
4635 # So, don't put newlines in cache variables' values.
4636 # Ultrix sh set writes to stderr and can't be redirected directly,
4637 # and sets the high bit in the cache file unless we assign to the vars.
4639 (set) 2>&1 |
4640 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641 *ac_space=\ *)
4642 # `set' does not quote correctly, so add quotes (double-quote
4643 # substitution turns \\\\ into \\, and sed turns \\ into \).
4644 sed -n \
4645 "s/'/'\\\\''/g;
4646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4649 # `set' quotes correctly as required by POSIX, so do not add quotes.
4650 sed -n \
4651 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4653 esac;
4655 sed '
4656 t clear
4657 : clear
4658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4659 t end
4660 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661 : end' >>confcache
4662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4663 if test -w $cache_file; then
4664 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4665 cat confcache >$cache_file
4666 else
4667 echo "not updating unwritable cache $cache_file"
4670 rm -f confcache
4672 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4673 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4674 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4675 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4676 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4677 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4678 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4680 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4681 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4682 echo "$as_me: error: libtool configure failed" >&2;}
4683 { (exit 1); exit 1; }; }
4685 # Reload cache, that may have been modified by ltconfig
4686 if test -r "$cache_file"; then
4687 # Some versions of bash will fail to source /dev/null (special
4688 # files actually), so we avoid doing that.
4689 if test -f "$cache_file"; then
4690 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4691 echo "$as_me: loading cache $cache_file" >&6;}
4692 case $cache_file in
4693 [\\/]* | ?:[\\/]* ) . $cache_file;;
4694 *) . ./$cache_file;;
4695 esac
4697 else
4698 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4699 echo "$as_me: creating cache $cache_file" >&6;}
4700 >$cache_file
4704 # This can be used to rebuild libtool when needed
4705 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4707 # Always use our own libtool.
4708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4710 # Redirect the config.log output again, so that the ltconfig log is not
4711 # clobbered by the next message.
4712 exec 5>>./config.log
4714 ac_ext=cc
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4721 if test -z "$CXXCPP"; then
4722 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 # Double quotes because CXXCPP needs to be expanded
4726 for CXXCPP in "$CXX -E" "/lib/cpp"
4728 ac_preproc_ok=false
4729 for ac_cxx_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null; then
4758 if test -s conftest.err; then
4759 ac_cpp_err=$ac_cxx_preproc_warn_flag
4760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4761 else
4762 ac_cpp_err=
4764 else
4765 ac_cpp_err=yes
4767 if test -z "$ac_cpp_err"; then
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 # Broken: fails on valid input.
4774 continue
4776 rm -f conftest.err conftest.$ac_ext
4778 # OK, works on sane cases. Now check whether non-existent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } >/dev/null; then
4796 if test -s conftest.err; then
4797 ac_cpp_err=$ac_cxx_preproc_warn_flag
4798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4799 else
4800 ac_cpp_err=
4802 else
4803 ac_cpp_err=yes
4805 if test -z "$ac_cpp_err"; then
4806 # Broken: success on invalid input.
4807 continue
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 # Passes both tests.
4813 ac_preproc_ok=:
4814 break
4816 rm -f conftest.err conftest.$ac_ext
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822 break
4825 done
4826 ac_cv_prog_CXXCPP=$CXXCPP
4829 CXXCPP=$ac_cv_prog_CXXCPP
4830 else
4831 ac_cv_prog_CXXCPP=$CXXCPP
4833 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4834 echo "${ECHO_T}$CXXCPP" >&6
4835 ac_preproc_ok=false
4836 for ac_cxx_preproc_warn_flag in '' yes
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855 Syntax error
4856 _ACEOF
4857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null; then
4865 if test -s conftest.err; then
4866 ac_cpp_err=$ac_cxx_preproc_warn_flag
4867 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4868 else
4869 ac_cpp_err=
4871 else
4872 ac_cpp_err=yes
4874 if test -z "$ac_cpp_err"; then
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 # Broken: fails on valid input.
4881 continue
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether non-existent headers
4886 # can be detected and how.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } >/dev/null; then
4903 if test -s conftest.err; then
4904 ac_cpp_err=$ac_cxx_preproc_warn_flag
4905 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4906 else
4907 ac_cpp_err=
4909 else
4910 ac_cpp_err=yes
4912 if test -z "$ac_cpp_err"; then
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4923 rm -f conftest.err conftest.$ac_ext
4925 done
4926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927 rm -f conftest.err conftest.$ac_ext
4928 if $ac_preproc_ok; then
4930 else
4931 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4932 See \`config.log' for more details." >&5
4933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4934 See \`config.log' for more details." >&2;}
4935 { (exit 1); exit 1; }; }
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4947 lt_save_CC="$CC"
4948 lt_save_CFLAGS="$CFLAGS"
4949 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4950 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4951 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4952 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4953 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4954 deplibs_check_method="$deplibs_check_method" \
4955 file_magic_cmd="$file_magic_cmd" \
4956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4957 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4958 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4959 echo "$as_me: error: libtool tag configuration failed" >&2;}
4960 { (exit 1); exit 1; }; }
4961 CC="$lt_save_CC"
4962 CFLAGS="$lt_save_CFLAGS"
4964 # Redirect the config.log output again, so that the ltconfig log is not
4965 # clobbered by the next message.
4966 exec 5>>./config.log
4975 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4977 # Possibly disable most of the library.
4978 ## XXX Consider skipping unncessary tests altogether in this case, rather
4979 ## than just ignoring the results. Faster /and/ more correct, win win.
4981 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4982 if test "${enable_hosted_libstdcxx+set}" = set; then
4983 enableval="$enable_hosted_libstdcxx"
4985 else
4986 enable_hosted_libstdcxx=yes
4988 if test "$enable_hosted_libstdcxx" = no; then
4989 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4990 echo "$as_me: Only freestanding libraries will be built" >&6;}
4991 is_hosted=no
4992 hosted_define=0
4993 enable_abi_check=no
4994 enable_libstdcxx_pch=no
4995 else
4996 is_hosted=yes
4997 hosted_define=1
5001 cat >>confdefs.h <<_ACEOF
5002 #define _GLIBCXX_HOSTED $hosted_define
5003 _ACEOF
5007 # Check for support bits and g++ features that don't require linking.
5009 echo "$as_me:$LINENO: checking for exception model to use" >&5
5010 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5013 ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5020 if test "${enable_sjlj_exceptions+set}" = set; then
5021 enableval="$enable_sjlj_exceptions"
5023 case "$enableval" in
5024 yes|no|auto) ;;
5025 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5026 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028 esac
5030 else
5031 enable_sjlj_exceptions=auto
5035 if test $enable_sjlj_exceptions = auto; then
5036 # Botheration. Now we've got to detect the exception model. Link tests
5037 # against libgcc.a are problematic since we've not been given proper -L
5038 # bits for single-tree newlib and libgloss.
5040 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5041 cat > conftest.$ac_ext << EOF
5042 #line 5042 "configure"
5043 struct S { ~S(); };
5044 void bar();
5045 void foo()
5047 S s;
5048 bar();
5051 old_CXXFLAGS="$CXXFLAGS"
5052 CXXFLAGS=-S
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; then
5058 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5059 enable_sjlj_exceptions=yes
5060 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5061 enable_sjlj_exceptions=no
5064 CXXFLAGS="$old_CXXFLAGS"
5065 rm -f conftest*
5068 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5069 # to two different models.
5070 case $enable_sjlj_exceptions in
5071 yes)
5073 cat >>confdefs.h <<\_ACEOF
5074 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5075 _ACEOF
5077 ac_exception_model_name=sjlj
5080 ac_exception_model_name="call frame"
5083 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5084 echo "$as_me: error: unable to detect exception model" >&2;}
5085 { (exit 1); exit 1; }; }
5087 esac
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5095 echo "${ECHO_T}$ac_exception_model_name" >&6
5098 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5099 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5100 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5101 if test "${enable_libstdcxx_pch+set}" = set; then
5102 enableval="$enable_libstdcxx_pch"
5104 case "$enableval" in
5105 yes|no) ;;
5106 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5107 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5109 esac
5111 else
5112 enable_libstdcxx_pch=$is_hosted
5115 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5116 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5118 if test $enable_libstdcxx_pch = yes; then
5119 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5120 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5121 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 ac_save_CXXFLAGS="$CXXFLAGS"
5125 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5134 echo '#include <math.h>' > conftest.h
5135 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5136 -o conftest.h.gch 1>&5 2>&1 &&
5137 echo '#error "pch failed"' > conftest.h &&
5138 echo '#include "conftest.h"' > conftest.cc &&
5139 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5140 then
5141 glibcxx_cv_prog_CXX_pch=yes
5142 else
5143 glibcxx_cv_prog_CXX_pch=no
5145 rm -f conftest*
5146 CXXFLAGS=$ac_save_CXXFLAGS
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5156 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5157 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5161 if test $enable_libstdcxx_pch = yes; then
5162 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5163 else
5164 glibcxx_PCHFLAGS=""
5169 # Enable all the variable C++ runtime options.
5170 # NB: C_MBCHAR must come early.
5172 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5173 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5174 # Check whether --enable-cstdio or --disable-cstdio was given.
5175 if test "${enable_cstdio+set}" = set; then
5176 enableval="$enable_cstdio"
5178 case "$enableval" in
5179 stdio) ;;
5180 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5181 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5183 esac
5185 else
5186 enable_cstdio=stdio
5190 # Now that libio has been removed, you can have any color you want as long
5191 # as it's black. This is one big no-op until other packages are added, but
5192 # showing the framework never hurts.
5193 case ${enable_cstdio} in
5194 stdio)
5195 CSTDIO_H=config/io/c_io_stdio.h
5196 BASIC_FILE_H=config/io/basic_file_stdio.h
5197 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5198 echo "$as_me:$LINENO: result: stdio" >&5
5199 echo "${ECHO_T}stdio" >&6
5201 esac
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5214 # On Suns, sometimes $CPP names a directory.
5215 if test -n "$CPP" && test -d "$CPP"; then
5216 CPP=
5218 if test -z "$CPP"; then
5219 if test "${ac_cv_prog_CPP+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 # Double quotes because CPP needs to be expanded
5223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5225 ac_preproc_ok=false
5226 for ac_c_preproc_warn_flag in '' yes
5228 # Use a header file that comes with gcc, so configuring glibc
5229 # with a fresh cross-compiler works.
5230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231 # <limits.h> exists even on freestanding compilers.
5232 # On the NeXT, cc -E runs the code through the compiler's parser,
5233 # not just through cpp. "Syntax error" is here to catch this case.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245 Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5261 else
5262 ac_cpp_err=yes
5264 if test -z "$ac_cpp_err"; then
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Broken: fails on valid input.
5271 continue
5273 rm -f conftest.err conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether non-existent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null; then
5293 if test -s conftest.err; then
5294 ac_cpp_err=$ac_c_preproc_warn_flag
5295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296 else
5297 ac_cpp_err=
5299 else
5300 ac_cpp_err=yes
5302 if test -z "$ac_cpp_err"; then
5303 # Broken: success on invalid input.
5304 continue
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5313 rm -f conftest.err conftest.$ac_ext
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319 break
5322 done
5323 ac_cv_prog_CPP=$CPP
5326 CPP=$ac_cv_prog_CPP
5327 else
5328 ac_cv_prog_CPP=$CPP
5330 echo "$as_me:$LINENO: result: $CPP" >&5
5331 echo "${ECHO_T}$CPP" >&6
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #ifdef __STDC__
5348 # include <limits.h>
5349 #else
5350 # include <assert.h>
5351 #endif
5352 Syntax error
5353 _ACEOF
5354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null; then
5362 if test -s conftest.err; then
5363 ac_cpp_err=$ac_c_preproc_warn_flag
5364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365 else
5366 ac_cpp_err=
5368 else
5369 ac_cpp_err=yes
5371 if test -z "$ac_cpp_err"; then
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5378 continue
5380 rm -f conftest.err conftest.$ac_ext
5382 # OK, works on sane cases. Now check whether non-existent headers
5383 # can be detected and how.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5406 else
5407 ac_cpp_err=yes
5409 if test -z "$ac_cpp_err"; then
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5420 rm -f conftest.err conftest.$ac_ext
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5427 else
5428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 echo "$as_me:$LINENO: checking for egrep" >&5
5443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5444 if test "${ac_cv_prog_egrep+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5448 then ac_cv_prog_egrep='grep -E'
5449 else ac_cv_prog_egrep='egrep'
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5454 EGREP=$ac_cv_prog_egrep
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5474 main ()
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_stdc=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_header_stdc=no
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <string.h>
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "memchr" >/dev/null 2>&1; then
5526 else
5527 ac_cv_header_stdc=no
5529 rm -f conftest*
5533 if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <stdlib.h>
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev/null 2>&1; then
5547 else
5548 ac_cv_header_stdc=no
5550 rm -f conftest*
5554 if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5579 main ()
5581 int i;
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
5584 || toupper (i) != TOUPPER (i))
5585 exit(2);
5586 exit (0);
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5634 inttypes.h stdint.h unistd.h
5636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 eval "$as_ac_Header=yes"
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 eval "$as_ac_Header=no"
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5692 done
5696 echo "$as_me:$LINENO: checking for C locale to use" >&5
5697 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5698 # Check whether --enable-clocale or --disable-clocale was given.
5699 if test "${enable_clocale+set}" = set; then
5700 enableval="$enable_clocale"
5702 case "$enableval" in
5703 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5704 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5705 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5706 { (exit 1); exit 1; }; } ;;
5707 esac
5709 else
5710 enable_clocale=auto
5714 # If they didn't use this option switch, or if they specified --enable
5715 # with no specific model, we'll have to look for one. If they
5716 # specified --disable (???), do likewise.
5717 if test $enable_clocale = no || test $enable_clocale = yes; then
5718 enable_clocale=auto
5721 # Either a known package, or "auto"
5722 enable_clocale_flag=$enable_clocale
5724 # Probe for locale support if no specific model is specified.
5725 # Default to "generic".
5726 if test $enable_clocale_flag = auto; then
5727 case x${target_os} in
5728 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 #include <features.h>
5737 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5738 _GLIBCXX_ok
5739 #endif
5741 _ACEOF
5742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5744 enable_clocale_flag=gnu
5745 else
5746 enable_clocale_flag=generic
5748 rm -f conftest*
5751 # Test for bugs early in glibc-2.2.x series
5752 if test x$enable_clocale_flag = xgnu; then
5753 if test "$cross_compiling" = yes; then
5754 enable_clocale_flag=generic
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #define _GNU_SOURCE 1
5764 #include <locale.h>
5765 #include <string.h>
5766 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5767 extern __typeof(newlocale) __newlocale;
5768 extern __typeof(duplocale) __duplocale;
5769 extern __typeof(strcoll_l) __strcoll_l;
5770 #endif
5771 int main()
5773 const char __one[] = "Äuglein Augmen";
5774 const char __two[] = "Äuglein";
5775 int i;
5776 int j;
5777 __locale_t loc;
5778 __locale_t loc_dup;
5779 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5780 loc_dup = __duplocale(loc);
5781 i = __strcoll_l(__one, __two, loc);
5782 j = __strcoll_l(__one, __two, loc_dup);
5783 return 0;
5786 _ACEOF
5787 rm -f conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789 (eval $ac_link) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 enable_clocale_flag=gnu
5799 else
5800 echo "$as_me: program exited with status $ac_status" >&5
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ( exit $ac_status )
5805 enable_clocale_flag=generic
5807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5811 # ... at some point put __strxfrm_l tests in as well.
5814 enable_clocale_flag=generic
5816 esac
5819 # Deal with gettext issues. Default to not using it (=no) until we detect
5820 # support for it later. Let the user turn it off via --e/d, but let that
5821 # default to on for easier handling.
5822 USE_NLS=no
5823 # Check whether --enable-nls or --disable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825 enableval="$enable_nls"
5827 else
5828 enable_nls=yes
5831 # Set configure bits for specified locale package
5832 case ${enable_clocale_flag} in
5833 generic)
5834 echo "$as_me:$LINENO: result: generic" >&5
5835 echo "${ECHO_T}generic" >&6
5837 CLOCALE_H=config/locale/generic/c_locale.h
5838 CLOCALE_CC=config/locale/generic/c_locale.cc
5839 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5840 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5841 CCOLLATE_CC=config/locale/generic/collate_members.cc
5842 CCTYPE_CC=config/locale/generic/ctype_members.cc
5843 CMESSAGES_H=config/locale/generic/messages_members.h
5844 CMESSAGES_CC=config/locale/generic/messages_members.cc
5845 CMONEY_CC=config/locale/generic/monetary_members.cc
5846 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5847 CTIME_H=config/locale/generic/time_members.h
5848 CTIME_CC=config/locale/generic/time_members.cc
5849 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5851 gnu)
5852 echo "$as_me:$LINENO: result: gnu" >&5
5853 echo "${ECHO_T}gnu" >&6
5855 # Declare intention to use gettext, and add support for specific
5856 # languages.
5857 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5858 ALL_LINGUAS="de fr"
5860 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5861 # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 if test -n "$check_msgfmt"; then
5869 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_check_msgfmt="yes"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5882 done
5883 done
5885 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5888 check_msgfmt=$ac_cv_prog_check_msgfmt
5889 if test -n "$check_msgfmt"; then
5890 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5891 echo "${ECHO_T}$check_msgfmt" >&6
5892 else
5893 echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5897 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5898 USE_NLS=yes
5900 # Export the build objects.
5901 for ling in $ALL_LINGUAS; do \
5902 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5903 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5904 done
5908 CLOCALE_H=config/locale/gnu/c_locale.h
5909 CLOCALE_CC=config/locale/gnu/c_locale.cc
5910 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5911 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5912 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5913 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5914 CMESSAGES_H=config/locale/gnu/messages_members.h
5915 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5916 CMONEY_CC=config/locale/gnu/monetary_members.cc
5917 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5918 CTIME_H=config/locale/gnu/time_members.h
5919 CTIME_CC=config/locale/gnu/time_members.cc
5920 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5922 ieee_1003.1-2001)
5923 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5924 echo "${ECHO_T}IEEE 1003.1" >&6
5926 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5927 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5928 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5929 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5930 CCOLLATE_CC=config/locale/generic/collate_members.cc
5931 CCTYPE_CC=config/locale/generic/ctype_members.cc
5932 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5933 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5934 CMONEY_CC=config/locale/generic/monetary_members.cc
5935 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5936 CTIME_H=config/locale/generic/time_members.h
5937 CTIME_CC=config/locale/generic/time_members.cc
5938 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5940 esac
5942 # This is where the testsuite looks for locale catalogs, using the
5943 # -DLOCALEDIR define during testsuite compilation.
5944 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5947 # A standalone libintl (e.g., GNU libintl) may be in use.
5948 if test $USE_NLS = yes; then
5950 for ac_header in libintl.h
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962 # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_header_compiler=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_compiler=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } >/dev/null; then
6026 if test -s conftest.err; then
6027 ac_cpp_err=$ac_c_preproc_warn_flag
6028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029 else
6030 ac_cpp_err=
6032 else
6033 ac_cpp_err=yes
6035 if test -z "$ac_cpp_err"; then
6036 ac_header_preproc=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_header_preproc=no
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6047 # So? What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049 yes:no: )
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054 ac_header_preproc=yes
6056 no:yes:* )
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6070 cat <<\_ASBOX
6071 ## ----------------------------------------- ##
6072 ## Report this to the package-unused lists. ##
6073 ## ----------------------------------------- ##
6074 _ASBOX
6076 sed "s/^/$as_me: WARNING: /" >&2
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 eval "$as_ac_Header=\$ac_header_preproc"
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6095 else
6096 USE_NLS=no
6099 done
6101 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6102 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6103 if test "${ac_cv_search_gettext+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 ac_func_search_save_LIBS=$LIBS
6107 ac_cv_search_gettext=no
6108 if test x$gcc_no_link = xyes; then
6109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6111 { (exit 1); exit 1; }; }
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6126 char gettext ();
6128 main ()
6130 gettext ();
6132 return 0;
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_gettext="none required"
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6165 if test "$ac_cv_search_gettext" = no; then
6166 for ac_lib in intl; do
6167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6168 if test x$gcc_no_link = xyes; then
6169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171 { (exit 1); exit 1; }; }
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6186 char gettext ();
6188 main ()
6190 gettext ();
6192 return 0;
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_search_gettext="-l$ac_lib"
6218 break
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6224 rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 done
6228 LIBS=$ac_func_search_save_LIBS
6230 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6231 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6232 if test "$ac_cv_search_gettext" != no; then
6233 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6235 else
6236 USE_NLS=no
6240 if test $USE_NLS = yes; then
6241 cat >>confdefs.h <<\_ACEOF
6242 #define _GLIBCXX_USE_NLS 1
6243 _ACEOF
6263 echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6264 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6265 # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6266 if test "${enable_libstdcxx_allocator+set}" = set; then
6267 enableval="$enable_libstdcxx_allocator"
6269 case "$enableval" in
6270 new|malloc|mt|bitmap|pool|yes|no|auto) ;;
6271 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6272 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6273 { (exit 1); exit 1; }; } ;;
6274 esac
6276 else
6277 enable_libstdcxx_allocator=auto
6280 # If they didn't use this option switch, or if they specified --enable
6281 # with no specific model, we'll have to look for one. If they
6282 # specified --disable (???), do likewise.
6283 if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6284 enable_libstdcxx_allocator=auto
6287 # Either a known package, or "auto"
6288 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6290 # Probe for host-specific support if no specific model is specified.
6291 # Default to "new".
6292 if test $enable_libstdcxx_allocator_flag = auto; then
6293 case ${target_os} in
6295 enable_libstdcxx_allocator_flag=new
6297 esac
6299 echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6300 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6303 # Set configure bits for specified locale package
6304 case ${enable_libstdcxx_allocator_flag} in
6305 bitmap)
6306 ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6307 ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6309 malloc)
6310 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6311 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6314 ALLOCATOR_H=config/allocator/mt_allocator_base.h
6315 ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6317 new)
6318 ALLOCATOR_H=config/allocator/new_allocator_base.h
6319 ALLOCATOR_NAME=__gnu_cxx::new_allocator
6321 pool)
6322 ALLOCATOR_H=config/allocator/pool_allocator_base.h
6323 ALLOCATOR_NAME=__gnu_cxx::__pool_alloc
6325 esac
6331 # Check whether --enable-cheaders or --disable-cheaders was given.
6332 if test "${enable_cheaders+set}" = set; then
6333 enableval="$enable_cheaders"
6335 case "$enableval" in
6336 c|c_std) ;;
6337 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6338 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6339 { (exit 1); exit 1; }; } ;;
6340 esac
6342 else
6343 enable_cheaders=$c_model
6346 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6347 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6349 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6356 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6357 if test "${enable_c_mbchar+set}" = set; then
6358 enableval="$enable_c_mbchar"
6360 case "$enableval" in
6361 yes|no) ;;
6362 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6363 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6364 { (exit 1); exit 1; }; } ;;
6365 esac
6367 else
6368 enable_c_mbchar=yes
6371 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6375 # Check whether --enable-c99 or --disable-c99 was given.
6376 if test "${enable_c99+set}" = set; then
6377 enableval="$enable_c99"
6379 case "$enableval" in
6380 yes|no) ;;
6381 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6382 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6383 { (exit 1); exit 1; }; } ;;
6384 esac
6386 else
6387 enable_c99=yes
6393 ac_ext=cc
6394 ac_cpp='$CXXCPP $CPPFLAGS'
6395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6400 # Check for the existence of <math.h> functions used if C99 is enabled.
6401 ac_c99_math=yes;
6402 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6403 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <math.h>
6412 main ()
6414 fpclassify(0.0);
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_cxx_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6442 else
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 ac_c99_math=no
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <math.h>
6457 main ()
6459 isfinite(0.0);
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_cxx_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_c99_math=no
6493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <math.h>
6502 main ()
6504 isinf(0.0);
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_cxx_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_c99_math=no
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 #include <math.h>
6547 main ()
6549 isnan(0.0);
6551 return 0;
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_c99_math=no
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <math.h>
6592 main ()
6594 isnormal(0.0);
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_cxx_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_c99_math=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <math.h>
6637 main ()
6639 signbit(0.0);
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_cxx_werror_flag"
6654 || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_c99_math=no
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <math.h>
6682 main ()
6684 isgreater(0.0,0.0);
6686 return 0;
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag"
6699 || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_c99_math=no
6718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <math.h>
6727 main ()
6729 isgreaterequal(0.0,0.0);
6731 return 0;
6733 _ACEOF
6734 rm -f conftest.$ac_objext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736 (eval $ac_compile) 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -z "$ac_cxx_werror_flag"
6744 || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_c99_math=no
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <math.h>
6772 main ()
6774 isless(0.0,0.0);
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781 (eval $ac_compile) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -z "$ac_cxx_werror_flag"
6789 || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest.$ac_objext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_c99_math=no
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <math.h>
6817 main ()
6819 islessequal(0.0,0.0);
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826 (eval $ac_compile) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_cxx_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest.$ac_objext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_c99_math=no
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <math.h>
6862 main ()
6864 islessgreater(0.0,0.0);
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_cxx_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_c99_math=no
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <math.h>
6907 main ()
6909 isunordered(0.0,0.0);
6911 return 0;
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -z "$ac_cxx_werror_flag"
6924 || test ! -s conftest.err'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; } &&
6930 { ac_try='test -s conftest.$ac_objext'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_c99_math=no
6943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6945 echo "${ECHO_T}$ac_c99_math" >&6
6947 if test x"$ac_c99_math" = x"yes"; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define _GLIBCXX_USE_C99_MATH 1
6950 _ACEOF
6954 # Check for the existence in <stdio.h> of vscanf, et. al.
6955 ac_c99_stdio=yes;
6956 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6957 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <stdio.h>
6966 main ()
6968 snprintf("12", 0, "%i");
6970 return 0;
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975 (eval $ac_compile) 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -z "$ac_cxx_werror_flag"
6983 || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_c99_stdio=no
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 #include <stdio.h>
7010 #include <stdarg.h>
7011 void foo(char* fmt, ...)
7012 {va_list args; va_start(args, fmt);
7013 vfscanf(stderr, "%i", args);}
7015 main ()
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_cxx_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7045 else
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_c99_stdio=no
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <stdio.h>
7059 #include <stdarg.h>
7060 void foo(char* fmt, ...)
7061 {va_list args; va_start(args, fmt);
7062 vscanf("%i", args);}
7064 main ()
7068 return 0;
7070 _ACEOF
7071 rm -f conftest.$ac_objext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest.$ac_objext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_c99_stdio=no
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <stdio.h>
7108 #include <stdarg.h>
7109 void foo(char* fmt, ...)
7110 {va_list args; va_start(args, fmt);
7111 vsnprintf(fmt, 0, "%i", args);}
7113 main ()
7117 return 0;
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -z "$ac_cxx_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7143 else
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7147 ac_c99_stdio=no
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <stdio.h>
7157 #include <stdarg.h>
7158 void foo(char* fmt, ...)
7159 {va_list args; va_start(args, fmt);
7160 vsscanf(fmt, "%i", args);}
7162 main ()
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_cxx_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_c99_stdio=no
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7200 echo "${ECHO_T}$ac_c99_stdio" >&6
7202 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7203 ac_c99_stdlib=yes;
7204 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7205 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7206 if test "${ac_c99_lldiv_t+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 #include <stdlib.h>
7218 main ()
7220 lldiv_t mydivt;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_cxx_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_c99_lldiv_t=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_c99_lldiv_t=no
7254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7259 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7261 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7262 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 #include <stdlib.h>
7271 main ()
7273 char* tmp; strtof("gnu", &tmp);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_cxx_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_c99_stdlib=no
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <stdlib.h>
7316 main ()
7318 char* tmp; strtold("gnu", &tmp);
7320 return 0;
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag"
7333 || test ! -s conftest.err'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; } &&
7339 { ac_try='test -s conftest.$ac_objext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 ac_c99_stdlib=no
7352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <stdlib.h>
7361 main ()
7363 llabs(10);
7365 return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_cxx_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_c99_stdlib=no
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <stdlib.h>
7406 main ()
7408 lldiv(10,1);
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_cxx_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_c99_stdlib=no
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <stdlib.h>
7451 main ()
7453 atoll("10");
7455 return 0;
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>conftest.er1
7461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_cxx_werror_flag"
7468 || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest.$ac_objext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_c99_stdlib=no
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 #include <stdlib.h>
7496 main ()
7498 _Exit(0);
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_cxx_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_c99_stdlib=no
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533 if test x"$ac_c99_lldiv_t" = x"no"; then
7534 ac_c99_stdlib=no;
7536 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7537 echo "${ECHO_T}$ac_c99_stdlib" >&6
7539 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7540 # XXX the wchar.h checks should be rolled into the general C99 bits.
7541 ac_c99_wchar=yes;
7542 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7543 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <wchar.h>
7552 main ()
7554 wcstold(L"10.0", NULL);
7556 return 0;
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -z "$ac_cxx_werror_flag"
7569 || test ! -s conftest.err'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_c99_wchar=no
7588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 #include <wchar.h>
7597 main ()
7599 wcstoll(L"10", NULL, 10);
7601 return 0;
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_cxx_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_c99_wchar=no
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <wchar.h>
7642 main ()
7644 wcstoull(L"10", NULL, 10);
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_cxx_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_c99_wchar=no
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7680 echo "${ECHO_T}$ac_c99_wchar" >&6
7682 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7683 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7684 if test x"$ac_c99_math" = x"no" ||
7685 test x"$ac_c99_stdio" = x"no" ||
7686 test x"$ac_c99_stdlib" = x"no" ||
7687 test x"$ac_c99_wchar" = x"no"; then
7688 enable_c99=no;
7690 echo "$as_me:$LINENO: result: $enable_c99" >&5
7691 echo "${ECHO_T}$enable_c99" >&6
7693 if test x"$ac_99_math" = x"yes"; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define _GLIBCXX_USE_C99_MATH 1
7696 _ACEOF
7700 # Option parsed, now set things appropriately
7701 if test x"$enable_c99" = x"yes"; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define _GLIBCXX_USE_C99 1
7704 _ACEOF
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716 # Check whether --enable-long-long or --disable-long-long was given.
7717 if test "${enable_long_long+set}" = set; then
7718 enableval="$enable_long_long"
7720 case "$enableval" in
7721 yes|no) ;;
7722 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7723 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7724 { (exit 1); exit 1; }; } ;;
7725 esac
7727 else
7728 enable_long_long=yes
7734 ac_ext=cc
7735 ac_cpp='$CXXCPP $CPPFLAGS'
7736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7741 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7742 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7743 # iostreams require strtoll, strtoull to compile
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #include <stdlib.h>
7752 main ()
7754 char* tmp; strtoll("gnu", &tmp, 10);
7756 return 0;
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_cxx_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 enable_long_long=no
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <stdlib.h>
7797 main ()
7799 char* tmp; strtoull("gnu", &tmp, 10);
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_cxx_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 enable_long_long=no
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 # Option parsed, now set things appropriately
7836 if test $enable_long_long = yes; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define _GLIBCXX_USE_LONG_LONG 1
7839 _ACEOF
7842 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7843 echo "${ECHO_T}$enable_long_long" >&6
7845 ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7854 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7855 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7856 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7857 echo "${ECHO_T}$target_thread_file" >&6
7859 if test $target_thread_file != single; then
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_GTHR_DEFAULT 1
7862 _ACEOF
7866 glibcxx_thread_h=gthr-$target_thread_file.h
7870 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7871 if test "${enable_concept_checks+set}" = set; then
7872 enableval="$enable_concept_checks"
7874 case "$enableval" in
7875 yes|no) ;;
7876 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7877 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7878 { (exit 1); exit 1; }; } ;;
7879 esac
7881 else
7882 enable_concept_checks=no
7885 if test $enable_concept_checks = yes; then
7886 cat >>confdefs.h <<\_ACEOF
7887 #define _GLIBCXX_CONCEPT_CHECKS 1
7888 _ACEOF
7893 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7894 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7895 enableval="$enable_libstdcxx_debug_flags"
7896 case "x$enable_libstdcxx_debug_flags" in
7897 xno | x) enable_libstdcxx_debug_flags= ;;
7898 x-*) ;;
7899 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7900 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7901 { (exit 1); exit 1; }; } ;;
7902 esac
7903 else
7904 enable_libstdcxx_debug_flags="-g3 -O0"
7908 # Option parsed, now set things appropriately
7909 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7912 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7913 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7916 echo "$as_me:$LINENO: checking for additional debug build" >&5
7917 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7918 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7919 if test "${enable_libstdcxx_debug+set}" = set; then
7920 enableval="$enable_libstdcxx_debug"
7922 case "$enableval" in
7923 yes|no) ;;
7924 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7925 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7926 { (exit 1); exit 1; }; } ;;
7927 esac
7929 else
7930 enable_libstdcxx_debug=no
7933 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7934 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7937 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7938 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7939 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7940 if test "${enable_cxx_flags+set}" = set; then
7941 enableval="$enable_cxx_flags"
7942 case "x$enable_cxx_flags" in
7943 xno | x) enable_cxx_flags= ;;
7944 x-*) ;;
7945 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7946 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7947 { (exit 1); exit 1; }; } ;;
7948 esac
7949 else
7950 enable_cxx_flags=
7954 # Run through flags (either default or command-line) and set anything
7955 # extra (e.g., #defines) that must accompany particular g++ options.
7956 if test -n "$enable_cxx_flags"; then
7957 for f in $enable_cxx_flags; do
7958 case "$f" in
7959 -fhonor-std) ;;
7960 -*) ;;
7961 *) # and we're trying to pass /what/ exactly?
7962 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7963 echo "$as_me: error: compiler flags start with a -" >&2;}
7964 { (exit 1); exit 1; }; } ;;
7965 esac
7966 done
7969 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7970 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7971 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7975 # No surprises, no surprises...
7976 if test $atomicity_dir = cpu/generic ; then
7977 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7978 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7979 if test $target_thread_file = single; then
7980 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7981 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7982 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7983 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7984 else
7985 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7986 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7987 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7988 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7993 if $GLIBCXX_IS_NATIVE; then
7995 # We can do more elaborate tests that assume a working linker.
7996 CANADIAN=no
7998 # Check for available headers.
8012 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8013 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
8014 sys/types.h
8016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8018 echo "$as_me:$LINENO: checking for $ac_header" >&5
8019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8025 else
8026 # Is the header compilable?
8027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #include <$ac_header>
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040 (eval $ac_compile) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_header_compiler=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_header_compiler=no
8067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8069 echo "${ECHO_T}$ac_header_compiler" >&6
8071 # Is the header present?
8072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } >/dev/null; then
8090 if test -s conftest.err; then
8091 ac_cpp_err=$ac_c_preproc_warn_flag
8092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8093 else
8094 ac_cpp_err=
8096 else
8097 ac_cpp_err=yes
8099 if test -z "$ac_cpp_err"; then
8100 ac_header_preproc=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_header_preproc=no
8107 rm -f conftest.err conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8109 echo "${ECHO_T}$ac_header_preproc" >&6
8111 # So? What about this header?
8112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8113 yes:no: )
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8118 ac_header_preproc=yes
8120 no:yes:* )
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8134 cat <<\_ASBOX
8135 ## ----------------------------------------- ##
8136 ## Report this to the package-unused lists. ##
8137 ## ----------------------------------------- ##
8138 _ASBOX
8140 sed "s/^/$as_me: WARNING: /" >&2
8142 esac
8143 echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 eval "$as_ac_Header=\$ac_header_preproc"
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8157 _ACEOF
8161 done
8165 # All these tests are for C++; save the language and the compiler flags.
8166 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8167 # found in GLIBCXX_CONFIGURE.
8170 ac_ext=cc
8171 ac_cpp='$CXXCPP $CPPFLAGS'
8172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8176 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8177 ac_save_CXXFLAGS="$CXXFLAGS"
8179 # Check for maintainer-mode bits.
8180 if test x"$USE_MAINTAINER_MODE" = xno; then
8181 WERROR=''
8182 else
8183 WERROR='-Werror'
8186 # Check for -ffunction-sections -fdata-sections
8187 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8188 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8189 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8198 main ()
8200 int foo;
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_cxx_werror_flag"
8215 || test ! -s conftest.err'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_fdsections=yes
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 ac_fdsections=no
8234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235 if test "$ac_test_CXXFLAGS" = set; then
8236 CXXFLAGS="$ac_save_CXXFLAGS"
8237 else
8238 # this is the suspicious part
8239 CXXFLAGS=''
8241 if test x"$ac_fdsections" = x"yes"; then
8242 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8244 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8245 echo "${ECHO_T}$ac_fdsections" >&6
8247 ac_ext=c
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257 # If we're not using GNU ld, then there's no point in even trying these
8258 # tests. Check for that first. We should have already tested for gld
8259 # by now (in libtool), but require it now just to be safe...
8260 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8261 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8265 # The name set by libtool depends on the version of libtool. Shame on us
8266 # for depending on an impl detail, but c'est la vie. Older versions used
8267 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8268 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8269 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8270 # set (hence we're using an older libtool), then set it.
8271 if test x${with_gnu_ld+set} != xset; then
8272 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8273 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8274 with_gnu_ld=no
8275 else
8276 with_gnu_ld=$ac_cv_prog_gnu_ld
8280 # Start by getting the version number. I think the libtool test already
8281 # does some of this, but throws away the result.
8283 ldver=`$LD --version 2>/dev/null | head -1 | \
8284 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8286 glibcxx_gnu_ld_version=`echo $ldver | \
8287 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8289 # Set --gc-sections.
8290 if test "$with_gnu_ld" = "notbroken"; then
8291 # GNU ld it is! Joy and bunny rabbits!
8293 # All these tests are for C++; save the language and the compiler flags.
8294 # Need to do this so that g++ won't try to link in libstdc++
8295 ac_test_CFLAGS="${CFLAGS+set}"
8296 ac_save_CFLAGS="$CFLAGS"
8297 CFLAGS='-x c++ -Wl,--gc-sections'
8299 # Check for -Wl,--gc-sections
8300 # XXX This test is broken at the moment, as symbols required for linking
8301 # are now in libsupc++ (not built yet). In addition, this test has
8302 # cored on solaris in the past. In addition, --gc-sections doesn't
8303 # really work at the moment (keeps on discarding used sections, first
8304 # .eh_frame and now some of the glibc sections for iconv).
8305 # Bzzzzt. Thanks for playing, maybe next time.
8306 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8307 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8308 if test "$cross_compiling" = yes; then
8309 ac_sectionLDflags=yes
8310 else
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 int main(void)
8320 try { throw 1; }
8321 catch (...) { };
8322 return 0;
8325 _ACEOF
8326 rm -f conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_sectionLDflags=yes
8338 else
8339 echo "$as_me: program exited with status $ac_status" >&5
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ( exit $ac_status )
8344 ac_sectionLDflags=no
8346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 if test "$ac_test_CFLAGS" = set; then
8349 CFLAGS="$ac_save_CFLAGS"
8350 else
8351 # this is the suspicious part
8352 CFLAGS=''
8354 if test "$ac_sectionLDflags" = "yes"; then
8355 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8357 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8358 echo "${ECHO_T}$ac_sectionLDflags" >&6
8361 # Set linker optimization flags.
8362 if test x"$with_gnu_ld" = x"yes"; then
8363 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8370 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8371 ac_save_CXXFLAGS="$CXXFLAGS"
8372 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8374 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8375 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8376 if test "${ac_cv_lib_m_sin+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lm $LIBS"
8381 if test x$gcc_no_link = xyes; then
8382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8384 { (exit 1); exit 1; }; }
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 #ifdef __cplusplus
8395 extern "C"
8396 #endif
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399 char sin ();
8401 main ()
8403 sin ();
8405 return 0;
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410 (eval $ac_link) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_m_sin=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_lib_m_sin=no
8437 rm -f conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8441 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8442 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8443 if test $ac_cv_lib_m_sin = yes; then
8444 libm="-lm"
8447 ac_save_LIBS="$LIBS"
8448 LIBS="$LIBS $libm"
8450 echo "$as_me:$LINENO: checking for sqrtf in -lmx" >&5
8451 echo $ECHO_N "checking for sqrtf in -lmx... $ECHO_C" >&6
8452 if test "${ac_cv_lib_mx_sqrtf+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-lmx $LIBS"
8457 if test x$gcc_no_link = xyes; then
8458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8460 { (exit 1); exit 1; }; }
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h. */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8475 char sqrtf ();
8477 main ()
8479 sqrtf ();
8481 return 0;
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag"
8494 || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_lib_mx_sqrtf=yes
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_lib_mx_sqrtf=no
8513 rm -f conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_mx_sqrtf" >&5
8518 echo "${ECHO_T}$ac_cv_lib_mx_sqrtf" >&6
8519 if test $ac_cv_lib_mx_sqrtf = yes; then
8520 libmx="-lmx"
8523 LIBS="$LIBS $libmx"
8527 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8528 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8529 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8530 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8536 ac_ext=cc
8537 ac_cpp='$CXXCPP $CPPFLAGS'
8538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 #include <math.h>
8549 #ifdef HAVE_IEEEFP_H
8550 #include <ieeefp.h>
8551 #endif
8554 main ()
8556 isinf(0);
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -z "$ac_cxx_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest.$ac_objext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 glibcxx_cv_func_isinf_use=yes
8584 else
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 glibcxx_cv_func_isinf_use=no
8590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8591 ac_ext=c
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8601 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8602 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8604 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8606 for ac_func in isinf
8608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609 echo "$as_me:$LINENO: checking for $ac_func" >&5
8610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8611 if eval "test \"\${$as_ac_var+set}\" = set"; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 if test x$gcc_no_link = xyes; then
8615 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8617 { (exit 1); exit 1; }; }
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8627 #define $ac_func innocuous_$ac_func
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char $ac_func (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8640 #undef $ac_func
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 #ifdef __cplusplus
8644 extern "C"
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char $ac_func ();
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654 choke me
8655 #else
8656 char (*f) () = $ac_func;
8657 #endif
8658 #ifdef __cplusplus
8660 #endif
8663 main ()
8665 return f != $ac_func;
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 eval "$as_ac_var=yes"
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 eval "$as_ac_var=no"
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8704 if test `eval echo '${'$as_ac_var'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707 _ACEOF
8710 done
8712 else
8714 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8715 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8716 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8717 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8723 ac_ext=cc
8724 ac_cpp='$CXXCPP $CPPFLAGS'
8725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <math.h>
8736 #ifdef HAVE_IEEEFP_H
8737 #include <ieeefp.h>
8738 #endif
8741 main ()
8743 _isinf(0);
8745 return 0;
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_cxx_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 glibcxx_cv_func__isinf_use=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 glibcxx_cv_func__isinf_use=no
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778 ac_ext=c
8779 ac_cpp='$CPP $CPPFLAGS'
8780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8788 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8789 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8791 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8793 for ac_func in _isinf
8795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_func" >&5
8797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_var+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 if test x$gcc_no_link = xyes; then
8802 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8804 { (exit 1); exit 1; }; }
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8814 #define $ac_func innocuous_$ac_func
8816 /* System header to define __stub macros and hopefully few prototypes,
8817 which can conflict with char $ac_func (); below.
8818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8819 <limits.h> exists even on freestanding compilers. */
8821 #ifdef __STDC__
8822 # include <limits.h>
8823 #else
8824 # include <assert.h>
8825 #endif
8827 #undef $ac_func
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char $ac_func ();
8837 /* The GNU C library defines this for functions which it implements
8838 to always fail with ENOSYS. Some functions are actually named
8839 something starting with __ and the normal name is an alias. */
8840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8841 choke me
8842 #else
8843 char (*f) () = $ac_func;
8844 #endif
8845 #ifdef __cplusplus
8847 #endif
8850 main ()
8852 return f != $ac_func;
8854 return 0;
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag"
8867 || test ! -s conftest.err'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 eval "$as_ac_var=yes"
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 eval "$as_ac_var=no"
8886 rm -f conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8891 if test `eval echo '${'$as_ac_var'}'` = yes; then
8892 cat >>confdefs.h <<_ACEOF
8893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8894 _ACEOF
8897 done
8904 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8905 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8906 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8907 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8913 ac_ext=cc
8914 ac_cpp='$CXXCPP $CPPFLAGS'
8915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <math.h>
8926 #ifdef HAVE_IEEEFP_H
8927 #include <ieeefp.h>
8928 #endif
8931 main ()
8933 isnan(0);
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_cxx_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 glibcxx_cv_func_isnan_use=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 glibcxx_cv_func_isnan_use=no
8967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968 ac_ext=c
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8979 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8981 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8983 for ac_func in isnan
8985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986 echo "$as_me:$LINENO: checking for $ac_func" >&5
8987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_var+set}\" = set"; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 if test x$gcc_no_link = xyes; then
8992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8994 { (exit 1); exit 1; }; }
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h. */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9004 #define $ac_func innocuous_$ac_func
9006 /* System header to define __stub macros and hopefully few prototypes,
9007 which can conflict with char $ac_func (); below.
9008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9009 <limits.h> exists even on freestanding compilers. */
9011 #ifdef __STDC__
9012 # include <limits.h>
9013 #else
9014 # include <assert.h>
9015 #endif
9017 #undef $ac_func
9019 /* Override any gcc2 internal prototype to avoid an error. */
9020 #ifdef __cplusplus
9021 extern "C"
9023 #endif
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char $ac_func ();
9027 /* The GNU C library defines this for functions which it implements
9028 to always fail with ENOSYS. Some functions are actually named
9029 something starting with __ and the normal name is an alias. */
9030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 choke me
9032 #else
9033 char (*f) () = $ac_func;
9034 #endif
9035 #ifdef __cplusplus
9037 #endif
9040 main ()
9042 return f != $ac_func;
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 eval "$as_ac_var=yes"
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 eval "$as_ac_var=no"
9076 rm -f conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9081 if test `eval echo '${'$as_ac_var'}'` = yes; then
9082 cat >>confdefs.h <<_ACEOF
9083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9084 _ACEOF
9087 done
9089 else
9091 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
9092 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
9093 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
9094 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9100 ac_ext=cc
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #include <math.h>
9113 #ifdef HAVE_IEEEFP_H
9114 #include <ieeefp.h>
9115 #endif
9118 main ()
9120 _isnan(0);
9122 return 0;
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_cxx_werror_flag"
9135 || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest.$ac_objext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 glibcxx_cv_func__isnan_use=yes
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 glibcxx_cv_func__isnan_use=no
9154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155 ac_ext=c
9156 ac_cpp='$CPP $CPPFLAGS'
9157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9165 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9166 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9168 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9170 for ac_func in _isnan
9172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9173 echo "$as_me:$LINENO: checking for $ac_func" >&5
9174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_var+set}\" = set"; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 if test x$gcc_no_link = xyes; then
9179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9181 { (exit 1); exit 1; }; }
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9191 #define $ac_func innocuous_$ac_func
9193 /* System header to define __stub macros and hopefully few prototypes,
9194 which can conflict with char $ac_func (); below.
9195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9196 <limits.h> exists even on freestanding compilers. */
9198 #ifdef __STDC__
9199 # include <limits.h>
9200 #else
9201 # include <assert.h>
9202 #endif
9204 #undef $ac_func
9206 /* Override any gcc2 internal prototype to avoid an error. */
9207 #ifdef __cplusplus
9208 extern "C"
9210 #endif
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9213 char $ac_func ();
9214 /* The GNU C library defines this for functions which it implements
9215 to always fail with ENOSYS. Some functions are actually named
9216 something starting with __ and the normal name is an alias. */
9217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218 choke me
9219 #else
9220 char (*f) () = $ac_func;
9221 #endif
9222 #ifdef __cplusplus
9224 #endif
9227 main ()
9229 return f != $ac_func;
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 eval "$as_ac_var=yes"
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 eval "$as_ac_var=no"
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9268 if test `eval echo '${'$as_ac_var'}'` = yes; then
9269 cat >>confdefs.h <<_ACEOF
9270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9271 _ACEOF
9274 done
9281 echo "$as_me:$LINENO: checking for finite declaration" >&5
9282 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9283 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9284 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9290 ac_ext=cc
9291 ac_cpp='$CXXCPP $CPPFLAGS'
9292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #include <math.h>
9303 #ifdef HAVE_IEEEFP_H
9304 #include <ieeefp.h>
9305 #endif
9308 main ()
9310 finite(0);
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_cxx_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 glibcxx_cv_func_finite_use=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 glibcxx_cv_func_finite_use=no
9344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9345 ac_ext=c
9346 ac_cpp='$CPP $CPPFLAGS'
9347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9355 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9356 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9358 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9360 for ac_func in finite
9362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9363 echo "$as_me:$LINENO: checking for $ac_func" >&5
9364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9365 if eval "test \"\${$as_ac_var+set}\" = set"; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 if test x$gcc_no_link = xyes; then
9369 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9371 { (exit 1); exit 1; }; }
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9381 #define $ac_func innocuous_$ac_func
9383 /* System header to define __stub macros and hopefully few prototypes,
9384 which can conflict with char $ac_func (); below.
9385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9386 <limits.h> exists even on freestanding compilers. */
9388 #ifdef __STDC__
9389 # include <limits.h>
9390 #else
9391 # include <assert.h>
9392 #endif
9394 #undef $ac_func
9396 /* Override any gcc2 internal prototype to avoid an error. */
9397 #ifdef __cplusplus
9398 extern "C"
9400 #endif
9401 /* We use char because int might match the return type of a gcc2
9402 builtin and then its argument prototype would still apply. */
9403 char $ac_func ();
9404 /* The GNU C library defines this for functions which it implements
9405 to always fail with ENOSYS. Some functions are actually named
9406 something starting with __ and the normal name is an alias. */
9407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9408 choke me
9409 #else
9410 char (*f) () = $ac_func;
9411 #endif
9412 #ifdef __cplusplus
9414 #endif
9417 main ()
9419 return f != $ac_func;
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag"
9434 || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 eval "$as_ac_var=yes"
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 eval "$as_ac_var=no"
9453 rm -f conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9458 if test `eval echo '${'$as_ac_var'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 _ACEOF
9464 done
9466 else
9468 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9469 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9470 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9471 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9477 ac_ext=cc
9478 ac_cpp='$CXXCPP $CPPFLAGS'
9479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 #include <math.h>
9490 #ifdef HAVE_IEEEFP_H
9491 #include <ieeefp.h>
9492 #endif
9495 main ()
9497 _finite(0);
9499 return 0;
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_cxx_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest.$ac_objext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 glibcxx_cv_func__finite_use=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 glibcxx_cv_func__finite_use=no
9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9532 ac_ext=c
9533 ac_cpp='$CPP $CPPFLAGS'
9534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9543 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9545 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9547 for ac_func in _finite
9549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550 echo "$as_me:$LINENO: checking for $ac_func" >&5
9551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_var+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 if test x$gcc_no_link = xyes; then
9556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9558 { (exit 1); exit 1; }; }
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9568 #define $ac_func innocuous_$ac_func
9570 /* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char $ac_func (); below.
9572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 <limits.h> exists even on freestanding compilers. */
9575 #ifdef __STDC__
9576 # include <limits.h>
9577 #else
9578 # include <assert.h>
9579 #endif
9581 #undef $ac_func
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 #ifdef __cplusplus
9585 extern "C"
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590 char $ac_func ();
9591 /* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9595 choke me
9596 #else
9597 char (*f) () = $ac_func;
9598 #endif
9599 #ifdef __cplusplus
9601 #endif
9604 main ()
9606 return f != $ac_func;
9608 return 0;
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 eval "$as_ac_var=yes"
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 eval "$as_ac_var=no"
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 _ACEOF
9651 done
9658 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9659 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9660 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9661 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9667 ac_ext=cc
9668 ac_cpp='$CXXCPP $CPPFLAGS'
9669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 #include <math.h>
9681 main ()
9683 copysign(0, 0);
9685 return 0;
9687 _ACEOF
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_cxx_werror_flag"
9698 || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 glibcxx_cv_func_copysign_use=yes
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 glibcxx_cv_func_copysign_use=no
9717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9718 ac_ext=c
9719 ac_cpp='$CPP $CPPFLAGS'
9720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9729 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9731 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9733 for ac_func in copysign
9735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9738 if eval "test \"\${$as_ac_var+set}\" = set"; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 if test x$gcc_no_link = xyes; then
9742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9744 { (exit 1); exit 1; }; }
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9754 #define $ac_func innocuous_$ac_func
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func (); below.
9758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759 <limits.h> exists even on freestanding compilers. */
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9767 #undef $ac_func
9769 /* Override any gcc2 internal prototype to avoid an error. */
9770 #ifdef __cplusplus
9771 extern "C"
9773 #endif
9774 /* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9776 char $ac_func ();
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9781 choke me
9782 #else
9783 char (*f) () = $ac_func;
9784 #endif
9785 #ifdef __cplusplus
9787 #endif
9790 main ()
9792 return f != $ac_func;
9794 return 0;
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag"
9807 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 eval "$as_ac_var=yes"
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 eval "$as_ac_var=no"
9826 rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9831 if test `eval echo '${'$as_ac_var'}'` = yes; then
9832 cat >>confdefs.h <<_ACEOF
9833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9834 _ACEOF
9837 done
9839 else
9841 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9842 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9843 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9844 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9850 ac_ext=cc
9851 ac_cpp='$CXXCPP $CPPFLAGS'
9852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 #include <math.h>
9864 main ()
9866 _copysign(0, 0);
9868 return 0;
9870 _ACEOF
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_cxx_werror_flag"
9881 || test ! -s conftest.err'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 glibcxx_cv_func__copysign_use=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 glibcxx_cv_func__copysign_use=no
9900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901 ac_ext=c
9902 ac_cpp='$CPP $CPPFLAGS'
9903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9911 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9912 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9914 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9916 for ac_func in _copysign
9918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 echo "$as_me:$LINENO: checking for $ac_func" >&5
9920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_var+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 if test x$gcc_no_link = xyes; then
9925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9927 { (exit 1); exit 1; }; }
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define $ac_func innocuous_$ac_func
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char $ac_func (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9950 #undef $ac_func
9952 /* Override any gcc2 internal prototype to avoid an error. */
9953 #ifdef __cplusplus
9954 extern "C"
9956 #endif
9957 /* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */
9959 char $ac_func ();
9960 /* The GNU C library defines this for functions which it implements
9961 to always fail with ENOSYS. Some functions are actually named
9962 something starting with __ and the normal name is an alias. */
9963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964 choke me
9965 #else
9966 char (*f) () = $ac_func;
9967 #endif
9968 #ifdef __cplusplus
9970 #endif
9973 main ()
9975 return f != $ac_func;
9977 return 0;
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9982 (eval $ac_link) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 eval "$as_ac_var=yes"
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 eval "$as_ac_var=no"
10009 rm -f conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10014 if test `eval echo '${'$as_ac_var'}'` = yes; then
10015 cat >>confdefs.h <<_ACEOF
10016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10017 _ACEOF
10020 done
10027 echo "$as_me:$LINENO: checking for sincos declaration" >&5
10028 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
10029 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
10030 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10036 ac_ext=cc
10037 ac_cpp='$CXXCPP $CPPFLAGS'
10038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <math.h>
10050 main ()
10052 sincos(0, 0, 0);
10054 return 0;
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059 (eval $ac_compile) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_cxx_werror_flag"
10067 || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest.$ac_objext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 glibcxx_cv_func_sincos_use=yes
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 glibcxx_cv_func_sincos_use=no
10086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10087 ac_ext=c
10088 ac_cpp='$CPP $CPPFLAGS'
10089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10097 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
10098 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
10100 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
10102 for ac_func in sincos
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 if test x$gcc_no_link = xyes; then
10111 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10112 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10113 { (exit 1); exit 1; }; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define $ac_func innocuous_$ac_func
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char $ac_func (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10136 #undef $ac_func
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 #ifdef __cplusplus
10140 extern "C"
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10145 char $ac_func ();
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 choke me
10151 #else
10152 char (*f) () = $ac_func;
10153 #endif
10154 #ifdef __cplusplus
10156 #endif
10159 main ()
10161 return f != $ac_func;
10163 return 0;
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 eval "$as_ac_var=yes"
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 eval "$as_ac_var=no"
10195 rm -f conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10203 _ACEOF
10206 done
10208 else
10210 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10211 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10212 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10213 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10219 ac_ext=cc
10220 ac_cpp='$CXXCPP $CPPFLAGS'
10221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 #include <math.h>
10233 main ()
10235 _sincos(0, 0, 0);
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_cxx_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 glibcxx_cv_func__sincos_use=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 glibcxx_cv_func__sincos_use=no
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 ac_ext=c
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10281 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10283 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10285 for ac_func in _sincos
10287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 echo "$as_me:$LINENO: checking for $ac_func" >&5
10289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_var+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 if test x$gcc_no_link = xyes; then
10294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10296 { (exit 1); exit 1; }; }
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10306 #define $ac_func innocuous_$ac_func
10308 /* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char $ac_func (); below.
10310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10311 <limits.h> exists even on freestanding compilers. */
10313 #ifdef __STDC__
10314 # include <limits.h>
10315 #else
10316 # include <assert.h>
10317 #endif
10319 #undef $ac_func
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 #ifdef __cplusplus
10323 extern "C"
10325 #endif
10326 /* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10328 char $ac_func ();
10329 /* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10333 choke me
10334 #else
10335 char (*f) () = $ac_func;
10336 #endif
10337 #ifdef __cplusplus
10339 #endif
10342 main ()
10344 return f != $ac_func;
10346 return 0;
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 eval "$as_ac_var=yes"
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 eval "$as_ac_var=no"
10378 rm -f conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10383 if test `eval echo '${'$as_ac_var'}'` = yes; then
10384 cat >>confdefs.h <<_ACEOF
10385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10386 _ACEOF
10389 done
10396 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10397 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10398 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10399 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10405 ac_ext=cc
10406 ac_cpp='$CXXCPP $CPPFLAGS'
10407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 #include <math.h>
10418 #ifdef HAVE_IEEEFP_H
10419 #include <ieeefp.h>
10420 #endif
10423 main ()
10425 fpclass(0);
10427 return 0;
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_cxx_werror_flag"
10440 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest.$ac_objext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 glibcxx_cv_func_fpclass_use=yes
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 glibcxx_cv_func_fpclass_use=no
10459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10460 ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10470 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10471 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10473 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10475 for ac_func in fpclass
10477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10478 echo "$as_me:$LINENO: checking for $ac_func" >&5
10479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_var+set}\" = set"; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 if test x$gcc_no_link = xyes; then
10484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10486 { (exit 1); exit 1; }; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10496 #define $ac_func innocuous_$ac_func
10498 /* System header to define __stub macros and hopefully few prototypes,
10499 which can conflict with char $ac_func (); below.
10500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501 <limits.h> exists even on freestanding compilers. */
10503 #ifdef __STDC__
10504 # include <limits.h>
10505 #else
10506 # include <assert.h>
10507 #endif
10509 #undef $ac_func
10511 /* Override any gcc2 internal prototype to avoid an error. */
10512 #ifdef __cplusplus
10513 extern "C"
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10518 char $ac_func ();
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 char (*f) () = $ac_func;
10526 #endif
10527 #ifdef __cplusplus
10529 #endif
10532 main ()
10534 return f != $ac_func;
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 eval "$as_ac_var=yes"
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10568 rm -f conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10573 if test `eval echo '${'$as_ac_var'}'` = yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10576 _ACEOF
10579 done
10581 else
10583 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10584 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10585 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10586 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10592 ac_ext=cc
10593 ac_cpp='$CXXCPP $CPPFLAGS'
10594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <math.h>
10605 #ifdef HAVE_IEEEFP_H
10606 #include <ieeefp.h>
10607 #endif
10610 main ()
10612 _fpclass(0);
10614 return 0;
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_cxx_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 glibcxx_cv_func__fpclass_use=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 glibcxx_cv_func__fpclass_use=no
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10647 ac_ext=c
10648 ac_cpp='$CPP $CPPFLAGS'
10649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10657 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10658 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10660 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10662 for ac_func in _fpclass
10664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10665 echo "$as_me:$LINENO: checking for $ac_func" >&5
10666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10667 if eval "test \"\${$as_ac_var+set}\" = set"; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 if test x$gcc_no_link = xyes; then
10671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10673 { (exit 1); exit 1; }; }
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683 #define $ac_func innocuous_$ac_func
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10696 #undef $ac_func
10698 /* Override any gcc2 internal prototype to avoid an error. */
10699 #ifdef __cplusplus
10700 extern "C"
10702 #endif
10703 /* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705 char $ac_func ();
10706 /* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 choke me
10711 #else
10712 char (*f) () = $ac_func;
10713 #endif
10714 #ifdef __cplusplus
10716 #endif
10719 main ()
10721 return f != $ac_func;
10723 return 0;
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest$ac_exeext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 eval "$as_ac_var=yes"
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 eval "$as_ac_var=no"
10755 rm -f conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763 _ACEOF
10766 done
10773 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10774 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10775 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10776 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10782 ac_ext=cc
10783 ac_cpp='$CXXCPP $CPPFLAGS'
10784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <math.h>
10795 #ifdef HAVE_IEEEFP_H
10796 #include <ieeefp.h>
10797 #endif
10800 main ()
10802 qfpclass(0);
10804 return 0;
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_cxx_werror_flag"
10817 || test ! -s conftest.err'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 glibcxx_cv_func_qfpclass_use=yes
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 glibcxx_cv_func_qfpclass_use=no
10836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10837 ac_ext=c
10838 ac_cpp='$CPP $CPPFLAGS'
10839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10848 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10850 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10852 for ac_func in qfpclass
10854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855 echo "$as_me:$LINENO: checking for $ac_func" >&5
10856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_var+set}\" = set"; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 if test x$gcc_no_link = xyes; then
10861 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10863 { (exit 1); exit 1; }; }
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h. */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873 #define $ac_func innocuous_$ac_func
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10880 #ifdef __STDC__
10881 # include <limits.h>
10882 #else
10883 # include <assert.h>
10884 #endif
10886 #undef $ac_func
10888 /* Override any gcc2 internal prototype to avoid an error. */
10889 #ifdef __cplusplus
10890 extern "C"
10892 #endif
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10895 char $ac_func ();
10896 /* The GNU C library defines this for functions which it implements
10897 to always fail with ENOSYS. Some functions are actually named
10898 something starting with __ and the normal name is an alias. */
10899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10900 choke me
10901 #else
10902 char (*f) () = $ac_func;
10903 #endif
10904 #ifdef __cplusplus
10906 #endif
10909 main ()
10911 return f != $ac_func;
10913 return 0;
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 eval "$as_ac_var=yes"
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10945 rm -f conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10950 if test `eval echo '${'$as_ac_var'}'` = yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10956 done
10958 else
10960 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10961 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10962 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10963 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10969 ac_ext=cc
10970 ac_cpp='$CXXCPP $CPPFLAGS'
10971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <math.h>
10982 #ifdef HAVE_IEEEFP_H
10983 #include <ieeefp.h>
10984 #endif
10987 main ()
10989 _qfpclass(0);
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996 (eval $ac_compile) 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_cxx_werror_flag"
11004 || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest.$ac_objext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 glibcxx_cv_func__qfpclass_use=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 glibcxx_cv_func__qfpclass_use=no
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11024 ac_ext=c
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
11035 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
11037 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
11039 for ac_func in _qfpclass
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11044 if eval "test \"\${$as_ac_var+set}\" = set"; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 if test x$gcc_no_link = xyes; then
11048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11050 { (exit 1); exit 1; }; }
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11060 #define $ac_func innocuous_$ac_func
11062 /* System header to define __stub macros and hopefully few prototypes,
11063 which can conflict with char $ac_func (); below.
11064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065 <limits.h> exists even on freestanding compilers. */
11067 #ifdef __STDC__
11068 # include <limits.h>
11069 #else
11070 # include <assert.h>
11071 #endif
11073 #undef $ac_func
11075 /* Override any gcc2 internal prototype to avoid an error. */
11076 #ifdef __cplusplus
11077 extern "C"
11079 #endif
11080 /* We use char because int might match the return type of a gcc2
11081 builtin and then its argument prototype would still apply. */
11082 char $ac_func ();
11083 /* The GNU C library defines this for functions which it implements
11084 to always fail with ENOSYS. Some functions are actually named
11085 something starting with __ and the normal name is an alias. */
11086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11087 choke me
11088 #else
11089 char (*f) () = $ac_func;
11090 #endif
11091 #ifdef __cplusplus
11093 #endif
11096 main ()
11098 return f != $ac_func;
11100 return 0;
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -z "$ac_c_werror_flag"
11113 || test ! -s conftest.err'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; } &&
11119 { ac_try='test -s conftest$ac_exeext'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 eval "$as_ac_var=yes"
11126 else
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 eval "$as_ac_var=no"
11132 rm -f conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11137 if test `eval echo '${'$as_ac_var'}'` = yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 _ACEOF
11143 done
11150 echo "$as_me:$LINENO: checking for hypot declaration" >&5
11151 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11152 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11153 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11159 ac_ext=cc
11160 ac_cpp='$CXXCPP $CPPFLAGS'
11161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <math.h>
11173 main ()
11175 hypot(0, 0);
11177 return 0;
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -z "$ac_cxx_werror_flag"
11190 || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 glibcxx_cv_func_hypot_use=yes
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 glibcxx_cv_func_hypot_use=no
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210 ac_ext=c
11211 ac_cpp='$CPP $CPPFLAGS'
11212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11221 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11223 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11225 for ac_func in hypot
11227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 echo "$as_me:$LINENO: checking for $ac_func" >&5
11229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11230 if eval "test \"\${$as_ac_var+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 if test x$gcc_no_link = xyes; then
11234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11236 { (exit 1); exit 1; }; }
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11246 #define $ac_func innocuous_$ac_func
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below.
11250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 <limits.h> exists even on freestanding compilers. */
11253 #ifdef __STDC__
11254 # include <limits.h>
11255 #else
11256 # include <assert.h>
11257 #endif
11259 #undef $ac_func
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 #ifdef __cplusplus
11263 extern "C"
11265 #endif
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268 char $ac_func ();
11269 /* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
11272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11273 choke me
11274 #else
11275 char (*f) () = $ac_func;
11276 #endif
11277 #ifdef __cplusplus
11279 #endif
11282 main ()
11284 return f != $ac_func;
11286 return 0;
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 eval "$as_ac_var=yes"
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 eval "$as_ac_var=no"
11318 rm -f conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11323 if test `eval echo '${'$as_ac_var'}'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11326 _ACEOF
11329 done
11331 else
11333 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11334 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11335 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11336 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11342 ac_ext=cc
11343 ac_cpp='$CXXCPP $CPPFLAGS'
11344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 #include <math.h>
11356 main ()
11358 _hypot(0, 0);
11360 return 0;
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_cxx_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 glibcxx_cv_func__hypot_use=yes
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 glibcxx_cv_func__hypot_use=no
11392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11393 ac_ext=c
11394 ac_cpp='$CPP $CPPFLAGS'
11395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11404 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11406 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11408 for ac_func in _hypot
11410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11411 echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_var+set}\" = set"; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 if test x$gcc_no_link = xyes; then
11417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11419 { (exit 1); exit 1; }; }
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11429 #define $ac_func innocuous_$ac_func
11431 /* System header to define __stub macros and hopefully few prototypes,
11432 which can conflict with char $ac_func (); below.
11433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11434 <limits.h> exists even on freestanding compilers. */
11436 #ifdef __STDC__
11437 # include <limits.h>
11438 #else
11439 # include <assert.h>
11440 #endif
11442 #undef $ac_func
11444 /* Override any gcc2 internal prototype to avoid an error. */
11445 #ifdef __cplusplus
11446 extern "C"
11448 #endif
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451 char $ac_func ();
11452 /* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 choke me
11457 #else
11458 char (*f) () = $ac_func;
11459 #endif
11460 #ifdef __cplusplus
11462 #endif
11465 main ()
11467 return f != $ac_func;
11469 return 0;
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 eval "$as_ac_var=yes"
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 eval "$as_ac_var=no"
11501 rm -f conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11506 if test `eval echo '${'$as_ac_var'}'` = yes; then
11507 cat >>confdefs.h <<_ACEOF
11508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11509 _ACEOF
11512 done
11519 echo "$as_me:$LINENO: checking for float trig functions" >&5
11520 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11521 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11527 ac_ext=cc
11528 ac_cpp='$CXXCPP $CPPFLAGS'
11529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <math.h>
11541 main ()
11543 `for x in acosf asinf atanf \
11544 cosf sinf tanf \
11545 coshf sinhf tanhf; do echo "$x (0);"; done`
11547 return 0;
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_cxx_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 glibcxx_cv_func_float_trig_use=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 glibcxx_cv_func_float_trig_use=no
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 ac_ext=c
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11589 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11590 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11600 for ac_func in acosf asinf atanf \
11601 cosf sinf tanf \
11602 coshf sinhf tanhf
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11607 if eval "test \"\${$as_ac_var+set}\" = set"; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610 if test x$gcc_no_link = xyes; then
11611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11613 { (exit 1); exit 1; }; }
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623 #define $ac_func innocuous_$ac_func
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11636 #undef $ac_func
11638 /* Override any gcc2 internal prototype to avoid an error. */
11639 #ifdef __cplusplus
11640 extern "C"
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char $ac_func ();
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11650 choke me
11651 #else
11652 char (*f) () = $ac_func;
11653 #endif
11654 #ifdef __cplusplus
11656 #endif
11659 main ()
11661 return f != $ac_func;
11663 return 0;
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11695 rm -f conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11700 if test `eval echo '${'$as_ac_var'}'` = yes; then
11701 cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 _ACEOF
11706 done
11711 echo "$as_me:$LINENO: checking for float round functions" >&5
11712 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11713 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11719 ac_ext=cc
11720 ac_cpp='$CXXCPP $CPPFLAGS'
11721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 #include <math.h>
11733 main ()
11735 `for x in ceilf floorf; do echo "$x (0);"; done`
11737 return 0;
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742 (eval $ac_compile) 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_cxx_werror_flag"
11750 || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest.$ac_objext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 glibcxx_cv_func_float_round_use=yes
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 glibcxx_cv_func_float_round_use=no
11769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770 ac_ext=c
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11779 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11780 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11783 for ac_func in ceilf floorf
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11788 if eval "test \"\${$as_ac_var+set}\" = set"; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 if test x$gcc_no_link = xyes; then
11792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11794 { (exit 1); exit 1; }; }
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804 #define $ac_func innocuous_$ac_func
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11817 #undef $ac_func
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 #ifdef __cplusplus
11821 extern "C"
11823 #endif
11824 /* We use char because int might match the return type of a gcc2
11825 builtin and then its argument prototype would still apply. */
11826 char $ac_func ();
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831 choke me
11832 #else
11833 char (*f) () = $ac_func;
11834 #endif
11835 #ifdef __cplusplus
11837 #endif
11840 main ()
11842 return f != $ac_func;
11844 return 0;
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag"
11857 || test ! -s conftest.err'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest$ac_exeext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 eval "$as_ac_var=yes"
11870 else
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 eval "$as_ac_var=no"
11876 rm -f conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11887 done
11893 echo "$as_me:$LINENO: checking for expf declaration" >&5
11894 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11895 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11896 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11902 ac_ext=cc
11903 ac_cpp='$CXXCPP $CPPFLAGS'
11904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 #include <math.h>
11915 #ifdef HAVE_IEEEFP_H
11916 #include <ieeefp.h>
11917 #endif
11920 main ()
11922 expf(0);
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 glibcxx_cv_func_expf_use=yes
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 glibcxx_cv_func_expf_use=no
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11968 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11970 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11972 for ac_func in expf
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 if test x$gcc_no_link = xyes; then
11981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11983 { (exit 1); exit 1; }; }
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h. */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11993 #define $ac_func innocuous_$ac_func
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char $ac_func (); below.
11997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11998 <limits.h> exists even on freestanding compilers. */
12000 #ifdef __STDC__
12001 # include <limits.h>
12002 #else
12003 # include <assert.h>
12004 #endif
12006 #undef $ac_func
12008 /* Override any gcc2 internal prototype to avoid an error. */
12009 #ifdef __cplusplus
12010 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015 char $ac_func ();
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 char (*f) () = $ac_func;
12023 #endif
12024 #ifdef __cplusplus
12026 #endif
12029 main ()
12031 return f != $ac_func;
12033 return 0;
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038 (eval $ac_link) 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_c_werror_flag"
12046 || test ! -s conftest.err'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 eval "$as_ac_var=yes"
12059 else
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 eval "$as_ac_var=no"
12065 rm -f conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12076 done
12078 else
12080 echo "$as_me:$LINENO: checking for _expf declaration" >&5
12081 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
12082 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12083 if test "${glibcxx_cv_func__expf_use+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12089 ac_ext=cc
12090 ac_cpp='$CXXCPP $CPPFLAGS'
12091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 #include <math.h>
12102 #ifdef HAVE_IEEEFP_H
12103 #include <ieeefp.h>
12104 #endif
12107 main ()
12109 _expf(0);
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -z "$ac_cxx_werror_flag"
12124 || test ! -s conftest.err'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 glibcxx_cv_func__expf_use=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 glibcxx_cv_func__expf_use=no
12143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12154 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12155 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12157 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12159 for ac_func in _expf
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_var+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 if test x$gcc_no_link = xyes; then
12168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12170 { (exit 1); exit 1; }; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180 #define $ac_func innocuous_$ac_func
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12187 #ifdef __STDC__
12188 # include <limits.h>
12189 #else
12190 # include <assert.h>
12191 #endif
12193 #undef $ac_func
12195 /* Override any gcc2 internal prototype to avoid an error. */
12196 #ifdef __cplusplus
12197 extern "C"
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char $ac_func ();
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12207 choke me
12208 #else
12209 char (*f) () = $ac_func;
12210 #endif
12211 #ifdef __cplusplus
12213 #endif
12216 main ()
12218 return f != $ac_func;
12220 return 0;
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225 (eval $ac_link) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest$ac_exeext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 eval "$as_ac_var=yes"
12246 else
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 eval "$as_ac_var=no"
12252 rm -f conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12263 done
12270 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12271 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12272 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12273 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12279 ac_ext=cc
12280 ac_cpp='$CXXCPP $CPPFLAGS'
12281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <math.h>
12292 #ifdef HAVE_IEEEFP_H
12293 #include <ieeefp.h>
12294 #endif
12297 main ()
12299 isnanf(0);
12301 return 0;
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_cxx_werror_flag"
12314 || test ! -s conftest.err'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 glibcxx_cv_func_isnanf_use=yes
12327 else
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 glibcxx_cv_func_isnanf_use=no
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_ext=c
12335 ac_cpp='$CPP $CPPFLAGS'
12336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12345 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12347 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12349 for ac_func in isnanf
12351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12352 echo "$as_me:$LINENO: checking for $ac_func" >&5
12353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12354 if eval "test \"\${$as_ac_var+set}\" = set"; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 if test x$gcc_no_link = xyes; then
12358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12360 { (exit 1); exit 1; }; }
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12370 #define $ac_func innocuous_$ac_func
12372 /* System header to define __stub macros and hopefully few prototypes,
12373 which can conflict with char $ac_func (); below.
12374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375 <limits.h> exists even on freestanding compilers. */
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12383 #undef $ac_func
12385 /* Override any gcc2 internal prototype to avoid an error. */
12386 #ifdef __cplusplus
12387 extern "C"
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12392 char $ac_func ();
12393 /* The GNU C library defines this for functions which it implements
12394 to always fail with ENOSYS. Some functions are actually named
12395 something starting with __ and the normal name is an alias. */
12396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12397 choke me
12398 #else
12399 char (*f) () = $ac_func;
12400 #endif
12401 #ifdef __cplusplus
12403 #endif
12406 main ()
12408 return f != $ac_func;
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 eval "$as_ac_var=yes"
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 eval "$as_ac_var=no"
12442 rm -f conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12447 if test `eval echo '${'$as_ac_var'}'` = yes; then
12448 cat >>confdefs.h <<_ACEOF
12449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450 _ACEOF
12453 done
12455 else
12457 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12458 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12459 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12460 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12466 ac_ext=cc
12467 ac_cpp='$CXXCPP $CPPFLAGS'
12468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include <math.h>
12479 #ifdef HAVE_IEEEFP_H
12480 #include <ieeefp.h>
12481 #endif
12484 main ()
12486 _isnanf(0);
12488 return 0;
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_cxx_werror_flag"
12501 || test ! -s conftest.err'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 glibcxx_cv_func__isnanf_use=yes
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 glibcxx_cv_func__isnanf_use=no
12520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12521 ac_ext=c
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12531 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12532 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12534 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12536 for ac_func in _isnanf
12538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12539 echo "$as_me:$LINENO: checking for $ac_func" >&5
12540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12541 if eval "test \"\${$as_ac_var+set}\" = set"; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544 if test x$gcc_no_link = xyes; then
12545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12547 { (exit 1); exit 1; }; }
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12557 #define $ac_func innocuous_$ac_func
12559 /* System header to define __stub macros and hopefully few prototypes,
12560 which can conflict with char $ac_func (); below.
12561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12562 <limits.h> exists even on freestanding compilers. */
12564 #ifdef __STDC__
12565 # include <limits.h>
12566 #else
12567 # include <assert.h>
12568 #endif
12570 #undef $ac_func
12572 /* Override any gcc2 internal prototype to avoid an error. */
12573 #ifdef __cplusplus
12574 extern "C"
12576 #endif
12577 /* We use char because int might match the return type of a gcc2
12578 builtin and then its argument prototype would still apply. */
12579 char $ac_func ();
12580 /* The GNU C library defines this for functions which it implements
12581 to always fail with ENOSYS. Some functions are actually named
12582 something starting with __ and the normal name is an alias. */
12583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12584 choke me
12585 #else
12586 char (*f) () = $ac_func;
12587 #endif
12588 #ifdef __cplusplus
12590 #endif
12593 main ()
12595 return f != $ac_func;
12597 return 0;
12599 _ACEOF
12600 rm -f conftest.$ac_objext conftest$ac_exeext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602 (eval $ac_link) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest$ac_exeext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 eval "$as_ac_var=yes"
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 eval "$as_ac_var=no"
12629 rm -f conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12634 if test `eval echo '${'$as_ac_var'}'` = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12637 _ACEOF
12640 done
12647 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12648 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12649 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12650 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12656 ac_ext=cc
12657 ac_cpp='$CXXCPP $CPPFLAGS'
12658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 #include <math.h>
12669 #ifdef HAVE_IEEEFP_H
12670 #include <ieeefp.h>
12671 #endif
12674 main ()
12676 isinff(0);
12678 return 0;
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_cxx_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 glibcxx_cv_func_isinff_use=yes
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 glibcxx_cv_func_isinff_use=no
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 ac_ext=c
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12722 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12724 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12726 for ac_func in isinff
12728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12729 echo "$as_me:$LINENO: checking for $ac_func" >&5
12730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12731 if eval "test \"\${$as_ac_var+set}\" = set"; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734 if test x$gcc_no_link = xyes; then
12735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12737 { (exit 1); exit 1; }; }
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12747 #define $ac_func innocuous_$ac_func
12749 /* System header to define __stub macros and hopefully few prototypes,
12750 which can conflict with char $ac_func (); below.
12751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12752 <limits.h> exists even on freestanding compilers. */
12754 #ifdef __STDC__
12755 # include <limits.h>
12756 #else
12757 # include <assert.h>
12758 #endif
12760 #undef $ac_func
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 #ifdef __cplusplus
12764 extern "C"
12766 #endif
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769 char $ac_func ();
12770 /* The GNU C library defines this for functions which it implements
12771 to always fail with ENOSYS. Some functions are actually named
12772 something starting with __ and the normal name is an alias. */
12773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12774 choke me
12775 #else
12776 char (*f) () = $ac_func;
12777 #endif
12778 #ifdef __cplusplus
12780 #endif
12783 main ()
12785 return f != $ac_func;
12787 return 0;
12789 _ACEOF
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest$ac_exeext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 eval "$as_ac_var=yes"
12813 else
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 eval "$as_ac_var=no"
12819 rm -f conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 _ACEOF
12830 done
12832 else
12834 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12835 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12836 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12837 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12843 ac_ext=cc
12844 ac_cpp='$CXXCPP $CPPFLAGS'
12845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include <math.h>
12856 #ifdef HAVE_IEEEFP_H
12857 #include <ieeefp.h>
12858 #endif
12861 main ()
12863 _isinff(0);
12865 return 0;
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_cxx_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 glibcxx_cv_func__isinff_use=yes
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 glibcxx_cv_func__isinff_use=no
12897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12898 ac_ext=c
12899 ac_cpp='$CPP $CPPFLAGS'
12900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12909 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12911 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12913 for ac_func in _isinff
12915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12916 echo "$as_me:$LINENO: checking for $ac_func" >&5
12917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12918 if eval "test \"\${$as_ac_var+set}\" = set"; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 if test x$gcc_no_link = xyes; then
12922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12924 { (exit 1); exit 1; }; }
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12934 #define $ac_func innocuous_$ac_func
12936 /* System header to define __stub macros and hopefully few prototypes,
12937 which can conflict with char $ac_func (); below.
12938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12939 <limits.h> exists even on freestanding compilers. */
12941 #ifdef __STDC__
12942 # include <limits.h>
12943 #else
12944 # include <assert.h>
12945 #endif
12947 #undef $ac_func
12949 /* Override any gcc2 internal prototype to avoid an error. */
12950 #ifdef __cplusplus
12951 extern "C"
12953 #endif
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char $ac_func ();
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12961 choke me
12962 #else
12963 char (*f) () = $ac_func;
12964 #endif
12965 #ifdef __cplusplus
12967 #endif
12970 main ()
12972 return f != $ac_func;
12974 return 0;
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag"
12987 || test ! -s conftest.err'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 eval "$as_ac_var=yes"
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 eval "$as_ac_var=no"
13006 rm -f conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13011 if test `eval echo '${'$as_ac_var'}'` = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13014 _ACEOF
13017 done
13024 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
13025 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
13026 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
13027 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13033 ac_ext=cc
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <math.h>
13047 main ()
13049 atan2f(0, 0);
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_cxx_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 glibcxx_cv_func_atan2f_use=yes
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 glibcxx_cv_func_atan2f_use=no
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084 ac_ext=c
13085 ac_cpp='$CPP $CPPFLAGS'
13086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
13095 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
13097 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13099 for ac_func in atan2f
13101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13102 echo "$as_me:$LINENO: checking for $ac_func" >&5
13103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13104 if eval "test \"\${$as_ac_var+set}\" = set"; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107 if test x$gcc_no_link = xyes; then
13108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13110 { (exit 1); exit 1; }; }
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120 #define $ac_func innocuous_$ac_func
13122 /* System header to define __stub macros and hopefully few prototypes,
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13127 #ifdef __STDC__
13128 # include <limits.h>
13129 #else
13130 # include <assert.h>
13131 #endif
13133 #undef $ac_func
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 #ifdef __cplusplus
13137 extern "C"
13139 #endif
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char $ac_func ();
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 char (*f) () = $ac_func;
13150 #endif
13151 #ifdef __cplusplus
13153 #endif
13156 main ()
13158 return f != $ac_func;
13160 return 0;
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 eval "$as_ac_var=yes"
13186 else
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 eval "$as_ac_var=no"
13192 rm -f conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13197 if test `eval echo '${'$as_ac_var'}'` = yes; then
13198 cat >>confdefs.h <<_ACEOF
13199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13200 _ACEOF
13203 done
13205 else
13207 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13208 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13209 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13210 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13216 ac_ext=cc
13217 ac_cpp='$CXXCPP $CPPFLAGS'
13218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13222 cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h. */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <math.h>
13230 main ()
13232 _atan2f(0, 0);
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_cxx_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 glibcxx_cv_func__atan2f_use=yes
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 glibcxx_cv_func__atan2f_use=no
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 ac_ext=c
13268 ac_cpp='$CPP $CPPFLAGS'
13269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13277 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13278 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13280 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13282 for ac_func in _atan2f
13284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13285 echo "$as_me:$LINENO: checking for $ac_func" >&5
13286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13287 if eval "test \"\${$as_ac_var+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 if test x$gcc_no_link = xyes; then
13291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13293 { (exit 1); exit 1; }; }
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13303 #define $ac_func innocuous_$ac_func
13305 /* System header to define __stub macros and hopefully few prototypes,
13306 which can conflict with char $ac_func (); below.
13307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13308 <limits.h> exists even on freestanding compilers. */
13310 #ifdef __STDC__
13311 # include <limits.h>
13312 #else
13313 # include <assert.h>
13314 #endif
13316 #undef $ac_func
13318 /* Override any gcc2 internal prototype to avoid an error. */
13319 #ifdef __cplusplus
13320 extern "C"
13322 #endif
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char $ac_func ();
13326 /* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13330 choke me
13331 #else
13332 char (*f) () = $ac_func;
13333 #endif
13334 #ifdef __cplusplus
13336 #endif
13339 main ()
13341 return f != $ac_func;
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13348 (eval $ac_link) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag"
13356 || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest$ac_exeext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 eval "$as_ac_var=yes"
13369 else
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 eval "$as_ac_var=no"
13375 rm -f conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13380 if test `eval echo '${'$as_ac_var'}'` = yes; then
13381 cat >>confdefs.h <<_ACEOF
13382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13383 _ACEOF
13386 done
13393 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13394 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13395 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13396 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13402 ac_ext=cc
13403 ac_cpp='$CXXCPP $CPPFLAGS'
13404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h. */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 #include <math.h>
13415 #ifdef HAVE_IEEEFP_H
13416 #include <ieeefp.h>
13417 #endif
13420 main ()
13422 fabsf(0);
13424 return 0;
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_cxx_werror_flag"
13437 || test ! -s conftest.err'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 glibcxx_cv_func_fabsf_use=yes
13450 else
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13454 glibcxx_cv_func_fabsf_use=no
13456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457 ac_ext=c
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13468 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13470 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13472 for ac_func in fabsf
13474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13475 echo "$as_me:$LINENO: checking for $ac_func" >&5
13476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13477 if eval "test \"\${$as_ac_var+set}\" = set"; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 if test x$gcc_no_link = xyes; then
13481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13483 { (exit 1); exit 1; }; }
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13493 #define $ac_func innocuous_$ac_func
13495 /* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char $ac_func (); below.
13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498 <limits.h> exists even on freestanding compilers. */
13500 #ifdef __STDC__
13501 # include <limits.h>
13502 #else
13503 # include <assert.h>
13504 #endif
13506 #undef $ac_func
13508 /* Override any gcc2 internal prototype to avoid an error. */
13509 #ifdef __cplusplus
13510 extern "C"
13512 #endif
13513 /* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515 char $ac_func ();
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13520 choke me
13521 #else
13522 char (*f) () = $ac_func;
13523 #endif
13524 #ifdef __cplusplus
13526 #endif
13529 main ()
13531 return f != $ac_func;
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 eval "$as_ac_var=yes"
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 eval "$as_ac_var=no"
13565 rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13570 if test `eval echo '${'$as_ac_var'}'` = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573 _ACEOF
13576 done
13578 else
13580 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13581 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13582 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13583 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13589 ac_ext=cc
13590 ac_cpp='$CXXCPP $CPPFLAGS'
13591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13595 cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <math.h>
13602 #ifdef HAVE_IEEEFP_H
13603 #include <ieeefp.h>
13604 #endif
13607 main ()
13609 _fabsf(0);
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616 (eval $ac_compile) 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_cxx_werror_flag"
13624 || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest.$ac_objext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 glibcxx_cv_func__fabsf_use=yes
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 glibcxx_cv_func__fabsf_use=no
13643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13644 ac_ext=c
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13654 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13655 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13657 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13659 for ac_func in _fabsf
13661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13662 echo "$as_me:$LINENO: checking for $ac_func" >&5
13663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_var+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 if test x$gcc_no_link = xyes; then
13668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13670 { (exit 1); exit 1; }; }
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13680 #define $ac_func innocuous_$ac_func
13682 /* System header to define __stub macros and hopefully few prototypes,
13683 which can conflict with char $ac_func (); below.
13684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13685 <limits.h> exists even on freestanding compilers. */
13687 #ifdef __STDC__
13688 # include <limits.h>
13689 #else
13690 # include <assert.h>
13691 #endif
13693 #undef $ac_func
13695 /* Override any gcc2 internal prototype to avoid an error. */
13696 #ifdef __cplusplus
13697 extern "C"
13699 #endif
13700 /* We use char because int might match the return type of a gcc2
13701 builtin and then its argument prototype would still apply. */
13702 char $ac_func ();
13703 /* The GNU C library defines this for functions which it implements
13704 to always fail with ENOSYS. Some functions are actually named
13705 something starting with __ and the normal name is an alias. */
13706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13707 choke me
13708 #else
13709 char (*f) () = $ac_func;
13710 #endif
13711 #ifdef __cplusplus
13713 #endif
13716 main ()
13718 return f != $ac_func;
13720 return 0;
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 eval "$as_ac_var=yes"
13746 else
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 eval "$as_ac_var=no"
13752 rm -f conftest.err conftest.$ac_objext \
13753 conftest$ac_exeext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13757 if test `eval echo '${'$as_ac_var'}'` = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13760 _ACEOF
13763 done
13770 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13771 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13772 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13773 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13779 ac_ext=cc
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <math.h>
13793 main ()
13795 fmodf(0, 0);
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_cxx_werror_flag"
13810 || test ! -s conftest.err'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest.$ac_objext'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 glibcxx_cv_func_fmodf_use=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 glibcxx_cv_func_fmodf_use=no
13829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830 ac_ext=c
13831 ac_cpp='$CPP $CPPFLAGS'
13832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13840 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13841 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13843 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13845 for ac_func in fmodf
13847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13848 echo "$as_me:$LINENO: checking for $ac_func" >&5
13849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13850 if eval "test \"\${$as_ac_var+set}\" = set"; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 if test x$gcc_no_link = xyes; then
13854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13856 { (exit 1); exit 1; }; }
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h. */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13866 #define $ac_func innocuous_$ac_func
13868 /* System header to define __stub macros and hopefully few prototypes,
13869 which can conflict with char $ac_func (); below.
13870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13871 <limits.h> exists even on freestanding compilers. */
13873 #ifdef __STDC__
13874 # include <limits.h>
13875 #else
13876 # include <assert.h>
13877 #endif
13879 #undef $ac_func
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 #ifdef __cplusplus
13883 extern "C"
13885 #endif
13886 /* We use char because int might match the return type of a gcc2
13887 builtin and then its argument prototype would still apply. */
13888 char $ac_func ();
13889 /* The GNU C library defines this for functions which it implements
13890 to always fail with ENOSYS. Some functions are actually named
13891 something starting with __ and the normal name is an alias. */
13892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13893 choke me
13894 #else
13895 char (*f) () = $ac_func;
13896 #endif
13897 #ifdef __cplusplus
13899 #endif
13902 main ()
13904 return f != $ac_func;
13906 return 0;
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911 (eval $ac_link) 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag"
13919 || test ! -s conftest.err'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 eval "$as_ac_var=yes"
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 eval "$as_ac_var=no"
13938 rm -f conftest.err conftest.$ac_objext \
13939 conftest$ac_exeext conftest.$ac_ext
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13943 if test `eval echo '${'$as_ac_var'}'` = yes; then
13944 cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13946 _ACEOF
13949 done
13951 else
13953 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13954 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13955 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13956 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13962 ac_ext=cc
13963 ac_cpp='$CXXCPP $CPPFLAGS'
13964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <math.h>
13976 main ()
13978 _fmodf(0, 0);
13980 return 0;
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_cxx_werror_flag"
13993 || test ! -s conftest.err'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest.$ac_objext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 glibcxx_cv_func__fmodf_use=yes
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 glibcxx_cv_func__fmodf_use=no
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013 ac_ext=c
14014 ac_cpp='$CPP $CPPFLAGS'
14015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14023 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
14024 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
14026 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
14028 for ac_func in _fmodf
14030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_var+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 if test x$gcc_no_link = xyes; then
14037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14039 { (exit 1); exit 1; }; }
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h. */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14049 #define $ac_func innocuous_$ac_func
14051 /* System header to define __stub macros and hopefully few prototypes,
14052 which can conflict with char $ac_func (); below.
14053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054 <limits.h> exists even on freestanding compilers. */
14056 #ifdef __STDC__
14057 # include <limits.h>
14058 #else
14059 # include <assert.h>
14060 #endif
14062 #undef $ac_func
14064 /* Override any gcc2 internal prototype to avoid an error. */
14065 #ifdef __cplusplus
14066 extern "C"
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070 builtin and then its argument prototype would still apply. */
14071 char $ac_func ();
14072 /* The GNU C library defines this for functions which it implements
14073 to always fail with ENOSYS. Some functions are actually named
14074 something starting with __ and the normal name is an alias. */
14075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14076 choke me
14077 #else
14078 char (*f) () = $ac_func;
14079 #endif
14080 #ifdef __cplusplus
14082 #endif
14085 main ()
14087 return f != $ac_func;
14089 return 0;
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 eval "$as_ac_var=yes"
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 eval "$as_ac_var=no"
14121 rm -f conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14126 if test `eval echo '${'$as_ac_var'}'` = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 _ACEOF
14132 done
14139 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
14140 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
14141 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
14142 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14148 ac_ext=cc
14149 ac_cpp='$CXXCPP $CPPFLAGS'
14150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <math.h>
14162 main ()
14164 frexpf(0, 0);
14166 return 0;
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_cxx_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 glibcxx_cv_func_frexpf_use=yes
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 glibcxx_cv_func_frexpf_use=no
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199 ac_ext=c
14200 ac_cpp='$CPP $CPPFLAGS'
14201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14209 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14210 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14212 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14214 for ac_func in frexpf
14216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 echo "$as_me:$LINENO: checking for $ac_func" >&5
14218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_var+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 if test x$gcc_no_link = xyes; then
14223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14225 { (exit 1); exit 1; }; }
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14235 #define $ac_func innocuous_$ac_func
14237 /* System header to define __stub macros and hopefully few prototypes,
14238 which can conflict with char $ac_func (); below.
14239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14240 <limits.h> exists even on freestanding compilers. */
14242 #ifdef __STDC__
14243 # include <limits.h>
14244 #else
14245 # include <assert.h>
14246 #endif
14248 #undef $ac_func
14250 /* Override any gcc2 internal prototype to avoid an error. */
14251 #ifdef __cplusplus
14252 extern "C"
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257 char $ac_func ();
14258 /* The GNU C library defines this for functions which it implements
14259 to always fail with ENOSYS. Some functions are actually named
14260 something starting with __ and the normal name is an alias. */
14261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262 choke me
14263 #else
14264 char (*f) () = $ac_func;
14265 #endif
14266 #ifdef __cplusplus
14268 #endif
14271 main ()
14273 return f != $ac_func;
14275 return 0;
14277 _ACEOF
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14280 (eval $ac_link) 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest$ac_exeext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 eval "$as_ac_var=yes"
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 eval "$as_ac_var=no"
14307 rm -f conftest.err conftest.$ac_objext \
14308 conftest$ac_exeext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14312 if test `eval echo '${'$as_ac_var'}'` = yes; then
14313 cat >>confdefs.h <<_ACEOF
14314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14315 _ACEOF
14318 done
14320 else
14322 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14323 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14324 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14325 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14331 ac_ext=cc
14332 ac_cpp='$CXXCPP $CPPFLAGS'
14333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <math.h>
14345 main ()
14347 _frexpf(0, 0);
14349 return 0;
14351 _ACEOF
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_cxx_werror_flag"
14362 || test ! -s conftest.err'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest.$ac_objext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 glibcxx_cv_func__frexpf_use=yes
14375 else
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 glibcxx_cv_func__frexpf_use=no
14381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14382 ac_ext=c
14383 ac_cpp='$CPP $CPPFLAGS'
14384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14392 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14393 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14395 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14397 for ac_func in _frexpf
14399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14400 echo "$as_me:$LINENO: checking for $ac_func" >&5
14401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14402 if eval "test \"\${$as_ac_var+set}\" = set"; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405 if test x$gcc_no_link = xyes; then
14406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14408 { (exit 1); exit 1; }; }
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14418 #define $ac_func innocuous_$ac_func
14420 /* System header to define __stub macros and hopefully few prototypes,
14421 which can conflict with char $ac_func (); below.
14422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423 <limits.h> exists even on freestanding compilers. */
14425 #ifdef __STDC__
14426 # include <limits.h>
14427 #else
14428 # include <assert.h>
14429 #endif
14431 #undef $ac_func
14433 /* Override any gcc2 internal prototype to avoid an error. */
14434 #ifdef __cplusplus
14435 extern "C"
14437 #endif
14438 /* We use char because int might match the return type of a gcc2
14439 builtin and then its argument prototype would still apply. */
14440 char $ac_func ();
14441 /* The GNU C library defines this for functions which it implements
14442 to always fail with ENOSYS. Some functions are actually named
14443 something starting with __ and the normal name is an alias. */
14444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14445 choke me
14446 #else
14447 char (*f) () = $ac_func;
14448 #endif
14449 #ifdef __cplusplus
14451 #endif
14454 main ()
14456 return f != $ac_func;
14458 return 0;
14460 _ACEOF
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>conftest.er1
14464 ac_status=$?
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -z "$ac_c_werror_flag"
14471 || test ! -s conftest.err'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } &&
14477 { ac_try='test -s conftest$ac_exeext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 eval "$as_ac_var=yes"
14484 else
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 eval "$as_ac_var=no"
14490 rm -f conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496 cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14498 _ACEOF
14501 done
14508 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14509 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14510 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14511 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14517 ac_ext=cc
14518 ac_cpp='$CXXCPP $CPPFLAGS'
14519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 #include <math.h>
14531 main ()
14533 hypotf(0, 0);
14535 return 0;
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540 (eval $ac_compile) 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_cxx_werror_flag"
14548 || test ! -s conftest.err'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } &&
14554 { ac_try='test -s conftest.$ac_objext'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; }; then
14560 glibcxx_cv_func_hypotf_use=yes
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 glibcxx_cv_func_hypotf_use=no
14567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14568 ac_ext=c
14569 ac_cpp='$CPP $CPPFLAGS'
14570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14578 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14579 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14581 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14583 for ac_func in hypotf
14585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 echo "$as_me:$LINENO: checking for $ac_func" >&5
14587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14588 if eval "test \"\${$as_ac_var+set}\" = set"; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591 if test x$gcc_no_link = xyes; then
14592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14594 { (exit 1); exit 1; }; }
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14604 #define $ac_func innocuous_$ac_func
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func (); below.
14608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609 <limits.h> exists even on freestanding compilers. */
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14617 #undef $ac_func
14619 /* Override any gcc2 internal prototype to avoid an error. */
14620 #ifdef __cplusplus
14621 extern "C"
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14637 #endif
14640 main ()
14642 return f != $ac_func;
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 eval "$as_ac_var=yes"
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 eval "$as_ac_var=no"
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682 cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 _ACEOF
14687 done
14689 else
14691 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14692 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14693 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14694 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14700 ac_ext=cc
14701 ac_cpp='$CXXCPP $CPPFLAGS'
14702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <math.h>
14714 main ()
14716 _hypotf(0, 0);
14718 return 0;
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_cxx_werror_flag"
14731 || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 glibcxx_cv_func__hypotf_use=yes
14744 else
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 glibcxx_cv_func__hypotf_use=no
14750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 ac_ext=c
14752 ac_cpp='$CPP $CPPFLAGS'
14753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14761 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14762 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14764 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14766 for ac_func in _hypotf
14768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14769 echo "$as_me:$LINENO: checking for $ac_func" >&5
14770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14771 if eval "test \"\${$as_ac_var+set}\" = set"; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 if test x$gcc_no_link = xyes; then
14775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14777 { (exit 1); exit 1; }; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14787 #define $ac_func innocuous_$ac_func
14789 /* System header to define __stub macros and hopefully few prototypes,
14790 which can conflict with char $ac_func (); below.
14791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14792 <limits.h> exists even on freestanding compilers. */
14794 #ifdef __STDC__
14795 # include <limits.h>
14796 #else
14797 # include <assert.h>
14798 #endif
14800 #undef $ac_func
14802 /* Override any gcc2 internal prototype to avoid an error. */
14803 #ifdef __cplusplus
14804 extern "C"
14806 #endif
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char $ac_func ();
14810 /* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14814 choke me
14815 #else
14816 char (*f) () = $ac_func;
14817 #endif
14818 #ifdef __cplusplus
14820 #endif
14823 main ()
14825 return f != $ac_func;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest$ac_exeext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 eval "$as_ac_var=yes"
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 eval "$as_ac_var=no"
14859 rm -f conftest.err conftest.$ac_objext \
14860 conftest$ac_exeext conftest.$ac_ext
14862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14864 if test `eval echo '${'$as_ac_var'}'` = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867 _ACEOF
14870 done
14877 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14878 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14879 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14880 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14886 ac_ext=cc
14887 ac_cpp='$CXXCPP $CPPFLAGS'
14888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <math.h>
14900 main ()
14902 ldexpf(0, 0);
14904 return 0;
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909 (eval $ac_compile) 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_cxx_werror_flag"
14917 || test ! -s conftest.err'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 glibcxx_cv_func_ldexpf_use=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 glibcxx_cv_func_ldexpf_use=no
14936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14937 ac_ext=c
14938 ac_cpp='$CPP $CPPFLAGS'
14939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14947 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14948 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14950 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14952 for ac_func in ldexpf
14954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 echo "$as_me:$LINENO: checking for $ac_func" >&5
14956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14957 if eval "test \"\${$as_ac_var+set}\" = set"; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960 if test x$gcc_no_link = xyes; then
14961 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14963 { (exit 1); exit 1; }; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14973 #define $ac_func innocuous_$ac_func
14975 /* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char $ac_func (); below.
14977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978 <limits.h> exists even on freestanding compilers. */
14980 #ifdef __STDC__
14981 # include <limits.h>
14982 #else
14983 # include <assert.h>
14984 #endif
14986 #undef $ac_func
14988 /* Override any gcc2 internal prototype to avoid an error. */
14989 #ifdef __cplusplus
14990 extern "C"
14992 #endif
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
14995 char $ac_func ();
14996 /* The GNU C library defines this for functions which it implements
14997 to always fail with ENOSYS. Some functions are actually named
14998 something starting with __ and the normal name is an alias. */
14999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 choke me
15001 #else
15002 char (*f) () = $ac_func;
15003 #endif
15004 #ifdef __cplusplus
15006 #endif
15009 main ()
15011 return f != $ac_func;
15013 return 0;
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018 (eval $ac_link) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 eval "$as_ac_var=yes"
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 eval "$as_ac_var=no"
15045 rm -f conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15050 if test `eval echo '${'$as_ac_var'}'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15053 _ACEOF
15056 done
15058 else
15060 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
15061 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
15062 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
15063 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15069 ac_ext=cc
15070 ac_cpp='$CXXCPP $CPPFLAGS'
15071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <math.h>
15083 main ()
15085 _ldexpf(0, 0);
15087 return 0;
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>conftest.er1
15093 ac_status=$?
15094 grep -v '^ *+' conftest.er1 >conftest.err
15095 rm -f conftest.er1
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_cxx_werror_flag"
15100 || test ! -s conftest.err'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 glibcxx_cv_func__ldexpf_use=yes
15113 else
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 glibcxx_cv_func__ldexpf_use=no
15119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15120 ac_ext=c
15121 ac_cpp='$CPP $CPPFLAGS'
15122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15130 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
15131 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
15133 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
15135 for ac_func in _ldexpf
15137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 echo "$as_me:$LINENO: checking for $ac_func" >&5
15139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15140 if eval "test \"\${$as_ac_var+set}\" = set"; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 if test x$gcc_no_link = xyes; then
15144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15146 { (exit 1); exit 1; }; }
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15156 #define $ac_func innocuous_$ac_func
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char $ac_func (); below.
15160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15161 <limits.h> exists even on freestanding compilers. */
15163 #ifdef __STDC__
15164 # include <limits.h>
15165 #else
15166 # include <assert.h>
15167 #endif
15169 #undef $ac_func
15171 /* Override any gcc2 internal prototype to avoid an error. */
15172 #ifdef __cplusplus
15173 extern "C"
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178 char $ac_func ();
15179 /* The GNU C library defines this for functions which it implements
15180 to always fail with ENOSYS. Some functions are actually named
15181 something starting with __ and the normal name is an alias. */
15182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 choke me
15184 #else
15185 char (*f) () = $ac_func;
15186 #endif
15187 #ifdef __cplusplus
15189 #endif
15192 main ()
15194 return f != $ac_func;
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15201 (eval $ac_link) 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag"
15209 || test ! -s conftest.err'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; } &&
15215 { ac_try='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 eval "$as_ac_var=yes"
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 eval "$as_ac_var=no"
15228 rm -f conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext conftest.$ac_ext
15231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15233 if test `eval echo '${'$as_ac_var'}'` = yes; then
15234 cat >>confdefs.h <<_ACEOF
15235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15236 _ACEOF
15239 done
15246 echo "$as_me:$LINENO: checking for logf declaration" >&5
15247 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15248 if test x${glibcxx_cv_func_logf_use+set} != xset; then
15249 if test "${glibcxx_cv_func_logf_use+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15255 ac_ext=cc
15256 ac_cpp='$CXXCPP $CPPFLAGS'
15257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 #include <math.h>
15268 #ifdef HAVE_IEEEFP_H
15269 #include <ieeefp.h>
15270 #endif
15273 main ()
15275 logf(0);
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282 (eval $ac_compile) 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_cxx_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 glibcxx_cv_func_logf_use=yes
15303 else
15304 echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15307 glibcxx_cv_func_logf_use=no
15309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15310 ac_ext=c
15311 ac_cpp='$CPP $CPPFLAGS'
15312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15320 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15321 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15323 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15325 for ac_func in logf
15327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15328 echo "$as_me:$LINENO: checking for $ac_func" >&5
15329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15330 if eval "test \"\${$as_ac_var+set}\" = set"; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333 if test x$gcc_no_link = xyes; then
15334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15336 { (exit 1); exit 1; }; }
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15346 #define $ac_func innocuous_$ac_func
15348 /* System header to define __stub macros and hopefully few prototypes,
15349 which can conflict with char $ac_func (); below.
15350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15351 <limits.h> exists even on freestanding compilers. */
15353 #ifdef __STDC__
15354 # include <limits.h>
15355 #else
15356 # include <assert.h>
15357 #endif
15359 #undef $ac_func
15361 /* Override any gcc2 internal prototype to avoid an error. */
15362 #ifdef __cplusplus
15363 extern "C"
15365 #endif
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368 char $ac_func ();
15369 /* The GNU C library defines this for functions which it implements
15370 to always fail with ENOSYS. Some functions are actually named
15371 something starting with __ and the normal name is an alias. */
15372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15373 choke me
15374 #else
15375 char (*f) () = $ac_func;
15376 #endif
15377 #ifdef __cplusplus
15379 #endif
15382 main ()
15384 return f != $ac_func;
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15391 (eval $ac_link) 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -z "$ac_c_werror_flag"
15399 || test ! -s conftest.err'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 eval "$as_ac_var=yes"
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 eval "$as_ac_var=no"
15418 rm -f conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15423 if test `eval echo '${'$as_ac_var'}'` = yes; then
15424 cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15426 _ACEOF
15429 done
15431 else
15433 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15434 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15435 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15436 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15442 ac_ext=cc
15443 ac_cpp='$CXXCPP $CPPFLAGS'
15444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <math.h>
15455 #ifdef HAVE_IEEEFP_H
15456 #include <ieeefp.h>
15457 #endif
15460 main ()
15462 _logf(0);
15464 return 0;
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -z "$ac_cxx_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 glibcxx_cv_func__logf_use=yes
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 glibcxx_cv_func__logf_use=no
15496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15497 ac_ext=c
15498 ac_cpp='$CPP $CPPFLAGS'
15499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15508 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15510 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15512 for ac_func in _logf
15514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15515 echo "$as_me:$LINENO: checking for $ac_func" >&5
15516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15517 if eval "test \"\${$as_ac_var+set}\" = set"; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 if test x$gcc_no_link = xyes; then
15521 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15523 { (exit 1); exit 1; }; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15533 #define $ac_func innocuous_$ac_func
15535 /* System header to define __stub macros and hopefully few prototypes,
15536 which can conflict with char $ac_func (); below.
15537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538 <limits.h> exists even on freestanding compilers. */
15540 #ifdef __STDC__
15541 # include <limits.h>
15542 #else
15543 # include <assert.h>
15544 #endif
15546 #undef $ac_func
15548 /* Override any gcc2 internal prototype to avoid an error. */
15549 #ifdef __cplusplus
15550 extern "C"
15552 #endif
15553 /* We use char because int might match the return type of a gcc2
15554 builtin and then its argument prototype would still apply. */
15555 char $ac_func ();
15556 /* The GNU C library defines this for functions which it implements
15557 to always fail with ENOSYS. Some functions are actually named
15558 something starting with __ and the normal name is an alias. */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 choke me
15561 #else
15562 char (*f) () = $ac_func;
15563 #endif
15564 #ifdef __cplusplus
15566 #endif
15569 main ()
15571 return f != $ac_func;
15573 return 0;
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 eval "$as_ac_var=yes"
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 eval "$as_ac_var=no"
15605 rm -f conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613 _ACEOF
15616 done
15623 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15624 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15625 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15626 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15632 ac_ext=cc
15633 ac_cpp='$CXXCPP $CPPFLAGS'
15634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <math.h>
15645 #ifdef HAVE_IEEEFP_H
15646 #include <ieeefp.h>
15647 #endif
15650 main ()
15652 log10f(0);
15654 return 0;
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_cxx_werror_flag"
15667 || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 glibcxx_cv_func_log10f_use=yes
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 glibcxx_cv_func_log10f_use=no
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15697 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15698 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15700 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15702 for ac_func in log10f
15704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15705 echo "$as_me:$LINENO: checking for $ac_func" >&5
15706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15707 if eval "test \"\${$as_ac_var+set}\" = set"; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710 if test x$gcc_no_link = xyes; then
15711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15713 { (exit 1); exit 1; }; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15723 #define $ac_func innocuous_$ac_func
15725 /* System header to define __stub macros and hopefully few prototypes,
15726 which can conflict with char $ac_func (); below.
15727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15728 <limits.h> exists even on freestanding compilers. */
15730 #ifdef __STDC__
15731 # include <limits.h>
15732 #else
15733 # include <assert.h>
15734 #endif
15736 #undef $ac_func
15738 /* Override any gcc2 internal prototype to avoid an error. */
15739 #ifdef __cplusplus
15740 extern "C"
15742 #endif
15743 /* We use char because int might match the return type of a gcc2
15744 builtin and then its argument prototype would still apply. */
15745 char $ac_func ();
15746 /* The GNU C library defines this for functions which it implements
15747 to always fail with ENOSYS. Some functions are actually named
15748 something starting with __ and the normal name is an alias. */
15749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15750 choke me
15751 #else
15752 char (*f) () = $ac_func;
15753 #endif
15754 #ifdef __cplusplus
15756 #endif
15759 main ()
15761 return f != $ac_func;
15763 return 0;
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15768 (eval $ac_link) 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag"
15776 || test ! -s conftest.err'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 eval "$as_ac_var=yes"
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 eval "$as_ac_var=no"
15795 rm -f conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15806 done
15808 else
15810 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15811 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15812 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15813 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15819 ac_ext=cc
15820 ac_cpp='$CXXCPP $CPPFLAGS'
15821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <math.h>
15832 #ifdef HAVE_IEEEFP_H
15833 #include <ieeefp.h>
15834 #endif
15837 main ()
15839 _log10f(0);
15841 return 0;
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_cxx_werror_flag"
15854 || test ! -s conftest.err'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 glibcxx_cv_func__log10f_use=yes
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 glibcxx_cv_func__log10f_use=no
15873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874 ac_ext=c
15875 ac_cpp='$CPP $CPPFLAGS'
15876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15884 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15885 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15887 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15889 for ac_func in _log10f
15891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15892 echo "$as_me:$LINENO: checking for $ac_func" >&5
15893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_var+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897 if test x$gcc_no_link = xyes; then
15898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15900 { (exit 1); exit 1; }; }
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15910 #define $ac_func innocuous_$ac_func
15912 /* System header to define __stub macros and hopefully few prototypes,
15913 which can conflict with char $ac_func (); below.
15914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915 <limits.h> exists even on freestanding compilers. */
15917 #ifdef __STDC__
15918 # include <limits.h>
15919 #else
15920 # include <assert.h>
15921 #endif
15923 #undef $ac_func
15925 /* Override any gcc2 internal prototype to avoid an error. */
15926 #ifdef __cplusplus
15927 extern "C"
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15932 char $ac_func ();
15933 /* The GNU C library defines this for functions which it implements
15934 to always fail with ENOSYS. Some functions are actually named
15935 something starting with __ and the normal name is an alias. */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15937 choke me
15938 #else
15939 char (*f) () = $ac_func;
15940 #endif
15941 #ifdef __cplusplus
15943 #endif
15946 main ()
15948 return f != $ac_func;
15950 return 0;
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 (eval $ac_link) 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest$ac_exeext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 eval "$as_ac_var=yes"
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 eval "$as_ac_var=no"
15982 rm -f conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15990 _ACEOF
15993 done
16000 echo "$as_me:$LINENO: checking for modff declaration" >&5
16001 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
16002 if test x${glibcxx_cv_func_modff_use+set} != xset; then
16003 if test "${glibcxx_cv_func_modff_use+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16009 ac_ext=cc
16010 ac_cpp='$CXXCPP $CPPFLAGS'
16011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 #include <math.h>
16023 main ()
16025 modff(0, 0);
16027 return 0;
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -z "$ac_cxx_werror_flag"
16040 || test ! -s conftest.err'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 glibcxx_cv_func_modff_use=yes
16053 else
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 glibcxx_cv_func_modff_use=no
16059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060 ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16070 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
16071 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
16073 if test x$glibcxx_cv_func_modff_use = x"yes"; then
16075 for ac_func in modff
16077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16078 echo "$as_me:$LINENO: checking for $ac_func" >&5
16079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16080 if eval "test \"\${$as_ac_var+set}\" = set"; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083 if test x$gcc_no_link = xyes; then
16084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16086 { (exit 1); exit 1; }; }
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16096 #define $ac_func innocuous_$ac_func
16098 /* System header to define __stub macros and hopefully few prototypes,
16099 which can conflict with char $ac_func (); below.
16100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101 <limits.h> exists even on freestanding compilers. */
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16109 #undef $ac_func
16111 /* Override any gcc2 internal prototype to avoid an error. */
16112 #ifdef __cplusplus
16113 extern "C"
16115 #endif
16116 /* We use char because int might match the return type of a gcc2
16117 builtin and then its argument prototype would still apply. */
16118 char $ac_func ();
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16123 choke me
16124 #else
16125 char (*f) () = $ac_func;
16126 #endif
16127 #ifdef __cplusplus
16129 #endif
16132 main ()
16134 return f != $ac_func;
16136 return 0;
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16141 (eval $ac_link) 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag"
16149 || test ! -s conftest.err'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest$ac_exeext'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 eval "$as_ac_var=yes"
16162 else
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 eval "$as_ac_var=no"
16168 rm -f conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16173 if test `eval echo '${'$as_ac_var'}'` = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16176 _ACEOF
16179 done
16181 else
16183 echo "$as_me:$LINENO: checking for _modff declaration" >&5
16184 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16185 if test x${glibcxx_cv_func__modff_use+set} != xset; then
16186 if test "${glibcxx_cv_func__modff_use+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16192 ac_ext=cc
16193 ac_cpp='$CXXCPP $CPPFLAGS'
16194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 #include <math.h>
16206 main ()
16208 _modff(0, 0);
16210 return 0;
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>conftest.er1
16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
16222 { ac_try='test -z "$ac_cxx_werror_flag"
16223 || test ! -s conftest.err'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 glibcxx_cv_func__modff_use=yes
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 glibcxx_cv_func__modff_use=no
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 ac_ext=c
16244 ac_cpp='$CPP $CPPFLAGS'
16245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16253 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16254 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16256 if test x$glibcxx_cv_func__modff_use = x"yes"; then
16258 for ac_func in _modff
16260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16261 echo "$as_me:$LINENO: checking for $ac_func" >&5
16262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16263 if eval "test \"\${$as_ac_var+set}\" = set"; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266 if test x$gcc_no_link = xyes; then
16267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16269 { (exit 1); exit 1; }; }
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h. */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16279 #define $ac_func innocuous_$ac_func
16281 /* System header to define __stub macros and hopefully few prototypes,
16282 which can conflict with char $ac_func (); below.
16283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16284 <limits.h> exists even on freestanding compilers. */
16286 #ifdef __STDC__
16287 # include <limits.h>
16288 #else
16289 # include <assert.h>
16290 #endif
16292 #undef $ac_func
16294 /* Override any gcc2 internal prototype to avoid an error. */
16295 #ifdef __cplusplus
16296 extern "C"
16298 #endif
16299 /* We use char because int might match the return type of a gcc2
16300 builtin and then its argument prototype would still apply. */
16301 char $ac_func ();
16302 /* The GNU C library defines this for functions which it implements
16303 to always fail with ENOSYS. Some functions are actually named
16304 something starting with __ and the normal name is an alias. */
16305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16306 choke me
16307 #else
16308 char (*f) () = $ac_func;
16309 #endif
16310 #ifdef __cplusplus
16312 #endif
16315 main ()
16317 return f != $ac_func;
16319 return 0;
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest$ac_exeext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 eval "$as_ac_var=yes"
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 eval "$as_ac_var=no"
16351 rm -f conftest.err conftest.$ac_objext \
16352 conftest$ac_exeext conftest.$ac_ext
16354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16356 if test `eval echo '${'$as_ac_var'}'` = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16359 _ACEOF
16362 done
16369 echo "$as_me:$LINENO: checking for powf declaration" >&5
16370 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16371 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16372 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16378 ac_ext=cc
16379 ac_cpp='$CXXCPP $CPPFLAGS'
16380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h. */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 #include <math.h>
16392 main ()
16394 powf(0, 0);
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>conftest.er1
16402 ac_status=$?
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_cxx_werror_flag"
16409 || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 glibcxx_cv_func_powf_use=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 glibcxx_cv_func_powf_use=no
16428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16429 ac_ext=c
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16439 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16440 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16442 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16444 for ac_func in powf
16446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16447 echo "$as_me:$LINENO: checking for $ac_func" >&5
16448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16449 if eval "test \"\${$as_ac_var+set}\" = set"; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452 if test x$gcc_no_link = xyes; then
16453 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16455 { (exit 1); exit 1; }; }
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16465 #define $ac_func innocuous_$ac_func
16467 /* System header to define __stub macros and hopefully few prototypes,
16468 which can conflict with char $ac_func (); below.
16469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16470 <limits.h> exists even on freestanding compilers. */
16472 #ifdef __STDC__
16473 # include <limits.h>
16474 #else
16475 # include <assert.h>
16476 #endif
16478 #undef $ac_func
16480 /* Override any gcc2 internal prototype to avoid an error. */
16481 #ifdef __cplusplus
16482 extern "C"
16484 #endif
16485 /* We use char because int might match the return type of a gcc2
16486 builtin and then its argument prototype would still apply. */
16487 char $ac_func ();
16488 /* The GNU C library defines this for functions which it implements
16489 to always fail with ENOSYS. Some functions are actually named
16490 something starting with __ and the normal name is an alias. */
16491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16492 choke me
16493 #else
16494 char (*f) () = $ac_func;
16495 #endif
16496 #ifdef __cplusplus
16498 #endif
16501 main ()
16503 return f != $ac_func;
16505 return 0;
16507 _ACEOF
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510 (eval $ac_link) 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag"
16518 || test ! -s conftest.err'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 eval "$as_ac_var=yes"
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 eval "$as_ac_var=no"
16537 rm -f conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16542 if test `eval echo '${'$as_ac_var'}'` = yes; then
16543 cat >>confdefs.h <<_ACEOF
16544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16545 _ACEOF
16548 done
16550 else
16552 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16553 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16554 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16555 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16561 ac_ext=cc
16562 ac_cpp='$CXXCPP $CPPFLAGS'
16563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <math.h>
16575 main ()
16577 _powf(0, 0);
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext
16583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16584 (eval $ac_compile) 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
16591 { ac_try='test -z "$ac_cxx_werror_flag"
16592 || test ! -s conftest.err'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 glibcxx_cv_func__powf_use=yes
16605 else
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 glibcxx_cv_func__powf_use=no
16611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16612 ac_ext=c
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16622 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16623 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16625 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16627 for ac_func in _powf
16629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 echo "$as_me:$LINENO: checking for $ac_func" >&5
16631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_var+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 if test x$gcc_no_link = xyes; then
16636 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16638 { (exit 1); exit 1; }; }
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h. */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16648 #define $ac_func innocuous_$ac_func
16650 /* System header to define __stub macros and hopefully few prototypes,
16651 which can conflict with char $ac_func (); below.
16652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16653 <limits.h> exists even on freestanding compilers. */
16655 #ifdef __STDC__
16656 # include <limits.h>
16657 #else
16658 # include <assert.h>
16659 #endif
16661 #undef $ac_func
16663 /* Override any gcc2 internal prototype to avoid an error. */
16664 #ifdef __cplusplus
16665 extern "C"
16667 #endif
16668 /* We use char because int might match the return type of a gcc2
16669 builtin and then its argument prototype would still apply. */
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675 choke me
16676 #else
16677 char (*f) () = $ac_func;
16678 #endif
16679 #ifdef __cplusplus
16681 #endif
16684 main ()
16686 return f != $ac_func;
16688 return 0;
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16693 (eval $ac_link) 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -z "$ac_c_werror_flag"
16701 || test ! -s conftest.err'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } &&
16707 { ac_try='test -s conftest$ac_exeext'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 eval "$as_ac_var=yes"
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 eval "$as_ac_var=no"
16720 rm -f conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16725 if test `eval echo '${'$as_ac_var'}'` = yes; then
16726 cat >>confdefs.h <<_ACEOF
16727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16728 _ACEOF
16731 done
16738 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16739 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16740 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16741 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16747 ac_ext=cc
16748 ac_cpp='$CXXCPP $CPPFLAGS'
16749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16753 cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h. */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #include <math.h>
16760 #ifdef HAVE_IEEEFP_H
16761 #include <ieeefp.h>
16762 #endif
16765 main ()
16767 sqrtf(0);
16769 return 0;
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>conftest.er1
16775 ac_status=$?
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_cxx_werror_flag"
16782 || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 glibcxx_cv_func_sqrtf_use=yes
16795 else
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 glibcxx_cv_func_sqrtf_use=no
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 ac_ext=c
16803 ac_cpp='$CPP $CPPFLAGS'
16804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16812 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16813 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16815 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16817 for ac_func in sqrtf
16819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16820 echo "$as_me:$LINENO: checking for $ac_func" >&5
16821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16822 if eval "test \"\${$as_ac_var+set}\" = set"; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 if test x$gcc_no_link = xyes; then
16826 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16828 { (exit 1); exit 1; }; }
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16838 #define $ac_func innocuous_$ac_func
16840 /* System header to define __stub macros and hopefully few prototypes,
16841 which can conflict with char $ac_func (); below.
16842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16843 <limits.h> exists even on freestanding compilers. */
16845 #ifdef __STDC__
16846 # include <limits.h>
16847 #else
16848 # include <assert.h>
16849 #endif
16851 #undef $ac_func
16853 /* Override any gcc2 internal prototype to avoid an error. */
16854 #ifdef __cplusplus
16855 extern "C"
16857 #endif
16858 /* We use char because int might match the return type of a gcc2
16859 builtin and then its argument prototype would still apply. */
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16865 choke me
16866 #else
16867 char (*f) () = $ac_func;
16868 #endif
16869 #ifdef __cplusplus
16871 #endif
16874 main ()
16876 return f != $ac_func;
16878 return 0;
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883 (eval $ac_link) 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag"
16891 || test ! -s conftest.err'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest$ac_exeext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 eval "$as_ac_var=yes"
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 eval "$as_ac_var=no"
16910 rm -f conftest.err conftest.$ac_objext \
16911 conftest$ac_exeext conftest.$ac_ext
16913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16915 if test `eval echo '${'$as_ac_var'}'` = yes; then
16916 cat >>confdefs.h <<_ACEOF
16917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16918 _ACEOF
16921 done
16923 else
16925 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16926 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16927 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16928 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16934 ac_ext=cc
16935 ac_cpp='$CXXCPP $CPPFLAGS'
16936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h. */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 #include <math.h>
16947 #ifdef HAVE_IEEEFP_H
16948 #include <ieeefp.h>
16949 #endif
16952 main ()
16954 _sqrtf(0);
16956 return 0;
16958 _ACEOF
16959 rm -f conftest.$ac_objext
16960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961 (eval $ac_compile) 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -z "$ac_cxx_werror_flag"
16969 || test ! -s conftest.err'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 glibcxx_cv_func__sqrtf_use=yes
16982 else
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 glibcxx_cv_func__sqrtf_use=no
16988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16989 ac_ext=c
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16999 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
17000 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
17002 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
17004 for ac_func in _sqrtf
17006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007 echo "$as_me:$LINENO: checking for $ac_func" >&5
17008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17009 if eval "test \"\${$as_ac_var+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012 if test x$gcc_no_link = xyes; then
17013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17015 { (exit 1); exit 1; }; }
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17025 #define $ac_func innocuous_$ac_func
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char $ac_func (); below.
17029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030 <limits.h> exists even on freestanding compilers. */
17032 #ifdef __STDC__
17033 # include <limits.h>
17034 #else
17035 # include <assert.h>
17036 #endif
17038 #undef $ac_func
17040 /* Override any gcc2 internal prototype to avoid an error. */
17041 #ifdef __cplusplus
17042 extern "C"
17044 #endif
17045 /* We use char because int might match the return type of a gcc2
17046 builtin and then its argument prototype would still apply. */
17047 char $ac_func ();
17048 /* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17052 choke me
17053 #else
17054 char (*f) () = $ac_func;
17055 #endif
17056 #ifdef __cplusplus
17058 #endif
17061 main ()
17063 return f != $ac_func;
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070 (eval $ac_link) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest$ac_exeext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 eval "$as_ac_var=yes"
17091 else
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 eval "$as_ac_var=no"
17097 rm -f conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17102 if test `eval echo '${'$as_ac_var'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105 _ACEOF
17108 done
17115 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
17116 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
17117 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
17118 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17124 ac_ext=cc
17125 ac_cpp='$CXXCPP $CPPFLAGS'
17126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 #include <math.h>
17138 main ()
17140 sincosf(0, 0, 0);
17142 return 0;
17144 _ACEOF
17145 rm -f conftest.$ac_objext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17147 (eval $ac_compile) 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_cxx_werror_flag"
17155 || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest.$ac_objext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 glibcxx_cv_func_sincosf_use=yes
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 glibcxx_cv_func_sincosf_use=no
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17175 ac_ext=c
17176 ac_cpp='$CPP $CPPFLAGS'
17177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17185 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17186 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17188 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17190 for ac_func in sincosf
17192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17193 echo "$as_me:$LINENO: checking for $ac_func" >&5
17194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17195 if eval "test \"\${$as_ac_var+set}\" = set"; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 if test x$gcc_no_link = xyes; then
17199 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17201 { (exit 1); exit 1; }; }
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17218 #ifdef __STDC__
17219 # include <limits.h>
17220 #else
17221 # include <assert.h>
17222 #endif
17224 #undef $ac_func
17226 /* Override any gcc2 internal prototype to avoid an error. */
17227 #ifdef __cplusplus
17228 extern "C"
17230 #endif
17231 /* We use char because int might match the return type of a gcc2
17232 builtin and then its argument prototype would still apply. */
17233 char $ac_func ();
17234 /* The GNU C library defines this for functions which it implements
17235 to always fail with ENOSYS. Some functions are actually named
17236 something starting with __ and the normal name is an alias. */
17237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17238 choke me
17239 #else
17240 char (*f) () = $ac_func;
17241 #endif
17242 #ifdef __cplusplus
17244 #endif
17247 main ()
17249 return f != $ac_func;
17251 return 0;
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256 (eval $ac_link) 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag"
17264 || test ! -s conftest.err'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest$ac_exeext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 eval "$as_ac_var=yes"
17277 else
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 eval "$as_ac_var=no"
17283 rm -f conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17288 if test `eval echo '${'$as_ac_var'}'` = yes; then
17289 cat >>confdefs.h <<_ACEOF
17290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17291 _ACEOF
17294 done
17296 else
17298 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17299 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17300 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17301 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17307 ac_ext=cc
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h. */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 #include <math.h>
17321 main ()
17323 _sincosf(0, 0, 0);
17325 return 0;
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330 (eval $ac_compile) 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_cxx_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest.$ac_objext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 glibcxx_cv_func__sincosf_use=yes
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 glibcxx_cv_func__sincosf_use=no
17357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17358 ac_ext=c
17359 ac_cpp='$CPP $CPPFLAGS'
17360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17368 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17369 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17371 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17373 for ac_func in _sincosf
17375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17376 echo "$as_me:$LINENO: checking for $ac_func" >&5
17377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17378 if eval "test \"\${$as_ac_var+set}\" = set"; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381 if test x$gcc_no_link = xyes; then
17382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17384 { (exit 1); exit 1; }; }
17386 cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h. */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17394 #define $ac_func innocuous_$ac_func
17396 /* System header to define __stub macros and hopefully few prototypes,
17397 which can conflict with char $ac_func (); below.
17398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17399 <limits.h> exists even on freestanding compilers. */
17401 #ifdef __STDC__
17402 # include <limits.h>
17403 #else
17404 # include <assert.h>
17405 #endif
17407 #undef $ac_func
17409 /* Override any gcc2 internal prototype to avoid an error. */
17410 #ifdef __cplusplus
17411 extern "C"
17413 #endif
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17416 char $ac_func ();
17417 /* The GNU C library defines this for functions which it implements
17418 to always fail with ENOSYS. Some functions are actually named
17419 something starting with __ and the normal name is an alias. */
17420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17421 choke me
17422 #else
17423 char (*f) () = $ac_func;
17424 #endif
17425 #ifdef __cplusplus
17427 #endif
17430 main ()
17432 return f != $ac_func;
17434 return 0;
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17439 (eval $ac_link) 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag"
17447 || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 eval "$as_ac_var=yes"
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 eval "$as_ac_var=no"
17466 rm -f conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17471 if test `eval echo '${'$as_ac_var'}'` = yes; then
17472 cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474 _ACEOF
17477 done
17484 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17485 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17486 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17487 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17493 ac_ext=cc
17494 ac_cpp='$CXXCPP $CPPFLAGS'
17495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <math.h>
17506 #ifdef HAVE_IEEEFP_H
17507 #include <ieeefp.h>
17508 #endif
17511 main ()
17513 finitef(0);
17515 return 0;
17517 _ACEOF
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_cxx_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 glibcxx_cv_func_finitef_use=yes
17541 else
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 glibcxx_cv_func_finitef_use=no
17547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17548 ac_ext=c
17549 ac_cpp='$CPP $CPPFLAGS'
17550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17559 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17561 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17563 for ac_func in finitef
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_var+set}\" = set"; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571 if test x$gcc_no_link = xyes; then
17572 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17573 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17574 { (exit 1); exit 1; }; }
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17584 #define $ac_func innocuous_$ac_func
17586 /* System header to define __stub macros and hopefully few prototypes,
17587 which can conflict with char $ac_func (); below.
17588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589 <limits.h> exists even on freestanding compilers. */
17591 #ifdef __STDC__
17592 # include <limits.h>
17593 #else
17594 # include <assert.h>
17595 #endif
17597 #undef $ac_func
17599 /* Override any gcc2 internal prototype to avoid an error. */
17600 #ifdef __cplusplus
17601 extern "C"
17603 #endif
17604 /* We use char because int might match the return type of a gcc2
17605 builtin and then its argument prototype would still apply. */
17606 char $ac_func ();
17607 /* The GNU C library defines this for functions which it implements
17608 to always fail with ENOSYS. Some functions are actually named
17609 something starting with __ and the normal name is an alias. */
17610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17611 choke me
17612 #else
17613 char (*f) () = $ac_func;
17614 #endif
17615 #ifdef __cplusplus
17617 #endif
17620 main ()
17622 return f != $ac_func;
17624 return 0;
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>conftest.er1
17630 ac_status=$?
17631 grep -v '^ *+' conftest.er1 >conftest.err
17632 rm -f conftest.er1
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } &&
17636 { ac_try='test -z "$ac_c_werror_flag"
17637 || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 eval "$as_ac_var=yes"
17650 else
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 eval "$as_ac_var=no"
17656 rm -f conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 _ACEOF
17667 done
17669 else
17671 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17672 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17673 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17674 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17680 ac_ext=cc
17681 ac_cpp='$CXXCPP $CPPFLAGS'
17682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 #include <math.h>
17693 #ifdef HAVE_IEEEFP_H
17694 #include <ieeefp.h>
17695 #endif
17698 main ()
17700 _finitef(0);
17702 return 0;
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_cxx_werror_flag"
17715 || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 glibcxx_cv_func__finitef_use=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 glibcxx_cv_func__finitef_use=no
17734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735 ac_ext=c
17736 ac_cpp='$CPP $CPPFLAGS'
17737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17745 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17746 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17748 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17750 for ac_func in _finitef
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17755 if eval "test \"\${$as_ac_var+set}\" = set"; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 if test x$gcc_no_link = xyes; then
17759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17761 { (exit 1); exit 1; }; }
17763 cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h. */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17771 #define $ac_func innocuous_$ac_func
17773 /* System header to define __stub macros and hopefully few prototypes,
17774 which can conflict with char $ac_func (); below.
17775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17776 <limits.h> exists even on freestanding compilers. */
17778 #ifdef __STDC__
17779 # include <limits.h>
17780 #else
17781 # include <assert.h>
17782 #endif
17784 #undef $ac_func
17786 /* Override any gcc2 internal prototype to avoid an error. */
17787 #ifdef __cplusplus
17788 extern "C"
17790 #endif
17791 /* We use char because int might match the return type of a gcc2
17792 builtin and then its argument prototype would still apply. */
17793 char $ac_func ();
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798 choke me
17799 #else
17800 char (*f) () = $ac_func;
17801 #endif
17802 #ifdef __cplusplus
17804 #endif
17807 main ()
17809 return f != $ac_func;
17811 return 0;
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816 (eval $ac_link) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 eval "$as_ac_var=yes"
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 eval "$as_ac_var=no"
17843 rm -f conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17848 if test `eval echo '${'$as_ac_var'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17851 _ACEOF
17854 done
17861 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17862 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17863 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17869 ac_ext=cc
17870 ac_cpp='$CXXCPP $CPPFLAGS'
17871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <math.h>
17883 main ()
17885 `for x in acosl asinl atanl \
17886 cosl sinl tanl \
17887 coshl sinhl tanhl; do echo "$x (0);"; done`
17889 return 0;
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17894 (eval $ac_compile) 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -z "$ac_cxx_werror_flag"
17902 || test ! -s conftest.err'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest.$ac_objext'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 glibcxx_cv_func_long_double_trig_use=yes
17915 else
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17919 glibcxx_cv_func_long_double_trig_use=no
17921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17922 ac_ext=c
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17930 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17931 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17932 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17942 for ac_func in acosl asinl atanl \
17943 cosl sinl tanl \
17944 coshl sinhl tanhl
17946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17947 echo "$as_me:$LINENO: checking for $ac_func" >&5
17948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17949 if eval "test \"\${$as_ac_var+set}\" = set"; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952 if test x$gcc_no_link = xyes; then
17953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17955 { (exit 1); exit 1; }; }
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17965 #define $ac_func innocuous_$ac_func
17967 /* System header to define __stub macros and hopefully few prototypes,
17968 which can conflict with char $ac_func (); below.
17969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970 <limits.h> exists even on freestanding compilers. */
17972 #ifdef __STDC__
17973 # include <limits.h>
17974 #else
17975 # include <assert.h>
17976 #endif
17978 #undef $ac_func
17980 /* Override any gcc2 internal prototype to avoid an error. */
17981 #ifdef __cplusplus
17982 extern "C"
17984 #endif
17985 /* We use char because int might match the return type of a gcc2
17986 builtin and then its argument prototype would still apply. */
17987 char $ac_func ();
17988 /* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17992 choke me
17993 #else
17994 char (*f) () = $ac_func;
17995 #endif
17996 #ifdef __cplusplus
17998 #endif
18001 main ()
18003 return f != $ac_func;
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 (eval $ac_link) 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 eval "$as_ac_var=yes"
18031 else
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 eval "$as_ac_var=no"
18037 rm -f conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
18040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18042 if test `eval echo '${'$as_ac_var'}'` = yes; then
18043 cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18045 _ACEOF
18048 done
18053 echo "$as_me:$LINENO: checking for long double round functions" >&5
18054 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
18055 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18061 ac_ext=cc
18062 ac_cpp='$CXXCPP $CPPFLAGS'
18063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 #include <math.h>
18075 main ()
18077 `for x in ceill floorl; do echo "$x (0);"; done`
18079 return 0;
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_cxx_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 glibcxx_cv_func_long_double_round_use=yes
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 glibcxx_cv_func_long_double_round_use=no
18111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18112 ac_ext=c
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18120 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
18121 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
18122 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
18125 for ac_func in ceill floorl
18127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18128 echo "$as_me:$LINENO: checking for $ac_func" >&5
18129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18130 if eval "test \"\${$as_ac_var+set}\" = set"; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 if test x$gcc_no_link = xyes; then
18134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18136 { (exit 1); exit 1; }; }
18138 cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18146 #define $ac_func innocuous_$ac_func
18148 /* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func (); below.
18150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151 <limits.h> exists even on freestanding compilers. */
18153 #ifdef __STDC__
18154 # include <limits.h>
18155 #else
18156 # include <assert.h>
18157 #endif
18159 #undef $ac_func
18161 /* Override any gcc2 internal prototype to avoid an error. */
18162 #ifdef __cplusplus
18163 extern "C"
18165 #endif
18166 /* We use char because int might match the return type of a gcc2
18167 builtin and then its argument prototype would still apply. */
18168 char $ac_func ();
18169 /* The GNU C library defines this for functions which it implements
18170 to always fail with ENOSYS. Some functions are actually named
18171 something starting with __ and the normal name is an alias. */
18172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18173 choke me
18174 #else
18175 char (*f) () = $ac_func;
18176 #endif
18177 #ifdef __cplusplus
18179 #endif
18182 main ()
18184 return f != $ac_func;
18186 return 0;
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191 (eval $ac_link) 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 eval "$as_ac_var=yes"
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 eval "$as_ac_var=no"
18218 rm -f conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 _ACEOF
18229 done
18235 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18236 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18237 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18238 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18244 ac_ext=cc
18245 ac_cpp='$CXXCPP $CPPFLAGS'
18246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <math.h>
18257 #ifdef HAVE_IEEEFP_H
18258 #include <ieeefp.h>
18259 #endif
18262 main ()
18264 isnanl(0);
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_cxx_werror_flag"
18279 || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 glibcxx_cv_func_isnanl_use=yes
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 glibcxx_cv_func_isnanl_use=no
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299 ac_ext=c
18300 ac_cpp='$CPP $CPPFLAGS'
18301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18310 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18312 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18314 for ac_func in isnanl
18316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18317 echo "$as_me:$LINENO: checking for $ac_func" >&5
18318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18319 if eval "test \"\${$as_ac_var+set}\" = set"; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322 if test x$gcc_no_link = xyes; then
18323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18325 { (exit 1); exit 1; }; }
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18335 #define $ac_func innocuous_$ac_func
18337 /* System header to define __stub macros and hopefully few prototypes,
18338 which can conflict with char $ac_func (); below.
18339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 <limits.h> exists even on freestanding compilers. */
18342 #ifdef __STDC__
18343 # include <limits.h>
18344 #else
18345 # include <assert.h>
18346 #endif
18348 #undef $ac_func
18350 /* Override any gcc2 internal prototype to avoid an error. */
18351 #ifdef __cplusplus
18352 extern "C"
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357 char $ac_func ();
18358 /* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18362 choke me
18363 #else
18364 char (*f) () = $ac_func;
18365 #endif
18366 #ifdef __cplusplus
18368 #endif
18371 main ()
18373 return f != $ac_func;
18375 return 0;
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380 (eval $ac_link) 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest$ac_exeext'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 eval "$as_ac_var=yes"
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 eval "$as_ac_var=no"
18407 rm -f conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18412 if test `eval echo '${'$as_ac_var'}'` = yes; then
18413 cat >>confdefs.h <<_ACEOF
18414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18415 _ACEOF
18418 done
18420 else
18422 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18423 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18424 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18425 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18431 ac_ext=cc
18432 ac_cpp='$CXXCPP $CPPFLAGS'
18433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 #include <math.h>
18444 #ifdef HAVE_IEEEFP_H
18445 #include <ieeefp.h>
18446 #endif
18449 main ()
18451 _isnanl(0);
18453 return 0;
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_cxx_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 glibcxx_cv_func__isnanl_use=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 glibcxx_cv_func__isnanl_use=no
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18486 ac_ext=c
18487 ac_cpp='$CPP $CPPFLAGS'
18488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18496 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18497 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18499 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18501 for ac_func in _isnanl
18503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504 echo "$as_me:$LINENO: checking for $ac_func" >&5
18505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18506 if eval "test \"\${$as_ac_var+set}\" = set"; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509 if test x$gcc_no_link = xyes; then
18510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18512 { (exit 1); exit 1; }; }
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18535 #undef $ac_func
18537 /* Override any gcc2 internal prototype to avoid an error. */
18538 #ifdef __cplusplus
18539 extern "C"
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544 char $ac_func ();
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18549 choke me
18550 #else
18551 char (*f) () = $ac_func;
18552 #endif
18553 #ifdef __cplusplus
18555 #endif
18558 main ()
18560 return f != $ac_func;
18562 return 0;
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag"
18575 || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588 else
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 eval "$as_ac_var=no"
18594 rm -f conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18599 if test `eval echo '${'$as_ac_var'}'` = yes; then
18600 cat >>confdefs.h <<_ACEOF
18601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 _ACEOF
18605 done
18612 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18613 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18614 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18615 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18621 ac_ext=cc
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #include <math.h>
18634 #ifdef HAVE_IEEEFP_H
18635 #include <ieeefp.h>
18636 #endif
18639 main ()
18641 isinfl(0);
18643 return 0;
18645 _ACEOF
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_cxx_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 glibcxx_cv_func_isinfl_use=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 glibcxx_cv_func_isinfl_use=no
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 ac_ext=c
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18686 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18687 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18689 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18691 for ac_func in isinfl
18693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18694 echo "$as_me:$LINENO: checking for $ac_func" >&5
18695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18696 if eval "test \"\${$as_ac_var+set}\" = set"; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 if test x$gcc_no_link = xyes; then
18700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18702 { (exit 1); exit 1; }; }
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h. */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18712 #define $ac_func innocuous_$ac_func
18714 /* System header to define __stub macros and hopefully few prototypes,
18715 which can conflict with char $ac_func (); below.
18716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717 <limits.h> exists even on freestanding compilers. */
18719 #ifdef __STDC__
18720 # include <limits.h>
18721 #else
18722 # include <assert.h>
18723 #endif
18725 #undef $ac_func
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 #ifdef __cplusplus
18729 extern "C"
18731 #endif
18732 /* We use char because int might match the return type of a gcc2
18733 builtin and then its argument prototype would still apply. */
18734 char $ac_func ();
18735 /* The GNU C library defines this for functions which it implements
18736 to always fail with ENOSYS. Some functions are actually named
18737 something starting with __ and the normal name is an alias. */
18738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18739 choke me
18740 #else
18741 char (*f) () = $ac_func;
18742 #endif
18743 #ifdef __cplusplus
18745 #endif
18748 main ()
18750 return f != $ac_func;
18752 return 0;
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 eval "$as_ac_var=yes"
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 eval "$as_ac_var=no"
18784 rm -f conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18789 if test `eval echo '${'$as_ac_var'}'` = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18792 _ACEOF
18795 done
18797 else
18799 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18800 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18801 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18802 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18808 ac_ext=cc
18809 ac_cpp='$CXXCPP $CPPFLAGS'
18810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 #include <math.h>
18821 #ifdef HAVE_IEEEFP_H
18822 #include <ieeefp.h>
18823 #endif
18826 main ()
18828 _isinfl(0);
18830 return 0;
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18835 (eval $ac_compile) 2>conftest.er1
18836 ac_status=$?
18837 grep -v '^ *+' conftest.er1 >conftest.err
18838 rm -f conftest.er1
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
18842 { ac_try='test -z "$ac_cxx_werror_flag"
18843 || test ! -s conftest.err'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 glibcxx_cv_func__isinfl_use=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 glibcxx_cv_func__isinfl_use=no
18862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18863 ac_ext=c
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18873 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18874 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18876 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18878 for ac_func in _isinfl
18880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881 echo "$as_me:$LINENO: checking for $ac_func" >&5
18882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18883 if eval "test \"\${$as_ac_var+set}\" = set"; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886 if test x$gcc_no_link = xyes; then
18887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18889 { (exit 1); exit 1; }; }
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18899 #define $ac_func innocuous_$ac_func
18901 /* System header to define __stub macros and hopefully few prototypes,
18902 which can conflict with char $ac_func (); below.
18903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18904 <limits.h> exists even on freestanding compilers. */
18906 #ifdef __STDC__
18907 # include <limits.h>
18908 #else
18909 # include <assert.h>
18910 #endif
18912 #undef $ac_func
18914 /* Override any gcc2 internal prototype to avoid an error. */
18915 #ifdef __cplusplus
18916 extern "C"
18918 #endif
18919 /* We use char because int might match the return type of a gcc2
18920 builtin and then its argument prototype would still apply. */
18921 char $ac_func ();
18922 /* The GNU C library defines this for functions which it implements
18923 to always fail with ENOSYS. Some functions are actually named
18924 something starting with __ and the normal name is an alias. */
18925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18926 choke me
18927 #else
18928 char (*f) () = $ac_func;
18929 #endif
18930 #ifdef __cplusplus
18932 #endif
18935 main ()
18937 return f != $ac_func;
18939 return 0;
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18944 (eval $ac_link) 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest$ac_exeext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 eval "$as_ac_var=yes"
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 eval "$as_ac_var=no"
18971 rm -f conftest.err conftest.$ac_objext \
18972 conftest$ac_exeext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18976 if test `eval echo '${'$as_ac_var'}'` = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18979 _ACEOF
18982 done
18989 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18990 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18991 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18992 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18998 ac_ext=cc
18999 ac_cpp='$CXXCPP $CPPFLAGS'
19000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 #include <math.h>
19012 main ()
19014 copysignl(0, 0);
19016 return 0;
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021 (eval $ac_compile) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_cxx_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 glibcxx_cv_func_copysignl_use=yes
19042 else
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 glibcxx_cv_func_copysignl_use=no
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049 ac_ext=c
19050 ac_cpp='$CPP $CPPFLAGS'
19051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
19060 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
19062 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
19064 for ac_func in copysignl
19066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19067 echo "$as_me:$LINENO: checking for $ac_func" >&5
19068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19069 if eval "test \"\${$as_ac_var+set}\" = set"; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 if test x$gcc_no_link = xyes; then
19073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19075 { (exit 1); exit 1; }; }
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19085 #define $ac_func innocuous_$ac_func
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below.
19089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090 <limits.h> exists even on freestanding compilers. */
19092 #ifdef __STDC__
19093 # include <limits.h>
19094 #else
19095 # include <assert.h>
19096 #endif
19098 #undef $ac_func
19100 /* Override any gcc2 internal prototype to avoid an error. */
19101 #ifdef __cplusplus
19102 extern "C"
19104 #endif
19105 /* We use char because int might match the return type of a gcc2
19106 builtin and then its argument prototype would still apply. */
19107 char $ac_func ();
19108 /* The GNU C library defines this for functions which it implements
19109 to always fail with ENOSYS. Some functions are actually named
19110 something starting with __ and the normal name is an alias. */
19111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19112 choke me
19113 #else
19114 char (*f) () = $ac_func;
19115 #endif
19116 #ifdef __cplusplus
19118 #endif
19121 main ()
19123 return f != $ac_func;
19125 return 0;
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130 (eval $ac_link) 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag"
19138 || test ! -s conftest.err'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest$ac_exeext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 eval "$as_ac_var=yes"
19151 else
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 eval "$as_ac_var=no"
19157 rm -f conftest.err conftest.$ac_objext \
19158 conftest$ac_exeext conftest.$ac_ext
19160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19162 if test `eval echo '${'$as_ac_var'}'` = yes; then
19163 cat >>confdefs.h <<_ACEOF
19164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19165 _ACEOF
19168 done
19170 else
19172 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19173 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19174 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19175 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19181 ac_ext=cc
19182 ac_cpp='$CXXCPP $CPPFLAGS'
19183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <math.h>
19195 main ()
19197 _copysignl(0, 0);
19199 return 0;
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try='test -z "$ac_cxx_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 glibcxx_cv_func__copysignl_use=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 glibcxx_cv_func__copysignl_use=no
19231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19232 ac_ext=c
19233 ac_cpp='$CPP $CPPFLAGS'
19234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19242 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19243 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19245 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19247 for ac_func in _copysignl
19249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19250 echo "$as_me:$LINENO: checking for $ac_func" >&5
19251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19252 if eval "test \"\${$as_ac_var+set}\" = set"; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255 if test x$gcc_no_link = xyes; then
19256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19258 { (exit 1); exit 1; }; }
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19268 #define $ac_func innocuous_$ac_func
19270 /* System header to define __stub macros and hopefully few prototypes,
19271 which can conflict with char $ac_func (); below.
19272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19273 <limits.h> exists even on freestanding compilers. */
19275 #ifdef __STDC__
19276 # include <limits.h>
19277 #else
19278 # include <assert.h>
19279 #endif
19281 #undef $ac_func
19283 /* Override any gcc2 internal prototype to avoid an error. */
19284 #ifdef __cplusplus
19285 extern "C"
19287 #endif
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19290 char $ac_func ();
19291 /* The GNU C library defines this for functions which it implements
19292 to always fail with ENOSYS. Some functions are actually named
19293 something starting with __ and the normal name is an alias. */
19294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19295 choke me
19296 #else
19297 char (*f) () = $ac_func;
19298 #endif
19299 #ifdef __cplusplus
19301 #endif
19304 main ()
19306 return f != $ac_func;
19308 return 0;
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313 (eval $ac_link) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest$ac_exeext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 eval "$as_ac_var=yes"
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 eval "$as_ac_var=no"
19340 rm -f conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19345 if test `eval echo '${'$as_ac_var'}'` = yes; then
19346 cat >>confdefs.h <<_ACEOF
19347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19348 _ACEOF
19351 done
19358 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19359 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19360 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19361 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19367 ac_ext=cc
19368 ac_cpp='$CXXCPP $CPPFLAGS'
19369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 #include <math.h>
19381 main ()
19383 atan2l(0, 0);
19385 return 0;
19387 _ACEOF
19388 rm -f conftest.$ac_objext
19389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19390 (eval $ac_compile) 2>conftest.er1
19391 ac_status=$?
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
19397 { ac_try='test -z "$ac_cxx_werror_flag"
19398 || test ! -s conftest.err'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 glibcxx_cv_func_atan2l_use=yes
19411 else
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 glibcxx_cv_func_atan2l_use=no
19417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418 ac_ext=c
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19429 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19431 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19433 for ac_func in atan2l
19435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19436 echo "$as_me:$LINENO: checking for $ac_func" >&5
19437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19438 if eval "test \"\${$as_ac_var+set}\" = set"; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441 if test x$gcc_no_link = xyes; then
19442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19444 { (exit 1); exit 1; }; }
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h. */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19454 #define $ac_func innocuous_$ac_func
19456 /* System header to define __stub macros and hopefully few prototypes,
19457 which can conflict with char $ac_func (); below.
19458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459 <limits.h> exists even on freestanding compilers. */
19461 #ifdef __STDC__
19462 # include <limits.h>
19463 #else
19464 # include <assert.h>
19465 #endif
19467 #undef $ac_func
19469 /* Override any gcc2 internal prototype to avoid an error. */
19470 #ifdef __cplusplus
19471 extern "C"
19473 #endif
19474 /* We use char because int might match the return type of a gcc2
19475 builtin and then its argument prototype would still apply. */
19476 char $ac_func ();
19477 /* The GNU C library defines this for functions which it implements
19478 to always fail with ENOSYS. Some functions are actually named
19479 something starting with __ and the normal name is an alias. */
19480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19481 choke me
19482 #else
19483 char (*f) () = $ac_func;
19484 #endif
19485 #ifdef __cplusplus
19487 #endif
19490 main ()
19492 return f != $ac_func;
19494 return 0;
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499 (eval $ac_link) 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag"
19507 || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest$ac_exeext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 eval "$as_ac_var=yes"
19520 else
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 eval "$as_ac_var=no"
19526 rm -f conftest.err conftest.$ac_objext \
19527 conftest$ac_exeext conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19534 _ACEOF
19537 done
19539 else
19541 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19542 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19543 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19544 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19550 ac_ext=cc
19551 ac_cpp='$CXXCPP $CPPFLAGS'
19552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h. */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 #include <math.h>
19564 main ()
19566 _atan2l(0, 0);
19568 return 0;
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573 (eval $ac_compile) 2>conftest.er1
19574 ac_status=$?
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_cxx_werror_flag"
19581 || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19593 glibcxx_cv_func__atan2l_use=yes
19594 else
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 glibcxx_cv_func__atan2l_use=no
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 ac_ext=c
19602 ac_cpp='$CPP $CPPFLAGS'
19603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19611 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19612 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19614 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19616 for ac_func in _atan2l
19618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19619 echo "$as_me:$LINENO: checking for $ac_func" >&5
19620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19621 if eval "test \"\${$as_ac_var+set}\" = set"; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624 if test x$gcc_no_link = xyes; then
19625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19627 { (exit 1); exit 1; }; }
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637 #define $ac_func innocuous_$ac_func
19639 /* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19644 #ifdef __STDC__
19645 # include <limits.h>
19646 #else
19647 # include <assert.h>
19648 #endif
19650 #undef $ac_func
19652 /* Override any gcc2 internal prototype to avoid an error. */
19653 #ifdef __cplusplus
19654 extern "C"
19656 #endif
19657 /* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19659 char $ac_func ();
19660 /* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
19663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19664 choke me
19665 #else
19666 char (*f) () = $ac_func;
19667 #endif
19668 #ifdef __cplusplus
19670 #endif
19673 main ()
19675 return f != $ac_func;
19677 return 0;
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 eval "$as_ac_var=yes"
19703 else
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 eval "$as_ac_var=no"
19709 rm -f conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
19712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19714 if test `eval echo '${'$as_ac_var'}'` = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19717 _ACEOF
19720 done
19727 echo "$as_me:$LINENO: checking for expl declaration" >&5
19728 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19729 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19730 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19736 ac_ext=cc
19737 ac_cpp='$CXXCPP $CPPFLAGS'
19738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <math.h>
19749 #ifdef HAVE_IEEEFP_H
19750 #include <ieeefp.h>
19751 #endif
19754 main ()
19756 expl(0);
19758 return 0;
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_cxx_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 glibcxx_cv_func_expl_use=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 glibcxx_cv_func_expl_use=no
19790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791 ac_ext=c
19792 ac_cpp='$CPP $CPPFLAGS'
19793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19802 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19804 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19806 for ac_func in expl
19808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19809 echo "$as_me:$LINENO: checking for $ac_func" >&5
19810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_var+set}\" = set"; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 if test x$gcc_no_link = xyes; then
19815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19817 { (exit 1); exit 1; }; }
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h. */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19827 #define $ac_func innocuous_$ac_func
19829 /* System header to define __stub macros and hopefully few prototypes,
19830 which can conflict with char $ac_func (); below.
19831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832 <limits.h> exists even on freestanding compilers. */
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19840 #undef $ac_func
19842 /* Override any gcc2 internal prototype to avoid an error. */
19843 #ifdef __cplusplus
19844 extern "C"
19846 #endif
19847 /* We use char because int might match the return type of a gcc2
19848 builtin and then its argument prototype would still apply. */
19849 char $ac_func ();
19850 /* The GNU C library defines this for functions which it implements
19851 to always fail with ENOSYS. Some functions are actually named
19852 something starting with __ and the normal name is an alias. */
19853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19854 choke me
19855 #else
19856 char (*f) () = $ac_func;
19857 #endif
19858 #ifdef __cplusplus
19860 #endif
19863 main ()
19865 return f != $ac_func;
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19872 (eval $ac_link) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest$ac_exeext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 eval "$as_ac_var=yes"
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 eval "$as_ac_var=no"
19899 rm -f conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19904 if test `eval echo '${'$as_ac_var'}'` = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19907 _ACEOF
19910 done
19912 else
19914 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19915 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19916 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19917 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19923 ac_ext=cc
19924 ac_cpp='$CXXCPP $CPPFLAGS'
19925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <math.h>
19936 #ifdef HAVE_IEEEFP_H
19937 #include <ieeefp.h>
19938 #endif
19941 main ()
19943 _expl(0);
19945 return 0;
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_cxx_werror_flag"
19958 || test ! -s conftest.err'
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; } &&
19964 { ac_try='test -s conftest.$ac_objext'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 glibcxx_cv_func__expl_use=yes
19971 else
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 glibcxx_cv_func__expl_use=no
19977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978 ac_ext=c
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19988 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19989 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19991 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19993 for ac_func in _expl
19995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19996 echo "$as_me:$LINENO: checking for $ac_func" >&5
19997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19998 if eval "test \"\${$as_ac_var+set}\" = set"; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001 if test x$gcc_no_link = xyes; then
20002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20004 { (exit 1); exit 1; }; }
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20014 #define $ac_func innocuous_$ac_func
20016 /* System header to define __stub macros and hopefully few prototypes,
20017 which can conflict with char $ac_func (); below.
20018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20019 <limits.h> exists even on freestanding compilers. */
20021 #ifdef __STDC__
20022 # include <limits.h>
20023 #else
20024 # include <assert.h>
20025 #endif
20027 #undef $ac_func
20029 /* Override any gcc2 internal prototype to avoid an error. */
20030 #ifdef __cplusplus
20031 extern "C"
20033 #endif
20034 /* We use char because int might match the return type of a gcc2
20035 builtin and then its argument prototype would still apply. */
20036 char $ac_func ();
20037 /* The GNU C library defines this for functions which it implements
20038 to always fail with ENOSYS. Some functions are actually named
20039 something starting with __ and the normal name is an alias. */
20040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20041 choke me
20042 #else
20043 char (*f) () = $ac_func;
20044 #endif
20045 #ifdef __cplusplus
20047 #endif
20050 main ()
20052 return f != $ac_func;
20054 return 0;
20056 _ACEOF
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20059 (eval $ac_link) 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_c_werror_flag"
20067 || test ! -s conftest.err'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; } &&
20073 { ac_try='test -s conftest$ac_exeext'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 eval "$as_ac_var=yes"
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 eval "$as_ac_var=no"
20086 rm -f conftest.err conftest.$ac_objext \
20087 conftest$ac_exeext conftest.$ac_ext
20089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20091 if test `eval echo '${'$as_ac_var'}'` = yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20094 _ACEOF
20097 done
20104 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
20105 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
20106 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
20107 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20113 ac_ext=cc
20114 ac_cpp='$CXXCPP $CPPFLAGS'
20115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 #include <math.h>
20126 #ifdef HAVE_IEEEFP_H
20127 #include <ieeefp.h>
20128 #endif
20131 main ()
20133 fabsl(0);
20135 return 0;
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140 (eval $ac_compile) 2>conftest.er1
20141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_cxx_werror_flag"
20148 || test ! -s conftest.err'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 glibcxx_cv_func_fabsl_use=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 glibcxx_cv_func_fabsl_use=no
20167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168 ac_ext=c
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20178 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20179 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20181 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20183 for ac_func in fabsl
20185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20186 echo "$as_me:$LINENO: checking for $ac_func" >&5
20187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_var+set}\" = set"; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191 if test x$gcc_no_link = xyes; then
20192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20194 { (exit 1); exit 1; }; }
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20204 #define $ac_func innocuous_$ac_func
20206 /* System header to define __stub macros and hopefully few prototypes,
20207 which can conflict with char $ac_func (); below.
20208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209 <limits.h> exists even on freestanding compilers. */
20211 #ifdef __STDC__
20212 # include <limits.h>
20213 #else
20214 # include <assert.h>
20215 #endif
20217 #undef $ac_func
20219 /* Override any gcc2 internal prototype to avoid an error. */
20220 #ifdef __cplusplus
20221 extern "C"
20223 #endif
20224 /* We use char because int might match the return type of a gcc2
20225 builtin and then its argument prototype would still apply. */
20226 char $ac_func ();
20227 /* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231 choke me
20232 #else
20233 char (*f) () = $ac_func;
20234 #endif
20235 #ifdef __cplusplus
20237 #endif
20240 main ()
20242 return f != $ac_func;
20244 return 0;
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20249 (eval $ac_link) 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -z "$ac_c_werror_flag"
20257 || test ! -s conftest.err'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest$ac_exeext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 eval "$as_ac_var=yes"
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 eval "$as_ac_var=no"
20276 rm -f conftest.err conftest.$ac_objext \
20277 conftest$ac_exeext conftest.$ac_ext
20279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20284 _ACEOF
20287 done
20289 else
20291 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20292 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20293 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20294 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20300 ac_ext=cc
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <math.h>
20313 #ifdef HAVE_IEEEFP_H
20314 #include <ieeefp.h>
20315 #endif
20318 main ()
20320 _fabsl(0);
20322 return 0;
20324 _ACEOF
20325 rm -f conftest.$ac_objext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20327 (eval $ac_compile) 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
20334 { ac_try='test -z "$ac_cxx_werror_flag"
20335 || test ! -s conftest.err'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 glibcxx_cv_func__fabsl_use=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 glibcxx_cv_func__fabsl_use=no
20354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20355 ac_ext=c
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20366 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20368 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20370 for ac_func in _fabsl
20372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20373 echo "$as_me:$LINENO: checking for $ac_func" >&5
20374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20375 if eval "test \"\${$as_ac_var+set}\" = set"; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 if test x$gcc_no_link = xyes; then
20379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20381 { (exit 1); exit 1; }; }
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20391 #define $ac_func innocuous_$ac_func
20393 /* System header to define __stub macros and hopefully few prototypes,
20394 which can conflict with char $ac_func (); below.
20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396 <limits.h> exists even on freestanding compilers. */
20398 #ifdef __STDC__
20399 # include <limits.h>
20400 #else
20401 # include <assert.h>
20402 #endif
20404 #undef $ac_func
20406 /* Override any gcc2 internal prototype to avoid an error. */
20407 #ifdef __cplusplus
20408 extern "C"
20410 #endif
20411 /* We use char because int might match the return type of a gcc2
20412 builtin and then its argument prototype would still apply. */
20413 char $ac_func ();
20414 /* The GNU C library defines this for functions which it implements
20415 to always fail with ENOSYS. Some functions are actually named
20416 something starting with __ and the normal name is an alias. */
20417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20418 choke me
20419 #else
20420 char (*f) () = $ac_func;
20421 #endif
20422 #ifdef __cplusplus
20424 #endif
20427 main ()
20429 return f != $ac_func;
20431 return 0;
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436 (eval $ac_link) 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest$ac_exeext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 eval "$as_ac_var=yes"
20457 else
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 eval "$as_ac_var=no"
20463 rm -f conftest.err conftest.$ac_objext \
20464 conftest$ac_exeext conftest.$ac_ext
20466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20468 if test `eval echo '${'$as_ac_var'}'` = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20471 _ACEOF
20474 done
20481 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20482 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20483 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20484 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20490 ac_ext=cc
20491 ac_cpp='$CXXCPP $CPPFLAGS'
20492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20496 cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h. */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 #include <math.h>
20504 main ()
20506 fmodl(0, 0);
20508 return 0;
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_cxx_werror_flag"
20521 || test ! -s conftest.err'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest.$ac_objext'
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 glibcxx_cv_func_fmodl_use=yes
20534 else
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 glibcxx_cv_func_fmodl_use=no
20540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541 ac_ext=c
20542 ac_cpp='$CPP $CPPFLAGS'
20543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20552 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20554 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20556 for ac_func in fmodl
20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559 echo "$as_me:$LINENO: checking for $ac_func" >&5
20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_var+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 if test x$gcc_no_link = xyes; then
20565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20567 { (exit 1); exit 1; }; }
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h. */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20577 #define $ac_func innocuous_$ac_func
20579 /* System header to define __stub macros and hopefully few prototypes,
20580 which can conflict with char $ac_func (); below.
20581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582 <limits.h> exists even on freestanding compilers. */
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20590 #undef $ac_func
20592 /* Override any gcc2 internal prototype to avoid an error. */
20593 #ifdef __cplusplus
20594 extern "C"
20596 #endif
20597 /* We use char because int might match the return type of a gcc2
20598 builtin and then its argument prototype would still apply. */
20599 char $ac_func ();
20600 /* The GNU C library defines this for functions which it implements
20601 to always fail with ENOSYS. Some functions are actually named
20602 something starting with __ and the normal name is an alias. */
20603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20604 choke me
20605 #else
20606 char (*f) () = $ac_func;
20607 #endif
20608 #ifdef __cplusplus
20610 #endif
20613 main ()
20615 return f != $ac_func;
20617 return 0;
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag"
20630 || test ! -s conftest.err'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } &&
20636 { ac_try='test -s conftest$ac_exeext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 eval "$as_ac_var=yes"
20643 else
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 eval "$as_ac_var=no"
20649 rm -f conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 _ACEOF
20660 done
20662 else
20664 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20665 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20666 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20667 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20673 ac_ext=cc
20674 ac_cpp='$CXXCPP $CPPFLAGS'
20675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 #include <math.h>
20687 main ()
20689 _fmodl(0, 0);
20691 return 0;
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696 (eval $ac_compile) 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_cxx_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 glibcxx_cv_func__fmodl_use=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 glibcxx_cv_func__fmodl_use=no
20723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20724 ac_ext=c
20725 ac_cpp='$CPP $CPPFLAGS'
20726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20735 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20737 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20739 for ac_func in _fmodl
20741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742 echo "$as_me:$LINENO: checking for $ac_func" >&5
20743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_var+set}\" = set"; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747 if test x$gcc_no_link = xyes; then
20748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20750 { (exit 1); exit 1; }; }
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20760 #define $ac_func innocuous_$ac_func
20762 /* System header to define __stub macros and hopefully few prototypes,
20763 which can conflict with char $ac_func (); below.
20764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20765 <limits.h> exists even on freestanding compilers. */
20767 #ifdef __STDC__
20768 # include <limits.h>
20769 #else
20770 # include <assert.h>
20771 #endif
20773 #undef $ac_func
20775 /* Override any gcc2 internal prototype to avoid an error. */
20776 #ifdef __cplusplus
20777 extern "C"
20779 #endif
20780 /* We use char because int might match the return type of a gcc2
20781 builtin and then its argument prototype would still apply. */
20782 char $ac_func ();
20783 /* The GNU C library defines this for functions which it implements
20784 to always fail with ENOSYS. Some functions are actually named
20785 something starting with __ and the normal name is an alias. */
20786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20787 choke me
20788 #else
20789 char (*f) () = $ac_func;
20790 #endif
20791 #ifdef __cplusplus
20793 #endif
20796 main ()
20798 return f != $ac_func;
20800 return 0;
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20805 (eval $ac_link) 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 eval "$as_ac_var=yes"
20826 else
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 eval "$as_ac_var=no"
20832 rm -f conftest.err conftest.$ac_objext \
20833 conftest$ac_exeext conftest.$ac_ext
20835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20837 if test `eval echo '${'$as_ac_var'}'` = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20840 _ACEOF
20843 done
20850 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20851 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20852 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20853 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20859 ac_ext=cc
20860 ac_cpp='$CXXCPP $CPPFLAGS'
20861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 #include <math.h>
20873 main ()
20875 frexpl(0, 0);
20877 return 0;
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>conftest.er1
20883 ac_status=$?
20884 grep -v '^ *+' conftest.er1 >conftest.err
20885 rm -f conftest.er1
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try='test -z "$ac_cxx_werror_flag"
20890 || test ! -s conftest.err'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest.$ac_objext'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 glibcxx_cv_func_frexpl_use=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 glibcxx_cv_func_frexpl_use=no
20909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20910 ac_ext=c
20911 ac_cpp='$CPP $CPPFLAGS'
20912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20920 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20921 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20923 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20925 for ac_func in frexpl
20927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20928 echo "$as_me:$LINENO: checking for $ac_func" >&5
20929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_var+set}\" = set"; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 if test x$gcc_no_link = xyes; then
20934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20936 { (exit 1); exit 1; }; }
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h. */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20946 #define $ac_func innocuous_$ac_func
20948 /* System header to define __stub macros and hopefully few prototypes,
20949 which can conflict with char $ac_func (); below.
20950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20951 <limits.h> exists even on freestanding compilers. */
20953 #ifdef __STDC__
20954 # include <limits.h>
20955 #else
20956 # include <assert.h>
20957 #endif
20959 #undef $ac_func
20961 /* Override any gcc2 internal prototype to avoid an error. */
20962 #ifdef __cplusplus
20963 extern "C"
20965 #endif
20966 /* We use char because int might match the return type of a gcc2
20967 builtin and then its argument prototype would still apply. */
20968 char $ac_func ();
20969 /* The GNU C library defines this for functions which it implements
20970 to always fail with ENOSYS. Some functions are actually named
20971 something starting with __ and the normal name is an alias. */
20972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20973 choke me
20974 #else
20975 char (*f) () = $ac_func;
20976 #endif
20977 #ifdef __cplusplus
20979 #endif
20982 main ()
20984 return f != $ac_func;
20986 return 0;
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20991 (eval $ac_link) 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest$ac_exeext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 eval "$as_ac_var=yes"
21012 else
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 eval "$as_ac_var=no"
21018 rm -f conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21023 if test `eval echo '${'$as_ac_var'}'` = yes; then
21024 cat >>confdefs.h <<_ACEOF
21025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 _ACEOF
21029 done
21031 else
21033 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
21034 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
21035 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
21036 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 else
21042 ac_ext=cc
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 #include <math.h>
21056 main ()
21058 _frexpl(0, 0);
21060 return 0;
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065 (eval $ac_compile) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_cxx_werror_flag"
21073 || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 glibcxx_cv_func__frexpl_use=yes
21086 else
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 glibcxx_cv_func__frexpl_use=no
21092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093 ac_ext=c
21094 ac_cpp='$CPP $CPPFLAGS'
21095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21103 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
21104 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
21106 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
21108 for ac_func in _frexpl
21110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21111 echo "$as_me:$LINENO: checking for $ac_func" >&5
21112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21113 if eval "test \"\${$as_ac_var+set}\" = set"; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116 if test x$gcc_no_link = xyes; then
21117 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21119 { (exit 1); exit 1; }; }
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21129 #define $ac_func innocuous_$ac_func
21131 /* System header to define __stub macros and hopefully few prototypes,
21132 which can conflict with char $ac_func (); below.
21133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21134 <limits.h> exists even on freestanding compilers. */
21136 #ifdef __STDC__
21137 # include <limits.h>
21138 #else
21139 # include <assert.h>
21140 #endif
21142 #undef $ac_func
21144 /* Override any gcc2 internal prototype to avoid an error. */
21145 #ifdef __cplusplus
21146 extern "C"
21148 #endif
21149 /* We use char because int might match the return type of a gcc2
21150 builtin and then its argument prototype would still apply. */
21151 char $ac_func ();
21152 /* The GNU C library defines this for functions which it implements
21153 to always fail with ENOSYS. Some functions are actually named
21154 something starting with __ and the normal name is an alias. */
21155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21156 choke me
21157 #else
21158 char (*f) () = $ac_func;
21159 #endif
21160 #ifdef __cplusplus
21162 #endif
21165 main ()
21167 return f != $ac_func;
21169 return 0;
21171 _ACEOF
21172 rm -f conftest.$ac_objext conftest$ac_exeext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21174 (eval $ac_link) 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
21181 { ac_try='test -z "$ac_c_werror_flag"
21182 || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest$ac_exeext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 eval "$as_ac_var=yes"
21195 else
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 eval "$as_ac_var=no"
21201 rm -f conftest.err conftest.$ac_objext \
21202 conftest$ac_exeext conftest.$ac_ext
21204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21206 if test `eval echo '${'$as_ac_var'}'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21209 _ACEOF
21212 done
21219 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21220 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21221 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21222 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21228 ac_ext=cc
21229 ac_cpp='$CXXCPP $CPPFLAGS'
21230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <math.h>
21242 main ()
21244 hypotl(0, 0);
21246 return 0;
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251 (eval $ac_compile) 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_cxx_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 glibcxx_cv_func_hypotl_use=yes
21272 else
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 glibcxx_cv_func_hypotl_use=no
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279 ac_ext=c
21280 ac_cpp='$CPP $CPPFLAGS'
21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21290 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21292 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21294 for ac_func in hypotl
21296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21297 echo "$as_me:$LINENO: checking for $ac_func" >&5
21298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21299 if eval "test \"\${$as_ac_var+set}\" = set"; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302 if test x$gcc_no_link = xyes; then
21303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21305 { (exit 1); exit 1; }; }
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21315 #define $ac_func innocuous_$ac_func
21317 /* System header to define __stub macros and hopefully few prototypes,
21318 which can conflict with char $ac_func (); below.
21319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21320 <limits.h> exists even on freestanding compilers. */
21322 #ifdef __STDC__
21323 # include <limits.h>
21324 #else
21325 # include <assert.h>
21326 #endif
21328 #undef $ac_func
21330 /* Override any gcc2 internal prototype to avoid an error. */
21331 #ifdef __cplusplus
21332 extern "C"
21334 #endif
21335 /* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21337 char $ac_func ();
21338 /* The GNU C library defines this for functions which it implements
21339 to always fail with ENOSYS. Some functions are actually named
21340 something starting with __ and the normal name is an alias. */
21341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21342 choke me
21343 #else
21344 char (*f) () = $ac_func;
21345 #endif
21346 #ifdef __cplusplus
21348 #endif
21351 main ()
21353 return f != $ac_func;
21355 return 0;
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360 (eval $ac_link) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 eval "$as_ac_var=yes"
21381 else
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 eval "$as_ac_var=no"
21387 rm -f conftest.err conftest.$ac_objext \
21388 conftest$ac_exeext conftest.$ac_ext
21390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21392 if test `eval echo '${'$as_ac_var'}'` = yes; then
21393 cat >>confdefs.h <<_ACEOF
21394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21395 _ACEOF
21398 done
21400 else
21402 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21403 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21404 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21405 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21411 ac_ext=cc
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <math.h>
21425 main ()
21427 _hypotl(0, 0);
21429 return 0;
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434 (eval $ac_compile) 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
21441 { ac_try='test -z "$ac_cxx_werror_flag"
21442 || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 glibcxx_cv_func__hypotl_use=yes
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 glibcxx_cv_func__hypotl_use=no
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21462 ac_ext=c
21463 ac_cpp='$CPP $CPPFLAGS'
21464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21472 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21473 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21475 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21477 for ac_func in _hypotl
21479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21480 echo "$as_me:$LINENO: checking for $ac_func" >&5
21481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21482 if eval "test \"\${$as_ac_var+set}\" = set"; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 if test x$gcc_no_link = xyes; then
21486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21488 { (exit 1); exit 1; }; }
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21498 #define $ac_func innocuous_$ac_func
21500 /* System header to define __stub macros and hopefully few prototypes,
21501 which can conflict with char $ac_func (); below.
21502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21503 <limits.h> exists even on freestanding compilers. */
21505 #ifdef __STDC__
21506 # include <limits.h>
21507 #else
21508 # include <assert.h>
21509 #endif
21511 #undef $ac_func
21513 /* Override any gcc2 internal prototype to avoid an error. */
21514 #ifdef __cplusplus
21515 extern "C"
21517 #endif
21518 /* We use char because int might match the return type of a gcc2
21519 builtin and then its argument prototype would still apply. */
21520 char $ac_func ();
21521 /* The GNU C library defines this for functions which it implements
21522 to always fail with ENOSYS. Some functions are actually named
21523 something starting with __ and the normal name is an alias. */
21524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21525 choke me
21526 #else
21527 char (*f) () = $ac_func;
21528 #endif
21529 #ifdef __cplusplus
21531 #endif
21534 main ()
21536 return f != $ac_func;
21538 return 0;
21540 _ACEOF
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21543 (eval $ac_link) 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
21550 { ac_try='test -z "$ac_c_werror_flag"
21551 || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 eval "$as_ac_var=yes"
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 eval "$as_ac_var=no"
21570 rm -f conftest.err conftest.$ac_objext \
21571 conftest$ac_exeext conftest.$ac_ext
21573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21575 if test `eval echo '${'$as_ac_var'}'` = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21578 _ACEOF
21581 done
21588 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21589 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21590 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21591 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21597 ac_ext=cc
21598 ac_cpp='$CXXCPP $CPPFLAGS'
21599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <math.h>
21611 main ()
21613 ldexpl(0, 0);
21615 return 0;
21617 _ACEOF
21618 rm -f conftest.$ac_objext
21619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21620 (eval $ac_compile) 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } &&
21627 { ac_try='test -z "$ac_cxx_werror_flag"
21628 || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest.$ac_objext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 glibcxx_cv_func_ldexpl_use=yes
21641 else
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 glibcxx_cv_func_ldexpl_use=no
21647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 ac_ext=c
21649 ac_cpp='$CPP $CPPFLAGS'
21650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21658 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21659 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21661 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21663 for ac_func in ldexpl
21665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21666 echo "$as_me:$LINENO: checking for $ac_func" >&5
21667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21668 if eval "test \"\${$as_ac_var+set}\" = set"; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 if test x$gcc_no_link = xyes; then
21672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21674 { (exit 1); exit 1; }; }
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21684 #define $ac_func innocuous_$ac_func
21686 /* System header to define __stub macros and hopefully few prototypes,
21687 which can conflict with char $ac_func (); below.
21688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21689 <limits.h> exists even on freestanding compilers. */
21691 #ifdef __STDC__
21692 # include <limits.h>
21693 #else
21694 # include <assert.h>
21695 #endif
21697 #undef $ac_func
21699 /* Override any gcc2 internal prototype to avoid an error. */
21700 #ifdef __cplusplus
21701 extern "C"
21703 #endif
21704 /* We use char because int might match the return type of a gcc2
21705 builtin and then its argument prototype would still apply. */
21706 char $ac_func ();
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21711 choke me
21712 #else
21713 char (*f) () = $ac_func;
21714 #endif
21715 #ifdef __cplusplus
21717 #endif
21720 main ()
21722 return f != $ac_func;
21724 return 0;
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21729 (eval $ac_link) 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag"
21737 || test ! -s conftest.err'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest$ac_exeext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 eval "$as_ac_var=yes"
21750 else
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 eval "$as_ac_var=no"
21756 rm -f conftest.err conftest.$ac_objext \
21757 conftest$ac_exeext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21761 if test `eval echo '${'$as_ac_var'}'` = yes; then
21762 cat >>confdefs.h <<_ACEOF
21763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21764 _ACEOF
21767 done
21769 else
21771 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21772 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21773 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21774 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21780 ac_ext=cc
21781 ac_cpp='$CXXCPP $CPPFLAGS'
21782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 #include <math.h>
21794 main ()
21796 _ldexpl(0, 0);
21798 return 0;
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21803 (eval $ac_compile) 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_cxx_werror_flag"
21811 || test ! -s conftest.err'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; } &&
21817 { ac_try='test -s conftest.$ac_objext'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; }; then
21823 glibcxx_cv_func__ldexpl_use=yes
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 glibcxx_cv_func__ldexpl_use=no
21830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21831 ac_ext=c
21832 ac_cpp='$CPP $CPPFLAGS'
21833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21841 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21842 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21844 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21846 for ac_func in _ldexpl
21848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849 echo "$as_me:$LINENO: checking for $ac_func" >&5
21850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21851 if eval "test \"\${$as_ac_var+set}\" = set"; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854 if test x$gcc_no_link = xyes; then
21855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21857 { (exit 1); exit 1; }; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21867 #define $ac_func innocuous_$ac_func
21869 /* System header to define __stub macros and hopefully few prototypes,
21870 which can conflict with char $ac_func (); below.
21871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872 <limits.h> exists even on freestanding compilers. */
21874 #ifdef __STDC__
21875 # include <limits.h>
21876 #else
21877 # include <assert.h>
21878 #endif
21880 #undef $ac_func
21882 /* Override any gcc2 internal prototype to avoid an error. */
21883 #ifdef __cplusplus
21884 extern "C"
21886 #endif
21887 /* We use char because int might match the return type of a gcc2
21888 builtin and then its argument prototype would still apply. */
21889 char $ac_func ();
21890 /* The GNU C library defines this for functions which it implements
21891 to always fail with ENOSYS. Some functions are actually named
21892 something starting with __ and the normal name is an alias. */
21893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21894 choke me
21895 #else
21896 char (*f) () = $ac_func;
21897 #endif
21898 #ifdef __cplusplus
21900 #endif
21903 main ()
21905 return f != $ac_func;
21907 return 0;
21909 _ACEOF
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21912 (eval $ac_link) 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -z "$ac_c_werror_flag"
21920 || test ! -s conftest.err'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest$ac_exeext'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 eval "$as_ac_var=yes"
21933 else
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21937 eval "$as_ac_var=no"
21939 rm -f conftest.err conftest.$ac_objext \
21940 conftest$ac_exeext conftest.$ac_ext
21942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21944 if test `eval echo '${'$as_ac_var'}'` = yes; then
21945 cat >>confdefs.h <<_ACEOF
21946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21947 _ACEOF
21950 done
21957 echo "$as_me:$LINENO: checking for logl declaration" >&5
21958 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21959 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21960 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21966 ac_ext=cc
21967 ac_cpp='$CXXCPP $CPPFLAGS'
21968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 #include <math.h>
21979 #ifdef HAVE_IEEEFP_H
21980 #include <ieeefp.h>
21981 #endif
21984 main ()
21986 logl(0);
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_cxx_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest.$ac_objext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 glibcxx_cv_func_logl_use=yes
22014 else
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 glibcxx_cv_func_logl_use=no
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 ac_ext=c
22022 ac_cpp='$CPP $CPPFLAGS'
22023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22031 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
22032 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
22034 if test x$glibcxx_cv_func_logl_use = x"yes"; then
22036 for ac_func in logl
22038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22039 echo "$as_me:$LINENO: checking for $ac_func" >&5
22040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22041 if eval "test \"\${$as_ac_var+set}\" = set"; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044 if test x$gcc_no_link = xyes; then
22045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22047 { (exit 1); exit 1; }; }
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22057 #define $ac_func innocuous_$ac_func
22059 /* System header to define __stub macros and hopefully few prototypes,
22060 which can conflict with char $ac_func (); below.
22061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22062 <limits.h> exists even on freestanding compilers. */
22064 #ifdef __STDC__
22065 # include <limits.h>
22066 #else
22067 # include <assert.h>
22068 #endif
22070 #undef $ac_func
22072 /* Override any gcc2 internal prototype to avoid an error. */
22073 #ifdef __cplusplus
22074 extern "C"
22076 #endif
22077 /* We use char because int might match the return type of a gcc2
22078 builtin and then its argument prototype would still apply. */
22079 char $ac_func ();
22080 /* The GNU C library defines this for functions which it implements
22081 to always fail with ENOSYS. Some functions are actually named
22082 something starting with __ and the normal name is an alias. */
22083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22084 choke me
22085 #else
22086 char (*f) () = $ac_func;
22087 #endif
22088 #ifdef __cplusplus
22090 #endif
22093 main ()
22095 return f != $ac_func;
22097 return 0;
22099 _ACEOF
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102 (eval $ac_link) 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_c_werror_flag"
22110 || test ! -s conftest.err'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest$ac_exeext'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 eval "$as_ac_var=yes"
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 eval "$as_ac_var=no"
22129 rm -f conftest.err conftest.$ac_objext \
22130 conftest$ac_exeext conftest.$ac_ext
22132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22134 if test `eval echo '${'$as_ac_var'}'` = yes; then
22135 cat >>confdefs.h <<_ACEOF
22136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22137 _ACEOF
22140 done
22142 else
22144 echo "$as_me:$LINENO: checking for _logl declaration" >&5
22145 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22146 if test x${glibcxx_cv_func__logl_use+set} != xset; then
22147 if test "${glibcxx_cv_func__logl_use+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22153 ac_ext=cc
22154 ac_cpp='$CXXCPP $CPPFLAGS'
22155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h. */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 #include <math.h>
22166 #ifdef HAVE_IEEEFP_H
22167 #include <ieeefp.h>
22168 #endif
22171 main ()
22173 _logl(0);
22175 return 0;
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22180 (eval $ac_compile) 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_cxx_werror_flag"
22188 || test ! -s conftest.err'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest.$ac_objext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 glibcxx_cv_func__logl_use=yes
22201 else
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 glibcxx_cv_func__logl_use=no
22207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22208 ac_ext=c
22209 ac_cpp='$CPP $CPPFLAGS'
22210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22218 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22219 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22221 if test x$glibcxx_cv_func__logl_use = x"yes"; then
22223 for ac_func in _logl
22225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22226 echo "$as_me:$LINENO: checking for $ac_func" >&5
22227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22228 if eval "test \"\${$as_ac_var+set}\" = set"; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231 if test x$gcc_no_link = xyes; then
22232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22234 { (exit 1); exit 1; }; }
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22244 #define $ac_func innocuous_$ac_func
22246 /* System header to define __stub macros and hopefully few prototypes,
22247 which can conflict with char $ac_func (); below.
22248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22249 <limits.h> exists even on freestanding compilers. */
22251 #ifdef __STDC__
22252 # include <limits.h>
22253 #else
22254 # include <assert.h>
22255 #endif
22257 #undef $ac_func
22259 /* Override any gcc2 internal prototype to avoid an error. */
22260 #ifdef __cplusplus
22261 extern "C"
22263 #endif
22264 /* We use char because int might match the return type of a gcc2
22265 builtin and then its argument prototype would still apply. */
22266 char $ac_func ();
22267 /* The GNU C library defines this for functions which it implements
22268 to always fail with ENOSYS. Some functions are actually named
22269 something starting with __ and the normal name is an alias. */
22270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22271 choke me
22272 #else
22273 char (*f) () = $ac_func;
22274 #endif
22275 #ifdef __cplusplus
22277 #endif
22280 main ()
22282 return f != $ac_func;
22284 return 0;
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22289 (eval $ac_link) 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_c_werror_flag"
22297 || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest$ac_exeext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 eval "$as_ac_var=yes"
22310 else
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 eval "$as_ac_var=no"
22316 rm -f conftest.err conftest.$ac_objext \
22317 conftest$ac_exeext conftest.$ac_ext
22319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22321 if test `eval echo '${'$as_ac_var'}'` = yes; then
22322 cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22327 done
22334 echo "$as_me:$LINENO: checking for log10l declaration" >&5
22335 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22336 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22337 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22343 ac_ext=cc
22344 ac_cpp='$CXXCPP $CPPFLAGS'
22345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 #include <math.h>
22356 #ifdef HAVE_IEEEFP_H
22357 #include <ieeefp.h>
22358 #endif
22361 main ()
22363 log10l(0);
22365 return 0;
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22370 (eval $ac_compile) 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try='test -z "$ac_cxx_werror_flag"
22378 || test ! -s conftest.err'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; } &&
22384 { ac_try='test -s conftest.$ac_objext'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 glibcxx_cv_func_log10l_use=yes
22391 else
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 glibcxx_cv_func_log10l_use=no
22397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22398 ac_ext=c
22399 ac_cpp='$CPP $CPPFLAGS'
22400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22408 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22409 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22411 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22413 for ac_func in log10l
22415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22416 echo "$as_me:$LINENO: checking for $ac_func" >&5
22417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22418 if eval "test \"\${$as_ac_var+set}\" = set"; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421 if test x$gcc_no_link = xyes; then
22422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22424 { (exit 1); exit 1; }; }
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22434 #define $ac_func innocuous_$ac_func
22436 /* System header to define __stub macros and hopefully few prototypes,
22437 which can conflict with char $ac_func (); below.
22438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22439 <limits.h> exists even on freestanding compilers. */
22441 #ifdef __STDC__
22442 # include <limits.h>
22443 #else
22444 # include <assert.h>
22445 #endif
22447 #undef $ac_func
22449 /* Override any gcc2 internal prototype to avoid an error. */
22450 #ifdef __cplusplus
22451 extern "C"
22453 #endif
22454 /* We use char because int might match the return type of a gcc2
22455 builtin and then its argument prototype would still apply. */
22456 char $ac_func ();
22457 /* The GNU C library defines this for functions which it implements
22458 to always fail with ENOSYS. Some functions are actually named
22459 something starting with __ and the normal name is an alias. */
22460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22461 choke me
22462 #else
22463 char (*f) () = $ac_func;
22464 #endif
22465 #ifdef __cplusplus
22467 #endif
22470 main ()
22472 return f != $ac_func;
22474 return 0;
22476 _ACEOF
22477 rm -f conftest.$ac_objext conftest$ac_exeext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22479 (eval $ac_link) 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest$ac_exeext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 eval "$as_ac_var=yes"
22500 else
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 eval "$as_ac_var=no"
22506 rm -f conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext conftest.$ac_ext
22509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22511 if test `eval echo '${'$as_ac_var'}'` = yes; then
22512 cat >>confdefs.h <<_ACEOF
22513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22514 _ACEOF
22517 done
22519 else
22521 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22522 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22523 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22524 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22530 ac_ext=cc
22531 ac_cpp='$CXXCPP $CPPFLAGS'
22532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h. */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <math.h>
22543 #ifdef HAVE_IEEEFP_H
22544 #include <ieeefp.h>
22545 #endif
22548 main ()
22550 _log10l(0);
22552 return 0;
22554 _ACEOF
22555 rm -f conftest.$ac_objext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -z "$ac_cxx_werror_flag"
22565 || test ! -s conftest.err'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest.$ac_objext'
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 glibcxx_cv_func__log10l_use=yes
22578 else
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 glibcxx_cv_func__log10l_use=no
22584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22585 ac_ext=c
22586 ac_cpp='$CPP $CPPFLAGS'
22587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22595 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22596 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22598 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22600 for ac_func in _log10l
22602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22603 echo "$as_me:$LINENO: checking for $ac_func" >&5
22604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22605 if eval "test \"\${$as_ac_var+set}\" = set"; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608 if test x$gcc_no_link = xyes; then
22609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22611 { (exit 1); exit 1; }; }
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h. */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22621 #define $ac_func innocuous_$ac_func
22623 /* System header to define __stub macros and hopefully few prototypes,
22624 which can conflict with char $ac_func (); below.
22625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22626 <limits.h> exists even on freestanding compilers. */
22628 #ifdef __STDC__
22629 # include <limits.h>
22630 #else
22631 # include <assert.h>
22632 #endif
22634 #undef $ac_func
22636 /* Override any gcc2 internal prototype to avoid an error. */
22637 #ifdef __cplusplus
22638 extern "C"
22640 #endif
22641 /* We use char because int might match the return type of a gcc2
22642 builtin and then its argument prototype would still apply. */
22643 char $ac_func ();
22644 /* The GNU C library defines this for functions which it implements
22645 to always fail with ENOSYS. Some functions are actually named
22646 something starting with __ and the normal name is an alias. */
22647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22648 choke me
22649 #else
22650 char (*f) () = $ac_func;
22651 #endif
22652 #ifdef __cplusplus
22654 #endif
22657 main ()
22659 return f != $ac_func;
22661 return 0;
22663 _ACEOF
22664 rm -f conftest.$ac_objext conftest$ac_exeext
22665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22666 (eval $ac_link) 2>conftest.er1
22667 ac_status=$?
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
22673 { ac_try='test -z "$ac_c_werror_flag"
22674 || test ! -s conftest.err'
22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; } &&
22680 { ac_try='test -s conftest$ac_exeext'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 eval "$as_ac_var=yes"
22687 else
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 eval "$as_ac_var=no"
22693 rm -f conftest.err conftest.$ac_objext \
22694 conftest$ac_exeext conftest.$ac_ext
22696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22698 if test `eval echo '${'$as_ac_var'}'` = yes; then
22699 cat >>confdefs.h <<_ACEOF
22700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22701 _ACEOF
22704 done
22711 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22712 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22713 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22714 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22720 ac_ext=cc
22721 ac_cpp='$CXXCPP $CPPFLAGS'
22722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22726 cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h. */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 #include <math.h>
22734 main ()
22736 modfl(0, 0);
22738 return 0;
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743 (eval $ac_compile) 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -z "$ac_cxx_werror_flag"
22751 || test ! -s conftest.err'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 glibcxx_cv_func_modfl_use=yes
22764 else
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 glibcxx_cv_func_modfl_use=no
22770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22771 ac_ext=c
22772 ac_cpp='$CPP $CPPFLAGS'
22773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22781 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22782 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22784 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22786 for ac_func in modfl
22788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22789 echo "$as_me:$LINENO: checking for $ac_func" >&5
22790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22791 if eval "test \"\${$as_ac_var+set}\" = set"; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794 if test x$gcc_no_link = xyes; then
22795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22797 { (exit 1); exit 1; }; }
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22807 #define $ac_func innocuous_$ac_func
22809 /* System header to define __stub macros and hopefully few prototypes,
22810 which can conflict with char $ac_func (); below.
22811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812 <limits.h> exists even on freestanding compilers. */
22814 #ifdef __STDC__
22815 # include <limits.h>
22816 #else
22817 # include <assert.h>
22818 #endif
22820 #undef $ac_func
22822 /* Override any gcc2 internal prototype to avoid an error. */
22823 #ifdef __cplusplus
22824 extern "C"
22826 #endif
22827 /* We use char because int might match the return type of a gcc2
22828 builtin and then its argument prototype would still apply. */
22829 char $ac_func ();
22830 /* The GNU C library defines this for functions which it implements
22831 to always fail with ENOSYS. Some functions are actually named
22832 something starting with __ and the normal name is an alias. */
22833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22834 choke me
22835 #else
22836 char (*f) () = $ac_func;
22837 #endif
22838 #ifdef __cplusplus
22840 #endif
22843 main ()
22845 return f != $ac_func;
22847 return 0;
22849 _ACEOF
22850 rm -f conftest.$ac_objext conftest$ac_exeext
22851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22852 (eval $ac_link) 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } &&
22859 { ac_try='test -z "$ac_c_werror_flag"
22860 || test ! -s conftest.err'
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest$ac_exeext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 eval "$as_ac_var=yes"
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 eval "$as_ac_var=no"
22879 rm -f conftest.err conftest.$ac_objext \
22880 conftest$ac_exeext conftest.$ac_ext
22882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22884 if test `eval echo '${'$as_ac_var'}'` = yes; then
22885 cat >>confdefs.h <<_ACEOF
22886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22887 _ACEOF
22890 done
22892 else
22894 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22895 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22896 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22897 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22903 ac_ext=cc
22904 ac_cpp='$CXXCPP $CPPFLAGS'
22905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <math.h>
22917 main ()
22919 _modfl(0, 0);
22921 return 0;
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22926 (eval $ac_compile) 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } &&
22933 { ac_try='test -z "$ac_cxx_werror_flag"
22934 || test ! -s conftest.err'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; } &&
22940 { ac_try='test -s conftest.$ac_objext'
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22946 glibcxx_cv_func__modfl_use=yes
22947 else
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 glibcxx_cv_func__modfl_use=no
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954 ac_ext=c
22955 ac_cpp='$CPP $CPPFLAGS'
22956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22964 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22965 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22967 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22969 for ac_func in _modfl
22971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972 echo "$as_me:$LINENO: checking for $ac_func" >&5
22973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22974 if eval "test \"\${$as_ac_var+set}\" = set"; then
22975 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977 if test x$gcc_no_link = xyes; then
22978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22980 { (exit 1); exit 1; }; }
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22990 #define $ac_func innocuous_$ac_func
22992 /* System header to define __stub macros and hopefully few prototypes,
22993 which can conflict with char $ac_func (); below.
22994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995 <limits.h> exists even on freestanding compilers. */
22997 #ifdef __STDC__
22998 # include <limits.h>
22999 #else
23000 # include <assert.h>
23001 #endif
23003 #undef $ac_func
23005 /* Override any gcc2 internal prototype to avoid an error. */
23006 #ifdef __cplusplus
23007 extern "C"
23009 #endif
23010 /* We use char because int might match the return type of a gcc2
23011 builtin and then its argument prototype would still apply. */
23012 char $ac_func ();
23013 /* The GNU C library defines this for functions which it implements
23014 to always fail with ENOSYS. Some functions are actually named
23015 something starting with __ and the normal name is an alias. */
23016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23017 choke me
23018 #else
23019 char (*f) () = $ac_func;
23020 #endif
23021 #ifdef __cplusplus
23023 #endif
23026 main ()
23028 return f != $ac_func;
23030 return 0;
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035 (eval $ac_link) 2>conftest.er1
23036 ac_status=$?
23037 grep -v '^ *+' conftest.er1 >conftest.err
23038 rm -f conftest.er1
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
23042 { ac_try='test -z "$ac_c_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 eval "$as_ac_var=yes"
23056 else
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 eval "$as_ac_var=no"
23062 rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23067 if test `eval echo '${'$as_ac_var'}'` = yes; then
23068 cat >>confdefs.h <<_ACEOF
23069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23070 _ACEOF
23073 done
23080 echo "$as_me:$LINENO: checking for powl declaration" >&5
23081 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
23082 if test x${glibcxx_cv_func_powl_use+set} != xset; then
23083 if test "${glibcxx_cv_func_powl_use+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23089 ac_ext=cc
23090 ac_cpp='$CXXCPP $CPPFLAGS'
23091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 #include <math.h>
23103 main ()
23105 powl(0, 0);
23107 return 0;
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23112 (eval $ac_compile) 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
23119 { ac_try='test -z "$ac_cxx_werror_flag"
23120 || test ! -s conftest.err'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; } &&
23126 { ac_try='test -s conftest.$ac_objext'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; }; then
23132 glibcxx_cv_func_powl_use=yes
23133 else
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 glibcxx_cv_func_powl_use=no
23139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23140 ac_ext=c
23141 ac_cpp='$CPP $CPPFLAGS'
23142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23150 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23151 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23153 if test x$glibcxx_cv_func_powl_use = x"yes"; then
23155 for ac_func in powl
23157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23158 echo "$as_me:$LINENO: checking for $ac_func" >&5
23159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23160 if eval "test \"\${$as_ac_var+set}\" = set"; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163 if test x$gcc_no_link = xyes; then
23164 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23166 { (exit 1); exit 1; }; }
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h. */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23176 #define $ac_func innocuous_$ac_func
23178 /* System header to define __stub macros and hopefully few prototypes,
23179 which can conflict with char $ac_func (); below.
23180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23181 <limits.h> exists even on freestanding compilers. */
23183 #ifdef __STDC__
23184 # include <limits.h>
23185 #else
23186 # include <assert.h>
23187 #endif
23189 #undef $ac_func
23191 /* Override any gcc2 internal prototype to avoid an error. */
23192 #ifdef __cplusplus
23193 extern "C"
23195 #endif
23196 /* We use char because int might match the return type of a gcc2
23197 builtin and then its argument prototype would still apply. */
23198 char $ac_func ();
23199 /* The GNU C library defines this for functions which it implements
23200 to always fail with ENOSYS. Some functions are actually named
23201 something starting with __ and the normal name is an alias. */
23202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23203 choke me
23204 #else
23205 char (*f) () = $ac_func;
23206 #endif
23207 #ifdef __cplusplus
23209 #endif
23212 main ()
23214 return f != $ac_func;
23216 return 0;
23218 _ACEOF
23219 rm -f conftest.$ac_objext conftest$ac_exeext
23220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221 (eval $ac_link) 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -z "$ac_c_werror_flag"
23229 || test ! -s conftest.err'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest$ac_exeext'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 eval "$as_ac_var=yes"
23242 else
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23246 eval "$as_ac_var=no"
23248 rm -f conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23253 if test `eval echo '${'$as_ac_var'}'` = yes; then
23254 cat >>confdefs.h <<_ACEOF
23255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23256 _ACEOF
23259 done
23261 else
23263 echo "$as_me:$LINENO: checking for _powl declaration" >&5
23264 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23265 if test x${glibcxx_cv_func__powl_use+set} != xset; then
23266 if test "${glibcxx_cv_func__powl_use+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23272 ac_ext=cc
23273 ac_cpp='$CXXCPP $CPPFLAGS'
23274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23278 cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h. */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 #include <math.h>
23286 main ()
23288 _powl(0, 0);
23290 return 0;
23292 _ACEOF
23293 rm -f conftest.$ac_objext
23294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23295 (eval $ac_compile) 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } &&
23302 { ac_try='test -z "$ac_cxx_werror_flag"
23303 || test ! -s conftest.err'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; } &&
23309 { ac_try='test -s conftest.$ac_objext'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }; then
23315 glibcxx_cv_func__powl_use=yes
23316 else
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 glibcxx_cv_func__powl_use=no
23322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23323 ac_ext=c
23324 ac_cpp='$CPP $CPPFLAGS'
23325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23333 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23334 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23336 if test x$glibcxx_cv_func__powl_use = x"yes"; then
23338 for ac_func in _powl
23340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23341 echo "$as_me:$LINENO: checking for $ac_func" >&5
23342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23343 if eval "test \"\${$as_ac_var+set}\" = set"; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345 else
23346 if test x$gcc_no_link = xyes; then
23347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23349 { (exit 1); exit 1; }; }
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h. */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23359 #define $ac_func innocuous_$ac_func
23361 /* System header to define __stub macros and hopefully few prototypes,
23362 which can conflict with char $ac_func (); below.
23363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23364 <limits.h> exists even on freestanding compilers. */
23366 #ifdef __STDC__
23367 # include <limits.h>
23368 #else
23369 # include <assert.h>
23370 #endif
23372 #undef $ac_func
23374 /* Override any gcc2 internal prototype to avoid an error. */
23375 #ifdef __cplusplus
23376 extern "C"
23378 #endif
23379 /* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23381 char $ac_func ();
23382 /* The GNU C library defines this for functions which it implements
23383 to always fail with ENOSYS. Some functions are actually named
23384 something starting with __ and the normal name is an alias. */
23385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23386 choke me
23387 #else
23388 char (*f) () = $ac_func;
23389 #endif
23390 #ifdef __cplusplus
23392 #endif
23395 main ()
23397 return f != $ac_func;
23399 return 0;
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404 (eval $ac_link) 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -z "$ac_c_werror_flag"
23412 || test ! -s conftest.err'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest$ac_exeext'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 eval "$as_ac_var=yes"
23425 else
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 eval "$as_ac_var=no"
23431 rm -f conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
23434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23436 if test `eval echo '${'$as_ac_var'}'` = yes; then
23437 cat >>confdefs.h <<_ACEOF
23438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23439 _ACEOF
23442 done
23449 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23450 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23451 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23452 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23458 ac_ext=cc
23459 ac_cpp='$CXXCPP $CPPFLAGS'
23460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23464 cat >conftest.$ac_ext <<_ACEOF
23465 /* confdefs.h. */
23466 _ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h. */
23470 #include <math.h>
23471 #ifdef HAVE_IEEEFP_H
23472 #include <ieeefp.h>
23473 #endif
23476 main ()
23478 sqrtl(0);
23480 return 0;
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23485 (eval $ac_compile) 2>conftest.er1
23486 ac_status=$?
23487 grep -v '^ *+' conftest.er1 >conftest.err
23488 rm -f conftest.er1
23489 cat conftest.err >&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } &&
23492 { ac_try='test -z "$ac_cxx_werror_flag"
23493 || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 glibcxx_cv_func_sqrtl_use=yes
23506 else
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23510 glibcxx_cv_func_sqrtl_use=no
23512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513 ac_ext=c
23514 ac_cpp='$CPP $CPPFLAGS'
23515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23523 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23524 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23526 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23528 for ac_func in sqrtl
23530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23531 echo "$as_me:$LINENO: checking for $ac_func" >&5
23532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23533 if eval "test \"\${$as_ac_var+set}\" = set"; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536 if test x$gcc_no_link = xyes; then
23537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23539 { (exit 1); exit 1; }; }
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h. */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23549 #define $ac_func innocuous_$ac_func
23551 /* System header to define __stub macros and hopefully few prototypes,
23552 which can conflict with char $ac_func (); below.
23553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23554 <limits.h> exists even on freestanding compilers. */
23556 #ifdef __STDC__
23557 # include <limits.h>
23558 #else
23559 # include <assert.h>
23560 #endif
23562 #undef $ac_func
23564 /* Override any gcc2 internal prototype to avoid an error. */
23565 #ifdef __cplusplus
23566 extern "C"
23568 #endif
23569 /* We use char because int might match the return type of a gcc2
23570 builtin and then its argument prototype would still apply. */
23571 char $ac_func ();
23572 /* The GNU C library defines this for functions which it implements
23573 to always fail with ENOSYS. Some functions are actually named
23574 something starting with __ and the normal name is an alias. */
23575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23576 choke me
23577 #else
23578 char (*f) () = $ac_func;
23579 #endif
23580 #ifdef __cplusplus
23582 #endif
23585 main ()
23587 return f != $ac_func;
23589 return 0;
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23594 (eval $ac_link) 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } &&
23601 { ac_try='test -z "$ac_c_werror_flag"
23602 || test ! -s conftest.err'
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; } &&
23608 { ac_try='test -s conftest$ac_exeext'
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 eval "$as_ac_var=yes"
23615 else
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619 eval "$as_ac_var=no"
23621 rm -f conftest.err conftest.$ac_objext \
23622 conftest$ac_exeext conftest.$ac_ext
23624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23626 if test `eval echo '${'$as_ac_var'}'` = yes; then
23627 cat >>confdefs.h <<_ACEOF
23628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23629 _ACEOF
23632 done
23634 else
23636 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23637 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23638 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23639 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23641 else
23645 ac_ext=cc
23646 ac_cpp='$CXXCPP $CPPFLAGS'
23647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23651 cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h. */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 #include <math.h>
23658 #ifdef HAVE_IEEEFP_H
23659 #include <ieeefp.h>
23660 #endif
23663 main ()
23665 _sqrtl(0);
23667 return 0;
23669 _ACEOF
23670 rm -f conftest.$ac_objext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23672 (eval $ac_compile) 2>conftest.er1
23673 ac_status=$?
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
23679 { ac_try='test -z "$ac_cxx_werror_flag"
23680 || test ! -s conftest.err'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; } &&
23686 { ac_try='test -s conftest.$ac_objext'
23687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23689 ac_status=$?
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; }; then
23692 glibcxx_cv_func__sqrtl_use=yes
23693 else
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 glibcxx_cv_func__sqrtl_use=no
23699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23700 ac_ext=c
23701 ac_cpp='$CPP $CPPFLAGS'
23702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23710 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23711 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23713 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23715 for ac_func in _sqrtl
23717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23718 echo "$as_me:$LINENO: checking for $ac_func" >&5
23719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23720 if eval "test \"\${$as_ac_var+set}\" = set"; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723 if test x$gcc_no_link = xyes; then
23724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23726 { (exit 1); exit 1; }; }
23728 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h. */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23736 #define $ac_func innocuous_$ac_func
23738 /* System header to define __stub macros and hopefully few prototypes,
23739 which can conflict with char $ac_func (); below.
23740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23741 <limits.h> exists even on freestanding compilers. */
23743 #ifdef __STDC__
23744 # include <limits.h>
23745 #else
23746 # include <assert.h>
23747 #endif
23749 #undef $ac_func
23751 /* Override any gcc2 internal prototype to avoid an error. */
23752 #ifdef __cplusplus
23753 extern "C"
23755 #endif
23756 /* We use char because int might match the return type of a gcc2
23757 builtin and then its argument prototype would still apply. */
23758 char $ac_func ();
23759 /* The GNU C library defines this for functions which it implements
23760 to always fail with ENOSYS. Some functions are actually named
23761 something starting with __ and the normal name is an alias. */
23762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23763 choke me
23764 #else
23765 char (*f) () = $ac_func;
23766 #endif
23767 #ifdef __cplusplus
23769 #endif
23772 main ()
23774 return f != $ac_func;
23776 return 0;
23778 _ACEOF
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23781 (eval $ac_link) 2>conftest.er1
23782 ac_status=$?
23783 grep -v '^ *+' conftest.er1 >conftest.err
23784 rm -f conftest.er1
23785 cat conftest.err >&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } &&
23788 { ac_try='test -z "$ac_c_werror_flag"
23789 || test ! -s conftest.err'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; } &&
23795 { ac_try='test -s conftest$ac_exeext'
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; }; then
23801 eval "$as_ac_var=yes"
23802 else
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23806 eval "$as_ac_var=no"
23808 rm -f conftest.err conftest.$ac_objext \
23809 conftest$ac_exeext conftest.$ac_ext
23811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23813 if test `eval echo '${'$as_ac_var'}'` = yes; then
23814 cat >>confdefs.h <<_ACEOF
23815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23816 _ACEOF
23819 done
23826 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23827 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23828 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23829 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23831 else
23835 ac_ext=cc
23836 ac_cpp='$CXXCPP $CPPFLAGS'
23837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h. */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 #include <math.h>
23849 main ()
23851 sincosl(0, 0, 0);
23853 return 0;
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23858 (eval $ac_compile) 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
23865 { ac_try='test -z "$ac_cxx_werror_flag"
23866 || test ! -s conftest.err'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; } &&
23872 { ac_try='test -s conftest.$ac_objext'
23873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874 (eval $ac_try) 2>&5
23875 ac_status=$?
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 glibcxx_cv_func_sincosl_use=yes
23879 else
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 glibcxx_cv_func_sincosl_use=no
23885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23886 ac_ext=c
23887 ac_cpp='$CPP $CPPFLAGS'
23888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23896 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23897 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23899 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23901 for ac_func in sincosl
23903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23904 echo "$as_me:$LINENO: checking for $ac_func" >&5
23905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23906 if eval "test \"\${$as_ac_var+set}\" = set"; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23908 else
23909 if test x$gcc_no_link = xyes; then
23910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23912 { (exit 1); exit 1; }; }
23914 cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h. */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23922 #define $ac_func innocuous_$ac_func
23924 /* System header to define __stub macros and hopefully few prototypes,
23925 which can conflict with char $ac_func (); below.
23926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23927 <limits.h> exists even on freestanding compilers. */
23929 #ifdef __STDC__
23930 # include <limits.h>
23931 #else
23932 # include <assert.h>
23933 #endif
23935 #undef $ac_func
23937 /* Override any gcc2 internal prototype to avoid an error. */
23938 #ifdef __cplusplus
23939 extern "C"
23941 #endif
23942 /* We use char because int might match the return type of a gcc2
23943 builtin and then its argument prototype would still apply. */
23944 char $ac_func ();
23945 /* The GNU C library defines this for functions which it implements
23946 to always fail with ENOSYS. Some functions are actually named
23947 something starting with __ and the normal name is an alias. */
23948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23949 choke me
23950 #else
23951 char (*f) () = $ac_func;
23952 #endif
23953 #ifdef __cplusplus
23955 #endif
23958 main ()
23960 return f != $ac_func;
23962 return 0;
23964 _ACEOF
23965 rm -f conftest.$ac_objext conftest$ac_exeext
23966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23967 (eval $ac_link) 2>conftest.er1
23968 ac_status=$?
23969 grep -v '^ *+' conftest.er1 >conftest.err
23970 rm -f conftest.er1
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } &&
23974 { ac_try='test -z "$ac_c_werror_flag"
23975 || test ! -s conftest.err'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; } &&
23981 { ac_try='test -s conftest$ac_exeext'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 eval "$as_ac_var=yes"
23988 else
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 eval "$as_ac_var=no"
23994 rm -f conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23999 if test `eval echo '${'$as_ac_var'}'` = yes; then
24000 cat >>confdefs.h <<_ACEOF
24001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24002 _ACEOF
24005 done
24007 else
24009 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
24010 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
24011 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
24012 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
24013 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24018 ac_ext=cc
24019 ac_cpp='$CXXCPP $CPPFLAGS'
24020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #include <math.h>
24032 main ()
24034 _sincosl(0, 0, 0);
24036 return 0;
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041 (eval $ac_compile) 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } &&
24048 { ac_try='test -z "$ac_cxx_werror_flag"
24049 || test ! -s conftest.err'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; } &&
24055 { ac_try='test -s conftest.$ac_objext'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; }; then
24061 glibcxx_cv_func__sincosl_use=yes
24062 else
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24066 glibcxx_cv_func__sincosl_use=no
24068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24069 ac_ext=c
24070 ac_cpp='$CPP $CPPFLAGS'
24071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24079 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
24080 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
24082 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
24084 for ac_func in _sincosl
24086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24087 echo "$as_me:$LINENO: checking for $ac_func" >&5
24088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24089 if eval "test \"\${$as_ac_var+set}\" = set"; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 else
24092 if test x$gcc_no_link = xyes; then
24093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24095 { (exit 1); exit 1; }; }
24097 cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h. */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24105 #define $ac_func innocuous_$ac_func
24107 /* System header to define __stub macros and hopefully few prototypes,
24108 which can conflict with char $ac_func (); below.
24109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24110 <limits.h> exists even on freestanding compilers. */
24112 #ifdef __STDC__
24113 # include <limits.h>
24114 #else
24115 # include <assert.h>
24116 #endif
24118 #undef $ac_func
24120 /* Override any gcc2 internal prototype to avoid an error. */
24121 #ifdef __cplusplus
24122 extern "C"
24124 #endif
24125 /* We use char because int might match the return type of a gcc2
24126 builtin and then its argument prototype would still apply. */
24127 char $ac_func ();
24128 /* The GNU C library defines this for functions which it implements
24129 to always fail with ENOSYS. Some functions are actually named
24130 something starting with __ and the normal name is an alias. */
24131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24132 choke me
24133 #else
24134 char (*f) () = $ac_func;
24135 #endif
24136 #ifdef __cplusplus
24138 #endif
24141 main ()
24143 return f != $ac_func;
24145 return 0;
24147 _ACEOF
24148 rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24150 (eval $ac_link) 2>conftest.er1
24151 ac_status=$?
24152 grep -v '^ *+' conftest.er1 >conftest.err
24153 rm -f conftest.er1
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } &&
24157 { ac_try='test -z "$ac_c_werror_flag"
24158 || test ! -s conftest.err'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24161 ac_status=$?
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest$ac_exeext'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 eval "$as_ac_var=yes"
24171 else
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 eval "$as_ac_var=no"
24177 rm -f conftest.err conftest.$ac_objext \
24178 conftest$ac_exeext conftest.$ac_ext
24180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24182 if test `eval echo '${'$as_ac_var'}'` = yes; then
24183 cat >>confdefs.h <<_ACEOF
24184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24185 _ACEOF
24188 done
24195 echo "$as_me:$LINENO: checking for finitel declaration" >&5
24196 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24197 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24198 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24204 ac_ext=cc
24205 ac_cpp='$CXXCPP $CPPFLAGS'
24206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24210 cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h. */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216 #include <math.h>
24217 #ifdef HAVE_IEEEFP_H
24218 #include <ieeefp.h>
24219 #endif
24222 main ()
24224 finitel(0);
24226 return 0;
24228 _ACEOF
24229 rm -f conftest.$ac_objext
24230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24231 (eval $ac_compile) 2>conftest.er1
24232 ac_status=$?
24233 grep -v '^ *+' conftest.er1 >conftest.err
24234 rm -f conftest.er1
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } &&
24238 { ac_try='test -z "$ac_cxx_werror_flag"
24239 || test ! -s conftest.err'
24240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); }; } &&
24245 { ac_try='test -s conftest.$ac_objext'
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 glibcxx_cv_func_finitel_use=yes
24252 else
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 glibcxx_cv_func_finitel_use=no
24258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24259 ac_ext=c
24260 ac_cpp='$CPP $CPPFLAGS'
24261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24269 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24270 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24272 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24274 for ac_func in finitel
24276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24277 echo "$as_me:$LINENO: checking for $ac_func" >&5
24278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24279 if eval "test \"\${$as_ac_var+set}\" = set"; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282 if test x$gcc_no_link = xyes; then
24283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24285 { (exit 1); exit 1; }; }
24287 cat >conftest.$ac_ext <<_ACEOF
24288 /* confdefs.h. */
24289 _ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h. */
24293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24295 #define $ac_func innocuous_$ac_func
24297 /* System header to define __stub macros and hopefully few prototypes,
24298 which can conflict with char $ac_func (); below.
24299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24300 <limits.h> exists even on freestanding compilers. */
24302 #ifdef __STDC__
24303 # include <limits.h>
24304 #else
24305 # include <assert.h>
24306 #endif
24308 #undef $ac_func
24310 /* Override any gcc2 internal prototype to avoid an error. */
24311 #ifdef __cplusplus
24312 extern "C"
24314 #endif
24315 /* We use char because int might match the return type of a gcc2
24316 builtin and then its argument prototype would still apply. */
24317 char $ac_func ();
24318 /* The GNU C library defines this for functions which it implements
24319 to always fail with ENOSYS. Some functions are actually named
24320 something starting with __ and the normal name is an alias. */
24321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24322 choke me
24323 #else
24324 char (*f) () = $ac_func;
24325 #endif
24326 #ifdef __cplusplus
24328 #endif
24331 main ()
24333 return f != $ac_func;
24335 return 0;
24337 _ACEOF
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24340 (eval $ac_link) 2>conftest.er1
24341 ac_status=$?
24342 grep -v '^ *+' conftest.er1 >conftest.err
24343 rm -f conftest.er1
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } &&
24347 { ac_try='test -z "$ac_c_werror_flag"
24348 || test ! -s conftest.err'
24349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); }; } &&
24354 { ac_try='test -s conftest$ac_exeext'
24355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356 (eval $ac_try) 2>&5
24357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; }; then
24360 eval "$as_ac_var=yes"
24361 else
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24365 eval "$as_ac_var=no"
24367 rm -f conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24372 if test `eval echo '${'$as_ac_var'}'` = yes; then
24373 cat >>confdefs.h <<_ACEOF
24374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24375 _ACEOF
24378 done
24380 else
24382 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24383 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24384 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24385 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24391 ac_ext=cc
24392 ac_cpp='$CXXCPP $CPPFLAGS'
24393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24397 cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h. */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24403 #include <math.h>
24404 #ifdef HAVE_IEEEFP_H
24405 #include <ieeefp.h>
24406 #endif
24409 main ()
24411 _finitel(0);
24413 return 0;
24415 _ACEOF
24416 rm -f conftest.$ac_objext
24417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24418 (eval $ac_compile) 2>conftest.er1
24419 ac_status=$?
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
24425 { ac_try='test -z "$ac_cxx_werror_flag"
24426 || test ! -s conftest.err'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; } &&
24432 { ac_try='test -s conftest.$ac_objext'
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
24438 glibcxx_cv_func__finitel_use=yes
24439 else
24440 echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24443 glibcxx_cv_func__finitel_use=no
24445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24446 ac_ext=c
24447 ac_cpp='$CPP $CPPFLAGS'
24448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24456 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24457 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24459 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24461 for ac_func in _finitel
24463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24464 echo "$as_me:$LINENO: checking for $ac_func" >&5
24465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24466 if eval "test \"\${$as_ac_var+set}\" = set"; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469 if test x$gcc_no_link = xyes; then
24470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24472 { (exit 1); exit 1; }; }
24474 cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h. */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24482 #define $ac_func innocuous_$ac_func
24484 /* System header to define __stub macros and hopefully few prototypes,
24485 which can conflict with char $ac_func (); below.
24486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24487 <limits.h> exists even on freestanding compilers. */
24489 #ifdef __STDC__
24490 # include <limits.h>
24491 #else
24492 # include <assert.h>
24493 #endif
24495 #undef $ac_func
24497 /* Override any gcc2 internal prototype to avoid an error. */
24498 #ifdef __cplusplus
24499 extern "C"
24501 #endif
24502 /* We use char because int might match the return type of a gcc2
24503 builtin and then its argument prototype would still apply. */
24504 char $ac_func ();
24505 /* The GNU C library defines this for functions which it implements
24506 to always fail with ENOSYS. Some functions are actually named
24507 something starting with __ and the normal name is an alias. */
24508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24509 choke me
24510 #else
24511 char (*f) () = $ac_func;
24512 #endif
24513 #ifdef __cplusplus
24515 #endif
24518 main ()
24520 return f != $ac_func;
24522 return 0;
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24527 (eval $ac_link) 2>conftest.er1
24528 ac_status=$?
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -z "$ac_c_werror_flag"
24535 || test ! -s conftest.err'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest$ac_exeext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 eval "$as_ac_var=yes"
24548 else
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 eval "$as_ac_var=no"
24554 rm -f conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24559 if test `eval echo '${'$as_ac_var'}'` = yes; then
24560 cat >>confdefs.h <<_ACEOF
24561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24562 _ACEOF
24565 done
24573 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24574 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24575 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24581 ac_ext=cc
24582 ac_cpp='$CXXCPP $CPPFLAGS'
24583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 #include <math.h>
24595 main ()
24597 `for x in _acosf _asinf _atanf \
24598 _cosf _sinf _tanf \
24599 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24601 return 0;
24603 _ACEOF
24604 rm -f conftest.$ac_objext
24605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24606 (eval $ac_compile) 2>conftest.er1
24607 ac_status=$?
24608 grep -v '^ *+' conftest.er1 >conftest.err
24609 rm -f conftest.er1
24610 cat conftest.err >&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } &&
24613 { ac_try='test -z "$ac_cxx_werror_flag"
24614 || test ! -s conftest.err'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; } &&
24620 { ac_try='test -s conftest.$ac_objext'
24621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622 (eval $ac_try) 2>&5
24623 ac_status=$?
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 glibcxx_cv_func__float_trig_use=yes
24627 else
24628 echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 glibcxx_cv_func__float_trig_use=no
24633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24634 ac_ext=c
24635 ac_cpp='$CPP $CPPFLAGS'
24636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24642 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24643 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24644 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24654 for ac_func in _acosf _asinf _atanf \
24655 _cosf _sinf _tanf \
24656 _coshf _sinhf _tanhf
24658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659 echo "$as_me:$LINENO: checking for $ac_func" >&5
24660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24661 if eval "test \"\${$as_ac_var+set}\" = set"; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 else
24664 if test x$gcc_no_link = xyes; then
24665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24667 { (exit 1); exit 1; }; }
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h. */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24677 #define $ac_func innocuous_$ac_func
24679 /* System header to define __stub macros and hopefully few prototypes,
24680 which can conflict with char $ac_func (); below.
24681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24682 <limits.h> exists even on freestanding compilers. */
24684 #ifdef __STDC__
24685 # include <limits.h>
24686 #else
24687 # include <assert.h>
24688 #endif
24690 #undef $ac_func
24692 /* Override any gcc2 internal prototype to avoid an error. */
24693 #ifdef __cplusplus
24694 extern "C"
24696 #endif
24697 /* We use char because int might match the return type of a gcc2
24698 builtin and then its argument prototype would still apply. */
24699 char $ac_func ();
24700 /* The GNU C library defines this for functions which it implements
24701 to always fail with ENOSYS. Some functions are actually named
24702 something starting with __ and the normal name is an alias. */
24703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24704 choke me
24705 #else
24706 char (*f) () = $ac_func;
24707 #endif
24708 #ifdef __cplusplus
24710 #endif
24713 main ()
24715 return f != $ac_func;
24717 return 0;
24719 _ACEOF
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24722 (eval $ac_link) 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag"
24730 || test ! -s conftest.err'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest$ac_exeext'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; }; then
24742 eval "$as_ac_var=yes"
24743 else
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 eval "$as_ac_var=no"
24749 rm -f conftest.err conftest.$ac_objext \
24750 conftest$ac_exeext conftest.$ac_ext
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24754 if test `eval echo '${'$as_ac_var'}'` = yes; then
24755 cat >>confdefs.h <<_ACEOF
24756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24757 _ACEOF
24760 done
24765 echo "$as_me:$LINENO: checking for _float round functions" >&5
24766 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24767 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24773 ac_ext=cc
24774 ac_cpp='$CXXCPP $CPPFLAGS'
24775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24779 cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h. */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24785 #include <math.h>
24787 main ()
24789 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24791 return 0;
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24796 (eval $ac_compile) 2>conftest.er1
24797 ac_status=$?
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
24803 { ac_try='test -z "$ac_cxx_werror_flag"
24804 || test ! -s conftest.err'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest.$ac_objext'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; }; then
24816 glibcxx_cv_func__float_round_use=yes
24817 else
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24821 glibcxx_cv_func__float_round_use=no
24823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24824 ac_ext=c
24825 ac_cpp='$CPP $CPPFLAGS'
24826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24832 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24833 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24834 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24837 for ac_func in _ceilf _floorf
24839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24840 echo "$as_me:$LINENO: checking for $ac_func" >&5
24841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24842 if eval "test \"\${$as_ac_var+set}\" = set"; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 else
24845 if test x$gcc_no_link = xyes; then
24846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24848 { (exit 1); exit 1; }; }
24850 cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h. */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24858 #define $ac_func innocuous_$ac_func
24860 /* System header to define __stub macros and hopefully few prototypes,
24861 which can conflict with char $ac_func (); below.
24862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24863 <limits.h> exists even on freestanding compilers. */
24865 #ifdef __STDC__
24866 # include <limits.h>
24867 #else
24868 # include <assert.h>
24869 #endif
24871 #undef $ac_func
24873 /* Override any gcc2 internal prototype to avoid an error. */
24874 #ifdef __cplusplus
24875 extern "C"
24877 #endif
24878 /* We use char because int might match the return type of a gcc2
24879 builtin and then its argument prototype would still apply. */
24880 char $ac_func ();
24881 /* The GNU C library defines this for functions which it implements
24882 to always fail with ENOSYS. Some functions are actually named
24883 something starting with __ and the normal name is an alias. */
24884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24885 choke me
24886 #else
24887 char (*f) () = $ac_func;
24888 #endif
24889 #ifdef __cplusplus
24891 #endif
24894 main ()
24896 return f != $ac_func;
24898 return 0;
24900 _ACEOF
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903 (eval $ac_link) 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
24910 { ac_try='test -z "$ac_c_werror_flag"
24911 || test ! -s conftest.err'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; } &&
24917 { ac_try='test -s conftest$ac_exeext'
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24923 eval "$as_ac_var=yes"
24924 else
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 eval "$as_ac_var=no"
24930 rm -f conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936 cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24938 _ACEOF
24941 done
24947 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24948 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24949 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24955 ac_ext=cc
24956 ac_cpp='$CXXCPP $CPPFLAGS'
24957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24961 cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h. */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 #include <math.h>
24969 main ()
24971 `for x in _acosl _asinl _atanl \
24972 _cosl _sinl _tanl \
24973 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24975 return 0;
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24980 (eval $ac_compile) 2>conftest.er1
24981 ac_status=$?
24982 grep -v '^ *+' conftest.er1 >conftest.err
24983 rm -f conftest.er1
24984 cat conftest.err >&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } &&
24987 { ac_try='test -z "$ac_cxx_werror_flag"
24988 || test ! -s conftest.err'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; } &&
24994 { ac_try='test -s conftest.$ac_objext'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25000 glibcxx_cv_func__long_double_trig_use=yes
25001 else
25002 echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25005 glibcxx_cv_func__long_double_trig_use=no
25007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25008 ac_ext=c
25009 ac_cpp='$CPP $CPPFLAGS'
25010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25016 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
25017 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
25018 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
25028 for ac_func in _acosl _asinl _atanl \
25029 _cosl _sinl _tanl \
25030 _coshl _sinhl _tanhl
25032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25033 echo "$as_me:$LINENO: checking for $ac_func" >&5
25034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25035 if eval "test \"\${$as_ac_var+set}\" = set"; then
25036 echo $ECHO_N "(cached) $ECHO_C" >&6
25037 else
25038 if test x$gcc_no_link = xyes; then
25039 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25041 { (exit 1); exit 1; }; }
25043 cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h. */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h. */
25049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25051 #define $ac_func innocuous_$ac_func
25053 /* System header to define __stub macros and hopefully few prototypes,
25054 which can conflict with char $ac_func (); below.
25055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25056 <limits.h> exists even on freestanding compilers. */
25058 #ifdef __STDC__
25059 # include <limits.h>
25060 #else
25061 # include <assert.h>
25062 #endif
25064 #undef $ac_func
25066 /* Override any gcc2 internal prototype to avoid an error. */
25067 #ifdef __cplusplus
25068 extern "C"
25070 #endif
25071 /* We use char because int might match the return type of a gcc2
25072 builtin and then its argument prototype would still apply. */
25073 char $ac_func ();
25074 /* The GNU C library defines this for functions which it implements
25075 to always fail with ENOSYS. Some functions are actually named
25076 something starting with __ and the normal name is an alias. */
25077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25078 choke me
25079 #else
25080 char (*f) () = $ac_func;
25081 #endif
25082 #ifdef __cplusplus
25084 #endif
25087 main ()
25089 return f != $ac_func;
25091 return 0;
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25096 (eval $ac_link) 2>conftest.er1
25097 ac_status=$?
25098 grep -v '^ *+' conftest.er1 >conftest.err
25099 rm -f conftest.er1
25100 cat conftest.err >&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } &&
25103 { ac_try='test -z "$ac_c_werror_flag"
25104 || test ! -s conftest.err'
25105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest$ac_exeext'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25116 eval "$as_ac_var=yes"
25117 else
25118 echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25121 eval "$as_ac_var=no"
25123 rm -f conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext conftest.$ac_ext
25126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25128 if test `eval echo '${'$as_ac_var'}'` = yes; then
25129 cat >>confdefs.h <<_ACEOF
25130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25131 _ACEOF
25134 done
25139 echo "$as_me:$LINENO: checking for _long double round functions" >&5
25140 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
25141 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25147 ac_ext=cc
25148 ac_cpp='$CXXCPP $CPPFLAGS'
25149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h. */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 #include <math.h>
25161 main ()
25163 `for x in _ceill _floorl; do echo "$x (0);"; done`
25165 return 0;
25167 _ACEOF
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170 (eval $ac_compile) 2>conftest.er1
25171 ac_status=$?
25172 grep -v '^ *+' conftest.er1 >conftest.err
25173 rm -f conftest.er1
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
25177 { ac_try='test -z "$ac_cxx_werror_flag"
25178 || test ! -s conftest.err'
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest.$ac_objext'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 glibcxx_cv_func__long_double_round_use=yes
25191 else
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 glibcxx_cv_func__long_double_round_use=no
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198 ac_ext=c
25199 ac_cpp='$CPP $CPPFLAGS'
25200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25206 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25207 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25208 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25211 for ac_func in _ceill _floorl
25213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25214 echo "$as_me:$LINENO: checking for $ac_func" >&5
25215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25216 if eval "test \"\${$as_ac_var+set}\" = set"; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219 if test x$gcc_no_link = xyes; then
25220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25222 { (exit 1); exit 1; }; }
25224 cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h. */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25232 #define $ac_func innocuous_$ac_func
25234 /* System header to define __stub macros and hopefully few prototypes,
25235 which can conflict with char $ac_func (); below.
25236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25237 <limits.h> exists even on freestanding compilers. */
25239 #ifdef __STDC__
25240 # include <limits.h>
25241 #else
25242 # include <assert.h>
25243 #endif
25245 #undef $ac_func
25247 /* Override any gcc2 internal prototype to avoid an error. */
25248 #ifdef __cplusplus
25249 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25254 char $ac_func ();
25255 /* The GNU C library defines this for functions which it implements
25256 to always fail with ENOSYS. Some functions are actually named
25257 something starting with __ and the normal name is an alias. */
25258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25259 choke me
25260 #else
25261 char (*f) () = $ac_func;
25262 #endif
25263 #ifdef __cplusplus
25265 #endif
25268 main ()
25270 return f != $ac_func;
25272 return 0;
25274 _ACEOF
25275 rm -f conftest.$ac_objext conftest$ac_exeext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25277 (eval $ac_link) 2>conftest.er1
25278 ac_status=$?
25279 grep -v '^ *+' conftest.er1 >conftest.err
25280 rm -f conftest.er1
25281 cat conftest.err >&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } &&
25284 { ac_try='test -z "$ac_c_werror_flag"
25285 || test ! -s conftest.err'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } &&
25291 { ac_try='test -s conftest$ac_exeext'
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; }; then
25297 eval "$as_ac_var=yes"
25298 else
25299 echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25302 eval "$as_ac_var=no"
25304 rm -f conftest.err conftest.$ac_objext \
25305 conftest$ac_exeext conftest.$ac_ext
25307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25309 if test `eval echo '${'$as_ac_var'}'` = yes; then
25310 cat >>confdefs.h <<_ACEOF
25311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25312 _ACEOF
25315 done
25320 LIBS="$ac_save_LIBS"
25321 CXXFLAGS="$ac_save_CXXFLAGS"
25325 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25326 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25327 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25328 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25329 echo $ECHO_N "(cached) $ECHO_C" >&6
25330 else
25334 ac_ext=cc
25335 ac_cpp='$CXXCPP $CPPFLAGS'
25336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25340 cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h. */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 #include <math.h>
25348 main ()
25350 __builtin_abs(0);
25352 return 0;
25354 _ACEOF
25355 rm -f conftest.$ac_objext
25356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25357 (eval $ac_compile) 2>conftest.er1
25358 ac_status=$?
25359 grep -v '^ *+' conftest.er1 >conftest.err
25360 rm -f conftest.er1
25361 cat conftest.err >&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
25364 { ac_try='test -z "$ac_cxx_werror_flag"
25365 || test ! -s conftest.err'
25366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; } &&
25371 { ac_try='test -s conftest.$ac_objext'
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25374 ac_status=$?
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; }; then
25377 glibcxx_cv_func___builtin_abs_use=yes
25378 else
25379 echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 glibcxx_cv_func___builtin_abs_use=no
25384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385 ac_ext=c
25386 ac_cpp='$CPP $CPPFLAGS'
25387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25395 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25396 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25397 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25398 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25399 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25400 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25401 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25405 if test x$gcc_no_link = xyes; then
25406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25408 { (exit 1); exit 1; }; }
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h. */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 #include <math.h>
25418 main ()
25420 __builtin_abs(0);
25422 return 0;
25424 _ACEOF
25425 rm -f conftest.$ac_objext conftest$ac_exeext
25426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25427 (eval $ac_link) 2>conftest.er1
25428 ac_status=$?
25429 grep -v '^ *+' conftest.er1 >conftest.err
25430 rm -f conftest.er1
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -z "$ac_c_werror_flag"
25435 || test ! -s conftest.err'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest$ac_exeext'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 glibcxx_cv_func___builtin_abs_link=yes
25448 else
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 glibcxx_cv_func___builtin_abs_link=no
25454 rm -f conftest.err conftest.$ac_objext \
25455 conftest$ac_exeext conftest.$ac_ext
25460 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25461 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25462 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25463 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25465 cat >>confdefs.h <<\_ACEOF
25466 #define ${ac_tr_func} 1
25467 _ACEOF
25473 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25474 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25475 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25476 if test "${glibcxx_cv_func___builtin_fabsf_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_fabsf(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_fabsf_use=yes
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 glibcxx_cv_func___builtin_fabsf_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_fabsf_use" >&5
25544 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25545 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25546 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25547 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25548 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25549 if test "${glibcxx_cv_func___builtin_fabsf_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_fabsf(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_fabsf_link=yes
25596 else
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 glibcxx_cv_func___builtin_fabsf_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_fabsf_link" >&5
25609 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25610 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25611 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25613 cat >>confdefs.h <<\_ACEOF
25614 #define ${ac_tr_func} 1
25615 _ACEOF
25621 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25622 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25623 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25624 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25630 ac_ext=cc
25631 ac_cpp='$CXXCPP $CPPFLAGS'
25632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h. */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 #include <math.h>
25644 main ()
25646 __builtin_fabs(0);
25648 return 0;
25650 _ACEOF
25651 rm -f conftest.$ac_objext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25653 (eval $ac_compile) 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
25660 { ac_try='test -z "$ac_cxx_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest.$ac_objext'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 glibcxx_cv_func___builtin_fabs_use=yes
25674 else
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 glibcxx_cv_func___builtin_fabs_use=no
25680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25681 ac_ext=c
25682 ac_cpp='$CPP $CPPFLAGS'
25683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25691 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25692 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25693 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25694 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25695 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25696 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25697 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25699 else
25701 if test x$gcc_no_link = xyes; then
25702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25704 { (exit 1); exit 1; }; }
25706 cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h. */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 #include <math.h>
25714 main ()
25716 __builtin_fabs(0);
25718 return 0;
25720 _ACEOF
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25723 (eval $ac_link) 2>conftest.er1
25724 ac_status=$?
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } &&
25730 { ac_try='test -z "$ac_c_werror_flag"
25731 || test ! -s conftest.err'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; } &&
25737 { ac_try='test -s conftest$ac_exeext'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; }; then
25743 glibcxx_cv_func___builtin_fabs_link=yes
25744 else
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25748 glibcxx_cv_func___builtin_fabs_link=no
25750 rm -f conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
25756 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25757 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25758 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25759 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25761 cat >>confdefs.h <<\_ACEOF
25762 #define ${ac_tr_func} 1
25763 _ACEOF
25769 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25770 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25771 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25772 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25773 echo $ECHO_N "(cached) $ECHO_C" >&6
25774 else
25778 ac_ext=cc
25779 ac_cpp='$CXXCPP $CPPFLAGS'
25780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25784 cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h. */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25790 #include <math.h>
25792 main ()
25794 __builtin_fabsl(0);
25796 return 0;
25798 _ACEOF
25799 rm -f conftest.$ac_objext
25800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25801 (eval $ac_compile) 2>conftest.er1
25802 ac_status=$?
25803 grep -v '^ *+' conftest.er1 >conftest.err
25804 rm -f conftest.er1
25805 cat conftest.err >&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); } &&
25808 { ac_try='test -z "$ac_cxx_werror_flag"
25809 || test ! -s conftest.err'
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; } &&
25815 { ac_try='test -s conftest.$ac_objext'
25816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25817 (eval $ac_try) 2>&5
25818 ac_status=$?
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); }; }; then
25821 glibcxx_cv_func___builtin_fabsl_use=yes
25822 else
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 glibcxx_cv_func___builtin_fabsl_use=no
25828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25829 ac_ext=c
25830 ac_cpp='$CPP $CPPFLAGS'
25831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25839 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25840 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25841 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25842 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25843 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25844 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25845 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25846 echo $ECHO_N "(cached) $ECHO_C" >&6
25847 else
25849 if test x$gcc_no_link = xyes; then
25850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25852 { (exit 1); exit 1; }; }
25854 cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h. */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 #include <math.h>
25862 main ()
25864 __builtin_fabsl(0);
25866 return 0;
25868 _ACEOF
25869 rm -f conftest.$ac_objext conftest$ac_exeext
25870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25871 (eval $ac_link) 2>conftest.er1
25872 ac_status=$?
25873 grep -v '^ *+' conftest.er1 >conftest.err
25874 rm -f conftest.er1
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } &&
25878 { ac_try='test -z "$ac_c_werror_flag"
25879 || test ! -s conftest.err'
25880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; } &&
25885 { ac_try='test -s conftest$ac_exeext'
25886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; }; then
25891 glibcxx_cv_func___builtin_fabsl_link=yes
25892 else
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 glibcxx_cv_func___builtin_fabsl_link=no
25898 rm -f conftest.err conftest.$ac_objext \
25899 conftest$ac_exeext conftest.$ac_ext
25904 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25905 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25906 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25907 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25909 cat >>confdefs.h <<\_ACEOF
25910 #define ${ac_tr_func} 1
25911 _ACEOF
25917 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25918 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25919 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25920 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 else
25926 ac_ext=cc
25927 ac_cpp='$CXXCPP $CPPFLAGS'
25928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25932 cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h. */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 #include <math.h>
25940 main ()
25942 __builtin_labs(0);
25944 return 0;
25946 _ACEOF
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949 (eval $ac_compile) 2>conftest.er1
25950 ac_status=$?
25951 grep -v '^ *+' conftest.er1 >conftest.err
25952 rm -f conftest.er1
25953 cat conftest.err >&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -z "$ac_cxx_werror_flag"
25957 || test ! -s conftest.err'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest.$ac_objext'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 glibcxx_cv_func___builtin_labs_use=yes
25970 else
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25974 glibcxx_cv_func___builtin_labs_use=no
25976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25977 ac_ext=c
25978 ac_cpp='$CPP $CPPFLAGS'
25979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25987 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25988 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25989 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25990 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25991 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25992 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25993 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25997 if test x$gcc_no_link = xyes; then
25998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26000 { (exit 1); exit 1; }; }
26002 cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h. */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 #include <math.h>
26010 main ()
26012 __builtin_labs(0);
26014 return 0;
26016 _ACEOF
26017 rm -f conftest.$ac_objext conftest$ac_exeext
26018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26019 (eval $ac_link) 2>conftest.er1
26020 ac_status=$?
26021 grep -v '^ *+' conftest.er1 >conftest.err
26022 rm -f conftest.er1
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } &&
26026 { ac_try='test -z "$ac_c_werror_flag"
26027 || test ! -s conftest.err'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest$ac_exeext'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 glibcxx_cv_func___builtin_labs_link=yes
26040 else
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 glibcxx_cv_func___builtin_labs_link=no
26046 rm -f conftest.err conftest.$ac_objext \
26047 conftest$ac_exeext conftest.$ac_ext
26052 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
26053 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
26054 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
26055 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26057 cat >>confdefs.h <<\_ACEOF
26058 #define ${ac_tr_func} 1
26059 _ACEOF
26066 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
26067 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
26068 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
26069 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26075 ac_ext=cc
26076 ac_cpp='$CXXCPP $CPPFLAGS'
26077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26081 cat >conftest.$ac_ext <<_ACEOF
26082 /* confdefs.h. */
26083 _ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h. */
26087 #include <math.h>
26089 main ()
26091 __builtin_sqrtf(0);
26093 return 0;
26095 _ACEOF
26096 rm -f conftest.$ac_objext
26097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26098 (eval $ac_compile) 2>conftest.er1
26099 ac_status=$?
26100 grep -v '^ *+' conftest.er1 >conftest.err
26101 rm -f conftest.er1
26102 cat conftest.err >&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); } &&
26105 { ac_try='test -z "$ac_cxx_werror_flag"
26106 || test ! -s conftest.err'
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest.$ac_objext'
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 glibcxx_cv_func___builtin_sqrtf_use=yes
26119 else
26120 echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26123 glibcxx_cv_func___builtin_sqrtf_use=no
26125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26126 ac_ext=c
26127 ac_cpp='$CPP $CPPFLAGS'
26128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26136 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
26137 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
26138 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
26139 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
26140 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
26141 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
26142 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26146 if test x$gcc_no_link = xyes; then
26147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26149 { (exit 1); exit 1; }; }
26151 cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h. */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 #include <math.h>
26159 main ()
26161 __builtin_sqrtf(0);
26163 return 0;
26165 _ACEOF
26166 rm -f conftest.$ac_objext conftest$ac_exeext
26167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26168 (eval $ac_link) 2>conftest.er1
26169 ac_status=$?
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } &&
26175 { ac_try='test -z "$ac_c_werror_flag"
26176 || test ! -s conftest.err'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest$ac_exeext'
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 glibcxx_cv_func___builtin_sqrtf_link=yes
26189 else
26190 echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26193 glibcxx_cv_func___builtin_sqrtf_link=no
26195 rm -f conftest.err conftest.$ac_objext \
26196 conftest$ac_exeext conftest.$ac_ext
26201 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26202 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26203 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26204 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26206 cat >>confdefs.h <<\_ACEOF
26207 #define ${ac_tr_func} 1
26208 _ACEOF
26214 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26215 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26216 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26217 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26223 ac_ext=cc
26224 ac_cpp='$CXXCPP $CPPFLAGS'
26225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26229 cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h. */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 #include <math.h>
26237 main ()
26239 __builtin_sqrt(0);
26241 return 0;
26243 _ACEOF
26244 rm -f conftest.$ac_objext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26246 (eval $ac_compile) 2>conftest.er1
26247 ac_status=$?
26248 grep -v '^ *+' conftest.er1 >conftest.err
26249 rm -f conftest.er1
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
26253 { ac_try='test -z "$ac_cxx_werror_flag"
26254 || test ! -s conftest.err'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } &&
26260 { ac_try='test -s conftest.$ac_objext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 glibcxx_cv_func___builtin_sqrt_use=yes
26267 else
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 glibcxx_cv_func___builtin_sqrt_use=no
26273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26274 ac_ext=c
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26284 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26285 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26286 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26287 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26288 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26289 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26290 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26291 echo $ECHO_N "(cached) $ECHO_C" >&6
26292 else
26294 if test x$gcc_no_link = xyes; then
26295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26297 { (exit 1); exit 1; }; }
26299 cat >conftest.$ac_ext <<_ACEOF
26300 /* confdefs.h. */
26301 _ACEOF
26302 cat confdefs.h >>conftest.$ac_ext
26303 cat >>conftest.$ac_ext <<_ACEOF
26304 /* end confdefs.h. */
26305 #include <math.h>
26307 main ()
26309 __builtin_sqrt(0);
26311 return 0;
26313 _ACEOF
26314 rm -f conftest.$ac_objext conftest$ac_exeext
26315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26316 (eval $ac_link) 2>conftest.er1
26317 ac_status=$?
26318 grep -v '^ *+' conftest.er1 >conftest.err
26319 rm -f conftest.er1
26320 cat conftest.err >&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); } &&
26323 { ac_try='test -z "$ac_c_werror_flag"
26324 || test ! -s conftest.err'
26325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26326 (eval $ac_try) 2>&5
26327 ac_status=$?
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); }; } &&
26330 { ac_try='test -s conftest$ac_exeext'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; }; then
26336 glibcxx_cv_func___builtin_sqrt_link=yes
26337 else
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26341 glibcxx_cv_func___builtin_sqrt_link=no
26343 rm -f conftest.err conftest.$ac_objext \
26344 conftest$ac_exeext conftest.$ac_ext
26349 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26350 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26351 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26352 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26354 cat >>confdefs.h <<\_ACEOF
26355 #define ${ac_tr_func} 1
26356 _ACEOF
26362 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26363 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26364 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26365 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26366 echo $ECHO_N "(cached) $ECHO_C" >&6
26367 else
26371 ac_ext=cc
26372 ac_cpp='$CXXCPP $CPPFLAGS'
26373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26377 cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h. */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 #include <math.h>
26385 main ()
26387 __builtin_sqrtl(0);
26389 return 0;
26391 _ACEOF
26392 rm -f conftest.$ac_objext
26393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26394 (eval $ac_compile) 2>conftest.er1
26395 ac_status=$?
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } &&
26401 { ac_try='test -z "$ac_cxx_werror_flag"
26402 || test ! -s conftest.err'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; } &&
26408 { ac_try='test -s conftest.$ac_objext'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; }; then
26414 glibcxx_cv_func___builtin_sqrtl_use=yes
26415 else
26416 echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26419 glibcxx_cv_func___builtin_sqrtl_use=no
26421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422 ac_ext=c
26423 ac_cpp='$CPP $CPPFLAGS'
26424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26432 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26433 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26434 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26435 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26436 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26437 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26438 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26442 if test x$gcc_no_link = xyes; then
26443 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26444 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26445 { (exit 1); exit 1; }; }
26447 cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h. */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h. */
26453 #include <math.h>
26455 main ()
26457 __builtin_sqrtl(0);
26459 return 0;
26461 _ACEOF
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26464 (eval $ac_link) 2>conftest.er1
26465 ac_status=$?
26466 grep -v '^ *+' conftest.er1 >conftest.err
26467 rm -f conftest.er1
26468 cat conftest.err >&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); } &&
26471 { ac_try='test -z "$ac_c_werror_flag"
26472 || test ! -s conftest.err'
26473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; } &&
26478 { ac_try='test -s conftest$ac_exeext'
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; }; then
26484 glibcxx_cv_func___builtin_sqrtl_link=yes
26485 else
26486 echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26489 glibcxx_cv_func___builtin_sqrtl_link=no
26491 rm -f conftest.err conftest.$ac_objext \
26492 conftest$ac_exeext conftest.$ac_ext
26497 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26498 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26499 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26500 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26502 cat >>confdefs.h <<\_ACEOF
26503 #define ${ac_tr_func} 1
26504 _ACEOF
26511 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26512 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26513 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26514 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516 else
26520 ac_ext=cc
26521 ac_cpp='$CXXCPP $CPPFLAGS'
26522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26526 cat >conftest.$ac_ext <<_ACEOF
26527 /* confdefs.h. */
26528 _ACEOF
26529 cat confdefs.h >>conftest.$ac_ext
26530 cat >>conftest.$ac_ext <<_ACEOF
26531 /* end confdefs.h. */
26532 #include <math.h>
26534 main ()
26536 __builtin_sinf(0);
26538 return 0;
26540 _ACEOF
26541 rm -f conftest.$ac_objext
26542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26543 (eval $ac_compile) 2>conftest.er1
26544 ac_status=$?
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
26550 { ac_try='test -z "$ac_cxx_werror_flag"
26551 || test ! -s conftest.err'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest.$ac_objext'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 glibcxx_cv_func___builtin_sinf_use=yes
26564 else
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26568 glibcxx_cv_func___builtin_sinf_use=no
26570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26571 ac_ext=c
26572 ac_cpp='$CPP $CPPFLAGS'
26573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26581 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26582 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26583 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26584 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26585 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26586 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26587 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26591 if test x$gcc_no_link = xyes; then
26592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26594 { (exit 1); exit 1; }; }
26596 cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h. */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h. */
26602 #include <math.h>
26604 main ()
26606 __builtin_sinf(0);
26608 return 0;
26610 _ACEOF
26611 rm -f conftest.$ac_objext conftest$ac_exeext
26612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26613 (eval $ac_link) 2>conftest.er1
26614 ac_status=$?
26615 grep -v '^ *+' conftest.er1 >conftest.err
26616 rm -f conftest.er1
26617 cat conftest.err >&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } &&
26620 { ac_try='test -z "$ac_c_werror_flag"
26621 || test ! -s conftest.err'
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; } &&
26627 { ac_try='test -s conftest$ac_exeext'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
26633 glibcxx_cv_func___builtin_sinf_link=yes
26634 else
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 glibcxx_cv_func___builtin_sinf_link=no
26640 rm -f conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
26646 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26647 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26648 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26649 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26651 cat >>confdefs.h <<\_ACEOF
26652 #define ${ac_tr_func} 1
26653 _ACEOF
26659 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26660 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26661 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26662 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 else
26668 ac_ext=cc
26669 ac_cpp='$CXXCPP $CPPFLAGS'
26670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26674 cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h. */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26680 #include <math.h>
26682 main ()
26684 __builtin_sin(0);
26686 return 0;
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26691 (eval $ac_compile) 2>conftest.er1
26692 ac_status=$?
26693 grep -v '^ *+' conftest.er1 >conftest.err
26694 rm -f conftest.er1
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } &&
26698 { ac_try='test -z "$ac_cxx_werror_flag"
26699 || test ! -s conftest.err'
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; } &&
26705 { ac_try='test -s conftest.$ac_objext'
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 glibcxx_cv_func___builtin_sin_use=yes
26712 else
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 glibcxx_cv_func___builtin_sin_use=no
26718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26719 ac_ext=c
26720 ac_cpp='$CPP $CPPFLAGS'
26721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26729 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26730 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26731 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26732 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26733 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26734 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26735 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 else
26739 if test x$gcc_no_link = xyes; then
26740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26742 { (exit 1); exit 1; }; }
26744 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h. */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26750 #include <math.h>
26752 main ()
26754 __builtin_sin(0);
26756 return 0;
26758 _ACEOF
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26761 (eval $ac_link) 2>conftest.er1
26762 ac_status=$?
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
26768 { ac_try='test -z "$ac_c_werror_flag"
26769 || test ! -s conftest.err'
26770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771 (eval $ac_try) 2>&5
26772 ac_status=$?
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); }; } &&
26775 { ac_try='test -s conftest$ac_exeext'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26778 ac_status=$?
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; }; then
26781 glibcxx_cv_func___builtin_sin_link=yes
26782 else
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 glibcxx_cv_func___builtin_sin_link=no
26788 rm -f conftest.err conftest.$ac_objext \
26789 conftest$ac_exeext conftest.$ac_ext
26794 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26795 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26796 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26797 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26799 cat >>confdefs.h <<\_ACEOF
26800 #define ${ac_tr_func} 1
26801 _ACEOF
26807 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26808 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26809 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26810 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 else
26816 ac_ext=cc
26817 ac_cpp='$CXXCPP $CPPFLAGS'
26818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26822 cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h. */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 #include <math.h>
26830 main ()
26832 __builtin_sinl(0);
26834 return 0;
26836 _ACEOF
26837 rm -f conftest.$ac_objext
26838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26839 (eval $ac_compile) 2>conftest.er1
26840 ac_status=$?
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 { ac_try='test -z "$ac_cxx_werror_flag"
26847 || test ! -s conftest.err'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; } &&
26853 { ac_try='test -s conftest.$ac_objext'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; }; then
26859 glibcxx_cv_func___builtin_sinl_use=yes
26860 else
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 glibcxx_cv_func___builtin_sinl_use=no
26866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26867 ac_ext=c
26868 ac_cpp='$CPP $CPPFLAGS'
26869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26877 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26878 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26879 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26880 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26881 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26882 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26883 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26887 if test x$gcc_no_link = xyes; then
26888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26890 { (exit 1); exit 1; }; }
26892 cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h. */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26898 #include <math.h>
26900 main ()
26902 __builtin_sinl(0);
26904 return 0;
26906 _ACEOF
26907 rm -f conftest.$ac_objext conftest$ac_exeext
26908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26909 (eval $ac_link) 2>conftest.er1
26910 ac_status=$?
26911 grep -v '^ *+' conftest.er1 >conftest.err
26912 rm -f conftest.er1
26913 cat conftest.err >&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } &&
26916 { ac_try='test -z "$ac_c_werror_flag"
26917 || test ! -s conftest.err'
26918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919 (eval $ac_try) 2>&5
26920 ac_status=$?
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; } &&
26923 { ac_try='test -s conftest$ac_exeext'
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; }; then
26929 glibcxx_cv_func___builtin_sinl_link=yes
26930 else
26931 echo "$as_me: failed program was:" >&5
26932 sed 's/^/| /' conftest.$ac_ext >&5
26934 glibcxx_cv_func___builtin_sinl_link=no
26936 rm -f conftest.err conftest.$ac_objext \
26937 conftest$ac_exeext conftest.$ac_ext
26942 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26943 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26944 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26945 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26947 cat >>confdefs.h <<\_ACEOF
26948 #define ${ac_tr_func} 1
26949 _ACEOF
26956 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26957 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26958 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26959 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26960 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 else
26965 ac_ext=cc
26966 ac_cpp='$CXXCPP $CPPFLAGS'
26967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h. */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 #include <math.h>
26979 main ()
26981 __builtin_cosf(0);
26983 return 0;
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26988 (eval $ac_compile) 2>conftest.er1
26989 ac_status=$?
26990 grep -v '^ *+' conftest.er1 >conftest.err
26991 rm -f conftest.er1
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } &&
26995 { ac_try='test -z "$ac_cxx_werror_flag"
26996 || test ! -s conftest.err'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
26999 ac_status=$?
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; } &&
27002 { ac_try='test -s conftest.$ac_objext'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 glibcxx_cv_func___builtin_cosf_use=yes
27009 else
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27013 glibcxx_cv_func___builtin_cosf_use=no
27015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27016 ac_ext=c
27017 ac_cpp='$CPP $CPPFLAGS'
27018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27026 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
27027 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
27028 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
27029 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
27030 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
27031 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
27032 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034 else
27036 if test x$gcc_no_link = xyes; then
27037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27039 { (exit 1); exit 1; }; }
27041 cat >conftest.$ac_ext <<_ACEOF
27042 /* confdefs.h. */
27043 _ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h. */
27047 #include <math.h>
27049 main ()
27051 __builtin_cosf(0);
27053 return 0;
27055 _ACEOF
27056 rm -f conftest.$ac_objext conftest$ac_exeext
27057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27058 (eval $ac_link) 2>conftest.er1
27059 ac_status=$?
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } &&
27065 { ac_try='test -z "$ac_c_werror_flag"
27066 || test ! -s conftest.err'
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; } &&
27072 { ac_try='test -s conftest$ac_exeext'
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 glibcxx_cv_func___builtin_cosf_link=yes
27079 else
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27083 glibcxx_cv_func___builtin_cosf_link=no
27085 rm -f conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
27091 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
27092 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
27093 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
27094 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27096 cat >>confdefs.h <<\_ACEOF
27097 #define ${ac_tr_func} 1
27098 _ACEOF
27104 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
27105 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
27106 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
27107 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27109 else
27113 ac_ext=cc
27114 ac_cpp='$CXXCPP $CPPFLAGS'
27115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27119 cat >conftest.$ac_ext <<_ACEOF
27120 /* confdefs.h. */
27121 _ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27125 #include <math.h>
27127 main ()
27129 __builtin_cos(0);
27131 return 0;
27133 _ACEOF
27134 rm -f conftest.$ac_objext
27135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27136 (eval $ac_compile) 2>conftest.er1
27137 ac_status=$?
27138 grep -v '^ *+' conftest.er1 >conftest.err
27139 rm -f conftest.er1
27140 cat conftest.err >&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } &&
27143 { ac_try='test -z "$ac_cxx_werror_flag"
27144 || test ! -s conftest.err'
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; } &&
27150 { ac_try='test -s conftest.$ac_objext'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27156 glibcxx_cv_func___builtin_cos_use=yes
27157 else
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27161 glibcxx_cv_func___builtin_cos_use=no
27163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 ac_ext=c
27165 ac_cpp='$CPP $CPPFLAGS'
27166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27175 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27176 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27177 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27178 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27179 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27180 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27184 if test x$gcc_no_link = xyes; then
27185 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27187 { (exit 1); exit 1; }; }
27189 cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h. */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 #include <math.h>
27197 main ()
27199 __builtin_cos(0);
27201 return 0;
27203 _ACEOF
27204 rm -f conftest.$ac_objext conftest$ac_exeext
27205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27206 (eval $ac_link) 2>conftest.er1
27207 ac_status=$?
27208 grep -v '^ *+' conftest.er1 >conftest.err
27209 rm -f conftest.er1
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } &&
27213 { ac_try='test -z "$ac_c_werror_flag"
27214 || test ! -s conftest.err'
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; } &&
27220 { ac_try='test -s conftest$ac_exeext'
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226 glibcxx_cv_func___builtin_cos_link=yes
27227 else
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27231 glibcxx_cv_func___builtin_cos_link=no
27233 rm -f conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext conftest.$ac_ext
27239 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27240 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27241 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27242 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27244 cat >>confdefs.h <<\_ACEOF
27245 #define ${ac_tr_func} 1
27246 _ACEOF
27252 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27253 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27254 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27255 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 else
27261 ac_ext=cc
27262 ac_cpp='$CXXCPP $CPPFLAGS'
27263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27267 cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h. */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27273 #include <math.h>
27275 main ()
27277 __builtin_cosl(0);
27279 return 0;
27281 _ACEOF
27282 rm -f conftest.$ac_objext
27283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27284 (eval $ac_compile) 2>conftest.er1
27285 ac_status=$?
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
27291 { ac_try='test -z "$ac_cxx_werror_flag"
27292 || test ! -s conftest.err'
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; } &&
27298 { ac_try='test -s conftest.$ac_objext'
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 glibcxx_cv_func___builtin_cosl_use=yes
27305 else
27306 echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27309 glibcxx_cv_func___builtin_cosl_use=no
27311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27312 ac_ext=c
27313 ac_cpp='$CPP $CPPFLAGS'
27314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27322 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27323 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27324 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27325 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27326 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27327 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27328 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27329 echo $ECHO_N "(cached) $ECHO_C" >&6
27330 else
27332 if test x$gcc_no_link = xyes; then
27333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27335 { (exit 1); exit 1; }; }
27337 cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h. */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27343 #include <math.h>
27345 main ()
27347 __builtin_cosl(0);
27349 return 0;
27351 _ACEOF
27352 rm -f conftest.$ac_objext conftest$ac_exeext
27353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27354 (eval $ac_link) 2>conftest.er1
27355 ac_status=$?
27356 grep -v '^ *+' conftest.er1 >conftest.err
27357 rm -f conftest.er1
27358 cat conftest.err >&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } &&
27361 { ac_try='test -z "$ac_c_werror_flag"
27362 || test ! -s conftest.err'
27363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; } &&
27368 { ac_try='test -s conftest$ac_exeext'
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; }; then
27374 glibcxx_cv_func___builtin_cosl_link=yes
27375 else
27376 echo "$as_me: failed program was:" >&5
27377 sed 's/^/| /' conftest.$ac_ext >&5
27379 glibcxx_cv_func___builtin_cosl_link=no
27381 rm -f conftest.err conftest.$ac_objext \
27382 conftest$ac_exeext conftest.$ac_ext
27387 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27388 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27389 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27390 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27392 cat >>confdefs.h <<\_ACEOF
27393 #define ${ac_tr_func} 1
27394 _ACEOF
27402 echo "$as_me:$LINENO: checking for main in -lm" >&5
27403 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27404 if test "${ac_cv_lib_m_main+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407 ac_check_lib_save_LIBS=$LIBS
27408 LIBS="-lm $LIBS"
27409 if test x$gcc_no_link = xyes; then
27410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27412 { (exit 1); exit 1; }; }
27414 cat >conftest.$ac_ext <<_ACEOF
27415 /* confdefs.h. */
27416 _ACEOF
27417 cat confdefs.h >>conftest.$ac_ext
27418 cat >>conftest.$ac_ext <<_ACEOF
27419 /* end confdefs.h. */
27423 main ()
27425 main ();
27427 return 0;
27429 _ACEOF
27430 rm -f conftest.$ac_objext conftest$ac_exeext
27431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27432 (eval $ac_link) 2>conftest.er1
27433 ac_status=$?
27434 grep -v '^ *+' conftest.er1 >conftest.err
27435 rm -f conftest.er1
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } &&
27439 { ac_try='test -z "$ac_c_werror_flag"
27440 || test ! -s conftest.err'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; } &&
27446 { ac_try='test -s conftest$ac_exeext'
27447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
27452 ac_cv_lib_m_main=yes
27453 else
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27457 ac_cv_lib_m_main=no
27459 rm -f conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
27461 LIBS=$ac_check_lib_save_LIBS
27463 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27464 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27465 if test $ac_cv_lib_m_main = yes; then
27466 cat >>confdefs.h <<_ACEOF
27467 #define HAVE_LIBM 1
27468 _ACEOF
27470 LIBS="-lm $LIBS"
27475 for ac_func in copysignf
27477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27478 echo "$as_me:$LINENO: checking for $ac_func" >&5
27479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27480 if eval "test \"\${$as_ac_var+set}\" = set"; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483 if test x$gcc_no_link = xyes; then
27484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27486 { (exit 1); exit 1; }; }
27488 cat >conftest.$ac_ext <<_ACEOF
27489 /* confdefs.h. */
27490 _ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h. */
27494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27496 #define $ac_func innocuous_$ac_func
27498 /* System header to define __stub macros and hopefully few prototypes,
27499 which can conflict with char $ac_func (); below.
27500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27501 <limits.h> exists even on freestanding compilers. */
27503 #ifdef __STDC__
27504 # include <limits.h>
27505 #else
27506 # include <assert.h>
27507 #endif
27509 #undef $ac_func
27511 /* Override any gcc2 internal prototype to avoid an error. */
27512 #ifdef __cplusplus
27513 extern "C"
27515 #endif
27516 /* We use char because int might match the return type of a gcc2
27517 builtin and then its argument prototype would still apply. */
27518 char $ac_func ();
27519 /* The GNU C library defines this for functions which it implements
27520 to always fail with ENOSYS. Some functions are actually named
27521 something starting with __ and the normal name is an alias. */
27522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27523 choke me
27524 #else
27525 char (*f) () = $ac_func;
27526 #endif
27527 #ifdef __cplusplus
27529 #endif
27532 main ()
27534 return f != $ac_func;
27536 return 0;
27538 _ACEOF
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27541 (eval $ac_link) 2>conftest.er1
27542 ac_status=$?
27543 grep -v '^ *+' conftest.er1 >conftest.err
27544 rm -f conftest.er1
27545 cat conftest.err >&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); } &&
27548 { ac_try='test -z "$ac_c_werror_flag"
27549 || test ! -s conftest.err'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest$ac_exeext'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 eval "$as_ac_var=yes"
27562 else
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27566 eval "$as_ac_var=no"
27568 rm -f conftest.err conftest.$ac_objext \
27569 conftest$ac_exeext conftest.$ac_ext
27571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27573 if test `eval echo '${'$as_ac_var'}'` = yes; then
27574 cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27576 _ACEOF
27578 else
27579 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27581 done
27585 for ac_func in __signbit
27587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27588 echo "$as_me:$LINENO: checking for $ac_func" >&5
27589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27590 if eval "test \"\${$as_ac_var+set}\" = set"; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593 if test x$gcc_no_link = xyes; then
27594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27596 { (exit 1); exit 1; }; }
27598 cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h. */
27600 _ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27606 #define $ac_func innocuous_$ac_func
27608 /* System header to define __stub macros and hopefully few prototypes,
27609 which can conflict with char $ac_func (); below.
27610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27611 <limits.h> exists even on freestanding compilers. */
27613 #ifdef __STDC__
27614 # include <limits.h>
27615 #else
27616 # include <assert.h>
27617 #endif
27619 #undef $ac_func
27621 /* Override any gcc2 internal prototype to avoid an error. */
27622 #ifdef __cplusplus
27623 extern "C"
27625 #endif
27626 /* We use char because int might match the return type of a gcc2
27627 builtin and then its argument prototype would still apply. */
27628 char $ac_func ();
27629 /* The GNU C library defines this for functions which it implements
27630 to always fail with ENOSYS. Some functions are actually named
27631 something starting with __ and the normal name is an alias. */
27632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27633 choke me
27634 #else
27635 char (*f) () = $ac_func;
27636 #endif
27637 #ifdef __cplusplus
27639 #endif
27642 main ()
27644 return f != $ac_func;
27646 return 0;
27648 _ACEOF
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27651 (eval $ac_link) 2>conftest.er1
27652 ac_status=$?
27653 grep -v '^ *+' conftest.er1 >conftest.err
27654 rm -f conftest.er1
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 eval "$as_ac_var=yes"
27672 else
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 eval "$as_ac_var=no"
27678 rm -f conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
27681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27683 if test `eval echo '${'$as_ac_var'}'` = yes; then
27684 cat >>confdefs.h <<_ACEOF
27685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27686 _ACEOF
27688 else
27689 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27691 done
27695 for ac_func in __signbitf
27697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27698 echo "$as_me:$LINENO: checking for $ac_func" >&5
27699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27700 if eval "test \"\${$as_ac_var+set}\" = set"; then
27701 echo $ECHO_N "(cached) $ECHO_C" >&6
27702 else
27703 if test x$gcc_no_link = xyes; then
27704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27706 { (exit 1); exit 1; }; }
27708 cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h. */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27716 #define $ac_func innocuous_$ac_func
27718 /* System header to define __stub macros and hopefully few prototypes,
27719 which can conflict with char $ac_func (); below.
27720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27721 <limits.h> exists even on freestanding compilers. */
27723 #ifdef __STDC__
27724 # include <limits.h>
27725 #else
27726 # include <assert.h>
27727 #endif
27729 #undef $ac_func
27731 /* Override any gcc2 internal prototype to avoid an error. */
27732 #ifdef __cplusplus
27733 extern "C"
27735 #endif
27736 /* We use char because int might match the return type of a gcc2
27737 builtin and then its argument prototype would still apply. */
27738 char $ac_func ();
27739 /* The GNU C library defines this for functions which it implements
27740 to always fail with ENOSYS. Some functions are actually named
27741 something starting with __ and the normal name is an alias. */
27742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27743 choke me
27744 #else
27745 char (*f) () = $ac_func;
27746 #endif
27747 #ifdef __cplusplus
27749 #endif
27752 main ()
27754 return f != $ac_func;
27756 return 0;
27758 _ACEOF
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27761 (eval $ac_link) 2>conftest.er1
27762 ac_status=$?
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag"
27769 || test ! -s conftest.err'
27770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; } &&
27775 { ac_try='test -s conftest$ac_exeext'
27776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777 (eval $ac_try) 2>&5
27778 ac_status=$?
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; }; then
27781 eval "$as_ac_var=yes"
27782 else
27783 echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27786 eval "$as_ac_var=no"
27788 rm -f conftest.err conftest.$ac_objext \
27789 conftest$ac_exeext conftest.$ac_ext
27791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27793 if test `eval echo '${'$as_ac_var'}'` = yes; then
27794 cat >>confdefs.h <<_ACEOF
27795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27796 _ACEOF
27798 else
27799 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27801 done
27804 if test x$ac_cv_func_copysignl = x"yes"; then
27806 for ac_func in __signbitl
27808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27809 echo "$as_me:$LINENO: checking for $ac_func" >&5
27810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27811 if eval "test \"\${$as_ac_var+set}\" = set"; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814 if test x$gcc_no_link = xyes; then
27815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27817 { (exit 1); exit 1; }; }
27819 cat >conftest.$ac_ext <<_ACEOF
27820 /* confdefs.h. */
27821 _ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h. */
27825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27827 #define $ac_func innocuous_$ac_func
27829 /* System header to define __stub macros and hopefully few prototypes,
27830 which can conflict with char $ac_func (); below.
27831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27832 <limits.h> exists even on freestanding compilers. */
27834 #ifdef __STDC__
27835 # include <limits.h>
27836 #else
27837 # include <assert.h>
27838 #endif
27840 #undef $ac_func
27842 /* Override any gcc2 internal prototype to avoid an error. */
27843 #ifdef __cplusplus
27844 extern "C"
27846 #endif
27847 /* We use char because int might match the return type of a gcc2
27848 builtin and then its argument prototype would still apply. */
27849 char $ac_func ();
27850 /* The GNU C library defines this for functions which it implements
27851 to always fail with ENOSYS. Some functions are actually named
27852 something starting with __ and the normal name is an alias. */
27853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27854 choke me
27855 #else
27856 char (*f) () = $ac_func;
27857 #endif
27858 #ifdef __cplusplus
27860 #endif
27863 main ()
27865 return f != $ac_func;
27867 return 0;
27869 _ACEOF
27870 rm -f conftest.$ac_objext conftest$ac_exeext
27871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27872 (eval $ac_link) 2>conftest.er1
27873 ac_status=$?
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag"
27880 || test ! -s conftest.err'
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest$ac_exeext'
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 eval "$as_ac_var=yes"
27893 else
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27897 eval "$as_ac_var=no"
27899 rm -f conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
27902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27904 if test `eval echo '${'$as_ac_var'}'` = yes; then
27905 cat >>confdefs.h <<_ACEOF
27906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27907 _ACEOF
27909 else
27910 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27912 done
27916 # Used in libmath/Makefile.am.
27917 if test -n "$LIBMATHOBJS"; then
27918 need_libmath=yes
27923 # Test wchar.h for mbstate_t, which is needed for char_traits and
27924 # others even if wchar_t support is not on.
27925 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27926 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27927 cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h. */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 #include <wchar.h>
27935 main ()
27937 mbstate_t teststate;
27939 return 0;
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944 (eval $ac_compile) 2>conftest.er1
27945 ac_status=$?
27946 grep -v '^ *+' conftest.er1 >conftest.err
27947 rm -f conftest.er1
27948 cat conftest.err >&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } &&
27951 { ac_try='test -z "$ac_c_werror_flag"
27952 || test ! -s conftest.err'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest.$ac_objext'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 have_mbstate_t=yes
27965 else
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27969 have_mbstate_t=no
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27973 echo "${ECHO_T}$have_mbstate_t" >&6
27974 if test x"$have_mbstate_t" = xyes; then
27975 cat >>confdefs.h <<\_ACEOF
27976 #define HAVE_MBSTATE_T 1
27977 _ACEOF
27981 # Sanity check for existence of ISO C99 headers for extended encoding.
27983 for ac_header in wchar.h
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27987 echo "$as_me:$LINENO: checking for $ac_header" >&5
27988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27994 else
27995 # Is the header compilable?
27996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27998 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h. */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 $ac_includes_default
28005 #include <$ac_header>
28006 _ACEOF
28007 rm -f conftest.$ac_objext
28008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28009 (eval $ac_compile) 2>conftest.er1
28010 ac_status=$?
28011 grep -v '^ *+' conftest.er1 >conftest.err
28012 rm -f conftest.er1
28013 cat conftest.err >&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); } &&
28016 { ac_try='test -z "$ac_c_werror_flag"
28017 || test ! -s conftest.err'
28018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019 (eval $ac_try) 2>&5
28020 ac_status=$?
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; } &&
28023 { ac_try='test -s conftest.$ac_objext'
28024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025 (eval $ac_try) 2>&5
28026 ac_status=$?
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; }; then
28029 ac_header_compiler=yes
28030 else
28031 echo "$as_me: failed program was:" >&5
28032 sed 's/^/| /' conftest.$ac_ext >&5
28034 ac_header_compiler=no
28036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28038 echo "${ECHO_T}$ac_header_compiler" >&6
28040 # Is the header present?
28041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h. */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049 #include <$ac_header>
28050 _ACEOF
28051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28053 ac_status=$?
28054 grep -v '^ *+' conftest.er1 >conftest.err
28055 rm -f conftest.er1
28056 cat conftest.err >&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } >/dev/null; then
28059 if test -s conftest.err; then
28060 ac_cpp_err=$ac_c_preproc_warn_flag
28061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28062 else
28063 ac_cpp_err=
28065 else
28066 ac_cpp_err=yes
28068 if test -z "$ac_cpp_err"; then
28069 ac_header_preproc=yes
28070 else
28071 echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_header_preproc=no
28076 rm -f conftest.err conftest.$ac_ext
28077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28078 echo "${ECHO_T}$ac_header_preproc" >&6
28080 # So? What about this header?
28081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28082 yes:no: )
28083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28087 ac_header_preproc=yes
28089 no:yes:* )
28090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28103 cat <<\_ASBOX
28104 ## ----------------------------------------- ##
28105 ## Report this to the package-unused lists. ##
28106 ## ----------------------------------------- ##
28107 _ASBOX
28109 sed "s/^/$as_me: WARNING: /" >&2
28111 esac
28112 echo "$as_me:$LINENO: checking for $ac_header" >&5
28113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28116 else
28117 eval "$as_ac_Header=\$ac_header_preproc"
28119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28124 cat >>confdefs.h <<_ACEOF
28125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28126 _ACEOF
28127 ac_has_wchar_h=yes
28128 else
28129 ac_has_wchar_h=no
28132 done
28135 for ac_header in wctype.h
28137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28139 echo "$as_me:$LINENO: checking for $ac_header" >&5
28140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28142 echo $ECHO_N "(cached) $ECHO_C" >&6
28144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28146 else
28147 # Is the header compilable?
28148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28150 cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h. */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28156 $ac_includes_default
28157 #include <$ac_header>
28158 _ACEOF
28159 rm -f conftest.$ac_objext
28160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28161 (eval $ac_compile) 2>conftest.er1
28162 ac_status=$?
28163 grep -v '^ *+' conftest.er1 >conftest.err
28164 rm -f conftest.er1
28165 cat conftest.err >&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } &&
28168 { ac_try='test -z "$ac_c_werror_flag"
28169 || test ! -s conftest.err'
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest.$ac_objext'
28176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28177 (eval $ac_try) 2>&5
28178 ac_status=$?
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); }; }; then
28181 ac_header_compiler=yes
28182 else
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 ac_header_compiler=no
28188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28190 echo "${ECHO_T}$ac_header_compiler" >&6
28192 # Is the header present?
28193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28194 echo $ECHO_N "checking $ac_header presence... $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 <$ac_header>
28202 _ACEOF
28203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } >/dev/null; then
28211 if test -s conftest.err; then
28212 ac_cpp_err=$ac_c_preproc_warn_flag
28213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28214 else
28215 ac_cpp_err=
28217 else
28218 ac_cpp_err=yes
28220 if test -z "$ac_cpp_err"; then
28221 ac_header_preproc=yes
28222 else
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 ac_header_preproc=no
28228 rm -f conftest.err conftest.$ac_ext
28229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28230 echo "${ECHO_T}$ac_header_preproc" >&6
28232 # So? What about this header?
28233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28234 yes:no: )
28235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28239 ac_header_preproc=yes
28241 no:yes:* )
28242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28255 cat <<\_ASBOX
28256 ## ----------------------------------------- ##
28257 ## Report this to the package-unused lists. ##
28258 ## ----------------------------------------- ##
28259 _ASBOX
28261 sed "s/^/$as_me: WARNING: /" >&2
28263 esac
28264 echo "$as_me:$LINENO: checking for $ac_header" >&5
28265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269 eval "$as_ac_Header=\$ac_header_preproc"
28271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28276 cat >>confdefs.h <<_ACEOF
28277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28278 _ACEOF
28279 ac_has_wctype_h=yes
28280 else
28281 ac_has_wctype_h=no
28284 done
28287 # Only continue checking if the ISO C99 headers exist and support is on.
28288 if test x"$ac_has_wchar_h" = xyes &&
28289 test x"$ac_has_wctype_h" = xyes &&
28290 test x"$enable_c_mbchar" != xno; then
28292 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28293 # numeric_limits can instantiate type_traits<wchar_t>
28294 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28295 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28296 cat >conftest.$ac_ext <<_ACEOF
28297 /* confdefs.h. */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h. */
28302 #include <wchar.h>
28304 main ()
28306 int i = WCHAR_MIN; int j = WCHAR_MAX;
28308 return 0;
28310 _ACEOF
28311 rm -f conftest.$ac_objext
28312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28313 (eval $ac_compile) 2>conftest.er1
28314 ac_status=$?
28315 grep -v '^ *+' conftest.er1 >conftest.err
28316 rm -f conftest.er1
28317 cat conftest.err >&5
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); } &&
28320 { ac_try='test -z "$ac_c_werror_flag"
28321 || test ! -s conftest.err'
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; } &&
28327 { ac_try='test -s conftest.$ac_objext'
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28330 ac_status=$?
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; }; then
28333 has_wchar_minmax=yes
28334 else
28335 echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28338 has_wchar_minmax=no
28340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28341 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28342 echo "${ECHO_T}$has_wchar_minmax" >&6
28344 # Test wchar.h for WEOF, which is what we use to determine whether
28345 # to specialize for char_traits<wchar_t> or not.
28346 echo "$as_me:$LINENO: checking for WEOF" >&5
28347 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h. */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28355 #include <wchar.h>
28356 #include <stddef.h>
28358 main ()
28360 wint_t i = WEOF;
28362 return 0;
28364 _ACEOF
28365 rm -f conftest.$ac_objext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28367 (eval $ac_compile) 2>conftest.er1
28368 ac_status=$?
28369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
28374 { ac_try='test -z "$ac_c_werror_flag"
28375 || test ! -s conftest.err'
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 has_weof=yes
28388 else
28389 echo "$as_me: failed program was:" >&5
28390 sed 's/^/| /' conftest.$ac_ext >&5
28392 has_weof=no
28394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28395 echo "$as_me:$LINENO: result: $has_weof" >&5
28396 echo "${ECHO_T}$has_weof" >&6
28398 # Tests for wide character functions used in char_traits<wchar_t>.
28399 ac_wfuncs=yes
28406 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28409 echo "$as_me:$LINENO: checking for $ac_func" >&5
28410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28411 if eval "test \"\${$as_ac_var+set}\" = set"; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413 else
28414 if test x$gcc_no_link = xyes; then
28415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28417 { (exit 1); exit 1; }; }
28419 cat >conftest.$ac_ext <<_ACEOF
28420 /* confdefs.h. */
28421 _ACEOF
28422 cat confdefs.h >>conftest.$ac_ext
28423 cat >>conftest.$ac_ext <<_ACEOF
28424 /* end confdefs.h. */
28425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28427 #define $ac_func innocuous_$ac_func
28429 /* System header to define __stub macros and hopefully few prototypes,
28430 which can conflict with char $ac_func (); below.
28431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28432 <limits.h> exists even on freestanding compilers. */
28434 #ifdef __STDC__
28435 # include <limits.h>
28436 #else
28437 # include <assert.h>
28438 #endif
28440 #undef $ac_func
28442 /* Override any gcc2 internal prototype to avoid an error. */
28443 #ifdef __cplusplus
28444 extern "C"
28446 #endif
28447 /* We use char because int might match the return type of a gcc2
28448 builtin and then its argument prototype would still apply. */
28449 char $ac_func ();
28450 /* The GNU C library defines this for functions which it implements
28451 to always fail with ENOSYS. Some functions are actually named
28452 something starting with __ and the normal name is an alias. */
28453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28454 choke me
28455 #else
28456 char (*f) () = $ac_func;
28457 #endif
28458 #ifdef __cplusplus
28460 #endif
28463 main ()
28465 return f != $ac_func;
28467 return 0;
28469 _ACEOF
28470 rm -f conftest.$ac_objext conftest$ac_exeext
28471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28472 (eval $ac_link) 2>conftest.er1
28473 ac_status=$?
28474 grep -v '^ *+' conftest.er1 >conftest.err
28475 rm -f conftest.er1
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } &&
28479 { ac_try='test -z "$ac_c_werror_flag"
28480 || test ! -s conftest.err'
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; } &&
28486 { ac_try='test -s conftest$ac_exeext'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; }; then
28492 eval "$as_ac_var=yes"
28493 else
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28497 eval "$as_ac_var=no"
28499 rm -f conftest.err conftest.$ac_objext \
28500 conftest$ac_exeext conftest.$ac_ext
28502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28504 if test `eval echo '${'$as_ac_var'}'` = yes; then
28505 cat >>confdefs.h <<_ACEOF
28506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28507 _ACEOF
28509 else
28510 ac_wfuncs=no
28512 done
28515 # Checks for names injected into std:: by the c_std headers.
28562 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28563 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28564 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28565 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28566 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28567 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28570 echo "$as_me:$LINENO: checking for $ac_func" >&5
28571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28572 if eval "test \"\${$as_ac_var+set}\" = set"; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28574 else
28575 if test x$gcc_no_link = xyes; then
28576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28578 { (exit 1); exit 1; }; }
28580 cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h. */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28588 #define $ac_func innocuous_$ac_func
28590 /* System header to define __stub macros and hopefully few prototypes,
28591 which can conflict with char $ac_func (); below.
28592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28593 <limits.h> exists even on freestanding compilers. */
28595 #ifdef __STDC__
28596 # include <limits.h>
28597 #else
28598 # include <assert.h>
28599 #endif
28601 #undef $ac_func
28603 /* Override any gcc2 internal prototype to avoid an error. */
28604 #ifdef __cplusplus
28605 extern "C"
28607 #endif
28608 /* We use char because int might match the return type of a gcc2
28609 builtin and then its argument prototype would still apply. */
28610 char $ac_func ();
28611 /* The GNU C library defines this for functions which it implements
28612 to always fail with ENOSYS. Some functions are actually named
28613 something starting with __ and the normal name is an alias. */
28614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28615 choke me
28616 #else
28617 char (*f) () = $ac_func;
28618 #endif
28619 #ifdef __cplusplus
28621 #endif
28624 main ()
28626 return f != $ac_func;
28628 return 0;
28630 _ACEOF
28631 rm -f conftest.$ac_objext conftest$ac_exeext
28632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28633 (eval $ac_link) 2>conftest.er1
28634 ac_status=$?
28635 grep -v '^ *+' conftest.er1 >conftest.err
28636 rm -f conftest.er1
28637 cat conftest.err >&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); } &&
28640 { ac_try='test -z "$ac_c_werror_flag"
28641 || test ! -s conftest.err'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest$ac_exeext'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; }; then
28653 eval "$as_ac_var=yes"
28654 else
28655 echo "$as_me: failed program was:" >&5
28656 sed 's/^/| /' conftest.$ac_ext >&5
28658 eval "$as_ac_var=no"
28660 rm -f conftest.err conftest.$ac_objext \
28661 conftest$ac_exeext conftest.$ac_ext
28663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28665 if test `eval echo '${'$as_ac_var'}'` = yes; then
28666 cat >>confdefs.h <<_ACEOF
28667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28668 _ACEOF
28670 else
28671 ac_wfuncs=no
28673 done
28676 # Checks for wide character functions that are not required
28677 # for basic wchar_t support. Don't disable support if they are missing.
28678 # Injection of these is wrapped with guard macros.
28684 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28687 echo "$as_me:$LINENO: checking for $ac_func" >&5
28688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28689 if eval "test \"\${$as_ac_var+set}\" = set"; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 else
28692 if test x$gcc_no_link = xyes; then
28693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28695 { (exit 1); exit 1; }; }
28697 cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h. */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28705 #define $ac_func innocuous_$ac_func
28707 /* System header to define __stub macros and hopefully few prototypes,
28708 which can conflict with char $ac_func (); below.
28709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28710 <limits.h> exists even on freestanding compilers. */
28712 #ifdef __STDC__
28713 # include <limits.h>
28714 #else
28715 # include <assert.h>
28716 #endif
28718 #undef $ac_func
28720 /* Override any gcc2 internal prototype to avoid an error. */
28721 #ifdef __cplusplus
28722 extern "C"
28724 #endif
28725 /* We use char because int might match the return type of a gcc2
28726 builtin and then its argument prototype would still apply. */
28727 char $ac_func ();
28728 /* The GNU C library defines this for functions which it implements
28729 to always fail with ENOSYS. Some functions are actually named
28730 something starting with __ and the normal name is an alias. */
28731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28732 choke me
28733 #else
28734 char (*f) () = $ac_func;
28735 #endif
28736 #ifdef __cplusplus
28738 #endif
28741 main ()
28743 return f != $ac_func;
28745 return 0;
28747 _ACEOF
28748 rm -f conftest.$ac_objext conftest$ac_exeext
28749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28750 (eval $ac_link) 2>conftest.er1
28751 ac_status=$?
28752 grep -v '^ *+' conftest.er1 >conftest.err
28753 rm -f conftest.er1
28754 cat conftest.err >&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); } &&
28757 { ac_try='test -z "$ac_c_werror_flag"
28758 || test ! -s conftest.err'
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; } &&
28764 { ac_try='test -s conftest$ac_exeext'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; }; then
28770 eval "$as_ac_var=yes"
28771 else
28772 echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28775 eval "$as_ac_var=no"
28777 rm -f conftest.err conftest.$ac_objext \
28778 conftest$ac_exeext conftest.$ac_ext
28780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28782 if test `eval echo '${'$as_ac_var'}'` = yes; then
28783 cat >>confdefs.h <<_ACEOF
28784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28785 _ACEOF
28788 done
28791 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28792 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28793 if test x"$has_weof" = xyes &&
28794 test x"$has_wchar_minmax" = xyes &&
28795 test x"$ac_wfuncs" = xyes;
28796 then
28797 ac_isoC99_wchar_t=yes
28798 else
28799 ac_isoC99_wchar_t=no
28801 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28802 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28804 # Use iconv for wchar_t to char conversions. As such, check for
28805 # X/Open Portability Guide, version 2 features (XPG2).
28806 if test "${ac_cv_header_iconv_h+set}" = set; then
28807 echo "$as_me:$LINENO: checking for iconv.h" >&5
28808 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28809 if test "${ac_cv_header_iconv_h+set}" = set; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28812 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28813 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28814 else
28815 # Is the header compilable?
28816 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28817 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28818 cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h. */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h. */
28824 $ac_includes_default
28825 #include <iconv.h>
28826 _ACEOF
28827 rm -f conftest.$ac_objext
28828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28829 (eval $ac_compile) 2>conftest.er1
28830 ac_status=$?
28831 grep -v '^ *+' conftest.er1 >conftest.err
28832 rm -f conftest.er1
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } &&
28836 { ac_try='test -z "$ac_c_werror_flag"
28837 || test ! -s conftest.err'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest.$ac_objext'
28844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28845 (eval $ac_try) 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849 ac_header_compiler=yes
28850 else
28851 echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28854 ac_header_compiler=no
28856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28858 echo "${ECHO_T}$ac_header_compiler" >&6
28860 # Is the header present?
28861 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28862 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28863 cat >conftest.$ac_ext <<_ACEOF
28864 /* confdefs.h. */
28865 _ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h. */
28869 #include <iconv.h>
28870 _ACEOF
28871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28872 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
28879 if test -s conftest.err; then
28880 ac_cpp_err=$ac_c_preproc_warn_flag
28881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28882 else
28883 ac_cpp_err=
28885 else
28886 ac_cpp_err=yes
28888 if test -z "$ac_cpp_err"; then
28889 ac_header_preproc=yes
28890 else
28891 echo "$as_me: failed program was:" >&5
28892 sed 's/^/| /' conftest.$ac_ext >&5
28894 ac_header_preproc=no
28896 rm -f conftest.err conftest.$ac_ext
28897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28898 echo "${ECHO_T}$ac_header_preproc" >&6
28900 # So? What about this header?
28901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28902 yes:no: )
28903 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28904 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28906 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28907 ac_header_preproc=yes
28909 no:yes:* )
28910 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28911 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28913 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28915 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28917 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28919 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28921 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28923 cat <<\_ASBOX
28924 ## ----------------------------------------- ##
28925 ## Report this to the package-unused lists. ##
28926 ## ----------------------------------------- ##
28927 _ASBOX
28929 sed "s/^/$as_me: WARNING: /" >&2
28931 esac
28932 echo "$as_me:$LINENO: checking for iconv.h" >&5
28933 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28934 if test "${ac_cv_header_iconv_h+set}" = set; then
28935 echo $ECHO_N "(cached) $ECHO_C" >&6
28936 else
28937 ac_cv_header_iconv_h=$ac_header_preproc
28939 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28940 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28943 if test $ac_cv_header_iconv_h = yes; then
28944 ac_has_iconv_h=yes
28945 else
28946 ac_has_iconv_h=no
28950 if test "${ac_cv_header_langinfo_h+set}" = set; then
28951 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28952 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28953 if test "${ac_cv_header_langinfo_h+set}" = set; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28957 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28958 else
28959 # Is the header compilable?
28960 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28961 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28962 cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h. */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 $ac_includes_default
28969 #include <langinfo.h>
28970 _ACEOF
28971 rm -f conftest.$ac_objext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28973 (eval $ac_compile) 2>conftest.er1
28974 ac_status=$?
28975 grep -v '^ *+' conftest.er1 >conftest.err
28976 rm -f conftest.er1
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
28980 { ac_try='test -z "$ac_c_werror_flag"
28981 || test ! -s conftest.err'
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28984 ac_status=$?
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; } &&
28987 { ac_try='test -s conftest.$ac_objext'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28990 ac_status=$?
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; }; then
28993 ac_header_compiler=yes
28994 else
28995 echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ac_header_compiler=no
29000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29002 echo "${ECHO_T}$ac_header_compiler" >&6
29004 # Is the header present?
29005 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
29006 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
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. */
29013 #include <langinfo.h>
29014 _ACEOF
29015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29017 ac_status=$?
29018 grep -v '^ *+' conftest.er1 >conftest.err
29019 rm -f conftest.er1
29020 cat conftest.err >&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } >/dev/null; then
29023 if test -s conftest.err; then
29024 ac_cpp_err=$ac_c_preproc_warn_flag
29025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29026 else
29027 ac_cpp_err=
29029 else
29030 ac_cpp_err=yes
29032 if test -z "$ac_cpp_err"; then
29033 ac_header_preproc=yes
29034 else
29035 echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046 yes:no: )
29047 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29053 no:yes:* )
29054 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
29067 cat <<\_ASBOX
29068 ## ----------------------------------------- ##
29069 ## Report this to the package-unused lists. ##
29070 ## ----------------------------------------- ##
29071 _ASBOX
29073 sed "s/^/$as_me: WARNING: /" >&2
29075 esac
29076 echo "$as_me:$LINENO: checking for langinfo.h" >&5
29077 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
29078 if test "${ac_cv_header_langinfo_h+set}" = set; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081 ac_cv_header_langinfo_h=$ac_header_preproc
29083 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29084 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29087 if test $ac_cv_header_langinfo_h = yes; then
29088 ac_has_langinfo_h=yes
29089 else
29090 ac_has_langinfo_h=no
29095 # Check for existence of libiconv.a providing XPG2 wchar_t support.
29096 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
29097 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
29098 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
29100 else
29101 ac_check_lib_save_LIBS=$LIBS
29102 LIBS="-liconv $LIBS"
29103 if test x$gcc_no_link = xyes; then
29104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29106 { (exit 1); exit 1; }; }
29108 cat >conftest.$ac_ext <<_ACEOF
29109 /* confdefs.h. */
29110 _ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h. */
29115 /* Override any gcc2 internal prototype to avoid an error. */
29116 #ifdef __cplusplus
29117 extern "C"
29118 #endif
29119 /* We use char because int might match the return type of a gcc2
29120 builtin and then its argument prototype would still apply. */
29121 char iconv ();
29123 main ()
29125 iconv ();
29127 return 0;
29129 _ACEOF
29130 rm -f conftest.$ac_objext conftest$ac_exeext
29131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29132 (eval $ac_link) 2>conftest.er1
29133 ac_status=$?
29134 grep -v '^ *+' conftest.er1 >conftest.err
29135 rm -f conftest.er1
29136 cat conftest.err >&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } &&
29139 { ac_try='test -z "$ac_c_werror_flag"
29140 || test ! -s conftest.err'
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; } &&
29146 { ac_try='test -s conftest$ac_exeext'
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; }; then
29152 ac_cv_lib_iconv_iconv=yes
29153 else
29154 echo "$as_me: failed program was:" >&5
29155 sed 's/^/| /' conftest.$ac_ext >&5
29157 ac_cv_lib_iconv_iconv=no
29159 rm -f conftest.err conftest.$ac_objext \
29160 conftest$ac_exeext conftest.$ac_ext
29161 LIBS=$ac_check_lib_save_LIBS
29163 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29164 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29165 if test $ac_cv_lib_iconv_iconv = yes; then
29166 LIBICONV="-liconv"
29169 ac_save_LIBS="$LIBS"
29170 LIBS="$LIBS $LIBICONV"
29177 for ac_func in iconv_open iconv_close iconv nl_langinfo
29179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29180 echo "$as_me:$LINENO: checking for $ac_func" >&5
29181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29182 if eval "test \"\${$as_ac_var+set}\" = set"; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185 if test x$gcc_no_link = xyes; then
29186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29188 { (exit 1); exit 1; }; }
29190 cat >conftest.$ac_ext <<_ACEOF
29191 /* confdefs.h. */
29192 _ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h. */
29196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29198 #define $ac_func innocuous_$ac_func
29200 /* System header to define __stub macros and hopefully few prototypes,
29201 which can conflict with char $ac_func (); below.
29202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29203 <limits.h> exists even on freestanding compilers. */
29205 #ifdef __STDC__
29206 # include <limits.h>
29207 #else
29208 # include <assert.h>
29209 #endif
29211 #undef $ac_func
29213 /* Override any gcc2 internal prototype to avoid an error. */
29214 #ifdef __cplusplus
29215 extern "C"
29217 #endif
29218 /* We use char because int might match the return type of a gcc2
29219 builtin and then its argument prototype would still apply. */
29220 char $ac_func ();
29221 /* The GNU C library defines this for functions which it implements
29222 to always fail with ENOSYS. Some functions are actually named
29223 something starting with __ and the normal name is an alias. */
29224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29225 choke me
29226 #else
29227 char (*f) () = $ac_func;
29228 #endif
29229 #ifdef __cplusplus
29231 #endif
29234 main ()
29236 return f != $ac_func;
29238 return 0;
29240 _ACEOF
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29243 (eval $ac_link) 2>conftest.er1
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag"
29251 || test ! -s conftest.err'
29252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253 (eval $ac_try) 2>&5
29254 ac_status=$?
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try='test -s conftest$ac_exeext'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; }; then
29263 eval "$as_ac_var=yes"
29264 else
29265 echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29268 eval "$as_ac_var=no"
29270 rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
29273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29275 if test `eval echo '${'$as_ac_var'}'` = yes; then
29276 cat >>confdefs.h <<_ACEOF
29277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29278 _ACEOF
29279 ac_XPG2funcs=yes
29280 else
29281 ac_XPG2funcs=no
29283 done
29286 LIBS="$ac_save_LIBS"
29288 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29289 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29290 if test x"$ac_has_iconv_h" = xyes &&
29291 test x"$ac_has_langinfo_h" = xyes &&
29292 test x"$ac_XPG2funcs" = xyes;
29293 then
29294 ac_XPG2_wchar_t=yes
29295 else
29296 ac_XPG2_wchar_t=no
29298 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29299 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29301 # At the moment, only enable wchar_t specializations if all the
29302 # above support is present.
29303 if test x"$ac_isoC99_wchar_t" = xyes &&
29304 test x"$ac_XPG2_wchar_t" = xyes;
29305 then
29306 cat >>confdefs.h <<\_ACEOF
29307 #define _GLIBCXX_USE_WCHAR_T 1
29308 _ACEOF
29310 enable_wchar_t=yes
29313 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29314 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29315 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29316 echo "${ECHO_T}$enable_wchar_t" >&6
29319 ac_test_CXXFLAGS="${CXXFLAGS+set}"
29320 ac_save_CXXFLAGS="$CXXFLAGS"
29321 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29324 echo "$as_me:$LINENO: checking for strtold declaration" >&5
29325 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29326 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29327 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29333 ac_ext=cc
29334 ac_cpp='$CXXCPP $CPPFLAGS'
29335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29339 cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h. */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29345 #include <stdlib.h>
29347 main ()
29349 strtold(0, 0);
29351 return 0;
29353 _ACEOF
29354 rm -f conftest.$ac_objext
29355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29356 (eval $ac_compile) 2>conftest.er1
29357 ac_status=$?
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } &&
29363 { ac_try='test -z "$ac_cxx_werror_flag"
29364 || test ! -s conftest.err'
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; } &&
29370 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29376 glibcxx_cv_func_strtold_use=yes
29377 else
29378 echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29381 glibcxx_cv_func_strtold_use=no
29383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29384 ac_ext=c
29385 ac_cpp='$CPP $CPPFLAGS'
29386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29394 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29395 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29396 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29398 for ac_func in strtold
29400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29401 echo "$as_me:$LINENO: checking for $ac_func" >&5
29402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29403 if eval "test \"\${$as_ac_var+set}\" = set"; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29405 else
29406 if test x$gcc_no_link = xyes; then
29407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29409 { (exit 1); exit 1; }; }
29411 cat >conftest.$ac_ext <<_ACEOF
29412 /* confdefs.h. */
29413 _ACEOF
29414 cat confdefs.h >>conftest.$ac_ext
29415 cat >>conftest.$ac_ext <<_ACEOF
29416 /* end confdefs.h. */
29417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29419 #define $ac_func innocuous_$ac_func
29421 /* System header to define __stub macros and hopefully few prototypes,
29422 which can conflict with char $ac_func (); below.
29423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29424 <limits.h> exists even on freestanding compilers. */
29426 #ifdef __STDC__
29427 # include <limits.h>
29428 #else
29429 # include <assert.h>
29430 #endif
29432 #undef $ac_func
29434 /* Override any gcc2 internal prototype to avoid an error. */
29435 #ifdef __cplusplus
29436 extern "C"
29438 #endif
29439 /* We use char because int might match the return type of a gcc2
29440 builtin and then its argument prototype would still apply. */
29441 char $ac_func ();
29442 /* The GNU C library defines this for functions which it implements
29443 to always fail with ENOSYS. Some functions are actually named
29444 something starting with __ and the normal name is an alias. */
29445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29446 choke me
29447 #else
29448 char (*f) () = $ac_func;
29449 #endif
29450 #ifdef __cplusplus
29452 #endif
29455 main ()
29457 return f != $ac_func;
29459 return 0;
29461 _ACEOF
29462 rm -f conftest.$ac_objext conftest$ac_exeext
29463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29464 (eval $ac_link) 2>conftest.er1
29465 ac_status=$?
29466 grep -v '^ *+' conftest.er1 >conftest.err
29467 rm -f conftest.er1
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
29471 { ac_try='test -z "$ac_c_werror_flag"
29472 || test ! -s conftest.err'
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; } &&
29478 { ac_try='test -s conftest$ac_exeext'
29479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29480 (eval $ac_try) 2>&5
29481 ac_status=$?
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); }; }; then
29484 eval "$as_ac_var=yes"
29485 else
29486 echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29489 eval "$as_ac_var=no"
29491 rm -f conftest.err conftest.$ac_objext \
29492 conftest$ac_exeext conftest.$ac_ext
29494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29496 if test `eval echo '${'$as_ac_var'}'` = yes; then
29497 cat >>confdefs.h <<_ACEOF
29498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29499 _ACEOF
29502 done
29507 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29508 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29509 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29510 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29512 else
29516 ac_ext=cc
29517 ac_cpp='$CXXCPP $CPPFLAGS'
29518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h. */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <stdlib.h>
29530 main ()
29532 strtof(0, 0);
29534 return 0;
29536 _ACEOF
29537 rm -f conftest.$ac_objext
29538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29539 (eval $ac_compile) 2>conftest.er1
29540 ac_status=$?
29541 grep -v '^ *+' conftest.er1 >conftest.err
29542 rm -f conftest.er1
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
29546 { ac_try='test -z "$ac_cxx_werror_flag"
29547 || test ! -s conftest.err'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29559 glibcxx_cv_func_strtof_use=yes
29560 else
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 glibcxx_cv_func_strtof_use=no
29566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29567 ac_ext=c
29568 ac_cpp='$CPP $CPPFLAGS'
29569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29577 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29578 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29579 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29581 for ac_func in strtof
29583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29584 echo "$as_me:$LINENO: checking for $ac_func" >&5
29585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29586 if eval "test \"\${$as_ac_var+set}\" = set"; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589 if test x$gcc_no_link = xyes; then
29590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29592 { (exit 1); exit 1; }; }
29594 cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h. */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29602 #define $ac_func innocuous_$ac_func
29604 /* System header to define __stub macros and hopefully few prototypes,
29605 which can conflict with char $ac_func (); below.
29606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29607 <limits.h> exists even on freestanding compilers. */
29609 #ifdef __STDC__
29610 # include <limits.h>
29611 #else
29612 # include <assert.h>
29613 #endif
29615 #undef $ac_func
29617 /* Override any gcc2 internal prototype to avoid an error. */
29618 #ifdef __cplusplus
29619 extern "C"
29621 #endif
29622 /* We use char because int might match the return type of a gcc2
29623 builtin and then its argument prototype would still apply. */
29624 char $ac_func ();
29625 /* The GNU C library defines this for functions which it implements
29626 to always fail with ENOSYS. Some functions are actually named
29627 something starting with __ and the normal name is an alias. */
29628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29629 choke me
29630 #else
29631 char (*f) () = $ac_func;
29632 #endif
29633 #ifdef __cplusplus
29635 #endif
29638 main ()
29640 return f != $ac_func;
29642 return 0;
29644 _ACEOF
29645 rm -f conftest.$ac_objext conftest$ac_exeext
29646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29647 (eval $ac_link) 2>conftest.er1
29648 ac_status=$?
29649 grep -v '^ *+' conftest.er1 >conftest.err
29650 rm -f conftest.er1
29651 cat conftest.err >&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
29654 { ac_try='test -z "$ac_c_werror_flag"
29655 || test ! -s conftest.err'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest$ac_exeext'
29662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663 (eval $ac_try) 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
29667 eval "$as_ac_var=yes"
29668 else
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 eval "$as_ac_var=no"
29674 rm -f conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
29677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29679 if test `eval echo '${'$as_ac_var'}'` = yes; then
29680 cat >>confdefs.h <<_ACEOF
29681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29682 _ACEOF
29685 done
29690 CXXFLAGS="$ac_save_CXXFLAGS"
29693 # For showmanyc_helper().
29696 for ac_header in sys/ioctl.h sys/filio.h
29698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29700 echo "$as_me:$LINENO: checking for $ac_header" >&5
29701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29707 else
29708 # Is the header compilable?
29709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29711 cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h. */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29717 $ac_includes_default
29718 #include <$ac_header>
29719 _ACEOF
29720 rm -f conftest.$ac_objext
29721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29722 (eval $ac_compile) 2>conftest.er1
29723 ac_status=$?
29724 grep -v '^ *+' conftest.er1 >conftest.err
29725 rm -f conftest.er1
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
29729 { ac_try='test -z "$ac_c_werror_flag"
29730 || test ! -s conftest.err'
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='test -s conftest.$ac_objext'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 ac_header_compiler=yes
29743 else
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29747 ac_header_compiler=no
29749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29751 echo "${ECHO_T}$ac_header_compiler" >&6
29753 # Is the header present?
29754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h. */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <$ac_header>
29763 _ACEOF
29764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29766 ac_status=$?
29767 grep -v '^ *+' conftest.er1 >conftest.err
29768 rm -f conftest.er1
29769 cat conftest.err >&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } >/dev/null; then
29772 if test -s conftest.err; then
29773 ac_cpp_err=$ac_c_preproc_warn_flag
29774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29775 else
29776 ac_cpp_err=
29778 else
29779 ac_cpp_err=yes
29781 if test -z "$ac_cpp_err"; then
29782 ac_header_preproc=yes
29783 else
29784 echo "$as_me: failed program was:" >&5
29785 sed 's/^/| /' conftest.$ac_ext >&5
29787 ac_header_preproc=no
29789 rm -f conftest.err conftest.$ac_ext
29790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29791 echo "${ECHO_T}$ac_header_preproc" >&6
29793 # So? What about this header?
29794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29795 yes:no: )
29796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29800 ac_header_preproc=yes
29802 no:yes:* )
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29816 cat <<\_ASBOX
29817 ## ----------------------------------------- ##
29818 ## Report this to the package-unused lists. ##
29819 ## ----------------------------------------- ##
29820 _ASBOX
29822 sed "s/^/$as_me: WARNING: /" >&2
29824 esac
29825 echo "$as_me:$LINENO: checking for $ac_header" >&5
29826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29828 echo $ECHO_N "(cached) $ECHO_C" >&6
29829 else
29830 eval "$as_ac_Header=\$ac_header_preproc"
29832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29837 cat >>confdefs.h <<_ACEOF
29838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29839 _ACEOF
29843 done
29846 if test "${glibcxx_cv_POLL+set}" = set; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 else
29850 if test x$gcc_no_link = xyes; then
29851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29853 { (exit 1); exit 1; }; }
29855 cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h. */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29861 #include <poll.h>
29863 main ()
29865 struct pollfd pfd[1];
29866 pfd[0].events = POLLIN;
29867 poll(pfd, 1, 0);
29869 return 0;
29871 _ACEOF
29872 rm -f conftest.$ac_objext conftest$ac_exeext
29873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29874 (eval $ac_link) 2>conftest.er1
29875 ac_status=$?
29876 grep -v '^ *+' conftest.er1 >conftest.err
29877 rm -f conftest.er1
29878 cat conftest.err >&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
29881 { ac_try='test -z "$ac_c_werror_flag"
29882 || test ! -s conftest.err'
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; } &&
29888 { ac_try='test -s conftest$ac_exeext'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; }; then
29894 glibcxx_cv_POLL=yes
29895 else
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 glibcxx_cv_POLL=no
29901 rm -f conftest.err conftest.$ac_objext \
29902 conftest$ac_exeext conftest.$ac_ext
29906 if test $glibcxx_cv_POLL = yes; then
29907 cat >>confdefs.h <<\_ACEOF
29908 #define HAVE_POLL 1
29909 _ACEOF
29914 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916 else
29918 if test x$gcc_no_link = xyes; then
29919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29921 { (exit 1); exit 1; }; }
29923 cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h. */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29929 #include <sys/stat.h>
29931 main ()
29933 struct stat buffer;
29934 fstat(0, &buffer);
29935 S_ISREG(buffer.st_mode);
29937 return 0;
29939 _ACEOF
29940 rm -f conftest.$ac_objext conftest$ac_exeext
29941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29942 (eval $ac_link) 2>conftest.er1
29943 ac_status=$?
29944 grep -v '^ *+' conftest.er1 >conftest.err
29945 rm -f conftest.er1
29946 cat conftest.err >&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } &&
29949 { ac_try='test -z "$ac_c_werror_flag"
29950 || test ! -s conftest.err'
29951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952 (eval $ac_try) 2>&5
29953 ac_status=$?
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); }; } &&
29956 { ac_try='test -s conftest$ac_exeext'
29957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29958 (eval $ac_try) 2>&5
29959 ac_status=$?
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); }; }; then
29962 glibcxx_cv_S_ISREG=yes
29963 else
29964 echo "$as_me: failed program was:" >&5
29965 sed 's/^/| /' conftest.$ac_ext >&5
29967 glibcxx_cv_S_ISREG=no
29969 rm -f conftest.err conftest.$ac_objext \
29970 conftest$ac_exeext conftest.$ac_ext
29974 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29976 else
29978 if test x$gcc_no_link = xyes; then
29979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29981 { (exit 1); exit 1; }; }
29983 cat >conftest.$ac_ext <<_ACEOF
29984 /* confdefs.h. */
29985 _ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h. */
29989 #include <sys/stat.h>
29991 main ()
29993 struct stat buffer;
29994 fstat(0, &buffer);
29995 S_IFREG & buffer.st_mode;
29997 return 0;
29999 _ACEOF
30000 rm -f conftest.$ac_objext conftest$ac_exeext
30001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30002 (eval $ac_link) 2>conftest.er1
30003 ac_status=$?
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
30009 { ac_try='test -z "$ac_c_werror_flag"
30010 || test ! -s conftest.err'
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest$ac_exeext'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022 glibcxx_cv_S_IFREG=yes
30023 else
30024 echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30027 glibcxx_cv_S_IFREG=no
30029 rm -f conftest.err conftest.$ac_objext \
30030 conftest$ac_exeext conftest.$ac_ext
30034 if test $glibcxx_cv_S_ISREG = yes; then
30035 cat >>confdefs.h <<\_ACEOF
30036 #define HAVE_S_ISREG 1
30037 _ACEOF
30039 elif test $glibcxx_cv_S_IFREG = yes; then
30040 cat >>confdefs.h <<\_ACEOF
30041 #define HAVE_S_IFREG 1
30042 _ACEOF
30047 # For xsputn_2().
30049 for ac_header in sys/uio.h
30051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30053 echo "$as_me:$LINENO: checking for $ac_header" >&5
30054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
30058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30060 else
30061 # Is the header compilable?
30062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30064 cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h. */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h. */
30070 $ac_includes_default
30071 #include <$ac_header>
30072 _ACEOF
30073 rm -f conftest.$ac_objext
30074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30075 (eval $ac_compile) 2>conftest.er1
30076 ac_status=$?
30077 grep -v '^ *+' conftest.er1 >conftest.err
30078 rm -f conftest.er1
30079 cat conftest.err >&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } &&
30082 { ac_try='test -z "$ac_c_werror_flag"
30083 || test ! -s conftest.err'
30084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30085 (eval $ac_try) 2>&5
30086 ac_status=$?
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; } &&
30089 { ac_try='test -s conftest.$ac_objext'
30090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091 (eval $ac_try) 2>&5
30092 ac_status=$?
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); }; }; then
30095 ac_header_compiler=yes
30096 else
30097 echo "$as_me: failed program was:" >&5
30098 sed 's/^/| /' conftest.$ac_ext >&5
30100 ac_header_compiler=no
30102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30104 echo "${ECHO_T}$ac_header_compiler" >&6
30106 # Is the header present?
30107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30109 cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h. */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h. */
30115 #include <$ac_header>
30116 _ACEOF
30117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30119 ac_status=$?
30120 grep -v '^ *+' conftest.er1 >conftest.err
30121 rm -f conftest.er1
30122 cat conftest.err >&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } >/dev/null; then
30125 if test -s conftest.err; then
30126 ac_cpp_err=$ac_c_preproc_warn_flag
30127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30128 else
30129 ac_cpp_err=
30131 else
30132 ac_cpp_err=yes
30134 if test -z "$ac_cpp_err"; then
30135 ac_header_preproc=yes
30136 else
30137 echo "$as_me: failed program was:" >&5
30138 sed 's/^/| /' conftest.$ac_ext >&5
30140 ac_header_preproc=no
30142 rm -f conftest.err conftest.$ac_ext
30143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30144 echo "${ECHO_T}$ac_header_preproc" >&6
30146 # So? What about this header?
30147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30148 yes:no: )
30149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30153 ac_header_preproc=yes
30155 no:yes:* )
30156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30169 cat <<\_ASBOX
30170 ## ----------------------------------------- ##
30171 ## Report this to the package-unused lists. ##
30172 ## ----------------------------------------- ##
30173 _ASBOX
30175 sed "s/^/$as_me: WARNING: /" >&2
30177 esac
30178 echo "$as_me:$LINENO: checking for $ac_header" >&5
30179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30182 else
30183 eval "$as_ac_Header=\$ac_header_preproc"
30185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30190 cat >>confdefs.h <<_ACEOF
30191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30192 _ACEOF
30196 done
30199 if test "${glibcxx_cv_WRITEV+set}" = set; then
30200 echo $ECHO_N "(cached) $ECHO_C" >&6
30201 else
30203 if test x$gcc_no_link = xyes; then
30204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30206 { (exit 1); exit 1; }; }
30208 cat >conftest.$ac_ext <<_ACEOF
30209 /* confdefs.h. */
30210 _ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h. */
30214 #include <sys/uio.h>
30216 main ()
30218 struct iovec iov[2];
30219 writev(0, iov, 0);
30221 return 0;
30223 _ACEOF
30224 rm -f conftest.$ac_objext conftest$ac_exeext
30225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30226 (eval $ac_link) 2>conftest.er1
30227 ac_status=$?
30228 grep -v '^ *+' conftest.er1 >conftest.err
30229 rm -f conftest.er1
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } &&
30233 { ac_try='test -z "$ac_c_werror_flag"
30234 || test ! -s conftest.err'
30235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30236 (eval $ac_try) 2>&5
30237 ac_status=$?
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; } &&
30240 { ac_try='test -s conftest$ac_exeext'
30241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30242 (eval $ac_try) 2>&5
30243 ac_status=$?
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); }; }; then
30246 glibcxx_cv_WRITEV=yes
30247 else
30248 echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30251 glibcxx_cv_WRITEV=no
30253 rm -f conftest.err conftest.$ac_objext \
30254 conftest$ac_exeext conftest.$ac_ext
30258 if test $glibcxx_cv_WRITEV = yes; then
30259 cat >>confdefs.h <<\_ACEOF
30260 #define HAVE_WRITEV 1
30261 _ACEOF
30266 # For the __streamoff_base_type typedef.
30268 if test "${glibcxx_cv_INT64_T+set}" = set; then
30269 echo $ECHO_N "(cached) $ECHO_C" >&6
30270 else
30272 cat >conftest.$ac_ext <<_ACEOF
30273 /* confdefs.h. */
30274 _ACEOF
30275 cat confdefs.h >>conftest.$ac_ext
30276 cat >>conftest.$ac_ext <<_ACEOF
30277 /* end confdefs.h. */
30278 #include <stdint.h>
30280 main ()
30282 int64_t var;
30284 return 0;
30286 _ACEOF
30287 rm -f conftest.$ac_objext
30288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30289 (eval $ac_compile) 2>conftest.er1
30290 ac_status=$?
30291 grep -v '^ *+' conftest.er1 >conftest.err
30292 rm -f conftest.er1
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
30296 { ac_try='test -z "$ac_c_werror_flag"
30297 || test ! -s conftest.err'
30298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30299 (eval $ac_try) 2>&5
30300 ac_status=$?
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); }; } &&
30303 { ac_try='test -s conftest.$ac_objext'
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; }; then
30309 glibcxx_cv_INT64_T=yes
30310 else
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 glibcxx_cv_INT64_T=no
30316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30320 if test $glibcxx_cv_INT64_T = yes; then
30321 cat >>confdefs.h <<\_ACEOF
30322 #define HAVE_INT64_T 1
30323 _ACEOF
30328 # For LFS support.
30332 ac_ext=cc
30333 ac_cpp='$CXXCPP $CPPFLAGS'
30334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30338 ac_save_CXXFLAGS="$CXXFLAGS"
30339 CXXFLAGS="$CXXFLAGS -fno-exceptions"
30340 if test "${glibcxx_cv_LFS+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342 else
30344 if test x$gcc_no_link = xyes; then
30345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30347 { (exit 1); exit 1; }; }
30349 cat >conftest.$ac_ext <<_ACEOF
30350 /* confdefs.h. */
30351 _ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30355 #include <unistd.h>
30356 #include <stdio.h>
30359 main ()
30361 FILE* fp;
30362 fopen64("t", "w");
30363 fseeko64(fp, 0, SEEK_CUR);
30364 ftello64(fp);
30365 lseek64(1, 0, SEEK_CUR);
30367 return 0;
30369 _ACEOF
30370 rm -f conftest.$ac_objext conftest$ac_exeext
30371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30372 (eval $ac_link) 2>conftest.er1
30373 ac_status=$?
30374 grep -v '^ *+' conftest.er1 >conftest.err
30375 rm -f conftest.er1
30376 cat conftest.err >&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
30379 { ac_try='test -z "$ac_cxx_werror_flag"
30380 || test ! -s conftest.err'
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest$ac_exeext'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; }; then
30392 glibcxx_cv_LFS=yes
30393 else
30394 echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30397 glibcxx_cv_LFS=no
30399 rm -f conftest.err conftest.$ac_objext \
30400 conftest$ac_exeext conftest.$ac_ext
30404 if test $glibcxx_cv_LFS = yes; then
30405 cat >>confdefs.h <<\_ACEOF
30406 #define _GLIBCXX_USE_LFS 1
30407 _ACEOF
30410 CXXFLAGS="$ac_save_CXXFLAGS"
30411 ac_ext=c
30412 ac_cpp='$CPP $CPPFLAGS'
30413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30420 if test "${ac_cv_header_locale_h+set}" = set; then
30421 echo "$as_me:$LINENO: checking for locale.h" >&5
30422 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30423 if test "${ac_cv_header_locale_h+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30427 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30428 else
30429 # Is the header compilable?
30430 echo "$as_me:$LINENO: checking locale.h usability" >&5
30431 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30432 cat >conftest.$ac_ext <<_ACEOF
30433 /* confdefs.h. */
30434 _ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30438 $ac_includes_default
30439 #include <locale.h>
30440 _ACEOF
30441 rm -f conftest.$ac_objext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30443 (eval $ac_compile) 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_c_werror_flag"
30451 || test ! -s conftest.err'
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_header_compiler=yes
30464 else
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30468 ac_header_compiler=no
30470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30472 echo "${ECHO_T}$ac_header_compiler" >&6
30474 # Is the header present?
30475 echo "$as_me:$LINENO: checking locale.h presence" >&5
30476 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h. */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 #include <locale.h>
30484 _ACEOF
30485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30487 ac_status=$?
30488 grep -v '^ *+' conftest.er1 >conftest.err
30489 rm -f conftest.er1
30490 cat conftest.err >&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } >/dev/null; then
30493 if test -s conftest.err; then
30494 ac_cpp_err=$ac_c_preproc_warn_flag
30495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30496 else
30497 ac_cpp_err=
30499 else
30500 ac_cpp_err=yes
30502 if test -z "$ac_cpp_err"; then
30503 ac_header_preproc=yes
30504 else
30505 echo "$as_me: failed program was:" >&5
30506 sed 's/^/| /' conftest.$ac_ext >&5
30508 ac_header_preproc=no
30510 rm -f conftest.err conftest.$ac_ext
30511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30512 echo "${ECHO_T}$ac_header_preproc" >&6
30514 # So? What about this header?
30515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30516 yes:no: )
30517 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30518 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30519 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30520 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30521 ac_header_preproc=yes
30523 no:yes:* )
30524 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30525 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30527 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30529 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30531 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30532 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30533 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30535 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30537 cat <<\_ASBOX
30538 ## ----------------------------------------- ##
30539 ## Report this to the package-unused lists. ##
30540 ## ----------------------------------------- ##
30541 _ASBOX
30543 sed "s/^/$as_me: WARNING: /" >&2
30545 esac
30546 echo "$as_me:$LINENO: checking for locale.h" >&5
30547 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30548 if test "${ac_cv_header_locale_h+set}" = set; then
30549 echo $ECHO_N "(cached) $ECHO_C" >&6
30550 else
30551 ac_cv_header_locale_h=$ac_header_preproc
30553 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30554 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30557 if test $ac_cv_header_locale_h = yes; then
30559 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30560 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30561 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30563 else
30564 if test x$gcc_no_link = xyes; then
30565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30567 { (exit 1); exit 1; }; }
30569 cat >conftest.$ac_ext <<_ACEOF
30570 /* confdefs.h. */
30571 _ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30575 #include <locale.h>
30577 main ()
30579 return LC_MESSAGES
30581 return 0;
30583 _ACEOF
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30586 (eval $ac_link) 2>conftest.er1
30587 ac_status=$?
30588 grep -v '^ *+' conftest.er1 >conftest.err
30589 rm -f conftest.er1
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } &&
30593 { ac_try='test -z "$ac_c_werror_flag"
30594 || test ! -s conftest.err'
30595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30596 (eval $ac_try) 2>&5
30597 ac_status=$?
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); }; } &&
30600 { ac_try='test -s conftest$ac_exeext'
30601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30602 (eval $ac_try) 2>&5
30603 ac_status=$?
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; }; then
30606 ac_cv_val_LC_MESSAGES=yes
30607 else
30608 echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 ac_cv_val_LC_MESSAGES=no
30613 rm -f conftest.err conftest.$ac_objext \
30614 conftest$ac_exeext conftest.$ac_ext
30616 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30617 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30618 if test $ac_cv_val_LC_MESSAGES = yes; then
30619 cat >>confdefs.h <<\_ACEOF
30620 #define HAVE_LC_MESSAGES 1
30621 _ACEOF
30630 cat >conftest.$ac_ext <<_ACEOF
30631 /* confdefs.h. */
30632 _ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h. */
30636 #include <setjmp.h>
30638 main ()
30640 sigjmp_buf env;
30641 while (! sigsetjmp (env, 1))
30642 siglongjmp (env, 1);
30645 return 0;
30647 _ACEOF
30648 rm -f conftest.$ac_objext
30649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30650 (eval $ac_compile) 2>conftest.er1
30651 ac_status=$?
30652 grep -v '^ *+' conftest.er1 >conftest.err
30653 rm -f conftest.er1
30654 cat conftest.err >&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } &&
30657 { ac_try='test -z "$ac_c_werror_flag"
30658 || test ! -s conftest.err'
30659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660 (eval $ac_try) 2>&5
30661 ac_status=$?
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; } &&
30664 { ac_try='test -s conftest.$ac_objext'
30665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666 (eval $ac_try) 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
30671 cat >>confdefs.h <<\_ACEOF
30672 #define HAVE_SIGSETJMP 1
30673 _ACEOF
30675 else
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30682 if test x$gcc_no_link = xyes; then
30683 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30684 ac_cv_func_mmap_fixed_mapped=no
30687 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30690 for ac_header in stdlib.h unistd.h
30692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30694 echo "$as_me:$LINENO: checking for $ac_header" >&5
30695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30701 else
30702 # Is the header compilable?
30703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30705 cat >conftest.$ac_ext <<_ACEOF
30706 /* confdefs.h. */
30707 _ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h. */
30711 $ac_includes_default
30712 #include <$ac_header>
30713 _ACEOF
30714 rm -f conftest.$ac_objext
30715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30716 (eval $ac_compile) 2>conftest.er1
30717 ac_status=$?
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
30723 { ac_try='test -z "$ac_c_werror_flag"
30724 || test ! -s conftest.err'
30725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726 (eval $ac_try) 2>&5
30727 ac_status=$?
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); }; } &&
30730 { ac_try='test -s conftest.$ac_objext'
30731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30732 (eval $ac_try) 2>&5
30733 ac_status=$?
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); }; }; then
30736 ac_header_compiler=yes
30737 else
30738 echo "$as_me: failed program was:" >&5
30739 sed 's/^/| /' conftest.$ac_ext >&5
30741 ac_header_compiler=no
30743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30745 echo "${ECHO_T}$ac_header_compiler" >&6
30747 # Is the header present?
30748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30750 cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h. */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30756 #include <$ac_header>
30757 _ACEOF
30758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30760 ac_status=$?
30761 grep -v '^ *+' conftest.er1 >conftest.err
30762 rm -f conftest.er1
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } >/dev/null; then
30766 if test -s conftest.err; then
30767 ac_cpp_err=$ac_c_preproc_warn_flag
30768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30769 else
30770 ac_cpp_err=
30772 else
30773 ac_cpp_err=yes
30775 if test -z "$ac_cpp_err"; then
30776 ac_header_preproc=yes
30777 else
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30781 ac_header_preproc=no
30783 rm -f conftest.err conftest.$ac_ext
30784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30785 echo "${ECHO_T}$ac_header_preproc" >&6
30787 # So? What about this header?
30788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30789 yes:no: )
30790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30794 ac_header_preproc=yes
30796 no:yes:* )
30797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30810 cat <<\_ASBOX
30811 ## ----------------------------------------- ##
30812 ## Report this to the package-unused lists. ##
30813 ## ----------------------------------------- ##
30814 _ASBOX
30816 sed "s/^/$as_me: WARNING: /" >&2
30818 esac
30819 echo "$as_me:$LINENO: checking for $ac_header" >&5
30820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30822 echo $ECHO_N "(cached) $ECHO_C" >&6
30823 else
30824 eval "$as_ac_Header=\$ac_header_preproc"
30826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30831 cat >>confdefs.h <<_ACEOF
30832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30833 _ACEOF
30837 done
30840 for ac_func in getpagesize
30842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30843 echo "$as_me:$LINENO: checking for $ac_func" >&5
30844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30845 if eval "test \"\${$as_ac_var+set}\" = set"; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 else
30848 if test x$gcc_no_link = xyes; then
30849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30851 { (exit 1); exit 1; }; }
30853 cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h. */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h. */
30859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30861 #define $ac_func innocuous_$ac_func
30863 /* System header to define __stub macros and hopefully few prototypes,
30864 which can conflict with char $ac_func (); below.
30865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30866 <limits.h> exists even on freestanding compilers. */
30868 #ifdef __STDC__
30869 # include <limits.h>
30870 #else
30871 # include <assert.h>
30872 #endif
30874 #undef $ac_func
30876 /* Override any gcc2 internal prototype to avoid an error. */
30877 #ifdef __cplusplus
30878 extern "C"
30880 #endif
30881 /* We use char because int might match the return type of a gcc2
30882 builtin and then its argument prototype would still apply. */
30883 char $ac_func ();
30884 /* The GNU C library defines this for functions which it implements
30885 to always fail with ENOSYS. Some functions are actually named
30886 something starting with __ and the normal name is an alias. */
30887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30888 choke me
30889 #else
30890 char (*f) () = $ac_func;
30891 #endif
30892 #ifdef __cplusplus
30894 #endif
30897 main ()
30899 return f != $ac_func;
30901 return 0;
30903 _ACEOF
30904 rm -f conftest.$ac_objext conftest$ac_exeext
30905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30906 (eval $ac_link) 2>conftest.er1
30907 ac_status=$?
30908 grep -v '^ *+' conftest.er1 >conftest.err
30909 rm -f conftest.er1
30910 cat conftest.err >&5
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); } &&
30913 { ac_try='test -z "$ac_c_werror_flag"
30914 || test ! -s conftest.err'
30915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30916 (eval $ac_try) 2>&5
30917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; } &&
30920 { ac_try='test -s conftest$ac_exeext'
30921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922 (eval $ac_try) 2>&5
30923 ac_status=$?
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); }; }; then
30926 eval "$as_ac_var=yes"
30927 else
30928 echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30931 eval "$as_ac_var=no"
30933 rm -f conftest.err conftest.$ac_objext \
30934 conftest$ac_exeext conftest.$ac_ext
30936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30938 if test `eval echo '${'$as_ac_var'}'` = yes; then
30939 cat >>confdefs.h <<_ACEOF
30940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30941 _ACEOF
30944 done
30946 echo "$as_me:$LINENO: checking for working mmap" >&5
30947 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30949 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951 if test "$cross_compiling" = yes; then
30952 ac_cv_func_mmap_fixed_mapped=no
30953 else
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h. */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 $ac_includes_default
30961 /* malloc might have been renamed as rpl_malloc. */
30962 #undef malloc
30964 /* Thanks to Mike Haertel and Jim Avera for this test.
30965 Here is a matrix of mmap possibilities:
30966 mmap private not fixed
30967 mmap private fixed at somewhere currently unmapped
30968 mmap private fixed at somewhere already mapped
30969 mmap shared not fixed
30970 mmap shared fixed at somewhere currently unmapped
30971 mmap shared fixed at somewhere already mapped
30972 For private mappings, we should verify that changes cannot be read()
30973 back from the file, nor mmap's back from the file at a different
30974 address. (There have been systems where private was not correctly
30975 implemented like the infamous i386 svr4.0, and systems where the
30976 VM page cache was not coherent with the file system buffer cache
30977 like early versions of FreeBSD and possibly contemporary NetBSD.)
30978 For shared mappings, we should conversely verify that changes get
30979 propagated back to all the places they're supposed to be.
30981 Grep wants private fixed already mapped.
30982 The main things grep needs to know about mmap are:
30983 * does it exist and is it safe to write into the mmap'd area
30984 * how to use it (BSD variants) */
30986 #include <fcntl.h>
30987 #include <sys/mman.h>
30989 #if !STDC_HEADERS && !HAVE_STDLIB_H
30990 char *malloc ();
30991 #endif
30993 /* This mess was copied from the GNU getpagesize.h. */
30994 #if !HAVE_GETPAGESIZE
30995 /* Assume that all systems that can run configure have sys/param.h. */
30996 # if !HAVE_SYS_PARAM_H
30997 # define HAVE_SYS_PARAM_H 1
30998 # endif
31000 # ifdef _SC_PAGESIZE
31001 # define getpagesize() sysconf(_SC_PAGESIZE)
31002 # else /* no _SC_PAGESIZE */
31003 # if HAVE_SYS_PARAM_H
31004 # include <sys/param.h>
31005 # ifdef EXEC_PAGESIZE
31006 # define getpagesize() EXEC_PAGESIZE
31007 # else /* no EXEC_PAGESIZE */
31008 # ifdef NBPG
31009 # define getpagesize() NBPG * CLSIZE
31010 # ifndef CLSIZE
31011 # define CLSIZE 1
31012 # endif /* no CLSIZE */
31013 # else /* no NBPG */
31014 # ifdef NBPC
31015 # define getpagesize() NBPC
31016 # else /* no NBPC */
31017 # ifdef PAGESIZE
31018 # define getpagesize() PAGESIZE
31019 # endif /* PAGESIZE */
31020 # endif /* no NBPC */
31021 # endif /* no NBPG */
31022 # endif /* no EXEC_PAGESIZE */
31023 # else /* no HAVE_SYS_PARAM_H */
31024 # define getpagesize() 8192 /* punt totally */
31025 # endif /* no HAVE_SYS_PARAM_H */
31026 # endif /* no _SC_PAGESIZE */
31028 #endif /* no HAVE_GETPAGESIZE */
31031 main ()
31033 char *data, *data2, *data3;
31034 int i, pagesize;
31035 int fd;
31037 pagesize = getpagesize ();
31039 /* First, make a file with some known garbage in it. */
31040 data = (char *) malloc (pagesize);
31041 if (!data)
31042 exit (1);
31043 for (i = 0; i < pagesize; ++i)
31044 *(data + i) = rand ();
31045 umask (0);
31046 fd = creat ("conftest.mmap", 0600);
31047 if (fd < 0)
31048 exit (1);
31049 if (write (fd, data, pagesize) != pagesize)
31050 exit (1);
31051 close (fd);
31053 /* Next, try to mmap the file at a fixed address which already has
31054 something else allocated at it. If we can, also make sure that
31055 we see the same garbage. */
31056 fd = open ("conftest.mmap", O_RDWR);
31057 if (fd < 0)
31058 exit (1);
31059 data2 = (char *) malloc (2 * pagesize);
31060 if (!data2)
31061 exit (1);
31062 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31063 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31065 exit (1);
31066 for (i = 0; i < pagesize; ++i)
31067 if (*(data + i) != *(data2 + i))
31068 exit (1);
31070 /* Finally, make sure that changes to the mapped area do not
31071 percolate back to the file as seen by read(). (This is a bug on
31072 some variants of i386 svr4.0.) */
31073 for (i = 0; i < pagesize; ++i)
31074 *(data2 + i) = *(data2 + i) + 1;
31075 data3 = (char *) malloc (pagesize);
31076 if (!data3)
31077 exit (1);
31078 if (read (fd, data3, pagesize) != pagesize)
31079 exit (1);
31080 for (i = 0; i < pagesize; ++i)
31081 if (*(data + i) != *(data3 + i))
31082 exit (1);
31083 close (fd);
31084 exit (0);
31086 _ACEOF
31087 rm -f conftest$ac_exeext
31088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31089 (eval $ac_link) 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31094 (eval $ac_try) 2>&5
31095 ac_status=$?
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; }; then
31098 ac_cv_func_mmap_fixed_mapped=yes
31099 else
31100 echo "$as_me: program exited with status $ac_status" >&5
31101 echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31104 ( exit $ac_status )
31105 ac_cv_func_mmap_fixed_mapped=no
31107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31110 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31111 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31114 cat >>confdefs.h <<\_ACEOF
31115 #define HAVE_MMAP 1
31116 _ACEOF
31119 rm -f conftest.mmap
31123 else
31125 # This lets us hard-code the functionality we know we'll have in the cross
31126 # target environment. "Let" is a sugar-coated word placed on an especially
31127 # dull and tedious hack, actually.
31129 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31130 # that involve linking, can't be used:
31131 # "cannot open sim-crt0.o"
31132 # "cannot open crt0.o"
31133 # etc. All this is because there currently exists no unified, consistent
31134 # way for top level CC information to be passed down to target directories:
31135 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31136 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31137 # crosses can be removed.
31139 # If Canadian cross, then don't pick up tools from the build directory.
31140 # Used only in GLIBCXX_EXPORT_INCLUDES.
31141 if test -n "$with_cross_host" &&
31142 test x"$build_alias" != x"$with_cross_host" &&
31143 test x"$build" != x"$target";
31144 then
31145 CANADIAN=yes
31146 else
31147 CANADIAN=no
31150 # Construct crosses by hand, eliminating bits that need ld...
31151 # GLIBCXX_CHECK_COMPILER_FEATURES
31152 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31153 # GLIBCXX_CHECK_MATH_SUPPORT
31155 # First, test for "known" system libraries. We may be using newlib even
31156 # on a hosted environment.
31157 if test "x${with_newlib}" = "xyes"; then
31158 os_include_dir="os/newlib"
31159 cat >>confdefs.h <<\_ACEOF
31160 #define HAVE_HYPOT 1
31161 _ACEOF
31164 # GLIBCXX_CHECK_STDLIB_SUPPORT
31165 cat >>confdefs.h <<\_ACEOF
31166 #define HAVE_STRTOF 1
31167 _ACEOF
31169 cat >>confdefs.h <<\_ACEOF
31170 #define HAVE_STRTOLD 1
31171 _ACEOF
31173 # AC_FUNC_MMAP
31174 cat >>confdefs.h <<\_ACEOF
31175 #define HAVE_MMAP 1
31176 _ACEOF
31179 cat >>confdefs.h <<\_ACEOF
31180 #define HAVE_ACOSF 1
31181 _ACEOF
31183 cat >>confdefs.h <<\_ACEOF
31184 #define HAVE_ASINF 1
31185 _ACEOF
31187 cat >>confdefs.h <<\_ACEOF
31188 #define HAVE_ATAN2F 1
31189 _ACEOF
31191 cat >>confdefs.h <<\_ACEOF
31192 #define HAVE_ATANF 1
31193 _ACEOF
31195 cat >>confdefs.h <<\_ACEOF
31196 #define HAVE_CEILF 1
31197 _ACEOF
31199 cat >>confdefs.h <<\_ACEOF
31200 #define HAVE_COPYSIGN 1
31201 _ACEOF
31203 cat >>confdefs.h <<\_ACEOF
31204 #define HAVE_COPYSIGNF 1
31205 _ACEOF
31207 cat >>confdefs.h <<\_ACEOF
31208 #define HAVE_COSF 1
31209 _ACEOF
31211 cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_COSHF 1
31213 _ACEOF
31215 cat >>confdefs.h <<\_ACEOF
31216 #define HAVE_EXPF 1
31217 _ACEOF
31219 cat >>confdefs.h <<\_ACEOF
31220 #define HAVE_FABSF 1
31221 _ACEOF
31223 cat >>confdefs.h <<\_ACEOF
31224 #define HAVE_FLOORF 1
31225 _ACEOF
31227 cat >>confdefs.h <<\_ACEOF
31228 #define HAVE_FMODF 1
31229 _ACEOF
31231 cat >>confdefs.h <<\_ACEOF
31232 #define HAVE_FREXPF 1
31233 _ACEOF
31235 cat >>confdefs.h <<\_ACEOF
31236 #define HAVE_LDEXPF 1
31237 _ACEOF
31239 cat >>confdefs.h <<\_ACEOF
31240 #define HAVE_LOG10F 1
31241 _ACEOF
31243 cat >>confdefs.h <<\_ACEOF
31244 #define HAVE_LOGF 1
31245 _ACEOF
31247 cat >>confdefs.h <<\_ACEOF
31248 #define HAVE_MODFF 1
31249 _ACEOF
31251 cat >>confdefs.h <<\_ACEOF
31252 #define HAVE_POWF 1
31253 _ACEOF
31255 cat >>confdefs.h <<\_ACEOF
31256 #define HAVE_SINF 1
31257 _ACEOF
31259 cat >>confdefs.h <<\_ACEOF
31260 #define HAVE_SINHF 1
31261 _ACEOF
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_SQRTF 1
31265 _ACEOF
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_TANF 1
31269 _ACEOF
31271 cat >>confdefs.h <<\_ACEOF
31272 #define HAVE_TANHF 1
31273 _ACEOF
31276 cat >>confdefs.h <<\_ACEOF
31277 #define HAVE_S_ISREG 1
31278 _ACEOF
31280 cat >>confdefs.h <<\_ACEOF
31281 #define HAVE_S_IFREG 1
31282 _ACEOF
31284 else
31286 # Base decisions on target environment.
31287 case "${host}" in
31288 *-darwin*)
31289 # Darwin versions vary, but the linker should work in a cross environment,
31290 # so we just check for all the features here.
31291 # Check for available headers.
31305 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31306 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31307 sys/types.h
31309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31311 echo "$as_me:$LINENO: checking for $ac_header" >&5
31312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31318 else
31319 # Is the header compilable?
31320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31322 cat >conftest.$ac_ext <<_ACEOF
31323 /* confdefs.h. */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31328 $ac_includes_default
31329 #include <$ac_header>
31330 _ACEOF
31331 rm -f conftest.$ac_objext
31332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31333 (eval $ac_compile) 2>conftest.er1
31334 ac_status=$?
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag"
31341 || test ! -s conftest.err'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest.$ac_objext'
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31350 ac_status=$?
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; }; then
31353 ac_header_compiler=yes
31354 else
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31358 ac_header_compiler=no
31360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31362 echo "${ECHO_T}$ac_header_compiler" >&6
31364 # Is the header present?
31365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31367 cat >conftest.$ac_ext <<_ACEOF
31368 /* confdefs.h. */
31369 _ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h. */
31373 #include <$ac_header>
31374 _ACEOF
31375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31377 ac_status=$?
31378 grep -v '^ *+' conftest.er1 >conftest.err
31379 rm -f conftest.er1
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } >/dev/null; then
31383 if test -s conftest.err; then
31384 ac_cpp_err=$ac_c_preproc_warn_flag
31385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31386 else
31387 ac_cpp_err=
31389 else
31390 ac_cpp_err=yes
31392 if test -z "$ac_cpp_err"; then
31393 ac_header_preproc=yes
31394 else
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ac_header_preproc=no
31400 rm -f conftest.err conftest.$ac_ext
31401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31402 echo "${ECHO_T}$ac_header_preproc" >&6
31404 # So? What about this header?
31405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31406 yes:no: )
31407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31411 ac_header_preproc=yes
31413 no:yes:* )
31414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31427 cat <<\_ASBOX
31428 ## ----------------------------------------- ##
31429 ## Report this to the package-unused lists. ##
31430 ## ----------------------------------------- ##
31431 _ASBOX
31433 sed "s/^/$as_me: WARNING: /" >&2
31435 esac
31436 echo "$as_me:$LINENO: checking for $ac_header" >&5
31437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31440 else
31441 eval "$as_ac_Header=\$ac_header_preproc"
31443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31448 cat >>confdefs.h <<_ACEOF
31449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31450 _ACEOF
31454 done
31458 # All these tests are for C++; save the language and the compiler flags.
31459 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31460 # found in GLIBCXX_CONFIGURE.
31463 ac_ext=cc
31464 ac_cpp='$CXXCPP $CPPFLAGS'
31465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31469 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31470 ac_save_CXXFLAGS="$CXXFLAGS"
31472 # Check for maintainer-mode bits.
31473 if test x"$USE_MAINTAINER_MODE" = xno; then
31474 WERROR=''
31475 else
31476 WERROR='-Werror'
31479 # Check for -ffunction-sections -fdata-sections
31480 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31481 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31482 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31483 cat >conftest.$ac_ext <<_ACEOF
31484 /* confdefs.h. */
31485 _ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31491 main ()
31493 int foo;
31495 return 0;
31497 _ACEOF
31498 rm -f conftest.$ac_objext
31499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31500 (eval $ac_compile) 2>conftest.er1
31501 ac_status=$?
31502 grep -v '^ *+' conftest.er1 >conftest.err
31503 rm -f conftest.er1
31504 cat conftest.err >&5
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); } &&
31507 { ac_try='test -z "$ac_cxx_werror_flag"
31508 || test ! -s conftest.err'
31509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510 (eval $ac_try) 2>&5
31511 ac_status=$?
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; } &&
31514 { ac_try='test -s conftest.$ac_objext'
31515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31516 (eval $ac_try) 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; }; then
31520 ac_fdsections=yes
31521 else
31522 echo "$as_me: failed program was:" >&5
31523 sed 's/^/| /' conftest.$ac_ext >&5
31525 ac_fdsections=no
31527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31528 if test "$ac_test_CXXFLAGS" = set; then
31529 CXXFLAGS="$ac_save_CXXFLAGS"
31530 else
31531 # this is the suspicious part
31532 CXXFLAGS=''
31534 if test x"$ac_fdsections" = x"yes"; then
31535 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31537 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31538 echo "${ECHO_T}$ac_fdsections" >&6
31540 ac_ext=c
31541 ac_cpp='$CPP $CPPFLAGS'
31542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31549 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31551 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31552 ac_save_CXXFLAGS="$CXXFLAGS"
31553 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31555 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31556 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31557 if test "${ac_cv_lib_m_sin+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560 ac_check_lib_save_LIBS=$LIBS
31561 LIBS="-lm $LIBS"
31562 if test x$gcc_no_link = xyes; then
31563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31565 { (exit 1); exit 1; }; }
31567 cat >conftest.$ac_ext <<_ACEOF
31568 /* confdefs.h. */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h. */
31574 /* Override any gcc2 internal prototype to avoid an error. */
31575 #ifdef __cplusplus
31576 extern "C"
31577 #endif
31578 /* We use char because int might match the return type of a gcc2
31579 builtin and then its argument prototype would still apply. */
31580 char sin ();
31582 main ()
31584 sin ();
31586 return 0;
31588 _ACEOF
31589 rm -f conftest.$ac_objext conftest$ac_exeext
31590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31591 (eval $ac_link) 2>conftest.er1
31592 ac_status=$?
31593 grep -v '^ *+' conftest.er1 >conftest.err
31594 rm -f conftest.er1
31595 cat conftest.err >&5
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); } &&
31598 { ac_try='test -z "$ac_c_werror_flag"
31599 || test ! -s conftest.err'
31600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31601 (eval $ac_try) 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; } &&
31605 { ac_try='test -s conftest$ac_exeext'
31606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607 (eval $ac_try) 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; }; then
31611 ac_cv_lib_m_sin=yes
31612 else
31613 echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31616 ac_cv_lib_m_sin=no
31618 rm -f conftest.err conftest.$ac_objext \
31619 conftest$ac_exeext conftest.$ac_ext
31620 LIBS=$ac_check_lib_save_LIBS
31622 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31623 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31624 if test $ac_cv_lib_m_sin = yes; then
31625 libm="-lm"
31628 ac_save_LIBS="$LIBS"
31629 LIBS="$LIBS $libm"
31631 echo "$as_me:$LINENO: checking for sqrtf in -lmx" >&5
31632 echo $ECHO_N "checking for sqrtf in -lmx... $ECHO_C" >&6
31633 if test "${ac_cv_lib_mx_sqrtf+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636 ac_check_lib_save_LIBS=$LIBS
31637 LIBS="-lmx $LIBS"
31638 if test x$gcc_no_link = xyes; then
31639 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31640 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31641 { (exit 1); exit 1; }; }
31643 cat >conftest.$ac_ext <<_ACEOF
31644 /* confdefs.h. */
31645 _ACEOF
31646 cat confdefs.h >>conftest.$ac_ext
31647 cat >>conftest.$ac_ext <<_ACEOF
31648 /* end confdefs.h. */
31650 /* Override any gcc2 internal prototype to avoid an error. */
31651 #ifdef __cplusplus
31652 extern "C"
31653 #endif
31654 /* We use char because int might match the return type of a gcc2
31655 builtin and then its argument prototype would still apply. */
31656 char sqrtf ();
31658 main ()
31660 sqrtf ();
31662 return 0;
31664 _ACEOF
31665 rm -f conftest.$ac_objext conftest$ac_exeext
31666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31667 (eval $ac_link) 2>conftest.er1
31668 ac_status=$?
31669 grep -v '^ *+' conftest.er1 >conftest.err
31670 rm -f conftest.er1
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } &&
31674 { ac_try='test -z "$ac_c_werror_flag"
31675 || test ! -s conftest.err'
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; } &&
31681 { ac_try='test -s conftest$ac_exeext'
31682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31683 (eval $ac_try) 2>&5
31684 ac_status=$?
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); }; }; then
31687 ac_cv_lib_mx_sqrtf=yes
31688 else
31689 echo "$as_me: failed program was:" >&5
31690 sed 's/^/| /' conftest.$ac_ext >&5
31692 ac_cv_lib_mx_sqrtf=no
31694 rm -f conftest.err conftest.$ac_objext \
31695 conftest$ac_exeext conftest.$ac_ext
31696 LIBS=$ac_check_lib_save_LIBS
31698 echo "$as_me:$LINENO: result: $ac_cv_lib_mx_sqrtf" >&5
31699 echo "${ECHO_T}$ac_cv_lib_mx_sqrtf" >&6
31700 if test $ac_cv_lib_mx_sqrtf = yes; then
31701 libmx="-lmx"
31704 LIBS="$LIBS $libmx"
31708 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31709 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31710 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31711 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31712 echo $ECHO_N "(cached) $ECHO_C" >&6
31713 else
31717 ac_ext=cc
31718 ac_cpp='$CXXCPP $CPPFLAGS'
31719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31723 cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h. */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h. */
31729 #include <math.h>
31730 #ifdef HAVE_IEEEFP_H
31731 #include <ieeefp.h>
31732 #endif
31735 main ()
31737 isinf(0);
31739 return 0;
31741 _ACEOF
31742 rm -f conftest.$ac_objext
31743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31744 (eval $ac_compile) 2>conftest.er1
31745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
31751 { ac_try='test -z "$ac_cxx_werror_flag"
31752 || test ! -s conftest.err'
31753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31754 (eval $ac_try) 2>&5
31755 ac_status=$?
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); }; } &&
31758 { ac_try='test -s conftest.$ac_objext'
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; }; then
31764 glibcxx_cv_func_isinf_use=yes
31765 else
31766 echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31769 glibcxx_cv_func_isinf_use=no
31771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31772 ac_ext=c
31773 ac_cpp='$CPP $CPPFLAGS'
31774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31782 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31783 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31785 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31787 for ac_func in isinf
31789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31790 echo "$as_me:$LINENO: checking for $ac_func" >&5
31791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31792 if eval "test \"\${$as_ac_var+set}\" = set"; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31794 else
31795 if test x$gcc_no_link = xyes; then
31796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31798 { (exit 1); exit 1; }; }
31800 cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h. */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h. */
31806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31808 #define $ac_func innocuous_$ac_func
31810 /* System header to define __stub macros and hopefully few prototypes,
31811 which can conflict with char $ac_func (); below.
31812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31813 <limits.h> exists even on freestanding compilers. */
31815 #ifdef __STDC__
31816 # include <limits.h>
31817 #else
31818 # include <assert.h>
31819 #endif
31821 #undef $ac_func
31823 /* Override any gcc2 internal prototype to avoid an error. */
31824 #ifdef __cplusplus
31825 extern "C"
31827 #endif
31828 /* We use char because int might match the return type of a gcc2
31829 builtin and then its argument prototype would still apply. */
31830 char $ac_func ();
31831 /* The GNU C library defines this for functions which it implements
31832 to always fail with ENOSYS. Some functions are actually named
31833 something starting with __ and the normal name is an alias. */
31834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31835 choke me
31836 #else
31837 char (*f) () = $ac_func;
31838 #endif
31839 #ifdef __cplusplus
31841 #endif
31844 main ()
31846 return f != $ac_func;
31848 return 0;
31850 _ACEOF
31851 rm -f conftest.$ac_objext conftest$ac_exeext
31852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31853 (eval $ac_link) 2>conftest.er1
31854 ac_status=$?
31855 grep -v '^ *+' conftest.er1 >conftest.err
31856 rm -f conftest.er1
31857 cat conftest.err >&5
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); } &&
31860 { ac_try='test -z "$ac_c_werror_flag"
31861 || test ! -s conftest.err'
31862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863 (eval $ac_try) 2>&5
31864 ac_status=$?
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); }; } &&
31867 { ac_try='test -s conftest$ac_exeext'
31868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31869 (eval $ac_try) 2>&5
31870 ac_status=$?
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; }; then
31873 eval "$as_ac_var=yes"
31874 else
31875 echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31878 eval "$as_ac_var=no"
31880 rm -f conftest.err conftest.$ac_objext \
31881 conftest$ac_exeext conftest.$ac_ext
31883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31885 if test `eval echo '${'$as_ac_var'}'` = yes; then
31886 cat >>confdefs.h <<_ACEOF
31887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31888 _ACEOF
31891 done
31893 else
31895 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31896 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31897 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31898 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31904 ac_ext=cc
31905 ac_cpp='$CXXCPP $CPPFLAGS'
31906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31910 cat >conftest.$ac_ext <<_ACEOF
31911 /* confdefs.h. */
31912 _ACEOF
31913 cat confdefs.h >>conftest.$ac_ext
31914 cat >>conftest.$ac_ext <<_ACEOF
31915 /* end confdefs.h. */
31916 #include <math.h>
31917 #ifdef HAVE_IEEEFP_H
31918 #include <ieeefp.h>
31919 #endif
31922 main ()
31924 _isinf(0);
31926 return 0;
31928 _ACEOF
31929 rm -f conftest.$ac_objext
31930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31931 (eval $ac_compile) 2>conftest.er1
31932 ac_status=$?
31933 grep -v '^ *+' conftest.er1 >conftest.err
31934 rm -f conftest.er1
31935 cat conftest.err >&5
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); } &&
31938 { ac_try='test -z "$ac_cxx_werror_flag"
31939 || test ! -s conftest.err'
31940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31941 (eval $ac_try) 2>&5
31942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; } &&
31945 { ac_try='test -s conftest.$ac_objext'
31946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31947 (eval $ac_try) 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; }; then
31951 glibcxx_cv_func__isinf_use=yes
31952 else
31953 echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31956 glibcxx_cv_func__isinf_use=no
31958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31959 ac_ext=c
31960 ac_cpp='$CPP $CPPFLAGS'
31961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31969 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31970 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31972 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31974 for ac_func in _isinf
31976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31977 echo "$as_me:$LINENO: checking for $ac_func" >&5
31978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31979 if eval "test \"\${$as_ac_var+set}\" = set"; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981 else
31982 if test x$gcc_no_link = xyes; then
31983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31985 { (exit 1); exit 1; }; }
31987 cat >conftest.$ac_ext <<_ACEOF
31988 /* confdefs.h. */
31989 _ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h. */
31993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31995 #define $ac_func innocuous_$ac_func
31997 /* System header to define __stub macros and hopefully few prototypes,
31998 which can conflict with char $ac_func (); below.
31999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32000 <limits.h> exists even on freestanding compilers. */
32002 #ifdef __STDC__
32003 # include <limits.h>
32004 #else
32005 # include <assert.h>
32006 #endif
32008 #undef $ac_func
32010 /* Override any gcc2 internal prototype to avoid an error. */
32011 #ifdef __cplusplus
32012 extern "C"
32014 #endif
32015 /* We use char because int might match the return type of a gcc2
32016 builtin and then its argument prototype would still apply. */
32017 char $ac_func ();
32018 /* The GNU C library defines this for functions which it implements
32019 to always fail with ENOSYS. Some functions are actually named
32020 something starting with __ and the normal name is an alias. */
32021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32022 choke me
32023 #else
32024 char (*f) () = $ac_func;
32025 #endif
32026 #ifdef __cplusplus
32028 #endif
32031 main ()
32033 return f != $ac_func;
32035 return 0;
32037 _ACEOF
32038 rm -f conftest.$ac_objext conftest$ac_exeext
32039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32040 (eval $ac_link) 2>conftest.er1
32041 ac_status=$?
32042 grep -v '^ *+' conftest.er1 >conftest.err
32043 rm -f conftest.er1
32044 cat conftest.err >&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } &&
32047 { ac_try='test -z "$ac_c_werror_flag"
32048 || test ! -s conftest.err'
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest$ac_exeext'
32055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056 (eval $ac_try) 2>&5
32057 ac_status=$?
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; }; then
32060 eval "$as_ac_var=yes"
32061 else
32062 echo "$as_me: failed program was:" >&5
32063 sed 's/^/| /' conftest.$ac_ext >&5
32065 eval "$as_ac_var=no"
32067 rm -f conftest.err conftest.$ac_objext \
32068 conftest$ac_exeext conftest.$ac_ext
32070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32072 if test `eval echo '${'$as_ac_var'}'` = yes; then
32073 cat >>confdefs.h <<_ACEOF
32074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32075 _ACEOF
32078 done
32085 echo "$as_me:$LINENO: checking for isnan declaration" >&5
32086 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
32087 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
32088 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32090 else
32094 ac_ext=cc
32095 ac_cpp='$CXXCPP $CPPFLAGS'
32096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32100 cat >conftest.$ac_ext <<_ACEOF
32101 /* confdefs.h. */
32102 _ACEOF
32103 cat confdefs.h >>conftest.$ac_ext
32104 cat >>conftest.$ac_ext <<_ACEOF
32105 /* end confdefs.h. */
32106 #include <math.h>
32107 #ifdef HAVE_IEEEFP_H
32108 #include <ieeefp.h>
32109 #endif
32112 main ()
32114 isnan(0);
32116 return 0;
32118 _ACEOF
32119 rm -f conftest.$ac_objext
32120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32121 (eval $ac_compile) 2>conftest.er1
32122 ac_status=$?
32123 grep -v '^ *+' conftest.er1 >conftest.err
32124 rm -f conftest.er1
32125 cat conftest.err >&5
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); } &&
32128 { ac_try='test -z "$ac_cxx_werror_flag"
32129 || test ! -s conftest.err'
32130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32131 (eval $ac_try) 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; } &&
32135 { ac_try='test -s conftest.$ac_objext'
32136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32137 (eval $ac_try) 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; }; then
32141 glibcxx_cv_func_isnan_use=yes
32142 else
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 glibcxx_cv_func_isnan_use=no
32148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32149 ac_ext=c
32150 ac_cpp='$CPP $CPPFLAGS'
32151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32159 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
32160 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
32162 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32164 for ac_func in isnan
32166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167 echo "$as_me:$LINENO: checking for $ac_func" >&5
32168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32169 if eval "test \"\${$as_ac_var+set}\" = set"; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 else
32172 if test x$gcc_no_link = xyes; then
32173 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32175 { (exit 1); exit 1; }; }
32177 cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h. */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h. */
32183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32185 #define $ac_func innocuous_$ac_func
32187 /* System header to define __stub macros and hopefully few prototypes,
32188 which can conflict with char $ac_func (); below.
32189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32190 <limits.h> exists even on freestanding compilers. */
32192 #ifdef __STDC__
32193 # include <limits.h>
32194 #else
32195 # include <assert.h>
32196 #endif
32198 #undef $ac_func
32200 /* Override any gcc2 internal prototype to avoid an error. */
32201 #ifdef __cplusplus
32202 extern "C"
32204 #endif
32205 /* We use char because int might match the return type of a gcc2
32206 builtin and then its argument prototype would still apply. */
32207 char $ac_func ();
32208 /* The GNU C library defines this for functions which it implements
32209 to always fail with ENOSYS. Some functions are actually named
32210 something starting with __ and the normal name is an alias. */
32211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32212 choke me
32213 #else
32214 char (*f) () = $ac_func;
32215 #endif
32216 #ifdef __cplusplus
32218 #endif
32221 main ()
32223 return f != $ac_func;
32225 return 0;
32227 _ACEOF
32228 rm -f conftest.$ac_objext conftest$ac_exeext
32229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32230 (eval $ac_link) 2>conftest.er1
32231 ac_status=$?
32232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
32237 { ac_try='test -z "$ac_c_werror_flag"
32238 || test ! -s conftest.err'
32239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240 (eval $ac_try) 2>&5
32241 ac_status=$?
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); }; } &&
32244 { ac_try='test -s conftest$ac_exeext'
32245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32246 (eval $ac_try) 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; }; then
32250 eval "$as_ac_var=yes"
32251 else
32252 echo "$as_me: failed program was:" >&5
32253 sed 's/^/| /' conftest.$ac_ext >&5
32255 eval "$as_ac_var=no"
32257 rm -f conftest.err conftest.$ac_objext \
32258 conftest$ac_exeext conftest.$ac_ext
32260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32262 if test `eval echo '${'$as_ac_var'}'` = yes; then
32263 cat >>confdefs.h <<_ACEOF
32264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32265 _ACEOF
32268 done
32270 else
32272 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32273 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32274 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32275 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32277 else
32281 ac_ext=cc
32282 ac_cpp='$CXXCPP $CPPFLAGS'
32283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32287 cat >conftest.$ac_ext <<_ACEOF
32288 /* confdefs.h. */
32289 _ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h. */
32293 #include <math.h>
32294 #ifdef HAVE_IEEEFP_H
32295 #include <ieeefp.h>
32296 #endif
32299 main ()
32301 _isnan(0);
32303 return 0;
32305 _ACEOF
32306 rm -f conftest.$ac_objext
32307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32308 (eval $ac_compile) 2>conftest.er1
32309 ac_status=$?
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_cxx_werror_flag"
32316 || test ! -s conftest.err'
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest.$ac_objext'
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328 glibcxx_cv_func__isnan_use=yes
32329 else
32330 echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32333 glibcxx_cv_func__isnan_use=no
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32336 ac_ext=c
32337 ac_cpp='$CPP $CPPFLAGS'
32338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32346 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32347 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32349 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32351 for ac_func in _isnan
32353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32354 echo "$as_me:$LINENO: checking for $ac_func" >&5
32355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32356 if eval "test \"\${$as_ac_var+set}\" = set"; then
32357 echo $ECHO_N "(cached) $ECHO_C" >&6
32358 else
32359 if test x$gcc_no_link = xyes; then
32360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32362 { (exit 1); exit 1; }; }
32364 cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h. */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32372 #define $ac_func innocuous_$ac_func
32374 /* System header to define __stub macros and hopefully few prototypes,
32375 which can conflict with char $ac_func (); below.
32376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32377 <limits.h> exists even on freestanding compilers. */
32379 #ifdef __STDC__
32380 # include <limits.h>
32381 #else
32382 # include <assert.h>
32383 #endif
32385 #undef $ac_func
32387 /* Override any gcc2 internal prototype to avoid an error. */
32388 #ifdef __cplusplus
32389 extern "C"
32391 #endif
32392 /* We use char because int might match the return type of a gcc2
32393 builtin and then its argument prototype would still apply. */
32394 char $ac_func ();
32395 /* The GNU C library defines this for functions which it implements
32396 to always fail with ENOSYS. Some functions are actually named
32397 something starting with __ and the normal name is an alias. */
32398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32399 choke me
32400 #else
32401 char (*f) () = $ac_func;
32402 #endif
32403 #ifdef __cplusplus
32405 #endif
32408 main ()
32410 return f != $ac_func;
32412 return 0;
32414 _ACEOF
32415 rm -f conftest.$ac_objext conftest$ac_exeext
32416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32417 (eval $ac_link) 2>conftest.er1
32418 ac_status=$?
32419 grep -v '^ *+' conftest.er1 >conftest.err
32420 rm -f conftest.er1
32421 cat conftest.err >&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); } &&
32424 { ac_try='test -z "$ac_c_werror_flag"
32425 || test ! -s conftest.err'
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; } &&
32431 { ac_try='test -s conftest$ac_exeext'
32432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433 (eval $ac_try) 2>&5
32434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; }; then
32437 eval "$as_ac_var=yes"
32438 else
32439 echo "$as_me: failed program was:" >&5
32440 sed 's/^/| /' conftest.$ac_ext >&5
32442 eval "$as_ac_var=no"
32444 rm -f conftest.err conftest.$ac_objext \
32445 conftest$ac_exeext conftest.$ac_ext
32447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32449 if test `eval echo '${'$as_ac_var'}'` = yes; then
32450 cat >>confdefs.h <<_ACEOF
32451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32452 _ACEOF
32455 done
32462 echo "$as_me:$LINENO: checking for finite declaration" >&5
32463 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32464 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32465 if test "${glibcxx_cv_func_finite_use+set}" = set; then
32466 echo $ECHO_N "(cached) $ECHO_C" >&6
32467 else
32471 ac_ext=cc
32472 ac_cpp='$CXXCPP $CPPFLAGS'
32473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32477 cat >conftest.$ac_ext <<_ACEOF
32478 /* confdefs.h. */
32479 _ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h. */
32483 #include <math.h>
32484 #ifdef HAVE_IEEEFP_H
32485 #include <ieeefp.h>
32486 #endif
32489 main ()
32491 finite(0);
32493 return 0;
32495 _ACEOF
32496 rm -f conftest.$ac_objext
32497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32498 (eval $ac_compile) 2>conftest.er1
32499 ac_status=$?
32500 grep -v '^ *+' conftest.er1 >conftest.err
32501 rm -f conftest.er1
32502 cat conftest.err >&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); } &&
32505 { ac_try='test -z "$ac_cxx_werror_flag"
32506 || test ! -s conftest.err'
32507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32508 (eval $ac_try) 2>&5
32509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest.$ac_objext'
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 glibcxx_cv_func_finite_use=yes
32519 else
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32523 glibcxx_cv_func_finite_use=no
32525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32526 ac_ext=c
32527 ac_cpp='$CPP $CPPFLAGS'
32528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32537 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32539 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32541 for ac_func in finite
32543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32544 echo "$as_me:$LINENO: checking for $ac_func" >&5
32545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32546 if eval "test \"\${$as_ac_var+set}\" = set"; then
32547 echo $ECHO_N "(cached) $ECHO_C" >&6
32548 else
32549 if test x$gcc_no_link = xyes; then
32550 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32551 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32552 { (exit 1); exit 1; }; }
32554 cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h. */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h. */
32560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32562 #define $ac_func innocuous_$ac_func
32564 /* System header to define __stub macros and hopefully few prototypes,
32565 which can conflict with char $ac_func (); below.
32566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32567 <limits.h> exists even on freestanding compilers. */
32569 #ifdef __STDC__
32570 # include <limits.h>
32571 #else
32572 # include <assert.h>
32573 #endif
32575 #undef $ac_func
32577 /* Override any gcc2 internal prototype to avoid an error. */
32578 #ifdef __cplusplus
32579 extern "C"
32581 #endif
32582 /* We use char because int might match the return type of a gcc2
32583 builtin and then its argument prototype would still apply. */
32584 char $ac_func ();
32585 /* The GNU C library defines this for functions which it implements
32586 to always fail with ENOSYS. Some functions are actually named
32587 something starting with __ and the normal name is an alias. */
32588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32589 choke me
32590 #else
32591 char (*f) () = $ac_func;
32592 #endif
32593 #ifdef __cplusplus
32595 #endif
32598 main ()
32600 return f != $ac_func;
32602 return 0;
32604 _ACEOF
32605 rm -f conftest.$ac_objext conftest$ac_exeext
32606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32607 (eval $ac_link) 2>conftest.er1
32608 ac_status=$?
32609 grep -v '^ *+' conftest.er1 >conftest.err
32610 rm -f conftest.er1
32611 cat conftest.err >&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_c_werror_flag"
32615 || test ! -s conftest.err'
32616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32617 (eval $ac_try) 2>&5
32618 ac_status=$?
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); }; } &&
32621 { ac_try='test -s conftest$ac_exeext'
32622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32623 (eval $ac_try) 2>&5
32624 ac_status=$?
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); }; }; then
32627 eval "$as_ac_var=yes"
32628 else
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32632 eval "$as_ac_var=no"
32634 rm -f conftest.err conftest.$ac_objext \
32635 conftest$ac_exeext conftest.$ac_ext
32637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32639 if test `eval echo '${'$as_ac_var'}'` = yes; then
32640 cat >>confdefs.h <<_ACEOF
32641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32642 _ACEOF
32645 done
32647 else
32649 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32650 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32651 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32652 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32654 else
32658 ac_ext=cc
32659 ac_cpp='$CXXCPP $CPPFLAGS'
32660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32664 cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h. */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32670 #include <math.h>
32671 #ifdef HAVE_IEEEFP_H
32672 #include <ieeefp.h>
32673 #endif
32676 main ()
32678 _finite(0);
32680 return 0;
32682 _ACEOF
32683 rm -f conftest.$ac_objext
32684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32685 (eval $ac_compile) 2>conftest.er1
32686 ac_status=$?
32687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_cxx_werror_flag"
32693 || test ! -s conftest.err'
32694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695 (eval $ac_try) 2>&5
32696 ac_status=$?
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; } &&
32699 { ac_try='test -s conftest.$ac_objext'
32700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701 (eval $ac_try) 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 glibcxx_cv_func__finite_use=yes
32706 else
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32710 glibcxx_cv_func__finite_use=no
32712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32713 ac_ext=c
32714 ac_cpp='$CPP $CPPFLAGS'
32715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32723 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32724 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32726 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32728 for ac_func in _finite
32730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32731 echo "$as_me:$LINENO: checking for $ac_func" >&5
32732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32733 if eval "test \"\${$as_ac_var+set}\" = set"; then
32734 echo $ECHO_N "(cached) $ECHO_C" >&6
32735 else
32736 if test x$gcc_no_link = xyes; then
32737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32739 { (exit 1); exit 1; }; }
32741 cat >conftest.$ac_ext <<_ACEOF
32742 /* confdefs.h. */
32743 _ACEOF
32744 cat confdefs.h >>conftest.$ac_ext
32745 cat >>conftest.$ac_ext <<_ACEOF
32746 /* end confdefs.h. */
32747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32749 #define $ac_func innocuous_$ac_func
32751 /* System header to define __stub macros and hopefully few prototypes,
32752 which can conflict with char $ac_func (); below.
32753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32754 <limits.h> exists even on freestanding compilers. */
32756 #ifdef __STDC__
32757 # include <limits.h>
32758 #else
32759 # include <assert.h>
32760 #endif
32762 #undef $ac_func
32764 /* Override any gcc2 internal prototype to avoid an error. */
32765 #ifdef __cplusplus
32766 extern "C"
32768 #endif
32769 /* We use char because int might match the return type of a gcc2
32770 builtin and then its argument prototype would still apply. */
32771 char $ac_func ();
32772 /* The GNU C library defines this for functions which it implements
32773 to always fail with ENOSYS. Some functions are actually named
32774 something starting with __ and the normal name is an alias. */
32775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32776 choke me
32777 #else
32778 char (*f) () = $ac_func;
32779 #endif
32780 #ifdef __cplusplus
32782 #endif
32785 main ()
32787 return f != $ac_func;
32789 return 0;
32791 _ACEOF
32792 rm -f conftest.$ac_objext conftest$ac_exeext
32793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32794 (eval $ac_link) 2>conftest.er1
32795 ac_status=$?
32796 grep -v '^ *+' conftest.er1 >conftest.err
32797 rm -f conftest.er1
32798 cat conftest.err >&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); } &&
32801 { ac_try='test -z "$ac_c_werror_flag"
32802 || test ! -s conftest.err'
32803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32804 (eval $ac_try) 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; } &&
32808 { ac_try='test -s conftest$ac_exeext'
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; }; then
32814 eval "$as_ac_var=yes"
32815 else
32816 echo "$as_me: failed program was:" >&5
32817 sed 's/^/| /' conftest.$ac_ext >&5
32819 eval "$as_ac_var=no"
32821 rm -f conftest.err conftest.$ac_objext \
32822 conftest$ac_exeext conftest.$ac_ext
32824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32826 if test `eval echo '${'$as_ac_var'}'` = yes; then
32827 cat >>confdefs.h <<_ACEOF
32828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32829 _ACEOF
32832 done
32839 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32840 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32841 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32842 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32844 else
32848 ac_ext=cc
32849 ac_cpp='$CXXCPP $CPPFLAGS'
32850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32854 cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h. */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32860 #include <math.h>
32862 main ()
32864 copysign(0, 0);
32866 return 0;
32868 _ACEOF
32869 rm -f conftest.$ac_objext
32870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32871 (eval $ac_compile) 2>conftest.er1
32872 ac_status=$?
32873 grep -v '^ *+' conftest.er1 >conftest.err
32874 rm -f conftest.er1
32875 cat conftest.err >&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); } &&
32878 { ac_try='test -z "$ac_cxx_werror_flag"
32879 || test ! -s conftest.err'
32880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32881 (eval $ac_try) 2>&5
32882 ac_status=$?
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); }; } &&
32885 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32891 glibcxx_cv_func_copysign_use=yes
32892 else
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32896 glibcxx_cv_func_copysign_use=no
32898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32899 ac_ext=c
32900 ac_cpp='$CPP $CPPFLAGS'
32901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32909 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32910 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32912 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32914 for ac_func in copysign
32916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32917 echo "$as_me:$LINENO: checking for $ac_func" >&5
32918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32919 if eval "test \"\${$as_ac_var+set}\" = set"; then
32920 echo $ECHO_N "(cached) $ECHO_C" >&6
32921 else
32922 if test x$gcc_no_link = xyes; then
32923 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32925 { (exit 1); exit 1; }; }
32927 cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h. */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32935 #define $ac_func innocuous_$ac_func
32937 /* System header to define __stub macros and hopefully few prototypes,
32938 which can conflict with char $ac_func (); below.
32939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32940 <limits.h> exists even on freestanding compilers. */
32942 #ifdef __STDC__
32943 # include <limits.h>
32944 #else
32945 # include <assert.h>
32946 #endif
32948 #undef $ac_func
32950 /* Override any gcc2 internal prototype to avoid an error. */
32951 #ifdef __cplusplus
32952 extern "C"
32954 #endif
32955 /* We use char because int might match the return type of a gcc2
32956 builtin and then its argument prototype would still apply. */
32957 char $ac_func ();
32958 /* The GNU C library defines this for functions which it implements
32959 to always fail with ENOSYS. Some functions are actually named
32960 something starting with __ and the normal name is an alias. */
32961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32962 choke me
32963 #else
32964 char (*f) () = $ac_func;
32965 #endif
32966 #ifdef __cplusplus
32968 #endif
32971 main ()
32973 return f != $ac_func;
32975 return 0;
32977 _ACEOF
32978 rm -f conftest.$ac_objext conftest$ac_exeext
32979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32980 (eval $ac_link) 2>conftest.er1
32981 ac_status=$?
32982 grep -v '^ *+' conftest.er1 >conftest.err
32983 rm -f conftest.er1
32984 cat conftest.err >&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } &&
32987 { ac_try='test -z "$ac_c_werror_flag"
32988 || test ! -s conftest.err'
32989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990 (eval $ac_try) 2>&5
32991 ac_status=$?
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); }; } &&
32994 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33000 eval "$as_ac_var=yes"
33001 else
33002 echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33005 eval "$as_ac_var=no"
33007 rm -f conftest.err conftest.$ac_objext \
33008 conftest$ac_exeext conftest.$ac_ext
33010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33012 if test `eval echo '${'$as_ac_var'}'` = yes; then
33013 cat >>confdefs.h <<_ACEOF
33014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33015 _ACEOF
33018 done
33020 else
33022 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
33023 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
33024 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
33025 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33027 else
33031 ac_ext=cc
33032 ac_cpp='$CXXCPP $CPPFLAGS'
33033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33037 cat >conftest.$ac_ext <<_ACEOF
33038 /* confdefs.h. */
33039 _ACEOF
33040 cat confdefs.h >>conftest.$ac_ext
33041 cat >>conftest.$ac_ext <<_ACEOF
33042 /* end confdefs.h. */
33043 #include <math.h>
33045 main ()
33047 _copysign(0, 0);
33049 return 0;
33051 _ACEOF
33052 rm -f conftest.$ac_objext
33053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33054 (eval $ac_compile) 2>conftest.er1
33055 ac_status=$?
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } &&
33061 { ac_try='test -z "$ac_cxx_werror_flag"
33062 || test ! -s conftest.err'
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; } &&
33068 { ac_try='test -s conftest.$ac_objext'
33069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33070 (eval $ac_try) 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 glibcxx_cv_func__copysign_use=yes
33075 else
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 glibcxx_cv_func__copysign_use=no
33081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33082 ac_ext=c
33083 ac_cpp='$CPP $CPPFLAGS'
33084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33092 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
33093 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
33095 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
33097 for ac_func in _copysign
33099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33100 echo "$as_me:$LINENO: checking for $ac_func" >&5
33101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33102 if eval "test \"\${$as_ac_var+set}\" = set"; then
33103 echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105 if test x$gcc_no_link = xyes; then
33106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33108 { (exit 1); exit 1; }; }
33110 cat >conftest.$ac_ext <<_ACEOF
33111 /* confdefs.h. */
33112 _ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h. */
33116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33118 #define $ac_func innocuous_$ac_func
33120 /* System header to define __stub macros and hopefully few prototypes,
33121 which can conflict with char $ac_func (); below.
33122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33123 <limits.h> exists even on freestanding compilers. */
33125 #ifdef __STDC__
33126 # include <limits.h>
33127 #else
33128 # include <assert.h>
33129 #endif
33131 #undef $ac_func
33133 /* Override any gcc2 internal prototype to avoid an error. */
33134 #ifdef __cplusplus
33135 extern "C"
33137 #endif
33138 /* We use char because int might match the return type of a gcc2
33139 builtin and then its argument prototype would still apply. */
33140 char $ac_func ();
33141 /* The GNU C library defines this for functions which it implements
33142 to always fail with ENOSYS. Some functions are actually named
33143 something starting with __ and the normal name is an alias. */
33144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33145 choke me
33146 #else
33147 char (*f) () = $ac_func;
33148 #endif
33149 #ifdef __cplusplus
33151 #endif
33154 main ()
33156 return f != $ac_func;
33158 return 0;
33160 _ACEOF
33161 rm -f conftest.$ac_objext conftest$ac_exeext
33162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33163 (eval $ac_link) 2>conftest.er1
33164 ac_status=$?
33165 grep -v '^ *+' conftest.er1 >conftest.err
33166 rm -f conftest.er1
33167 cat conftest.err >&5
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); } &&
33170 { ac_try='test -z "$ac_c_werror_flag"
33171 || test ! -s conftest.err'
33172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33173 (eval $ac_try) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest$ac_exeext'
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 eval "$as_ac_var=yes"
33184 else
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33188 eval "$as_ac_var=no"
33190 rm -f conftest.err conftest.$ac_objext \
33191 conftest$ac_exeext conftest.$ac_ext
33193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33195 if test `eval echo '${'$as_ac_var'}'` = yes; then
33196 cat >>confdefs.h <<_ACEOF
33197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33198 _ACEOF
33201 done
33208 echo "$as_me:$LINENO: checking for sincos declaration" >&5
33209 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33210 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33211 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33212 echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33217 ac_ext=cc
33218 ac_cpp='$CXXCPP $CPPFLAGS'
33219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33223 cat >conftest.$ac_ext <<_ACEOF
33224 /* confdefs.h. */
33225 _ACEOF
33226 cat confdefs.h >>conftest.$ac_ext
33227 cat >>conftest.$ac_ext <<_ACEOF
33228 /* end confdefs.h. */
33229 #include <math.h>
33231 main ()
33233 sincos(0, 0, 0);
33235 return 0;
33237 _ACEOF
33238 rm -f conftest.$ac_objext
33239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33240 (eval $ac_compile) 2>conftest.er1
33241 ac_status=$?
33242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
33247 { ac_try='test -z "$ac_cxx_werror_flag"
33248 || test ! -s conftest.err'
33249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33250 (eval $ac_try) 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; } &&
33254 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33260 glibcxx_cv_func_sincos_use=yes
33261 else
33262 echo "$as_me: failed program was:" >&5
33263 sed 's/^/| /' conftest.$ac_ext >&5
33265 glibcxx_cv_func_sincos_use=no
33267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33268 ac_ext=c
33269 ac_cpp='$CPP $CPPFLAGS'
33270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33278 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33279 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33281 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33283 for ac_func in sincos
33285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33286 echo "$as_me:$LINENO: checking for $ac_func" >&5
33287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33288 if eval "test \"\${$as_ac_var+set}\" = set"; then
33289 echo $ECHO_N "(cached) $ECHO_C" >&6
33290 else
33291 if test x$gcc_no_link = xyes; then
33292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33294 { (exit 1); exit 1; }; }
33296 cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h. */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h. */
33302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33304 #define $ac_func innocuous_$ac_func
33306 /* System header to define __stub macros and hopefully few prototypes,
33307 which can conflict with char $ac_func (); below.
33308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33309 <limits.h> exists even on freestanding compilers. */
33311 #ifdef __STDC__
33312 # include <limits.h>
33313 #else
33314 # include <assert.h>
33315 #endif
33317 #undef $ac_func
33319 /* Override any gcc2 internal prototype to avoid an error. */
33320 #ifdef __cplusplus
33321 extern "C"
33323 #endif
33324 /* We use char because int might match the return type of a gcc2
33325 builtin and then its argument prototype would still apply. */
33326 char $ac_func ();
33327 /* The GNU C library defines this for functions which it implements
33328 to always fail with ENOSYS. Some functions are actually named
33329 something starting with __ and the normal name is an alias. */
33330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33331 choke me
33332 #else
33333 char (*f) () = $ac_func;
33334 #endif
33335 #ifdef __cplusplus
33337 #endif
33340 main ()
33342 return f != $ac_func;
33344 return 0;
33346 _ACEOF
33347 rm -f conftest.$ac_objext conftest$ac_exeext
33348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33349 (eval $ac_link) 2>conftest.er1
33350 ac_status=$?
33351 grep -v '^ *+' conftest.er1 >conftest.err
33352 rm -f conftest.er1
33353 cat conftest.err >&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
33356 { ac_try='test -z "$ac_c_werror_flag"
33357 || test ! -s conftest.err'
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33369 eval "$as_ac_var=yes"
33370 else
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33374 eval "$as_ac_var=no"
33376 rm -f conftest.err conftest.$ac_objext \
33377 conftest$ac_exeext conftest.$ac_ext
33379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33381 if test `eval echo '${'$as_ac_var'}'` = yes; then
33382 cat >>confdefs.h <<_ACEOF
33383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33384 _ACEOF
33387 done
33389 else
33391 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33392 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33393 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33394 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33395 echo $ECHO_N "(cached) $ECHO_C" >&6
33396 else
33400 ac_ext=cc
33401 ac_cpp='$CXXCPP $CPPFLAGS'
33402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33406 cat >conftest.$ac_ext <<_ACEOF
33407 /* confdefs.h. */
33408 _ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h. */
33412 #include <math.h>
33414 main ()
33416 _sincos(0, 0, 0);
33418 return 0;
33420 _ACEOF
33421 rm -f conftest.$ac_objext
33422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33423 (eval $ac_compile) 2>conftest.er1
33424 ac_status=$?
33425 grep -v '^ *+' conftest.er1 >conftest.err
33426 rm -f conftest.er1
33427 cat conftest.err >&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); } &&
33430 { ac_try='test -z "$ac_cxx_werror_flag"
33431 || test ! -s conftest.err'
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; } &&
33437 { ac_try='test -s conftest.$ac_objext'
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
33443 glibcxx_cv_func__sincos_use=yes
33444 else
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 glibcxx_cv_func__sincos_use=no
33450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33451 ac_ext=c
33452 ac_cpp='$CPP $CPPFLAGS'
33453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33461 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33462 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33464 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33466 for ac_func in _sincos
33468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33469 echo "$as_me:$LINENO: checking for $ac_func" >&5
33470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33471 if eval "test \"\${$as_ac_var+set}\" = set"; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33473 else
33474 if test x$gcc_no_link = xyes; then
33475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33477 { (exit 1); exit 1; }; }
33479 cat >conftest.$ac_ext <<_ACEOF
33480 /* confdefs.h. */
33481 _ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h. */
33485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33487 #define $ac_func innocuous_$ac_func
33489 /* System header to define __stub macros and hopefully few prototypes,
33490 which can conflict with char $ac_func (); below.
33491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33492 <limits.h> exists even on freestanding compilers. */
33494 #ifdef __STDC__
33495 # include <limits.h>
33496 #else
33497 # include <assert.h>
33498 #endif
33500 #undef $ac_func
33502 /* Override any gcc2 internal prototype to avoid an error. */
33503 #ifdef __cplusplus
33504 extern "C"
33506 #endif
33507 /* We use char because int might match the return type of a gcc2
33508 builtin and then its argument prototype would still apply. */
33509 char $ac_func ();
33510 /* The GNU C library defines this for functions which it implements
33511 to always fail with ENOSYS. Some functions are actually named
33512 something starting with __ and the normal name is an alias. */
33513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33514 choke me
33515 #else
33516 char (*f) () = $ac_func;
33517 #endif
33518 #ifdef __cplusplus
33520 #endif
33523 main ()
33525 return f != $ac_func;
33527 return 0;
33529 _ACEOF
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33532 (eval $ac_link) 2>conftest.er1
33533 ac_status=$?
33534 grep -v '^ *+' conftest.er1 >conftest.err
33535 rm -f conftest.er1
33536 cat conftest.err >&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } &&
33539 { ac_try='test -z "$ac_c_werror_flag"
33540 || test ! -s conftest.err'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; } &&
33546 { ac_try='test -s conftest$ac_exeext'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552 eval "$as_ac_var=yes"
33553 else
33554 echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33557 eval "$as_ac_var=no"
33559 rm -f conftest.err conftest.$ac_objext \
33560 conftest$ac_exeext conftest.$ac_ext
33562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33564 if test `eval echo '${'$as_ac_var'}'` = yes; then
33565 cat >>confdefs.h <<_ACEOF
33566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33567 _ACEOF
33570 done
33577 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33578 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33579 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33580 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33581 echo $ECHO_N "(cached) $ECHO_C" >&6
33582 else
33586 ac_ext=cc
33587 ac_cpp='$CXXCPP $CPPFLAGS'
33588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33592 cat >conftest.$ac_ext <<_ACEOF
33593 /* confdefs.h. */
33594 _ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33598 #include <math.h>
33599 #ifdef HAVE_IEEEFP_H
33600 #include <ieeefp.h>
33601 #endif
33604 main ()
33606 fpclass(0);
33608 return 0;
33610 _ACEOF
33611 rm -f conftest.$ac_objext
33612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33613 (eval $ac_compile) 2>conftest.er1
33614 ac_status=$?
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } &&
33620 { ac_try='test -z "$ac_cxx_werror_flag"
33621 || test ! -s conftest.err'
33622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 (eval $ac_try) 2>&5
33624 ac_status=$?
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); }; } &&
33627 { ac_try='test -s conftest.$ac_objext'
33628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629 (eval $ac_try) 2>&5
33630 ac_status=$?
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; }; then
33633 glibcxx_cv_func_fpclass_use=yes
33634 else
33635 echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33638 glibcxx_cv_func_fpclass_use=no
33640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33641 ac_ext=c
33642 ac_cpp='$CPP $CPPFLAGS'
33643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33651 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33652 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33654 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33656 for ac_func in fpclass
33658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33659 echo "$as_me:$LINENO: checking for $ac_func" >&5
33660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33661 if eval "test \"\${$as_ac_var+set}\" = set"; then
33662 echo $ECHO_N "(cached) $ECHO_C" >&6
33663 else
33664 if test x$gcc_no_link = xyes; then
33665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33667 { (exit 1); exit 1; }; }
33669 cat >conftest.$ac_ext <<_ACEOF
33670 /* confdefs.h. */
33671 _ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h. */
33675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33677 #define $ac_func innocuous_$ac_func
33679 /* System header to define __stub macros and hopefully few prototypes,
33680 which can conflict with char $ac_func (); below.
33681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33682 <limits.h> exists even on freestanding compilers. */
33684 #ifdef __STDC__
33685 # include <limits.h>
33686 #else
33687 # include <assert.h>
33688 #endif
33690 #undef $ac_func
33692 /* Override any gcc2 internal prototype to avoid an error. */
33693 #ifdef __cplusplus
33694 extern "C"
33696 #endif
33697 /* We use char because int might match the return type of a gcc2
33698 builtin and then its argument prototype would still apply. */
33699 char $ac_func ();
33700 /* The GNU C library defines this for functions which it implements
33701 to always fail with ENOSYS. Some functions are actually named
33702 something starting with __ and the normal name is an alias. */
33703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33704 choke me
33705 #else
33706 char (*f) () = $ac_func;
33707 #endif
33708 #ifdef __cplusplus
33710 #endif
33713 main ()
33715 return f != $ac_func;
33717 return 0;
33719 _ACEOF
33720 rm -f conftest.$ac_objext conftest$ac_exeext
33721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33722 (eval $ac_link) 2>conftest.er1
33723 ac_status=$?
33724 grep -v '^ *+' conftest.er1 >conftest.err
33725 rm -f conftest.er1
33726 cat conftest.err >&5
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); } &&
33729 { ac_try='test -z "$ac_c_werror_flag"
33730 || test ! -s conftest.err'
33731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33732 (eval $ac_try) 2>&5
33733 ac_status=$?
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); }; } &&
33736 { ac_try='test -s conftest$ac_exeext'
33737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738 (eval $ac_try) 2>&5
33739 ac_status=$?
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; }; then
33742 eval "$as_ac_var=yes"
33743 else
33744 echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33747 eval "$as_ac_var=no"
33749 rm -f conftest.err conftest.$ac_objext \
33750 conftest$ac_exeext conftest.$ac_ext
33752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33754 if test `eval echo '${'$as_ac_var'}'` = yes; then
33755 cat >>confdefs.h <<_ACEOF
33756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33757 _ACEOF
33760 done
33762 else
33764 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33765 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33766 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33767 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769 else
33773 ac_ext=cc
33774 ac_cpp='$CXXCPP $CPPFLAGS'
33775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33779 cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h. */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h. */
33785 #include <math.h>
33786 #ifdef HAVE_IEEEFP_H
33787 #include <ieeefp.h>
33788 #endif
33791 main ()
33793 _fpclass(0);
33795 return 0;
33797 _ACEOF
33798 rm -f conftest.$ac_objext
33799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33800 (eval $ac_compile) 2>conftest.er1
33801 ac_status=$?
33802 grep -v '^ *+' conftest.er1 >conftest.err
33803 rm -f conftest.er1
33804 cat conftest.err >&5
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); } &&
33807 { ac_try='test -z "$ac_cxx_werror_flag"
33808 || test ! -s conftest.err'
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33811 ac_status=$?
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; } &&
33814 { ac_try='test -s conftest.$ac_objext'
33815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33816 (eval $ac_try) 2>&5
33817 ac_status=$?
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); }; }; then
33820 glibcxx_cv_func__fpclass_use=yes
33821 else
33822 echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33825 glibcxx_cv_func__fpclass_use=no
33827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33828 ac_ext=c
33829 ac_cpp='$CPP $CPPFLAGS'
33830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33838 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33839 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33841 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33843 for ac_func in _fpclass
33845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33846 echo "$as_me:$LINENO: checking for $ac_func" >&5
33847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33848 if eval "test \"\${$as_ac_var+set}\" = set"; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33850 else
33851 if test x$gcc_no_link = xyes; then
33852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33854 { (exit 1); exit 1; }; }
33856 cat >conftest.$ac_ext <<_ACEOF
33857 /* confdefs.h. */
33858 _ACEOF
33859 cat confdefs.h >>conftest.$ac_ext
33860 cat >>conftest.$ac_ext <<_ACEOF
33861 /* end confdefs.h. */
33862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33864 #define $ac_func innocuous_$ac_func
33866 /* System header to define __stub macros and hopefully few prototypes,
33867 which can conflict with char $ac_func (); below.
33868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33869 <limits.h> exists even on freestanding compilers. */
33871 #ifdef __STDC__
33872 # include <limits.h>
33873 #else
33874 # include <assert.h>
33875 #endif
33877 #undef $ac_func
33879 /* Override any gcc2 internal prototype to avoid an error. */
33880 #ifdef __cplusplus
33881 extern "C"
33883 #endif
33884 /* We use char because int might match the return type of a gcc2
33885 builtin and then its argument prototype would still apply. */
33886 char $ac_func ();
33887 /* The GNU C library defines this for functions which it implements
33888 to always fail with ENOSYS. Some functions are actually named
33889 something starting with __ and the normal name is an alias. */
33890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33891 choke me
33892 #else
33893 char (*f) () = $ac_func;
33894 #endif
33895 #ifdef __cplusplus
33897 #endif
33900 main ()
33902 return f != $ac_func;
33904 return 0;
33906 _ACEOF
33907 rm -f conftest.$ac_objext conftest$ac_exeext
33908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33909 (eval $ac_link) 2>conftest.er1
33910 ac_status=$?
33911 grep -v '^ *+' conftest.er1 >conftest.err
33912 rm -f conftest.er1
33913 cat conftest.err >&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); } &&
33916 { ac_try='test -z "$ac_c_werror_flag"
33917 || test ! -s conftest.err'
33918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33919 (eval $ac_try) 2>&5
33920 ac_status=$?
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); }; } &&
33923 { ac_try='test -s conftest$ac_exeext'
33924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33925 (eval $ac_try) 2>&5
33926 ac_status=$?
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); }; }; then
33929 eval "$as_ac_var=yes"
33930 else
33931 echo "$as_me: failed program was:" >&5
33932 sed 's/^/| /' conftest.$ac_ext >&5
33934 eval "$as_ac_var=no"
33936 rm -f conftest.err conftest.$ac_objext \
33937 conftest$ac_exeext conftest.$ac_ext
33939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33941 if test `eval echo '${'$as_ac_var'}'` = yes; then
33942 cat >>confdefs.h <<_ACEOF
33943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33944 _ACEOF
33947 done
33954 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33955 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33956 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33957 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33958 echo $ECHO_N "(cached) $ECHO_C" >&6
33959 else
33963 ac_ext=cc
33964 ac_cpp='$CXXCPP $CPPFLAGS'
33965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33969 cat >conftest.$ac_ext <<_ACEOF
33970 /* confdefs.h. */
33971 _ACEOF
33972 cat confdefs.h >>conftest.$ac_ext
33973 cat >>conftest.$ac_ext <<_ACEOF
33974 /* end confdefs.h. */
33975 #include <math.h>
33976 #ifdef HAVE_IEEEFP_H
33977 #include <ieeefp.h>
33978 #endif
33981 main ()
33983 qfpclass(0);
33985 return 0;
33987 _ACEOF
33988 rm -f conftest.$ac_objext
33989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33990 (eval $ac_compile) 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
33997 { ac_try='test -z "$ac_cxx_werror_flag"
33998 || test ! -s conftest.err'
33999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000 (eval $ac_try) 2>&5
34001 ac_status=$?
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); }; } &&
34004 { ac_try='test -s conftest.$ac_objext'
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; }; then
34010 glibcxx_cv_func_qfpclass_use=yes
34011 else
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34015 glibcxx_cv_func_qfpclass_use=no
34017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34018 ac_ext=c
34019 ac_cpp='$CPP $CPPFLAGS'
34020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34028 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
34029 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
34031 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
34033 for ac_func in qfpclass
34035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34036 echo "$as_me:$LINENO: checking for $ac_func" >&5
34037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34038 if eval "test \"\${$as_ac_var+set}\" = set"; then
34039 echo $ECHO_N "(cached) $ECHO_C" >&6
34040 else
34041 if test x$gcc_no_link = xyes; then
34042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34044 { (exit 1); exit 1; }; }
34046 cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h. */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h. */
34052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34054 #define $ac_func innocuous_$ac_func
34056 /* System header to define __stub macros and hopefully few prototypes,
34057 which can conflict with char $ac_func (); below.
34058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34059 <limits.h> exists even on freestanding compilers. */
34061 #ifdef __STDC__
34062 # include <limits.h>
34063 #else
34064 # include <assert.h>
34065 #endif
34067 #undef $ac_func
34069 /* Override any gcc2 internal prototype to avoid an error. */
34070 #ifdef __cplusplus
34071 extern "C"
34073 #endif
34074 /* We use char because int might match the return type of a gcc2
34075 builtin and then its argument prototype would still apply. */
34076 char $ac_func ();
34077 /* The GNU C library defines this for functions which it implements
34078 to always fail with ENOSYS. Some functions are actually named
34079 something starting with __ and the normal name is an alias. */
34080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34081 choke me
34082 #else
34083 char (*f) () = $ac_func;
34084 #endif
34085 #ifdef __cplusplus
34087 #endif
34090 main ()
34092 return f != $ac_func;
34094 return 0;
34096 _ACEOF
34097 rm -f conftest.$ac_objext conftest$ac_exeext
34098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34099 (eval $ac_link) 2>conftest.er1
34100 ac_status=$?
34101 grep -v '^ *+' conftest.er1 >conftest.err
34102 rm -f conftest.er1
34103 cat conftest.err >&5
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); } &&
34106 { ac_try='test -z "$ac_c_werror_flag"
34107 || test ! -s conftest.err'
34108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109 (eval $ac_try) 2>&5
34110 ac_status=$?
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); }; } &&
34113 { ac_try='test -s conftest$ac_exeext'
34114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34115 (eval $ac_try) 2>&5
34116 ac_status=$?
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); }; }; then
34119 eval "$as_ac_var=yes"
34120 else
34121 echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34124 eval "$as_ac_var=no"
34126 rm -f conftest.err conftest.$ac_objext \
34127 conftest$ac_exeext conftest.$ac_ext
34129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34131 if test `eval echo '${'$as_ac_var'}'` = yes; then
34132 cat >>confdefs.h <<_ACEOF
34133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34134 _ACEOF
34137 done
34139 else
34141 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
34142 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
34143 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
34144 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34146 else
34150 ac_ext=cc
34151 ac_cpp='$CXXCPP $CPPFLAGS'
34152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34156 cat >conftest.$ac_ext <<_ACEOF
34157 /* confdefs.h. */
34158 _ACEOF
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h. */
34162 #include <math.h>
34163 #ifdef HAVE_IEEEFP_H
34164 #include <ieeefp.h>
34165 #endif
34168 main ()
34170 _qfpclass(0);
34172 return 0;
34174 _ACEOF
34175 rm -f conftest.$ac_objext
34176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34177 (eval $ac_compile) 2>conftest.er1
34178 ac_status=$?
34179 grep -v '^ *+' conftest.er1 >conftest.err
34180 rm -f conftest.er1
34181 cat conftest.err >&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } &&
34184 { ac_try='test -z "$ac_cxx_werror_flag"
34185 || test ! -s conftest.err'
34186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187 (eval $ac_try) 2>&5
34188 ac_status=$?
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); }; } &&
34191 { ac_try='test -s conftest.$ac_objext'
34192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193 (eval $ac_try) 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 glibcxx_cv_func__qfpclass_use=yes
34198 else
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 glibcxx_cv_func__qfpclass_use=no
34204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34205 ac_ext=c
34206 ac_cpp='$CPP $CPPFLAGS'
34207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34215 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34216 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34218 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34220 for ac_func in _qfpclass
34222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34223 echo "$as_me:$LINENO: checking for $ac_func" >&5
34224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34225 if eval "test \"\${$as_ac_var+set}\" = set"; then
34226 echo $ECHO_N "(cached) $ECHO_C" >&6
34227 else
34228 if test x$gcc_no_link = xyes; then
34229 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34231 { (exit 1); exit 1; }; }
34233 cat >conftest.$ac_ext <<_ACEOF
34234 /* confdefs.h. */
34235 _ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h. */
34239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34241 #define $ac_func innocuous_$ac_func
34243 /* System header to define __stub macros and hopefully few prototypes,
34244 which can conflict with char $ac_func (); below.
34245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34246 <limits.h> exists even on freestanding compilers. */
34248 #ifdef __STDC__
34249 # include <limits.h>
34250 #else
34251 # include <assert.h>
34252 #endif
34254 #undef $ac_func
34256 /* Override any gcc2 internal prototype to avoid an error. */
34257 #ifdef __cplusplus
34258 extern "C"
34260 #endif
34261 /* We use char because int might match the return type of a gcc2
34262 builtin and then its argument prototype would still apply. */
34263 char $ac_func ();
34264 /* The GNU C library defines this for functions which it implements
34265 to always fail with ENOSYS. Some functions are actually named
34266 something starting with __ and the normal name is an alias. */
34267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34268 choke me
34269 #else
34270 char (*f) () = $ac_func;
34271 #endif
34272 #ifdef __cplusplus
34274 #endif
34277 main ()
34279 return f != $ac_func;
34281 return 0;
34283 _ACEOF
34284 rm -f conftest.$ac_objext conftest$ac_exeext
34285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34286 (eval $ac_link) 2>conftest.er1
34287 ac_status=$?
34288 grep -v '^ *+' conftest.er1 >conftest.err
34289 rm -f conftest.er1
34290 cat conftest.err >&5
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); } &&
34293 { ac_try='test -z "$ac_c_werror_flag"
34294 || test ! -s conftest.err'
34295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34296 (eval $ac_try) 2>&5
34297 ac_status=$?
34298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); }; } &&
34300 { ac_try='test -s conftest$ac_exeext'
34301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; }; then
34306 eval "$as_ac_var=yes"
34307 else
34308 echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34311 eval "$as_ac_var=no"
34313 rm -f conftest.err conftest.$ac_objext \
34314 conftest$ac_exeext conftest.$ac_ext
34316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34318 if test `eval echo '${'$as_ac_var'}'` = yes; then
34319 cat >>confdefs.h <<_ACEOF
34320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34321 _ACEOF
34324 done
34331 echo "$as_me:$LINENO: checking for hypot declaration" >&5
34332 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34333 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34334 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34340 ac_ext=cc
34341 ac_cpp='$CXXCPP $CPPFLAGS'
34342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34346 cat >conftest.$ac_ext <<_ACEOF
34347 /* confdefs.h. */
34348 _ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h. */
34352 #include <math.h>
34354 main ()
34356 hypot(0, 0);
34358 return 0;
34360 _ACEOF
34361 rm -f conftest.$ac_objext
34362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34363 (eval $ac_compile) 2>conftest.er1
34364 ac_status=$?
34365 grep -v '^ *+' conftest.er1 >conftest.err
34366 rm -f conftest.er1
34367 cat conftest.err >&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
34370 { ac_try='test -z "$ac_cxx_werror_flag"
34371 || test ! -s conftest.err'
34372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373 (eval $ac_try) 2>&5
34374 ac_status=$?
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); }; } &&
34377 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34383 glibcxx_cv_func_hypot_use=yes
34384 else
34385 echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34388 glibcxx_cv_func_hypot_use=no
34390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34391 ac_ext=c
34392 ac_cpp='$CPP $CPPFLAGS'
34393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34401 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34402 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34404 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34406 for ac_func in hypot
34408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34409 echo "$as_me:$LINENO: checking for $ac_func" >&5
34410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34411 if eval "test \"\${$as_ac_var+set}\" = set"; then
34412 echo $ECHO_N "(cached) $ECHO_C" >&6
34413 else
34414 if test x$gcc_no_link = xyes; then
34415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34417 { (exit 1); exit 1; }; }
34419 cat >conftest.$ac_ext <<_ACEOF
34420 /* confdefs.h. */
34421 _ACEOF
34422 cat confdefs.h >>conftest.$ac_ext
34423 cat >>conftest.$ac_ext <<_ACEOF
34424 /* end confdefs.h. */
34425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34427 #define $ac_func innocuous_$ac_func
34429 /* System header to define __stub macros and hopefully few prototypes,
34430 which can conflict with char $ac_func (); below.
34431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34432 <limits.h> exists even on freestanding compilers. */
34434 #ifdef __STDC__
34435 # include <limits.h>
34436 #else
34437 # include <assert.h>
34438 #endif
34440 #undef $ac_func
34442 /* Override any gcc2 internal prototype to avoid an error. */
34443 #ifdef __cplusplus
34444 extern "C"
34446 #endif
34447 /* We use char because int might match the return type of a gcc2
34448 builtin and then its argument prototype would still apply. */
34449 char $ac_func ();
34450 /* The GNU C library defines this for functions which it implements
34451 to always fail with ENOSYS. Some functions are actually named
34452 something starting with __ and the normal name is an alias. */
34453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34454 choke me
34455 #else
34456 char (*f) () = $ac_func;
34457 #endif
34458 #ifdef __cplusplus
34460 #endif
34463 main ()
34465 return f != $ac_func;
34467 return 0;
34469 _ACEOF
34470 rm -f conftest.$ac_objext conftest$ac_exeext
34471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34472 (eval $ac_link) 2>conftest.er1
34473 ac_status=$?
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
34479 { ac_try='test -z "$ac_c_werror_flag"
34480 || test ! -s conftest.err'
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34492 eval "$as_ac_var=yes"
34493 else
34494 echo "$as_me: failed program was:" >&5
34495 sed 's/^/| /' conftest.$ac_ext >&5
34497 eval "$as_ac_var=no"
34499 rm -f conftest.err conftest.$ac_objext \
34500 conftest$ac_exeext conftest.$ac_ext
34502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34504 if test `eval echo '${'$as_ac_var'}'` = yes; then
34505 cat >>confdefs.h <<_ACEOF
34506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34507 _ACEOF
34510 done
34512 else
34514 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34515 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34516 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34517 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34518 echo $ECHO_N "(cached) $ECHO_C" >&6
34519 else
34523 ac_ext=cc
34524 ac_cpp='$CXXCPP $CPPFLAGS'
34525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34529 cat >conftest.$ac_ext <<_ACEOF
34530 /* confdefs.h. */
34531 _ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h. */
34535 #include <math.h>
34537 main ()
34539 _hypot(0, 0);
34541 return 0;
34543 _ACEOF
34544 rm -f conftest.$ac_objext
34545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34546 (eval $ac_compile) 2>conftest.er1
34547 ac_status=$?
34548 grep -v '^ *+' conftest.er1 >conftest.err
34549 rm -f conftest.er1
34550 cat conftest.err >&5
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); } &&
34553 { ac_try='test -z "$ac_cxx_werror_flag"
34554 || test ! -s conftest.err'
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; } &&
34560 { ac_try='test -s conftest.$ac_objext'
34561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34562 (eval $ac_try) 2>&5
34563 ac_status=$?
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); }; }; then
34566 glibcxx_cv_func__hypot_use=yes
34567 else
34568 echo "$as_me: failed program was:" >&5
34569 sed 's/^/| /' conftest.$ac_ext >&5
34571 glibcxx_cv_func__hypot_use=no
34573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34574 ac_ext=c
34575 ac_cpp='$CPP $CPPFLAGS'
34576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34584 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34585 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34587 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34589 for ac_func in _hypot
34591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34592 echo "$as_me:$LINENO: checking for $ac_func" >&5
34593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34594 if eval "test \"\${$as_ac_var+set}\" = set"; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34596 else
34597 if test x$gcc_no_link = xyes; then
34598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34600 { (exit 1); exit 1; }; }
34602 cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h. */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h. */
34608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34610 #define $ac_func innocuous_$ac_func
34612 /* System header to define __stub macros and hopefully few prototypes,
34613 which can conflict with char $ac_func (); below.
34614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34615 <limits.h> exists even on freestanding compilers. */
34617 #ifdef __STDC__
34618 # include <limits.h>
34619 #else
34620 # include <assert.h>
34621 #endif
34623 #undef $ac_func
34625 /* Override any gcc2 internal prototype to avoid an error. */
34626 #ifdef __cplusplus
34627 extern "C"
34629 #endif
34630 /* We use char because int might match the return type of a gcc2
34631 builtin and then its argument prototype would still apply. */
34632 char $ac_func ();
34633 /* The GNU C library defines this for functions which it implements
34634 to always fail with ENOSYS. Some functions are actually named
34635 something starting with __ and the normal name is an alias. */
34636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34637 choke me
34638 #else
34639 char (*f) () = $ac_func;
34640 #endif
34641 #ifdef __cplusplus
34643 #endif
34646 main ()
34648 return f != $ac_func;
34650 return 0;
34652 _ACEOF
34653 rm -f conftest.$ac_objext conftest$ac_exeext
34654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34655 (eval $ac_link) 2>conftest.er1
34656 ac_status=$?
34657 grep -v '^ *+' conftest.er1 >conftest.err
34658 rm -f conftest.er1
34659 cat conftest.err >&5
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); } &&
34662 { ac_try='test -z "$ac_c_werror_flag"
34663 || test ! -s conftest.err'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; } &&
34669 { ac_try='test -s conftest$ac_exeext'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 eval "$as_ac_var=yes"
34676 else
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34680 eval "$as_ac_var=no"
34682 rm -f conftest.err conftest.$ac_objext \
34683 conftest$ac_exeext conftest.$ac_ext
34685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34687 if test `eval echo '${'$as_ac_var'}'` = yes; then
34688 cat >>confdefs.h <<_ACEOF
34689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34690 _ACEOF
34693 done
34700 echo "$as_me:$LINENO: checking for float trig functions" >&5
34701 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34702 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34704 else
34708 ac_ext=cc
34709 ac_cpp='$CXXCPP $CPPFLAGS'
34710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34714 cat >conftest.$ac_ext <<_ACEOF
34715 /* confdefs.h. */
34716 _ACEOF
34717 cat confdefs.h >>conftest.$ac_ext
34718 cat >>conftest.$ac_ext <<_ACEOF
34719 /* end confdefs.h. */
34720 #include <math.h>
34722 main ()
34724 `for x in acosf asinf atanf \
34725 cosf sinf tanf \
34726 coshf sinhf tanhf; do echo "$x (0);"; done`
34728 return 0;
34730 _ACEOF
34731 rm -f conftest.$ac_objext
34732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34733 (eval $ac_compile) 2>conftest.er1
34734 ac_status=$?
34735 grep -v '^ *+' conftest.er1 >conftest.err
34736 rm -f conftest.er1
34737 cat conftest.err >&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); } &&
34740 { ac_try='test -z "$ac_cxx_werror_flag"
34741 || test ! -s conftest.err'
34742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34743 (eval $ac_try) 2>&5
34744 ac_status=$?
34745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746 (exit $ac_status); }; } &&
34747 { ac_try='test -s conftest.$ac_objext'
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; }; then
34753 glibcxx_cv_func_float_trig_use=yes
34754 else
34755 echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.$ac_ext >&5
34758 glibcxx_cv_func_float_trig_use=no
34760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34761 ac_ext=c
34762 ac_cpp='$CPP $CPPFLAGS'
34763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34769 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34770 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34771 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34781 for ac_func in acosf asinf atanf \
34782 cosf sinf tanf \
34783 coshf sinhf tanhf
34785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786 echo "$as_me:$LINENO: checking for $ac_func" >&5
34787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788 if eval "test \"\${$as_ac_var+set}\" = set"; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790 else
34791 if test x$gcc_no_link = xyes; then
34792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34794 { (exit 1); exit 1; }; }
34796 cat >conftest.$ac_ext <<_ACEOF
34797 /* confdefs.h. */
34798 _ACEOF
34799 cat confdefs.h >>conftest.$ac_ext
34800 cat >>conftest.$ac_ext <<_ACEOF
34801 /* end confdefs.h. */
34802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34804 #define $ac_func innocuous_$ac_func
34806 /* System header to define __stub macros and hopefully few prototypes,
34807 which can conflict with char $ac_func (); below.
34808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34809 <limits.h> exists even on freestanding compilers. */
34811 #ifdef __STDC__
34812 # include <limits.h>
34813 #else
34814 # include <assert.h>
34815 #endif
34817 #undef $ac_func
34819 /* Override any gcc2 internal prototype to avoid an error. */
34820 #ifdef __cplusplus
34821 extern "C"
34823 #endif
34824 /* We use char because int might match the return type of a gcc2
34825 builtin and then its argument prototype would still apply. */
34826 char $ac_func ();
34827 /* The GNU C library defines this for functions which it implements
34828 to always fail with ENOSYS. Some functions are actually named
34829 something starting with __ and the normal name is an alias. */
34830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34831 choke me
34832 #else
34833 char (*f) () = $ac_func;
34834 #endif
34835 #ifdef __cplusplus
34837 #endif
34840 main ()
34842 return f != $ac_func;
34844 return 0;
34846 _ACEOF
34847 rm -f conftest.$ac_objext conftest$ac_exeext
34848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34849 (eval $ac_link) 2>conftest.er1
34850 ac_status=$?
34851 grep -v '^ *+' conftest.er1 >conftest.err
34852 rm -f conftest.er1
34853 cat conftest.err >&5
34854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); } &&
34856 { ac_try='test -z "$ac_c_werror_flag"
34857 || test ! -s conftest.err'
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; } &&
34863 { ac_try='test -s conftest$ac_exeext'
34864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865 (eval $ac_try) 2>&5
34866 ac_status=$?
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); }; }; then
34869 eval "$as_ac_var=yes"
34870 else
34871 echo "$as_me: failed program was:" >&5
34872 sed 's/^/| /' conftest.$ac_ext >&5
34874 eval "$as_ac_var=no"
34876 rm -f conftest.err conftest.$ac_objext \
34877 conftest$ac_exeext conftest.$ac_ext
34879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34881 if test `eval echo '${'$as_ac_var'}'` = yes; then
34882 cat >>confdefs.h <<_ACEOF
34883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34884 _ACEOF
34887 done
34892 echo "$as_me:$LINENO: checking for float round functions" >&5
34893 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34894 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34895 echo $ECHO_N "(cached) $ECHO_C" >&6
34896 else
34900 ac_ext=cc
34901 ac_cpp='$CXXCPP $CPPFLAGS'
34902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34906 cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h. */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h. */
34912 #include <math.h>
34914 main ()
34916 `for x in ceilf floorf; do echo "$x (0);"; done`
34918 return 0;
34920 _ACEOF
34921 rm -f conftest.$ac_objext
34922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34923 (eval $ac_compile) 2>conftest.er1
34924 ac_status=$?
34925 grep -v '^ *+' conftest.er1 >conftest.err
34926 rm -f conftest.er1
34927 cat conftest.err >&5
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); } &&
34930 { ac_try='test -z "$ac_cxx_werror_flag"
34931 || test ! -s conftest.err'
34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933 (eval $ac_try) 2>&5
34934 ac_status=$?
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; } &&
34937 { ac_try='test -s conftest.$ac_objext'
34938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939 (eval $ac_try) 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943 glibcxx_cv_func_float_round_use=yes
34944 else
34945 echo "$as_me: failed program was:" >&5
34946 sed 's/^/| /' conftest.$ac_ext >&5
34948 glibcxx_cv_func_float_round_use=no
34950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34951 ac_ext=c
34952 ac_cpp='$CPP $CPPFLAGS'
34953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34959 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34960 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34961 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34964 for ac_func in ceilf floorf
34966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34967 echo "$as_me:$LINENO: checking for $ac_func" >&5
34968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34969 if eval "test \"\${$as_ac_var+set}\" = set"; then
34970 echo $ECHO_N "(cached) $ECHO_C" >&6
34971 else
34972 if test x$gcc_no_link = xyes; then
34973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34975 { (exit 1); exit 1; }; }
34977 cat >conftest.$ac_ext <<_ACEOF
34978 /* confdefs.h. */
34979 _ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34985 #define $ac_func innocuous_$ac_func
34987 /* System header to define __stub macros and hopefully few prototypes,
34988 which can conflict with char $ac_func (); below.
34989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34990 <limits.h> exists even on freestanding compilers. */
34992 #ifdef __STDC__
34993 # include <limits.h>
34994 #else
34995 # include <assert.h>
34996 #endif
34998 #undef $ac_func
35000 /* Override any gcc2 internal prototype to avoid an error. */
35001 #ifdef __cplusplus
35002 extern "C"
35004 #endif
35005 /* We use char because int might match the return type of a gcc2
35006 builtin and then its argument prototype would still apply. */
35007 char $ac_func ();
35008 /* The GNU C library defines this for functions which it implements
35009 to always fail with ENOSYS. Some functions are actually named
35010 something starting with __ and the normal name is an alias. */
35011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35012 choke me
35013 #else
35014 char (*f) () = $ac_func;
35015 #endif
35016 #ifdef __cplusplus
35018 #endif
35021 main ()
35023 return f != $ac_func;
35025 return 0;
35027 _ACEOF
35028 rm -f conftest.$ac_objext conftest$ac_exeext
35029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35030 (eval $ac_link) 2>conftest.er1
35031 ac_status=$?
35032 grep -v '^ *+' conftest.er1 >conftest.err
35033 rm -f conftest.er1
35034 cat conftest.err >&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } &&
35037 { ac_try='test -z "$ac_c_werror_flag"
35038 || test ! -s conftest.err'
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35041 ac_status=$?
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; } &&
35044 { ac_try='test -s conftest$ac_exeext'
35045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35046 (eval $ac_try) 2>&5
35047 ac_status=$?
35048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35049 (exit $ac_status); }; }; then
35050 eval "$as_ac_var=yes"
35051 else
35052 echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35055 eval "$as_ac_var=no"
35057 rm -f conftest.err conftest.$ac_objext \
35058 conftest$ac_exeext conftest.$ac_ext
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35062 if test `eval echo '${'$as_ac_var'}'` = yes; then
35063 cat >>confdefs.h <<_ACEOF
35064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35065 _ACEOF
35068 done
35074 echo "$as_me:$LINENO: checking for expf declaration" >&5
35075 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
35076 if test x${glibcxx_cv_func_expf_use+set} != xset; then
35077 if test "${glibcxx_cv_func_expf_use+set}" = set; then
35078 echo $ECHO_N "(cached) $ECHO_C" >&6
35079 else
35083 ac_ext=cc
35084 ac_cpp='$CXXCPP $CPPFLAGS'
35085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35089 cat >conftest.$ac_ext <<_ACEOF
35090 /* confdefs.h. */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 #include <math.h>
35096 #ifdef HAVE_IEEEFP_H
35097 #include <ieeefp.h>
35098 #endif
35101 main ()
35103 expf(0);
35105 return 0;
35107 _ACEOF
35108 rm -f conftest.$ac_objext
35109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35110 (eval $ac_compile) 2>conftest.er1
35111 ac_status=$?
35112 grep -v '^ *+' conftest.er1 >conftest.err
35113 rm -f conftest.er1
35114 cat conftest.err >&5
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); } &&
35117 { ac_try='test -z "$ac_cxx_werror_flag"
35118 || test ! -s conftest.err'
35119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120 (eval $ac_try) 2>&5
35121 ac_status=$?
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); }; } &&
35124 { ac_try='test -s conftest.$ac_objext'
35125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35126 (eval $ac_try) 2>&5
35127 ac_status=$?
35128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129 (exit $ac_status); }; }; then
35130 glibcxx_cv_func_expf_use=yes
35131 else
35132 echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35135 glibcxx_cv_func_expf_use=no
35137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35138 ac_ext=c
35139 ac_cpp='$CPP $CPPFLAGS'
35140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35148 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
35149 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
35151 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35153 for ac_func in expf
35155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35156 echo "$as_me:$LINENO: checking for $ac_func" >&5
35157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35158 if eval "test \"\${$as_ac_var+set}\" = set"; then
35159 echo $ECHO_N "(cached) $ECHO_C" >&6
35160 else
35161 if test x$gcc_no_link = xyes; then
35162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35164 { (exit 1); exit 1; }; }
35166 cat >conftest.$ac_ext <<_ACEOF
35167 /* confdefs.h. */
35168 _ACEOF
35169 cat confdefs.h >>conftest.$ac_ext
35170 cat >>conftest.$ac_ext <<_ACEOF
35171 /* end confdefs.h. */
35172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35174 #define $ac_func innocuous_$ac_func
35176 /* System header to define __stub macros and hopefully few prototypes,
35177 which can conflict with char $ac_func (); below.
35178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35179 <limits.h> exists even on freestanding compilers. */
35181 #ifdef __STDC__
35182 # include <limits.h>
35183 #else
35184 # include <assert.h>
35185 #endif
35187 #undef $ac_func
35189 /* Override any gcc2 internal prototype to avoid an error. */
35190 #ifdef __cplusplus
35191 extern "C"
35193 #endif
35194 /* We use char because int might match the return type of a gcc2
35195 builtin and then its argument prototype would still apply. */
35196 char $ac_func ();
35197 /* The GNU C library defines this for functions which it implements
35198 to always fail with ENOSYS. Some functions are actually named
35199 something starting with __ and the normal name is an alias. */
35200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35201 choke me
35202 #else
35203 char (*f) () = $ac_func;
35204 #endif
35205 #ifdef __cplusplus
35207 #endif
35210 main ()
35212 return f != $ac_func;
35214 return 0;
35216 _ACEOF
35217 rm -f conftest.$ac_objext conftest$ac_exeext
35218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35219 (eval $ac_link) 2>conftest.er1
35220 ac_status=$?
35221 grep -v '^ *+' conftest.er1 >conftest.err
35222 rm -f conftest.er1
35223 cat conftest.err >&5
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); } &&
35226 { ac_try='test -z "$ac_c_werror_flag"
35227 || test ! -s conftest.err'
35228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35229 (eval $ac_try) 2>&5
35230 ac_status=$?
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); }; } &&
35233 { ac_try='test -s conftest$ac_exeext'
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; }; then
35239 eval "$as_ac_var=yes"
35240 else
35241 echo "$as_me: failed program was:" >&5
35242 sed 's/^/| /' conftest.$ac_ext >&5
35244 eval "$as_ac_var=no"
35246 rm -f conftest.err conftest.$ac_objext \
35247 conftest$ac_exeext conftest.$ac_ext
35249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35251 if test `eval echo '${'$as_ac_var'}'` = yes; then
35252 cat >>confdefs.h <<_ACEOF
35253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35254 _ACEOF
35257 done
35259 else
35261 echo "$as_me:$LINENO: checking for _expf declaration" >&5
35262 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35263 if test x${glibcxx_cv_func__expf_use+set} != xset; then
35264 if test "${glibcxx_cv_func__expf_use+set}" = set; then
35265 echo $ECHO_N "(cached) $ECHO_C" >&6
35266 else
35270 ac_ext=cc
35271 ac_cpp='$CXXCPP $CPPFLAGS'
35272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35276 cat >conftest.$ac_ext <<_ACEOF
35277 /* confdefs.h. */
35278 _ACEOF
35279 cat confdefs.h >>conftest.$ac_ext
35280 cat >>conftest.$ac_ext <<_ACEOF
35281 /* end confdefs.h. */
35282 #include <math.h>
35283 #ifdef HAVE_IEEEFP_H
35284 #include <ieeefp.h>
35285 #endif
35288 main ()
35290 _expf(0);
35292 return 0;
35294 _ACEOF
35295 rm -f conftest.$ac_objext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35297 (eval $ac_compile) 2>conftest.er1
35298 ac_status=$?
35299 grep -v '^ *+' conftest.er1 >conftest.err
35300 rm -f conftest.er1
35301 cat conftest.err >&5
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); } &&
35304 { ac_try='test -z "$ac_cxx_werror_flag"
35305 || test ! -s conftest.err'
35306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307 (eval $ac_try) 2>&5
35308 ac_status=$?
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); }; } &&
35311 { ac_try='test -s conftest.$ac_objext'
35312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313 (eval $ac_try) 2>&5
35314 ac_status=$?
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); }; }; then
35317 glibcxx_cv_func__expf_use=yes
35318 else
35319 echo "$as_me: failed program was:" >&5
35320 sed 's/^/| /' conftest.$ac_ext >&5
35322 glibcxx_cv_func__expf_use=no
35324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35325 ac_ext=c
35326 ac_cpp='$CPP $CPPFLAGS'
35327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35335 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35336 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35338 if test x$glibcxx_cv_func__expf_use = x"yes"; then
35340 for ac_func in _expf
35342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35343 echo "$as_me:$LINENO: checking for $ac_func" >&5
35344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35345 if eval "test \"\${$as_ac_var+set}\" = set"; then
35346 echo $ECHO_N "(cached) $ECHO_C" >&6
35347 else
35348 if test x$gcc_no_link = xyes; then
35349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35351 { (exit 1); exit 1; }; }
35353 cat >conftest.$ac_ext <<_ACEOF
35354 /* confdefs.h. */
35355 _ACEOF
35356 cat confdefs.h >>conftest.$ac_ext
35357 cat >>conftest.$ac_ext <<_ACEOF
35358 /* end confdefs.h. */
35359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35361 #define $ac_func innocuous_$ac_func
35363 /* System header to define __stub macros and hopefully few prototypes,
35364 which can conflict with char $ac_func (); below.
35365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35366 <limits.h> exists even on freestanding compilers. */
35368 #ifdef __STDC__
35369 # include <limits.h>
35370 #else
35371 # include <assert.h>
35372 #endif
35374 #undef $ac_func
35376 /* Override any gcc2 internal prototype to avoid an error. */
35377 #ifdef __cplusplus
35378 extern "C"
35380 #endif
35381 /* We use char because int might match the return type of a gcc2
35382 builtin and then its argument prototype would still apply. */
35383 char $ac_func ();
35384 /* The GNU C library defines this for functions which it implements
35385 to always fail with ENOSYS. Some functions are actually named
35386 something starting with __ and the normal name is an alias. */
35387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35388 choke me
35389 #else
35390 char (*f) () = $ac_func;
35391 #endif
35392 #ifdef __cplusplus
35394 #endif
35397 main ()
35399 return f != $ac_func;
35401 return 0;
35403 _ACEOF
35404 rm -f conftest.$ac_objext conftest$ac_exeext
35405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35406 (eval $ac_link) 2>conftest.er1
35407 ac_status=$?
35408 grep -v '^ *+' conftest.er1 >conftest.err
35409 rm -f conftest.er1
35410 cat conftest.err >&5
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); } &&
35413 { ac_try='test -z "$ac_c_werror_flag"
35414 || test ! -s conftest.err'
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; } &&
35420 { ac_try='test -s conftest$ac_exeext'
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; }; then
35426 eval "$as_ac_var=yes"
35427 else
35428 echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35431 eval "$as_ac_var=no"
35433 rm -f conftest.err conftest.$ac_objext \
35434 conftest$ac_exeext conftest.$ac_ext
35436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35438 if test `eval echo '${'$as_ac_var'}'` = yes; then
35439 cat >>confdefs.h <<_ACEOF
35440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35441 _ACEOF
35444 done
35451 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35452 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35453 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35454 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35455 echo $ECHO_N "(cached) $ECHO_C" >&6
35456 else
35460 ac_ext=cc
35461 ac_cpp='$CXXCPP $CPPFLAGS'
35462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35466 cat >conftest.$ac_ext <<_ACEOF
35467 /* confdefs.h. */
35468 _ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h. */
35472 #include <math.h>
35473 #ifdef HAVE_IEEEFP_H
35474 #include <ieeefp.h>
35475 #endif
35478 main ()
35480 isnanf(0);
35482 return 0;
35484 _ACEOF
35485 rm -f conftest.$ac_objext
35486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35487 (eval $ac_compile) 2>conftest.er1
35488 ac_status=$?
35489 grep -v '^ *+' conftest.er1 >conftest.err
35490 rm -f conftest.er1
35491 cat conftest.err >&5
35492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493 (exit $ac_status); } &&
35494 { ac_try='test -z "$ac_cxx_werror_flag"
35495 || test ! -s conftest.err'
35496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35497 (eval $ac_try) 2>&5
35498 ac_status=$?
35499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500 (exit $ac_status); }; } &&
35501 { ac_try='test -s conftest.$ac_objext'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503 (eval $ac_try) 2>&5
35504 ac_status=$?
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; }; then
35507 glibcxx_cv_func_isnanf_use=yes
35508 else
35509 echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35512 glibcxx_cv_func_isnanf_use=no
35514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35515 ac_ext=c
35516 ac_cpp='$CPP $CPPFLAGS'
35517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35525 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35526 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35528 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35530 for ac_func in isnanf
35532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35533 echo "$as_me:$LINENO: checking for $ac_func" >&5
35534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35535 if eval "test \"\${$as_ac_var+set}\" = set"; then
35536 echo $ECHO_N "(cached) $ECHO_C" >&6
35537 else
35538 if test x$gcc_no_link = xyes; then
35539 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35540 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35541 { (exit 1); exit 1; }; }
35543 cat >conftest.$ac_ext <<_ACEOF
35544 /* confdefs.h. */
35545 _ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h. */
35549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35551 #define $ac_func innocuous_$ac_func
35553 /* System header to define __stub macros and hopefully few prototypes,
35554 which can conflict with char $ac_func (); below.
35555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35556 <limits.h> exists even on freestanding compilers. */
35558 #ifdef __STDC__
35559 # include <limits.h>
35560 #else
35561 # include <assert.h>
35562 #endif
35564 #undef $ac_func
35566 /* Override any gcc2 internal prototype to avoid an error. */
35567 #ifdef __cplusplus
35568 extern "C"
35570 #endif
35571 /* We use char because int might match the return type of a gcc2
35572 builtin and then its argument prototype would still apply. */
35573 char $ac_func ();
35574 /* The GNU C library defines this for functions which it implements
35575 to always fail with ENOSYS. Some functions are actually named
35576 something starting with __ and the normal name is an alias. */
35577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35578 choke me
35579 #else
35580 char (*f) () = $ac_func;
35581 #endif
35582 #ifdef __cplusplus
35584 #endif
35587 main ()
35589 return f != $ac_func;
35591 return 0;
35593 _ACEOF
35594 rm -f conftest.$ac_objext conftest$ac_exeext
35595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35596 (eval $ac_link) 2>conftest.er1
35597 ac_status=$?
35598 grep -v '^ *+' conftest.er1 >conftest.err
35599 rm -f conftest.er1
35600 cat conftest.err >&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); } &&
35603 { ac_try='test -z "$ac_c_werror_flag"
35604 || test ! -s conftest.err'
35605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35606 (eval $ac_try) 2>&5
35607 ac_status=$?
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); }; } &&
35610 { ac_try='test -s conftest$ac_exeext'
35611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 (eval $ac_try) 2>&5
35613 ac_status=$?
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }; }; then
35616 eval "$as_ac_var=yes"
35617 else
35618 echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35621 eval "$as_ac_var=no"
35623 rm -f conftest.err conftest.$ac_objext \
35624 conftest$ac_exeext conftest.$ac_ext
35626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35628 if test `eval echo '${'$as_ac_var'}'` = yes; then
35629 cat >>confdefs.h <<_ACEOF
35630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35631 _ACEOF
35634 done
35636 else
35638 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35639 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35640 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35641 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35642 echo $ECHO_N "(cached) $ECHO_C" >&6
35643 else
35647 ac_ext=cc
35648 ac_cpp='$CXXCPP $CPPFLAGS'
35649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35653 cat >conftest.$ac_ext <<_ACEOF
35654 /* confdefs.h. */
35655 _ACEOF
35656 cat confdefs.h >>conftest.$ac_ext
35657 cat >>conftest.$ac_ext <<_ACEOF
35658 /* end confdefs.h. */
35659 #include <math.h>
35660 #ifdef HAVE_IEEEFP_H
35661 #include <ieeefp.h>
35662 #endif
35665 main ()
35667 _isnanf(0);
35669 return 0;
35671 _ACEOF
35672 rm -f conftest.$ac_objext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35674 (eval $ac_compile) 2>conftest.er1
35675 ac_status=$?
35676 grep -v '^ *+' conftest.er1 >conftest.err
35677 rm -f conftest.er1
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
35681 { ac_try='test -z "$ac_cxx_werror_flag"
35682 || test ! -s conftest.err'
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35685 ac_status=$?
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; } &&
35688 { ac_try='test -s conftest.$ac_objext'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35691 ac_status=$?
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; }; then
35694 glibcxx_cv_func__isnanf_use=yes
35695 else
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 glibcxx_cv_func__isnanf_use=no
35701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35702 ac_ext=c
35703 ac_cpp='$CPP $CPPFLAGS'
35704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35712 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35713 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35715 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35717 for ac_func in _isnanf
35719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35720 echo "$as_me:$LINENO: checking for $ac_func" >&5
35721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35722 if eval "test \"\${$as_ac_var+set}\" = set"; then
35723 echo $ECHO_N "(cached) $ECHO_C" >&6
35724 else
35725 if test x$gcc_no_link = xyes; then
35726 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35728 { (exit 1); exit 1; }; }
35730 cat >conftest.$ac_ext <<_ACEOF
35731 /* confdefs.h. */
35732 _ACEOF
35733 cat confdefs.h >>conftest.$ac_ext
35734 cat >>conftest.$ac_ext <<_ACEOF
35735 /* end confdefs.h. */
35736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35738 #define $ac_func innocuous_$ac_func
35740 /* System header to define __stub macros and hopefully few prototypes,
35741 which can conflict with char $ac_func (); below.
35742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35743 <limits.h> exists even on freestanding compilers. */
35745 #ifdef __STDC__
35746 # include <limits.h>
35747 #else
35748 # include <assert.h>
35749 #endif
35751 #undef $ac_func
35753 /* Override any gcc2 internal prototype to avoid an error. */
35754 #ifdef __cplusplus
35755 extern "C"
35757 #endif
35758 /* We use char because int might match the return type of a gcc2
35759 builtin and then its argument prototype would still apply. */
35760 char $ac_func ();
35761 /* The GNU C library defines this for functions which it implements
35762 to always fail with ENOSYS. Some functions are actually named
35763 something starting with __ and the normal name is an alias. */
35764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35765 choke me
35766 #else
35767 char (*f) () = $ac_func;
35768 #endif
35769 #ifdef __cplusplus
35771 #endif
35774 main ()
35776 return f != $ac_func;
35778 return 0;
35780 _ACEOF
35781 rm -f conftest.$ac_objext conftest$ac_exeext
35782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35783 (eval $ac_link) 2>conftest.er1
35784 ac_status=$?
35785 grep -v '^ *+' conftest.er1 >conftest.err
35786 rm -f conftest.er1
35787 cat conftest.err >&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try='test -z "$ac_c_werror_flag"
35791 || test ! -s conftest.err'
35792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793 (eval $ac_try) 2>&5
35794 ac_status=$?
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); }; } &&
35797 { ac_try='test -s conftest$ac_exeext'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803 eval "$as_ac_var=yes"
35804 else
35805 echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35808 eval "$as_ac_var=no"
35810 rm -f conftest.err conftest.$ac_objext \
35811 conftest$ac_exeext conftest.$ac_ext
35813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35815 if test `eval echo '${'$as_ac_var'}'` = yes; then
35816 cat >>confdefs.h <<_ACEOF
35817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35818 _ACEOF
35821 done
35828 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35829 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35830 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35831 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35833 else
35837 ac_ext=cc
35838 ac_cpp='$CXXCPP $CPPFLAGS'
35839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35843 cat >conftest.$ac_ext <<_ACEOF
35844 /* confdefs.h. */
35845 _ACEOF
35846 cat confdefs.h >>conftest.$ac_ext
35847 cat >>conftest.$ac_ext <<_ACEOF
35848 /* end confdefs.h. */
35849 #include <math.h>
35850 #ifdef HAVE_IEEEFP_H
35851 #include <ieeefp.h>
35852 #endif
35855 main ()
35857 isinff(0);
35859 return 0;
35861 _ACEOF
35862 rm -f conftest.$ac_objext
35863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35864 (eval $ac_compile) 2>conftest.er1
35865 ac_status=$?
35866 grep -v '^ *+' conftest.er1 >conftest.err
35867 rm -f conftest.er1
35868 cat conftest.err >&5
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); } &&
35871 { ac_try='test -z "$ac_cxx_werror_flag"
35872 || test ! -s conftest.err'
35873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35874 (eval $ac_try) 2>&5
35875 ac_status=$?
35876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); }; } &&
35878 { ac_try='test -s conftest.$ac_objext'
35879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35880 (eval $ac_try) 2>&5
35881 ac_status=$?
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); }; }; then
35884 glibcxx_cv_func_isinff_use=yes
35885 else
35886 echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35889 glibcxx_cv_func_isinff_use=no
35891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35892 ac_ext=c
35893 ac_cpp='$CPP $CPPFLAGS'
35894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35902 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35903 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35905 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35907 for ac_func in isinff
35909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35910 echo "$as_me:$LINENO: checking for $ac_func" >&5
35911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35912 if eval "test \"\${$as_ac_var+set}\" = set"; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35914 else
35915 if test x$gcc_no_link = xyes; then
35916 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35918 { (exit 1); exit 1; }; }
35920 cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h. */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h. */
35926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35928 #define $ac_func innocuous_$ac_func
35930 /* System header to define __stub macros and hopefully few prototypes,
35931 which can conflict with char $ac_func (); below.
35932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35933 <limits.h> exists even on freestanding compilers. */
35935 #ifdef __STDC__
35936 # include <limits.h>
35937 #else
35938 # include <assert.h>
35939 #endif
35941 #undef $ac_func
35943 /* Override any gcc2 internal prototype to avoid an error. */
35944 #ifdef __cplusplus
35945 extern "C"
35947 #endif
35948 /* We use char because int might match the return type of a gcc2
35949 builtin and then its argument prototype would still apply. */
35950 char $ac_func ();
35951 /* The GNU C library defines this for functions which it implements
35952 to always fail with ENOSYS. Some functions are actually named
35953 something starting with __ and the normal name is an alias. */
35954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35955 choke me
35956 #else
35957 char (*f) () = $ac_func;
35958 #endif
35959 #ifdef __cplusplus
35961 #endif
35964 main ()
35966 return f != $ac_func;
35968 return 0;
35970 _ACEOF
35971 rm -f conftest.$ac_objext conftest$ac_exeext
35972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35973 (eval $ac_link) 2>conftest.er1
35974 ac_status=$?
35975 grep -v '^ *+' conftest.er1 >conftest.err
35976 rm -f conftest.er1
35977 cat conftest.err >&5
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); } &&
35980 { ac_try='test -z "$ac_c_werror_flag"
35981 || test ! -s conftest.err'
35982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35983 (eval $ac_try) 2>&5
35984 ac_status=$?
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); }; } &&
35987 { ac_try='test -s conftest$ac_exeext'
35988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989 (eval $ac_try) 2>&5
35990 ac_status=$?
35991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 (exit $ac_status); }; }; then
35993 eval "$as_ac_var=yes"
35994 else
35995 echo "$as_me: failed program was:" >&5
35996 sed 's/^/| /' conftest.$ac_ext >&5
35998 eval "$as_ac_var=no"
36000 rm -f conftest.err conftest.$ac_objext \
36001 conftest$ac_exeext conftest.$ac_ext
36003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36005 if test `eval echo '${'$as_ac_var'}'` = yes; then
36006 cat >>confdefs.h <<_ACEOF
36007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36008 _ACEOF
36011 done
36013 else
36015 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
36016 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
36017 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
36018 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
36019 echo $ECHO_N "(cached) $ECHO_C" >&6
36020 else
36024 ac_ext=cc
36025 ac_cpp='$CXXCPP $CPPFLAGS'
36026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36030 cat >conftest.$ac_ext <<_ACEOF
36031 /* confdefs.h. */
36032 _ACEOF
36033 cat confdefs.h >>conftest.$ac_ext
36034 cat >>conftest.$ac_ext <<_ACEOF
36035 /* end confdefs.h. */
36036 #include <math.h>
36037 #ifdef HAVE_IEEEFP_H
36038 #include <ieeefp.h>
36039 #endif
36042 main ()
36044 _isinff(0);
36046 return 0;
36048 _ACEOF
36049 rm -f conftest.$ac_objext
36050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36051 (eval $ac_compile) 2>conftest.er1
36052 ac_status=$?
36053 grep -v '^ *+' conftest.er1 >conftest.err
36054 rm -f conftest.er1
36055 cat conftest.err >&5
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } &&
36058 { ac_try='test -z "$ac_cxx_werror_flag"
36059 || test ! -s conftest.err'
36060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36061 (eval $ac_try) 2>&5
36062 ac_status=$?
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); }; } &&
36065 { ac_try='test -s conftest.$ac_objext'
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; }; then
36071 glibcxx_cv_func__isinff_use=yes
36072 else
36073 echo "$as_me: failed program was:" >&5
36074 sed 's/^/| /' conftest.$ac_ext >&5
36076 glibcxx_cv_func__isinff_use=no
36078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36079 ac_ext=c
36080 ac_cpp='$CPP $CPPFLAGS'
36081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36089 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
36090 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
36092 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
36094 for ac_func in _isinff
36096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36097 echo "$as_me:$LINENO: checking for $ac_func" >&5
36098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36099 if eval "test \"\${$as_ac_var+set}\" = set"; then
36100 echo $ECHO_N "(cached) $ECHO_C" >&6
36101 else
36102 if test x$gcc_no_link = xyes; then
36103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36105 { (exit 1); exit 1; }; }
36107 cat >conftest.$ac_ext <<_ACEOF
36108 /* confdefs.h. */
36109 _ACEOF
36110 cat confdefs.h >>conftest.$ac_ext
36111 cat >>conftest.$ac_ext <<_ACEOF
36112 /* end confdefs.h. */
36113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36115 #define $ac_func innocuous_$ac_func
36117 /* System header to define __stub macros and hopefully few prototypes,
36118 which can conflict with char $ac_func (); below.
36119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36120 <limits.h> exists even on freestanding compilers. */
36122 #ifdef __STDC__
36123 # include <limits.h>
36124 #else
36125 # include <assert.h>
36126 #endif
36128 #undef $ac_func
36130 /* Override any gcc2 internal prototype to avoid an error. */
36131 #ifdef __cplusplus
36132 extern "C"
36134 #endif
36135 /* We use char because int might match the return type of a gcc2
36136 builtin and then its argument prototype would still apply. */
36137 char $ac_func ();
36138 /* The GNU C library defines this for functions which it implements
36139 to always fail with ENOSYS. Some functions are actually named
36140 something starting with __ and the normal name is an alias. */
36141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36142 choke me
36143 #else
36144 char (*f) () = $ac_func;
36145 #endif
36146 #ifdef __cplusplus
36148 #endif
36151 main ()
36153 return f != $ac_func;
36155 return 0;
36157 _ACEOF
36158 rm -f conftest.$ac_objext conftest$ac_exeext
36159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36160 (eval $ac_link) 2>conftest.er1
36161 ac_status=$?
36162 grep -v '^ *+' conftest.er1 >conftest.err
36163 rm -f conftest.er1
36164 cat conftest.err >&5
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } &&
36167 { ac_try='test -z "$ac_c_werror_flag"
36168 || test ! -s conftest.err'
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; } &&
36174 { ac_try='test -s conftest$ac_exeext'
36175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36176 (eval $ac_try) 2>&5
36177 ac_status=$?
36178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179 (exit $ac_status); }; }; then
36180 eval "$as_ac_var=yes"
36181 else
36182 echo "$as_me: failed program was:" >&5
36183 sed 's/^/| /' conftest.$ac_ext >&5
36185 eval "$as_ac_var=no"
36187 rm -f conftest.err conftest.$ac_objext \
36188 conftest$ac_exeext conftest.$ac_ext
36190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36192 if test `eval echo '${'$as_ac_var'}'` = yes; then
36193 cat >>confdefs.h <<_ACEOF
36194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36195 _ACEOF
36198 done
36205 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36206 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36207 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36208 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36209 echo $ECHO_N "(cached) $ECHO_C" >&6
36210 else
36214 ac_ext=cc
36215 ac_cpp='$CXXCPP $CPPFLAGS'
36216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36220 cat >conftest.$ac_ext <<_ACEOF
36221 /* confdefs.h. */
36222 _ACEOF
36223 cat confdefs.h >>conftest.$ac_ext
36224 cat >>conftest.$ac_ext <<_ACEOF
36225 /* end confdefs.h. */
36226 #include <math.h>
36228 main ()
36230 atan2f(0, 0);
36232 return 0;
36234 _ACEOF
36235 rm -f conftest.$ac_objext
36236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36237 (eval $ac_compile) 2>conftest.er1
36238 ac_status=$?
36239 grep -v '^ *+' conftest.er1 >conftest.err
36240 rm -f conftest.er1
36241 cat conftest.err >&5
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); } &&
36244 { ac_try='test -z "$ac_cxx_werror_flag"
36245 || test ! -s conftest.err'
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36248 ac_status=$?
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; } &&
36251 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36257 glibcxx_cv_func_atan2f_use=yes
36258 else
36259 echo "$as_me: failed program was:" >&5
36260 sed 's/^/| /' conftest.$ac_ext >&5
36262 glibcxx_cv_func_atan2f_use=no
36264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36265 ac_ext=c
36266 ac_cpp='$CPP $CPPFLAGS'
36267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36275 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36276 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36278 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36280 for ac_func in atan2f
36282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36283 echo "$as_me:$LINENO: checking for $ac_func" >&5
36284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36285 if eval "test \"\${$as_ac_var+set}\" = set"; then
36286 echo $ECHO_N "(cached) $ECHO_C" >&6
36287 else
36288 if test x$gcc_no_link = xyes; then
36289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36291 { (exit 1); exit 1; }; }
36293 cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h. */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h. */
36299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36301 #define $ac_func innocuous_$ac_func
36303 /* System header to define __stub macros and hopefully few prototypes,
36304 which can conflict with char $ac_func (); below.
36305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36306 <limits.h> exists even on freestanding compilers. */
36308 #ifdef __STDC__
36309 # include <limits.h>
36310 #else
36311 # include <assert.h>
36312 #endif
36314 #undef $ac_func
36316 /* Override any gcc2 internal prototype to avoid an error. */
36317 #ifdef __cplusplus
36318 extern "C"
36320 #endif
36321 /* We use char because int might match the return type of a gcc2
36322 builtin and then its argument prototype would still apply. */
36323 char $ac_func ();
36324 /* The GNU C library defines this for functions which it implements
36325 to always fail with ENOSYS. Some functions are actually named
36326 something starting with __ and the normal name is an alias. */
36327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36328 choke me
36329 #else
36330 char (*f) () = $ac_func;
36331 #endif
36332 #ifdef __cplusplus
36334 #endif
36337 main ()
36339 return f != $ac_func;
36341 return 0;
36343 _ACEOF
36344 rm -f conftest.$ac_objext conftest$ac_exeext
36345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36346 (eval $ac_link) 2>conftest.er1
36347 ac_status=$?
36348 grep -v '^ *+' conftest.er1 >conftest.err
36349 rm -f conftest.er1
36350 cat conftest.err >&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
36353 { ac_try='test -z "$ac_c_werror_flag"
36354 || test ! -s conftest.err'
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
36366 eval "$as_ac_var=yes"
36367 else
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36371 eval "$as_ac_var=no"
36373 rm -f conftest.err conftest.$ac_objext \
36374 conftest$ac_exeext conftest.$ac_ext
36376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36378 if test `eval echo '${'$as_ac_var'}'` = yes; then
36379 cat >>confdefs.h <<_ACEOF
36380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36381 _ACEOF
36384 done
36386 else
36388 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36389 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36390 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36391 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36392 echo $ECHO_N "(cached) $ECHO_C" >&6
36393 else
36397 ac_ext=cc
36398 ac_cpp='$CXXCPP $CPPFLAGS'
36399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36403 cat >conftest.$ac_ext <<_ACEOF
36404 /* confdefs.h. */
36405 _ACEOF
36406 cat confdefs.h >>conftest.$ac_ext
36407 cat >>conftest.$ac_ext <<_ACEOF
36408 /* end confdefs.h. */
36409 #include <math.h>
36411 main ()
36413 _atan2f(0, 0);
36415 return 0;
36417 _ACEOF
36418 rm -f conftest.$ac_objext
36419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36420 (eval $ac_compile) 2>conftest.er1
36421 ac_status=$?
36422 grep -v '^ *+' conftest.er1 >conftest.err
36423 rm -f conftest.er1
36424 cat conftest.err >&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } &&
36427 { ac_try='test -z "$ac_cxx_werror_flag"
36428 || test ! -s conftest.err'
36429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36430 (eval $ac_try) 2>&5
36431 ac_status=$?
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); }; } &&
36434 { ac_try='test -s conftest.$ac_objext'
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; }; then
36440 glibcxx_cv_func__atan2f_use=yes
36441 else
36442 echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36445 glibcxx_cv_func__atan2f_use=no
36447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36448 ac_ext=c
36449 ac_cpp='$CPP $CPPFLAGS'
36450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36458 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36459 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36461 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36463 for ac_func in _atan2f
36465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36466 echo "$as_me:$LINENO: checking for $ac_func" >&5
36467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36468 if eval "test \"\${$as_ac_var+set}\" = set"; then
36469 echo $ECHO_N "(cached) $ECHO_C" >&6
36470 else
36471 if test x$gcc_no_link = xyes; then
36472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36474 { (exit 1); exit 1; }; }
36476 cat >conftest.$ac_ext <<_ACEOF
36477 /* confdefs.h. */
36478 _ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h. */
36482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36484 #define $ac_func innocuous_$ac_func
36486 /* System header to define __stub macros and hopefully few prototypes,
36487 which can conflict with char $ac_func (); below.
36488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36489 <limits.h> exists even on freestanding compilers. */
36491 #ifdef __STDC__
36492 # include <limits.h>
36493 #else
36494 # include <assert.h>
36495 #endif
36497 #undef $ac_func
36499 /* Override any gcc2 internal prototype to avoid an error. */
36500 #ifdef __cplusplus
36501 extern "C"
36503 #endif
36504 /* We use char because int might match the return type of a gcc2
36505 builtin and then its argument prototype would still apply. */
36506 char $ac_func ();
36507 /* The GNU C library defines this for functions which it implements
36508 to always fail with ENOSYS. Some functions are actually named
36509 something starting with __ and the normal name is an alias. */
36510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36511 choke me
36512 #else
36513 char (*f) () = $ac_func;
36514 #endif
36515 #ifdef __cplusplus
36517 #endif
36520 main ()
36522 return f != $ac_func;
36524 return 0;
36526 _ACEOF
36527 rm -f conftest.$ac_objext conftest$ac_exeext
36528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36529 (eval $ac_link) 2>conftest.er1
36530 ac_status=$?
36531 grep -v '^ *+' conftest.er1 >conftest.err
36532 rm -f conftest.er1
36533 cat conftest.err >&5
36534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535 (exit $ac_status); } &&
36536 { ac_try='test -z "$ac_c_werror_flag"
36537 || test ! -s conftest.err'
36538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36539 (eval $ac_try) 2>&5
36540 ac_status=$?
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); }; } &&
36543 { ac_try='test -s conftest$ac_exeext'
36544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36545 (eval $ac_try) 2>&5
36546 ac_status=$?
36547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); }; }; then
36549 eval "$as_ac_var=yes"
36550 else
36551 echo "$as_me: failed program was:" >&5
36552 sed 's/^/| /' conftest.$ac_ext >&5
36554 eval "$as_ac_var=no"
36556 rm -f conftest.err conftest.$ac_objext \
36557 conftest$ac_exeext conftest.$ac_ext
36559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36561 if test `eval echo '${'$as_ac_var'}'` = yes; then
36562 cat >>confdefs.h <<_ACEOF
36563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36564 _ACEOF
36567 done
36574 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36575 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36576 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36577 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36578 echo $ECHO_N "(cached) $ECHO_C" >&6
36579 else
36583 ac_ext=cc
36584 ac_cpp='$CXXCPP $CPPFLAGS'
36585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36589 cat >conftest.$ac_ext <<_ACEOF
36590 /* confdefs.h. */
36591 _ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h. */
36595 #include <math.h>
36596 #ifdef HAVE_IEEEFP_H
36597 #include <ieeefp.h>
36598 #endif
36601 main ()
36603 fabsf(0);
36605 return 0;
36607 _ACEOF
36608 rm -f conftest.$ac_objext
36609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36610 (eval $ac_compile) 2>conftest.er1
36611 ac_status=$?
36612 grep -v '^ *+' conftest.er1 >conftest.err
36613 rm -f conftest.er1
36614 cat conftest.err >&5
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); } &&
36617 { ac_try='test -z "$ac_cxx_werror_flag"
36618 || test ! -s conftest.err'
36619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620 (eval $ac_try) 2>&5
36621 ac_status=$?
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); }; } &&
36624 { ac_try='test -s conftest.$ac_objext'
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36627 ac_status=$?
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; }; then
36630 glibcxx_cv_func_fabsf_use=yes
36631 else
36632 echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.$ac_ext >&5
36635 glibcxx_cv_func_fabsf_use=no
36637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36638 ac_ext=c
36639 ac_cpp='$CPP $CPPFLAGS'
36640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36648 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36649 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36651 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36653 for ac_func in fabsf
36655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36656 echo "$as_me:$LINENO: checking for $ac_func" >&5
36657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36658 if eval "test \"\${$as_ac_var+set}\" = set"; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661 if test x$gcc_no_link = xyes; then
36662 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36664 { (exit 1); exit 1; }; }
36666 cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h. */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h. */
36672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36674 #define $ac_func innocuous_$ac_func
36676 /* System header to define __stub macros and hopefully few prototypes,
36677 which can conflict with char $ac_func (); below.
36678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36679 <limits.h> exists even on freestanding compilers. */
36681 #ifdef __STDC__
36682 # include <limits.h>
36683 #else
36684 # include <assert.h>
36685 #endif
36687 #undef $ac_func
36689 /* Override any gcc2 internal prototype to avoid an error. */
36690 #ifdef __cplusplus
36691 extern "C"
36693 #endif
36694 /* We use char because int might match the return type of a gcc2
36695 builtin and then its argument prototype would still apply. */
36696 char $ac_func ();
36697 /* The GNU C library defines this for functions which it implements
36698 to always fail with ENOSYS. Some functions are actually named
36699 something starting with __ and the normal name is an alias. */
36700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36701 choke me
36702 #else
36703 char (*f) () = $ac_func;
36704 #endif
36705 #ifdef __cplusplus
36707 #endif
36710 main ()
36712 return f != $ac_func;
36714 return 0;
36716 _ACEOF
36717 rm -f conftest.$ac_objext conftest$ac_exeext
36718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36719 (eval $ac_link) 2>conftest.er1
36720 ac_status=$?
36721 grep -v '^ *+' conftest.er1 >conftest.err
36722 rm -f conftest.er1
36723 cat conftest.err >&5
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); } &&
36726 { ac_try='test -z "$ac_c_werror_flag"
36727 || test ! -s conftest.err'
36728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36729 (eval $ac_try) 2>&5
36730 ac_status=$?
36731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732 (exit $ac_status); }; } &&
36733 { ac_try='test -s conftest$ac_exeext'
36734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36735 (eval $ac_try) 2>&5
36736 ac_status=$?
36737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); }; }; then
36739 eval "$as_ac_var=yes"
36740 else
36741 echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36744 eval "$as_ac_var=no"
36746 rm -f conftest.err conftest.$ac_objext \
36747 conftest$ac_exeext conftest.$ac_ext
36749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36751 if test `eval echo '${'$as_ac_var'}'` = yes; then
36752 cat >>confdefs.h <<_ACEOF
36753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36754 _ACEOF
36757 done
36759 else
36761 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36762 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36763 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36764 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36765 echo $ECHO_N "(cached) $ECHO_C" >&6
36766 else
36770 ac_ext=cc
36771 ac_cpp='$CXXCPP $CPPFLAGS'
36772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36776 cat >conftest.$ac_ext <<_ACEOF
36777 /* confdefs.h. */
36778 _ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h. */
36782 #include <math.h>
36783 #ifdef HAVE_IEEEFP_H
36784 #include <ieeefp.h>
36785 #endif
36788 main ()
36790 _fabsf(0);
36792 return 0;
36794 _ACEOF
36795 rm -f conftest.$ac_objext
36796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36797 (eval $ac_compile) 2>conftest.er1
36798 ac_status=$?
36799 grep -v '^ *+' conftest.er1 >conftest.err
36800 rm -f conftest.er1
36801 cat conftest.err >&5
36802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803 (exit $ac_status); } &&
36804 { ac_try='test -z "$ac_cxx_werror_flag"
36805 || test ! -s conftest.err'
36806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807 (eval $ac_try) 2>&5
36808 ac_status=$?
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); }; } &&
36811 { ac_try='test -s conftest.$ac_objext'
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36814 ac_status=$?
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; }; then
36817 glibcxx_cv_func__fabsf_use=yes
36818 else
36819 echo "$as_me: failed program was:" >&5
36820 sed 's/^/| /' conftest.$ac_ext >&5
36822 glibcxx_cv_func__fabsf_use=no
36824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36825 ac_ext=c
36826 ac_cpp='$CPP $CPPFLAGS'
36827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36835 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36836 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36838 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36840 for ac_func in _fabsf
36842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36843 echo "$as_me:$LINENO: checking for $ac_func" >&5
36844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36845 if eval "test \"\${$as_ac_var+set}\" = set"; then
36846 echo $ECHO_N "(cached) $ECHO_C" >&6
36847 else
36848 if test x$gcc_no_link = xyes; then
36849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36851 { (exit 1); exit 1; }; }
36853 cat >conftest.$ac_ext <<_ACEOF
36854 /* confdefs.h. */
36855 _ACEOF
36856 cat confdefs.h >>conftest.$ac_ext
36857 cat >>conftest.$ac_ext <<_ACEOF
36858 /* end confdefs.h. */
36859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36861 #define $ac_func innocuous_$ac_func
36863 /* System header to define __stub macros and hopefully few prototypes,
36864 which can conflict with char $ac_func (); below.
36865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36866 <limits.h> exists even on freestanding compilers. */
36868 #ifdef __STDC__
36869 # include <limits.h>
36870 #else
36871 # include <assert.h>
36872 #endif
36874 #undef $ac_func
36876 /* Override any gcc2 internal prototype to avoid an error. */
36877 #ifdef __cplusplus
36878 extern "C"
36880 #endif
36881 /* We use char because int might match the return type of a gcc2
36882 builtin and then its argument prototype would still apply. */
36883 char $ac_func ();
36884 /* The GNU C library defines this for functions which it implements
36885 to always fail with ENOSYS. Some functions are actually named
36886 something starting with __ and the normal name is an alias. */
36887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36888 choke me
36889 #else
36890 char (*f) () = $ac_func;
36891 #endif
36892 #ifdef __cplusplus
36894 #endif
36897 main ()
36899 return f != $ac_func;
36901 return 0;
36903 _ACEOF
36904 rm -f conftest.$ac_objext conftest$ac_exeext
36905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36906 (eval $ac_link) 2>conftest.er1
36907 ac_status=$?
36908 grep -v '^ *+' conftest.er1 >conftest.err
36909 rm -f conftest.er1
36910 cat conftest.err >&5
36911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912 (exit $ac_status); } &&
36913 { ac_try='test -z "$ac_c_werror_flag"
36914 || test ! -s conftest.err'
36915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36916 (eval $ac_try) 2>&5
36917 ac_status=$?
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); }; } &&
36920 { ac_try='test -s conftest$ac_exeext'
36921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922 (eval $ac_try) 2>&5
36923 ac_status=$?
36924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925 (exit $ac_status); }; }; then
36926 eval "$as_ac_var=yes"
36927 else
36928 echo "$as_me: failed program was:" >&5
36929 sed 's/^/| /' conftest.$ac_ext >&5
36931 eval "$as_ac_var=no"
36933 rm -f conftest.err conftest.$ac_objext \
36934 conftest$ac_exeext conftest.$ac_ext
36936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36938 if test `eval echo '${'$as_ac_var'}'` = yes; then
36939 cat >>confdefs.h <<_ACEOF
36940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36941 _ACEOF
36944 done
36951 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36952 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36953 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36954 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36955 echo $ECHO_N "(cached) $ECHO_C" >&6
36956 else
36960 ac_ext=cc
36961 ac_cpp='$CXXCPP $CPPFLAGS'
36962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36966 cat >conftest.$ac_ext <<_ACEOF
36967 /* confdefs.h. */
36968 _ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h. */
36972 #include <math.h>
36974 main ()
36976 fmodf(0, 0);
36978 return 0;
36980 _ACEOF
36981 rm -f conftest.$ac_objext
36982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36983 (eval $ac_compile) 2>conftest.er1
36984 ac_status=$?
36985 grep -v '^ *+' conftest.er1 >conftest.err
36986 rm -f conftest.er1
36987 cat conftest.err >&5
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); } &&
36990 { ac_try='test -z "$ac_cxx_werror_flag"
36991 || test ! -s conftest.err'
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36994 ac_status=$?
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; } &&
36997 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37003 glibcxx_cv_func_fmodf_use=yes
37004 else
37005 echo "$as_me: failed program was:" >&5
37006 sed 's/^/| /' conftest.$ac_ext >&5
37008 glibcxx_cv_func_fmodf_use=no
37010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37011 ac_ext=c
37012 ac_cpp='$CPP $CPPFLAGS'
37013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37021 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
37022 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
37024 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
37026 for ac_func in fmodf
37028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37029 echo "$as_me:$LINENO: checking for $ac_func" >&5
37030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37031 if eval "test \"\${$as_ac_var+set}\" = set"; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
37033 else
37034 if test x$gcc_no_link = xyes; then
37035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37037 { (exit 1); exit 1; }; }
37039 cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h. */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h. */
37045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37047 #define $ac_func innocuous_$ac_func
37049 /* System header to define __stub macros and hopefully few prototypes,
37050 which can conflict with char $ac_func (); below.
37051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37052 <limits.h> exists even on freestanding compilers. */
37054 #ifdef __STDC__
37055 # include <limits.h>
37056 #else
37057 # include <assert.h>
37058 #endif
37060 #undef $ac_func
37062 /* Override any gcc2 internal prototype to avoid an error. */
37063 #ifdef __cplusplus
37064 extern "C"
37066 #endif
37067 /* We use char because int might match the return type of a gcc2
37068 builtin and then its argument prototype would still apply. */
37069 char $ac_func ();
37070 /* The GNU C library defines this for functions which it implements
37071 to always fail with ENOSYS. Some functions are actually named
37072 something starting with __ and the normal name is an alias. */
37073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37074 choke me
37075 #else
37076 char (*f) () = $ac_func;
37077 #endif
37078 #ifdef __cplusplus
37080 #endif
37083 main ()
37085 return f != $ac_func;
37087 return 0;
37089 _ACEOF
37090 rm -f conftest.$ac_objext conftest$ac_exeext
37091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37092 (eval $ac_link) 2>conftest.er1
37093 ac_status=$?
37094 grep -v '^ *+' conftest.er1 >conftest.err
37095 rm -f conftest.er1
37096 cat conftest.err >&5
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } &&
37099 { ac_try='test -z "$ac_c_werror_flag"
37100 || test ! -s conftest.err'
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
37106 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37112 eval "$as_ac_var=yes"
37113 else
37114 echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37117 eval "$as_ac_var=no"
37119 rm -f conftest.err conftest.$ac_objext \
37120 conftest$ac_exeext conftest.$ac_ext
37122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37124 if test `eval echo '${'$as_ac_var'}'` = yes; then
37125 cat >>confdefs.h <<_ACEOF
37126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37127 _ACEOF
37130 done
37132 else
37134 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
37135 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
37136 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
37137 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
37138 echo $ECHO_N "(cached) $ECHO_C" >&6
37139 else
37143 ac_ext=cc
37144 ac_cpp='$CXXCPP $CPPFLAGS'
37145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37149 cat >conftest.$ac_ext <<_ACEOF
37150 /* confdefs.h. */
37151 _ACEOF
37152 cat confdefs.h >>conftest.$ac_ext
37153 cat >>conftest.$ac_ext <<_ACEOF
37154 /* end confdefs.h. */
37155 #include <math.h>
37157 main ()
37159 _fmodf(0, 0);
37161 return 0;
37163 _ACEOF
37164 rm -f conftest.$ac_objext
37165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37166 (eval $ac_compile) 2>conftest.er1
37167 ac_status=$?
37168 grep -v '^ *+' conftest.er1 >conftest.err
37169 rm -f conftest.er1
37170 cat conftest.err >&5
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); } &&
37173 { ac_try='test -z "$ac_cxx_werror_flag"
37174 || test ! -s conftest.err'
37175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); }; } &&
37180 { ac_try='test -s conftest.$ac_objext'
37181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37182 (eval $ac_try) 2>&5
37183 ac_status=$?
37184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185 (exit $ac_status); }; }; then
37186 glibcxx_cv_func__fmodf_use=yes
37187 else
37188 echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37191 glibcxx_cv_func__fmodf_use=no
37193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37194 ac_ext=c
37195 ac_cpp='$CPP $CPPFLAGS'
37196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37204 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37205 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37207 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37209 for ac_func in _fmodf
37211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37212 echo "$as_me:$LINENO: checking for $ac_func" >&5
37213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37214 if eval "test \"\${$as_ac_var+set}\" = set"; then
37215 echo $ECHO_N "(cached) $ECHO_C" >&6
37216 else
37217 if test x$gcc_no_link = xyes; then
37218 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37220 { (exit 1); exit 1; }; }
37222 cat >conftest.$ac_ext <<_ACEOF
37223 /* confdefs.h. */
37224 _ACEOF
37225 cat confdefs.h >>conftest.$ac_ext
37226 cat >>conftest.$ac_ext <<_ACEOF
37227 /* end confdefs.h. */
37228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37230 #define $ac_func innocuous_$ac_func
37232 /* System header to define __stub macros and hopefully few prototypes,
37233 which can conflict with char $ac_func (); below.
37234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37235 <limits.h> exists even on freestanding compilers. */
37237 #ifdef __STDC__
37238 # include <limits.h>
37239 #else
37240 # include <assert.h>
37241 #endif
37243 #undef $ac_func
37245 /* Override any gcc2 internal prototype to avoid an error. */
37246 #ifdef __cplusplus
37247 extern "C"
37249 #endif
37250 /* We use char because int might match the return type of a gcc2
37251 builtin and then its argument prototype would still apply. */
37252 char $ac_func ();
37253 /* The GNU C library defines this for functions which it implements
37254 to always fail with ENOSYS. Some functions are actually named
37255 something starting with __ and the normal name is an alias. */
37256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37257 choke me
37258 #else
37259 char (*f) () = $ac_func;
37260 #endif
37261 #ifdef __cplusplus
37263 #endif
37266 main ()
37268 return f != $ac_func;
37270 return 0;
37272 _ACEOF
37273 rm -f conftest.$ac_objext conftest$ac_exeext
37274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37275 (eval $ac_link) 2>conftest.er1
37276 ac_status=$?
37277 grep -v '^ *+' conftest.er1 >conftest.err
37278 rm -f conftest.er1
37279 cat conftest.err >&5
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); } &&
37282 { ac_try='test -z "$ac_c_werror_flag"
37283 || test ! -s conftest.err'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; } &&
37289 { ac_try='test -s conftest$ac_exeext'
37290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291 (eval $ac_try) 2>&5
37292 ac_status=$?
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); }; }; then
37295 eval "$as_ac_var=yes"
37296 else
37297 echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37300 eval "$as_ac_var=no"
37302 rm -f conftest.err conftest.$ac_objext \
37303 conftest$ac_exeext conftest.$ac_ext
37305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37307 if test `eval echo '${'$as_ac_var'}'` = yes; then
37308 cat >>confdefs.h <<_ACEOF
37309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37310 _ACEOF
37313 done
37320 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37321 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37322 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37323 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37324 echo $ECHO_N "(cached) $ECHO_C" >&6
37325 else
37329 ac_ext=cc
37330 ac_cpp='$CXXCPP $CPPFLAGS'
37331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37335 cat >conftest.$ac_ext <<_ACEOF
37336 /* confdefs.h. */
37337 _ACEOF
37338 cat confdefs.h >>conftest.$ac_ext
37339 cat >>conftest.$ac_ext <<_ACEOF
37340 /* end confdefs.h. */
37341 #include <math.h>
37343 main ()
37345 frexpf(0, 0);
37347 return 0;
37349 _ACEOF
37350 rm -f conftest.$ac_objext
37351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37352 (eval $ac_compile) 2>conftest.er1
37353 ac_status=$?
37354 grep -v '^ *+' conftest.er1 >conftest.err
37355 rm -f conftest.er1
37356 cat conftest.err >&5
37357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358 (exit $ac_status); } &&
37359 { ac_try='test -z "$ac_cxx_werror_flag"
37360 || test ! -s conftest.err'
37361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37362 (eval $ac_try) 2>&5
37363 ac_status=$?
37364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); }; } &&
37366 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37372 glibcxx_cv_func_frexpf_use=yes
37373 else
37374 echo "$as_me: failed program was:" >&5
37375 sed 's/^/| /' conftest.$ac_ext >&5
37377 glibcxx_cv_func_frexpf_use=no
37379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37380 ac_ext=c
37381 ac_cpp='$CPP $CPPFLAGS'
37382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37390 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37391 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37393 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37395 for ac_func in frexpf
37397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37398 echo "$as_me:$LINENO: checking for $ac_func" >&5
37399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37400 if eval "test \"\${$as_ac_var+set}\" = set"; then
37401 echo $ECHO_N "(cached) $ECHO_C" >&6
37402 else
37403 if test x$gcc_no_link = xyes; then
37404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37406 { (exit 1); exit 1; }; }
37408 cat >conftest.$ac_ext <<_ACEOF
37409 /* confdefs.h. */
37410 _ACEOF
37411 cat confdefs.h >>conftest.$ac_ext
37412 cat >>conftest.$ac_ext <<_ACEOF
37413 /* end confdefs.h. */
37414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37416 #define $ac_func innocuous_$ac_func
37418 /* System header to define __stub macros and hopefully few prototypes,
37419 which can conflict with char $ac_func (); below.
37420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37421 <limits.h> exists even on freestanding compilers. */
37423 #ifdef __STDC__
37424 # include <limits.h>
37425 #else
37426 # include <assert.h>
37427 #endif
37429 #undef $ac_func
37431 /* Override any gcc2 internal prototype to avoid an error. */
37432 #ifdef __cplusplus
37433 extern "C"
37435 #endif
37436 /* We use char because int might match the return type of a gcc2
37437 builtin and then its argument prototype would still apply. */
37438 char $ac_func ();
37439 /* The GNU C library defines this for functions which it implements
37440 to always fail with ENOSYS. Some functions are actually named
37441 something starting with __ and the normal name is an alias. */
37442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37443 choke me
37444 #else
37445 char (*f) () = $ac_func;
37446 #endif
37447 #ifdef __cplusplus
37449 #endif
37452 main ()
37454 return f != $ac_func;
37456 return 0;
37458 _ACEOF
37459 rm -f conftest.$ac_objext conftest$ac_exeext
37460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37461 (eval $ac_link) 2>conftest.er1
37462 ac_status=$?
37463 grep -v '^ *+' conftest.er1 >conftest.err
37464 rm -f conftest.er1
37465 cat conftest.err >&5
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); } &&
37468 { ac_try='test -z "$ac_c_werror_flag"
37469 || test ! -s conftest.err'
37470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471 (eval $ac_try) 2>&5
37472 ac_status=$?
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; } &&
37475 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37481 eval "$as_ac_var=yes"
37482 else
37483 echo "$as_me: failed program was:" >&5
37484 sed 's/^/| /' conftest.$ac_ext >&5
37486 eval "$as_ac_var=no"
37488 rm -f conftest.err conftest.$ac_objext \
37489 conftest$ac_exeext conftest.$ac_ext
37491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37493 if test `eval echo '${'$as_ac_var'}'` = yes; then
37494 cat >>confdefs.h <<_ACEOF
37495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37496 _ACEOF
37499 done
37501 else
37503 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37504 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37505 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37506 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37507 echo $ECHO_N "(cached) $ECHO_C" >&6
37508 else
37512 ac_ext=cc
37513 ac_cpp='$CXXCPP $CPPFLAGS'
37514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37518 cat >conftest.$ac_ext <<_ACEOF
37519 /* confdefs.h. */
37520 _ACEOF
37521 cat confdefs.h >>conftest.$ac_ext
37522 cat >>conftest.$ac_ext <<_ACEOF
37523 /* end confdefs.h. */
37524 #include <math.h>
37526 main ()
37528 _frexpf(0, 0);
37530 return 0;
37532 _ACEOF
37533 rm -f conftest.$ac_objext
37534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37535 (eval $ac_compile) 2>conftest.er1
37536 ac_status=$?
37537 grep -v '^ *+' conftest.er1 >conftest.err
37538 rm -f conftest.er1
37539 cat conftest.err >&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); } &&
37542 { ac_try='test -z "$ac_cxx_werror_flag"
37543 || test ! -s conftest.err'
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; } &&
37549 { ac_try='test -s conftest.$ac_objext'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37552 ac_status=$?
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 glibcxx_cv_func__frexpf_use=yes
37556 else
37557 echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37560 glibcxx_cv_func__frexpf_use=no
37562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37563 ac_ext=c
37564 ac_cpp='$CPP $CPPFLAGS'
37565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37573 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37574 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37576 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37578 for ac_func in _frexpf
37580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37581 echo "$as_me:$LINENO: checking for $ac_func" >&5
37582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37583 if eval "test \"\${$as_ac_var+set}\" = set"; then
37584 echo $ECHO_N "(cached) $ECHO_C" >&6
37585 else
37586 if test x$gcc_no_link = xyes; then
37587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37589 { (exit 1); exit 1; }; }
37591 cat >conftest.$ac_ext <<_ACEOF
37592 /* confdefs.h. */
37593 _ACEOF
37594 cat confdefs.h >>conftest.$ac_ext
37595 cat >>conftest.$ac_ext <<_ACEOF
37596 /* end confdefs.h. */
37597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37599 #define $ac_func innocuous_$ac_func
37601 /* System header to define __stub macros and hopefully few prototypes,
37602 which can conflict with char $ac_func (); below.
37603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37604 <limits.h> exists even on freestanding compilers. */
37606 #ifdef __STDC__
37607 # include <limits.h>
37608 #else
37609 # include <assert.h>
37610 #endif
37612 #undef $ac_func
37614 /* Override any gcc2 internal prototype to avoid an error. */
37615 #ifdef __cplusplus
37616 extern "C"
37618 #endif
37619 /* We use char because int might match the return type of a gcc2
37620 builtin and then its argument prototype would still apply. */
37621 char $ac_func ();
37622 /* The GNU C library defines this for functions which it implements
37623 to always fail with ENOSYS. Some functions are actually named
37624 something starting with __ and the normal name is an alias. */
37625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37626 choke me
37627 #else
37628 char (*f) () = $ac_func;
37629 #endif
37630 #ifdef __cplusplus
37632 #endif
37635 main ()
37637 return f != $ac_func;
37639 return 0;
37641 _ACEOF
37642 rm -f conftest.$ac_objext conftest$ac_exeext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37644 (eval $ac_link) 2>conftest.er1
37645 ac_status=$?
37646 grep -v '^ *+' conftest.er1 >conftest.err
37647 rm -f conftest.er1
37648 cat conftest.err >&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); } &&
37651 { ac_try='test -z "$ac_c_werror_flag"
37652 || test ! -s conftest.err'
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37655 ac_status=$?
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; } &&
37658 { ac_try='test -s conftest$ac_exeext'
37659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660 (eval $ac_try) 2>&5
37661 ac_status=$?
37662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663 (exit $ac_status); }; }; then
37664 eval "$as_ac_var=yes"
37665 else
37666 echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37669 eval "$as_ac_var=no"
37671 rm -f conftest.err conftest.$ac_objext \
37672 conftest$ac_exeext conftest.$ac_ext
37674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37676 if test `eval echo '${'$as_ac_var'}'` = yes; then
37677 cat >>confdefs.h <<_ACEOF
37678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37679 _ACEOF
37682 done
37689 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37690 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37691 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37692 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37693 echo $ECHO_N "(cached) $ECHO_C" >&6
37694 else
37698 ac_ext=cc
37699 ac_cpp='$CXXCPP $CPPFLAGS'
37700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37704 cat >conftest.$ac_ext <<_ACEOF
37705 /* confdefs.h. */
37706 _ACEOF
37707 cat confdefs.h >>conftest.$ac_ext
37708 cat >>conftest.$ac_ext <<_ACEOF
37709 /* end confdefs.h. */
37710 #include <math.h>
37712 main ()
37714 hypotf(0, 0);
37716 return 0;
37718 _ACEOF
37719 rm -f conftest.$ac_objext
37720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37721 (eval $ac_compile) 2>conftest.er1
37722 ac_status=$?
37723 grep -v '^ *+' conftest.er1 >conftest.err
37724 rm -f conftest.er1
37725 cat conftest.err >&5
37726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727 (exit $ac_status); } &&
37728 { ac_try='test -z "$ac_cxx_werror_flag"
37729 || test ! -s conftest.err'
37730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37731 (eval $ac_try) 2>&5
37732 ac_status=$?
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); }; } &&
37735 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37741 glibcxx_cv_func_hypotf_use=yes
37742 else
37743 echo "$as_me: failed program was:" >&5
37744 sed 's/^/| /' conftest.$ac_ext >&5
37746 glibcxx_cv_func_hypotf_use=no
37748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37749 ac_ext=c
37750 ac_cpp='$CPP $CPPFLAGS'
37751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37759 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37760 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37762 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37764 for ac_func in hypotf
37766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37767 echo "$as_me:$LINENO: checking for $ac_func" >&5
37768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37769 if eval "test \"\${$as_ac_var+set}\" = set"; then
37770 echo $ECHO_N "(cached) $ECHO_C" >&6
37771 else
37772 if test x$gcc_no_link = xyes; then
37773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37775 { (exit 1); exit 1; }; }
37777 cat >conftest.$ac_ext <<_ACEOF
37778 /* confdefs.h. */
37779 _ACEOF
37780 cat confdefs.h >>conftest.$ac_ext
37781 cat >>conftest.$ac_ext <<_ACEOF
37782 /* end confdefs.h. */
37783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37785 #define $ac_func innocuous_$ac_func
37787 /* System header to define __stub macros and hopefully few prototypes,
37788 which can conflict with char $ac_func (); below.
37789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37790 <limits.h> exists even on freestanding compilers. */
37792 #ifdef __STDC__
37793 # include <limits.h>
37794 #else
37795 # include <assert.h>
37796 #endif
37798 #undef $ac_func
37800 /* Override any gcc2 internal prototype to avoid an error. */
37801 #ifdef __cplusplus
37802 extern "C"
37804 #endif
37805 /* We use char because int might match the return type of a gcc2
37806 builtin and then its argument prototype would still apply. */
37807 char $ac_func ();
37808 /* The GNU C library defines this for functions which it implements
37809 to always fail with ENOSYS. Some functions are actually named
37810 something starting with __ and the normal name is an alias. */
37811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37812 choke me
37813 #else
37814 char (*f) () = $ac_func;
37815 #endif
37816 #ifdef __cplusplus
37818 #endif
37821 main ()
37823 return f != $ac_func;
37825 return 0;
37827 _ACEOF
37828 rm -f conftest.$ac_objext conftest$ac_exeext
37829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37830 (eval $ac_link) 2>conftest.er1
37831 ac_status=$?
37832 grep -v '^ *+' conftest.er1 >conftest.err
37833 rm -f conftest.er1
37834 cat conftest.err >&5
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); } &&
37837 { ac_try='test -z "$ac_c_werror_flag"
37838 || test ! -s conftest.err'
37839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37840 (eval $ac_try) 2>&5
37841 ac_status=$?
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); }; } &&
37844 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37850 eval "$as_ac_var=yes"
37851 else
37852 echo "$as_me: failed program was:" >&5
37853 sed 's/^/| /' conftest.$ac_ext >&5
37855 eval "$as_ac_var=no"
37857 rm -f conftest.err conftest.$ac_objext \
37858 conftest$ac_exeext conftest.$ac_ext
37860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37862 if test `eval echo '${'$as_ac_var'}'` = yes; then
37863 cat >>confdefs.h <<_ACEOF
37864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37865 _ACEOF
37868 done
37870 else
37872 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37873 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37874 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37875 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37876 echo $ECHO_N "(cached) $ECHO_C" >&6
37877 else
37881 ac_ext=cc
37882 ac_cpp='$CXXCPP $CPPFLAGS'
37883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37887 cat >conftest.$ac_ext <<_ACEOF
37888 /* confdefs.h. */
37889 _ACEOF
37890 cat confdefs.h >>conftest.$ac_ext
37891 cat >>conftest.$ac_ext <<_ACEOF
37892 /* end confdefs.h. */
37893 #include <math.h>
37895 main ()
37897 _hypotf(0, 0);
37899 return 0;
37901 _ACEOF
37902 rm -f conftest.$ac_objext
37903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37904 (eval $ac_compile) 2>conftest.er1
37905 ac_status=$?
37906 grep -v '^ *+' conftest.er1 >conftest.err
37907 rm -f conftest.er1
37908 cat conftest.err >&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } &&
37911 { ac_try='test -z "$ac_cxx_werror_flag"
37912 || test ! -s conftest.err'
37913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914 (eval $ac_try) 2>&5
37915 ac_status=$?
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); }; } &&
37918 { ac_try='test -s conftest.$ac_objext'
37919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920 (eval $ac_try) 2>&5
37921 ac_status=$?
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); }; }; then
37924 glibcxx_cv_func__hypotf_use=yes
37925 else
37926 echo "$as_me: failed program was:" >&5
37927 sed 's/^/| /' conftest.$ac_ext >&5
37929 glibcxx_cv_func__hypotf_use=no
37931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37932 ac_ext=c
37933 ac_cpp='$CPP $CPPFLAGS'
37934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37942 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37943 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37945 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37947 for ac_func in _hypotf
37949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37950 echo "$as_me:$LINENO: checking for $ac_func" >&5
37951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37952 if eval "test \"\${$as_ac_var+set}\" = set"; then
37953 echo $ECHO_N "(cached) $ECHO_C" >&6
37954 else
37955 if test x$gcc_no_link = xyes; then
37956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37958 { (exit 1); exit 1; }; }
37960 cat >conftest.$ac_ext <<_ACEOF
37961 /* confdefs.h. */
37962 _ACEOF
37963 cat confdefs.h >>conftest.$ac_ext
37964 cat >>conftest.$ac_ext <<_ACEOF
37965 /* end confdefs.h. */
37966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37968 #define $ac_func innocuous_$ac_func
37970 /* System header to define __stub macros and hopefully few prototypes,
37971 which can conflict with char $ac_func (); below.
37972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37973 <limits.h> exists even on freestanding compilers. */
37975 #ifdef __STDC__
37976 # include <limits.h>
37977 #else
37978 # include <assert.h>
37979 #endif
37981 #undef $ac_func
37983 /* Override any gcc2 internal prototype to avoid an error. */
37984 #ifdef __cplusplus
37985 extern "C"
37987 #endif
37988 /* We use char because int might match the return type of a gcc2
37989 builtin and then its argument prototype would still apply. */
37990 char $ac_func ();
37991 /* The GNU C library defines this for functions which it implements
37992 to always fail with ENOSYS. Some functions are actually named
37993 something starting with __ and the normal name is an alias. */
37994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37995 choke me
37996 #else
37997 char (*f) () = $ac_func;
37998 #endif
37999 #ifdef __cplusplus
38001 #endif
38004 main ()
38006 return f != $ac_func;
38008 return 0;
38010 _ACEOF
38011 rm -f conftest.$ac_objext conftest$ac_exeext
38012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38013 (eval $ac_link) 2>conftest.er1
38014 ac_status=$?
38015 grep -v '^ *+' conftest.er1 >conftest.err
38016 rm -f conftest.er1
38017 cat conftest.err >&5
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); } &&
38020 { ac_try='test -z "$ac_c_werror_flag"
38021 || test ! -s conftest.err'
38022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38023 (eval $ac_try) 2>&5
38024 ac_status=$?
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); }; } &&
38027 { ac_try='test -s conftest$ac_exeext'
38028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029 (eval $ac_try) 2>&5
38030 ac_status=$?
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); }; }; then
38033 eval "$as_ac_var=yes"
38034 else
38035 echo "$as_me: failed program was:" >&5
38036 sed 's/^/| /' conftest.$ac_ext >&5
38038 eval "$as_ac_var=no"
38040 rm -f conftest.err conftest.$ac_objext \
38041 conftest$ac_exeext conftest.$ac_ext
38043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38045 if test `eval echo '${'$as_ac_var'}'` = yes; then
38046 cat >>confdefs.h <<_ACEOF
38047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38048 _ACEOF
38051 done
38058 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
38059 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
38060 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
38061 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
38062 echo $ECHO_N "(cached) $ECHO_C" >&6
38063 else
38067 ac_ext=cc
38068 ac_cpp='$CXXCPP $CPPFLAGS'
38069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38073 cat >conftest.$ac_ext <<_ACEOF
38074 /* confdefs.h. */
38075 _ACEOF
38076 cat confdefs.h >>conftest.$ac_ext
38077 cat >>conftest.$ac_ext <<_ACEOF
38078 /* end confdefs.h. */
38079 #include <math.h>
38081 main ()
38083 ldexpf(0, 0);
38085 return 0;
38087 _ACEOF
38088 rm -f conftest.$ac_objext
38089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38090 (eval $ac_compile) 2>conftest.er1
38091 ac_status=$?
38092 grep -v '^ *+' conftest.er1 >conftest.err
38093 rm -f conftest.er1
38094 cat conftest.err >&5
38095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096 (exit $ac_status); } &&
38097 { ac_try='test -z "$ac_cxx_werror_flag"
38098 || test ! -s conftest.err'
38099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38100 (eval $ac_try) 2>&5
38101 ac_status=$?
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); }; } &&
38104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
38110 glibcxx_cv_func_ldexpf_use=yes
38111 else
38112 echo "$as_me: failed program was:" >&5
38113 sed 's/^/| /' conftest.$ac_ext >&5
38115 glibcxx_cv_func_ldexpf_use=no
38117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38118 ac_ext=c
38119 ac_cpp='$CPP $CPPFLAGS'
38120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38128 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
38129 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
38131 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
38133 for ac_func in ldexpf
38135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38136 echo "$as_me:$LINENO: checking for $ac_func" >&5
38137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_var+set}\" = set"; then
38139 echo $ECHO_N "(cached) $ECHO_C" >&6
38140 else
38141 if test x$gcc_no_link = xyes; then
38142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38144 { (exit 1); exit 1; }; }
38146 cat >conftest.$ac_ext <<_ACEOF
38147 /* confdefs.h. */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h. */
38152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38154 #define $ac_func innocuous_$ac_func
38156 /* System header to define __stub macros and hopefully few prototypes,
38157 which can conflict with char $ac_func (); below.
38158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38159 <limits.h> exists even on freestanding compilers. */
38161 #ifdef __STDC__
38162 # include <limits.h>
38163 #else
38164 # include <assert.h>
38165 #endif
38167 #undef $ac_func
38169 /* Override any gcc2 internal prototype to avoid an error. */
38170 #ifdef __cplusplus
38171 extern "C"
38173 #endif
38174 /* We use char because int might match the return type of a gcc2
38175 builtin and then its argument prototype would still apply. */
38176 char $ac_func ();
38177 /* The GNU C library defines this for functions which it implements
38178 to always fail with ENOSYS. Some functions are actually named
38179 something starting with __ and the normal name is an alias. */
38180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38181 choke me
38182 #else
38183 char (*f) () = $ac_func;
38184 #endif
38185 #ifdef __cplusplus
38187 #endif
38190 main ()
38192 return f != $ac_func;
38194 return 0;
38196 _ACEOF
38197 rm -f conftest.$ac_objext conftest$ac_exeext
38198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38199 (eval $ac_link) 2>conftest.er1
38200 ac_status=$?
38201 grep -v '^ *+' conftest.er1 >conftest.err
38202 rm -f conftest.er1
38203 cat conftest.err >&5
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); } &&
38206 { ac_try='test -z "$ac_c_werror_flag"
38207 || test ! -s conftest.err'
38208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 (eval $ac_try) 2>&5
38210 ac_status=$?
38211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 (exit $ac_status); }; } &&
38213 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
38219 eval "$as_ac_var=yes"
38220 else
38221 echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38224 eval "$as_ac_var=no"
38226 rm -f conftest.err conftest.$ac_objext \
38227 conftest$ac_exeext conftest.$ac_ext
38229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38231 if test `eval echo '${'$as_ac_var'}'` = yes; then
38232 cat >>confdefs.h <<_ACEOF
38233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38234 _ACEOF
38237 done
38239 else
38241 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38242 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38243 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38244 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38245 echo $ECHO_N "(cached) $ECHO_C" >&6
38246 else
38250 ac_ext=cc
38251 ac_cpp='$CXXCPP $CPPFLAGS'
38252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38256 cat >conftest.$ac_ext <<_ACEOF
38257 /* confdefs.h. */
38258 _ACEOF
38259 cat confdefs.h >>conftest.$ac_ext
38260 cat >>conftest.$ac_ext <<_ACEOF
38261 /* end confdefs.h. */
38262 #include <math.h>
38264 main ()
38266 _ldexpf(0, 0);
38268 return 0;
38270 _ACEOF
38271 rm -f conftest.$ac_objext
38272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38273 (eval $ac_compile) 2>conftest.er1
38274 ac_status=$?
38275 grep -v '^ *+' conftest.er1 >conftest.err
38276 rm -f conftest.er1
38277 cat conftest.err >&5
38278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279 (exit $ac_status); } &&
38280 { ac_try='test -z "$ac_cxx_werror_flag"
38281 || test ! -s conftest.err'
38282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38283 (eval $ac_try) 2>&5
38284 ac_status=$?
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); }; } &&
38287 { ac_try='test -s conftest.$ac_objext'
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
38290 ac_status=$?
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; }; then
38293 glibcxx_cv_func__ldexpf_use=yes
38294 else
38295 echo "$as_me: failed program was:" >&5
38296 sed 's/^/| /' conftest.$ac_ext >&5
38298 glibcxx_cv_func__ldexpf_use=no
38300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38301 ac_ext=c
38302 ac_cpp='$CPP $CPPFLAGS'
38303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38311 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38312 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38314 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38316 for ac_func in _ldexpf
38318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38319 echo "$as_me:$LINENO: checking for $ac_func" >&5
38320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38321 if eval "test \"\${$as_ac_var+set}\" = set"; then
38322 echo $ECHO_N "(cached) $ECHO_C" >&6
38323 else
38324 if test x$gcc_no_link = xyes; then
38325 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38327 { (exit 1); exit 1; }; }
38329 cat >conftest.$ac_ext <<_ACEOF
38330 /* confdefs.h. */
38331 _ACEOF
38332 cat confdefs.h >>conftest.$ac_ext
38333 cat >>conftest.$ac_ext <<_ACEOF
38334 /* end confdefs.h. */
38335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38337 #define $ac_func innocuous_$ac_func
38339 /* System header to define __stub macros and hopefully few prototypes,
38340 which can conflict with char $ac_func (); below.
38341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38342 <limits.h> exists even on freestanding compilers. */
38344 #ifdef __STDC__
38345 # include <limits.h>
38346 #else
38347 # include <assert.h>
38348 #endif
38350 #undef $ac_func
38352 /* Override any gcc2 internal prototype to avoid an error. */
38353 #ifdef __cplusplus
38354 extern "C"
38356 #endif
38357 /* We use char because int might match the return type of a gcc2
38358 builtin and then its argument prototype would still apply. */
38359 char $ac_func ();
38360 /* The GNU C library defines this for functions which it implements
38361 to always fail with ENOSYS. Some functions are actually named
38362 something starting with __ and the normal name is an alias. */
38363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38364 choke me
38365 #else
38366 char (*f) () = $ac_func;
38367 #endif
38368 #ifdef __cplusplus
38370 #endif
38373 main ()
38375 return f != $ac_func;
38377 return 0;
38379 _ACEOF
38380 rm -f conftest.$ac_objext conftest$ac_exeext
38381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38382 (eval $ac_link) 2>conftest.er1
38383 ac_status=$?
38384 grep -v '^ *+' conftest.er1 >conftest.err
38385 rm -f conftest.er1
38386 cat conftest.err >&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } &&
38389 { ac_try='test -z "$ac_c_werror_flag"
38390 || test ! -s conftest.err'
38391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38392 (eval $ac_try) 2>&5
38393 ac_status=$?
38394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395 (exit $ac_status); }; } &&
38396 { ac_try='test -s conftest$ac_exeext'
38397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38398 (eval $ac_try) 2>&5
38399 ac_status=$?
38400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401 (exit $ac_status); }; }; then
38402 eval "$as_ac_var=yes"
38403 else
38404 echo "$as_me: failed program was:" >&5
38405 sed 's/^/| /' conftest.$ac_ext >&5
38407 eval "$as_ac_var=no"
38409 rm -f conftest.err conftest.$ac_objext \
38410 conftest$ac_exeext conftest.$ac_ext
38412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38414 if test `eval echo '${'$as_ac_var'}'` = yes; then
38415 cat >>confdefs.h <<_ACEOF
38416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38417 _ACEOF
38420 done
38427 echo "$as_me:$LINENO: checking for logf declaration" >&5
38428 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38429 if test x${glibcxx_cv_func_logf_use+set} != xset; then
38430 if test "${glibcxx_cv_func_logf_use+set}" = set; then
38431 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 else
38436 ac_ext=cc
38437 ac_cpp='$CXXCPP $CPPFLAGS'
38438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38442 cat >conftest.$ac_ext <<_ACEOF
38443 /* confdefs.h. */
38444 _ACEOF
38445 cat confdefs.h >>conftest.$ac_ext
38446 cat >>conftest.$ac_ext <<_ACEOF
38447 /* end confdefs.h. */
38448 #include <math.h>
38449 #ifdef HAVE_IEEEFP_H
38450 #include <ieeefp.h>
38451 #endif
38454 main ()
38456 logf(0);
38458 return 0;
38460 _ACEOF
38461 rm -f conftest.$ac_objext
38462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38463 (eval $ac_compile) 2>conftest.er1
38464 ac_status=$?
38465 grep -v '^ *+' conftest.er1 >conftest.err
38466 rm -f conftest.er1
38467 cat conftest.err >&5
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); } &&
38470 { ac_try='test -z "$ac_cxx_werror_flag"
38471 || test ! -s conftest.err'
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38474 ac_status=$?
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; } &&
38477 { ac_try='test -s conftest.$ac_objext'
38478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479 (eval $ac_try) 2>&5
38480 ac_status=$?
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); }; }; then
38483 glibcxx_cv_func_logf_use=yes
38484 else
38485 echo "$as_me: failed program was:" >&5
38486 sed 's/^/| /' conftest.$ac_ext >&5
38488 glibcxx_cv_func_logf_use=no
38490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38491 ac_ext=c
38492 ac_cpp='$CPP $CPPFLAGS'
38493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38501 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38502 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38504 if test x$glibcxx_cv_func_logf_use = x"yes"; then
38506 for ac_func in logf
38508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38509 echo "$as_me:$LINENO: checking for $ac_func" >&5
38510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38511 if eval "test \"\${$as_ac_var+set}\" = set"; then
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38513 else
38514 if test x$gcc_no_link = xyes; then
38515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38517 { (exit 1); exit 1; }; }
38519 cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h. */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h. */
38525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38527 #define $ac_func innocuous_$ac_func
38529 /* System header to define __stub macros and hopefully few prototypes,
38530 which can conflict with char $ac_func (); below.
38531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38532 <limits.h> exists even on freestanding compilers. */
38534 #ifdef __STDC__
38535 # include <limits.h>
38536 #else
38537 # include <assert.h>
38538 #endif
38540 #undef $ac_func
38542 /* Override any gcc2 internal prototype to avoid an error. */
38543 #ifdef __cplusplus
38544 extern "C"
38546 #endif
38547 /* We use char because int might match the return type of a gcc2
38548 builtin and then its argument prototype would still apply. */
38549 char $ac_func ();
38550 /* The GNU C library defines this for functions which it implements
38551 to always fail with ENOSYS. Some functions are actually named
38552 something starting with __ and the normal name is an alias. */
38553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38554 choke me
38555 #else
38556 char (*f) () = $ac_func;
38557 #endif
38558 #ifdef __cplusplus
38560 #endif
38563 main ()
38565 return f != $ac_func;
38567 return 0;
38569 _ACEOF
38570 rm -f conftest.$ac_objext conftest$ac_exeext
38571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38572 (eval $ac_link) 2>conftest.er1
38573 ac_status=$?
38574 grep -v '^ *+' conftest.er1 >conftest.err
38575 rm -f conftest.er1
38576 cat conftest.err >&5
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); } &&
38579 { ac_try='test -z "$ac_c_werror_flag"
38580 || test ! -s conftest.err'
38581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582 (eval $ac_try) 2>&5
38583 ac_status=$?
38584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585 (exit $ac_status); }; } &&
38586 { ac_try='test -s conftest$ac_exeext'
38587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38588 (eval $ac_try) 2>&5
38589 ac_status=$?
38590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591 (exit $ac_status); }; }; then
38592 eval "$as_ac_var=yes"
38593 else
38594 echo "$as_me: failed program was:" >&5
38595 sed 's/^/| /' conftest.$ac_ext >&5
38597 eval "$as_ac_var=no"
38599 rm -f conftest.err conftest.$ac_objext \
38600 conftest$ac_exeext conftest.$ac_ext
38602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38604 if test `eval echo '${'$as_ac_var'}'` = yes; then
38605 cat >>confdefs.h <<_ACEOF
38606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38607 _ACEOF
38610 done
38612 else
38614 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38615 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38616 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38617 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38618 echo $ECHO_N "(cached) $ECHO_C" >&6
38619 else
38623 ac_ext=cc
38624 ac_cpp='$CXXCPP $CPPFLAGS'
38625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38629 cat >conftest.$ac_ext <<_ACEOF
38630 /* confdefs.h. */
38631 _ACEOF
38632 cat confdefs.h >>conftest.$ac_ext
38633 cat >>conftest.$ac_ext <<_ACEOF
38634 /* end confdefs.h. */
38635 #include <math.h>
38636 #ifdef HAVE_IEEEFP_H
38637 #include <ieeefp.h>
38638 #endif
38641 main ()
38643 _logf(0);
38645 return 0;
38647 _ACEOF
38648 rm -f conftest.$ac_objext
38649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38650 (eval $ac_compile) 2>conftest.er1
38651 ac_status=$?
38652 grep -v '^ *+' conftest.er1 >conftest.err
38653 rm -f conftest.er1
38654 cat conftest.err >&5
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); } &&
38657 { ac_try='test -z "$ac_cxx_werror_flag"
38658 || test ! -s conftest.err'
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; } &&
38664 { ac_try='test -s conftest.$ac_objext'
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38667 ac_status=$?
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670 glibcxx_cv_func__logf_use=yes
38671 else
38672 echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38675 glibcxx_cv_func__logf_use=no
38677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38678 ac_ext=c
38679 ac_cpp='$CPP $CPPFLAGS'
38680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38688 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38689 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38691 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38693 for ac_func in _logf
38695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38696 echo "$as_me:$LINENO: checking for $ac_func" >&5
38697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38698 if eval "test \"\${$as_ac_var+set}\" = set"; then
38699 echo $ECHO_N "(cached) $ECHO_C" >&6
38700 else
38701 if test x$gcc_no_link = xyes; then
38702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38704 { (exit 1); exit 1; }; }
38706 cat >conftest.$ac_ext <<_ACEOF
38707 /* confdefs.h. */
38708 _ACEOF
38709 cat confdefs.h >>conftest.$ac_ext
38710 cat >>conftest.$ac_ext <<_ACEOF
38711 /* end confdefs.h. */
38712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38714 #define $ac_func innocuous_$ac_func
38716 /* System header to define __stub macros and hopefully few prototypes,
38717 which can conflict with char $ac_func (); below.
38718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38719 <limits.h> exists even on freestanding compilers. */
38721 #ifdef __STDC__
38722 # include <limits.h>
38723 #else
38724 # include <assert.h>
38725 #endif
38727 #undef $ac_func
38729 /* Override any gcc2 internal prototype to avoid an error. */
38730 #ifdef __cplusplus
38731 extern "C"
38733 #endif
38734 /* We use char because int might match the return type of a gcc2
38735 builtin and then its argument prototype would still apply. */
38736 char $ac_func ();
38737 /* The GNU C library defines this for functions which it implements
38738 to always fail with ENOSYS. Some functions are actually named
38739 something starting with __ and the normal name is an alias. */
38740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38741 choke me
38742 #else
38743 char (*f) () = $ac_func;
38744 #endif
38745 #ifdef __cplusplus
38747 #endif
38750 main ()
38752 return f != $ac_func;
38754 return 0;
38756 _ACEOF
38757 rm -f conftest.$ac_objext conftest$ac_exeext
38758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38759 (eval $ac_link) 2>conftest.er1
38760 ac_status=$?
38761 grep -v '^ *+' conftest.er1 >conftest.err
38762 rm -f conftest.er1
38763 cat conftest.err >&5
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); } &&
38766 { ac_try='test -z "$ac_c_werror_flag"
38767 || test ! -s conftest.err'
38768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38769 (eval $ac_try) 2>&5
38770 ac_status=$?
38771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772 (exit $ac_status); }; } &&
38773 { ac_try='test -s conftest$ac_exeext'
38774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38775 (eval $ac_try) 2>&5
38776 ac_status=$?
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); }; }; then
38779 eval "$as_ac_var=yes"
38780 else
38781 echo "$as_me: failed program was:" >&5
38782 sed 's/^/| /' conftest.$ac_ext >&5
38784 eval "$as_ac_var=no"
38786 rm -f conftest.err conftest.$ac_objext \
38787 conftest$ac_exeext conftest.$ac_ext
38789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38791 if test `eval echo '${'$as_ac_var'}'` = yes; then
38792 cat >>confdefs.h <<_ACEOF
38793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38794 _ACEOF
38797 done
38804 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38805 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38806 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38807 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38808 echo $ECHO_N "(cached) $ECHO_C" >&6
38809 else
38813 ac_ext=cc
38814 ac_cpp='$CXXCPP $CPPFLAGS'
38815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38819 cat >conftest.$ac_ext <<_ACEOF
38820 /* confdefs.h. */
38821 _ACEOF
38822 cat confdefs.h >>conftest.$ac_ext
38823 cat >>conftest.$ac_ext <<_ACEOF
38824 /* end confdefs.h. */
38825 #include <math.h>
38826 #ifdef HAVE_IEEEFP_H
38827 #include <ieeefp.h>
38828 #endif
38831 main ()
38833 log10f(0);
38835 return 0;
38837 _ACEOF
38838 rm -f conftest.$ac_objext
38839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38840 (eval $ac_compile) 2>conftest.er1
38841 ac_status=$?
38842 grep -v '^ *+' conftest.er1 >conftest.err
38843 rm -f conftest.er1
38844 cat conftest.err >&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); } &&
38847 { ac_try='test -z "$ac_cxx_werror_flag"
38848 || test ! -s conftest.err'
38849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38850 (eval $ac_try) 2>&5
38851 ac_status=$?
38852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853 (exit $ac_status); }; } &&
38854 { ac_try='test -s conftest.$ac_objext'
38855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856 (eval $ac_try) 2>&5
38857 ac_status=$?
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); }; }; then
38860 glibcxx_cv_func_log10f_use=yes
38861 else
38862 echo "$as_me: failed program was:" >&5
38863 sed 's/^/| /' conftest.$ac_ext >&5
38865 glibcxx_cv_func_log10f_use=no
38867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38868 ac_ext=c
38869 ac_cpp='$CPP $CPPFLAGS'
38870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38878 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38879 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38881 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38883 for ac_func in log10f
38885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38886 echo "$as_me:$LINENO: checking for $ac_func" >&5
38887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38888 if eval "test \"\${$as_ac_var+set}\" = set"; then
38889 echo $ECHO_N "(cached) $ECHO_C" >&6
38890 else
38891 if test x$gcc_no_link = xyes; then
38892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38894 { (exit 1); exit 1; }; }
38896 cat >conftest.$ac_ext <<_ACEOF
38897 /* confdefs.h. */
38898 _ACEOF
38899 cat confdefs.h >>conftest.$ac_ext
38900 cat >>conftest.$ac_ext <<_ACEOF
38901 /* end confdefs.h. */
38902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38904 #define $ac_func innocuous_$ac_func
38906 /* System header to define __stub macros and hopefully few prototypes,
38907 which can conflict with char $ac_func (); below.
38908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38909 <limits.h> exists even on freestanding compilers. */
38911 #ifdef __STDC__
38912 # include <limits.h>
38913 #else
38914 # include <assert.h>
38915 #endif
38917 #undef $ac_func
38919 /* Override any gcc2 internal prototype to avoid an error. */
38920 #ifdef __cplusplus
38921 extern "C"
38923 #endif
38924 /* We use char because int might match the return type of a gcc2
38925 builtin and then its argument prototype would still apply. */
38926 char $ac_func ();
38927 /* The GNU C library defines this for functions which it implements
38928 to always fail with ENOSYS. Some functions are actually named
38929 something starting with __ and the normal name is an alias. */
38930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38931 choke me
38932 #else
38933 char (*f) () = $ac_func;
38934 #endif
38935 #ifdef __cplusplus
38937 #endif
38940 main ()
38942 return f != $ac_func;
38944 return 0;
38946 _ACEOF
38947 rm -f conftest.$ac_objext conftest$ac_exeext
38948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38949 (eval $ac_link) 2>conftest.er1
38950 ac_status=$?
38951 grep -v '^ *+' conftest.er1 >conftest.err
38952 rm -f conftest.er1
38953 cat conftest.err >&5
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); } &&
38956 { ac_try='test -z "$ac_c_werror_flag"
38957 || test ! -s conftest.err'
38958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959 (eval $ac_try) 2>&5
38960 ac_status=$?
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); }; } &&
38963 { ac_try='test -s conftest$ac_exeext'
38964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965 (eval $ac_try) 2>&5
38966 ac_status=$?
38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); }; }; then
38969 eval "$as_ac_var=yes"
38970 else
38971 echo "$as_me: failed program was:" >&5
38972 sed 's/^/| /' conftest.$ac_ext >&5
38974 eval "$as_ac_var=no"
38976 rm -f conftest.err conftest.$ac_objext \
38977 conftest$ac_exeext conftest.$ac_ext
38979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38981 if test `eval echo '${'$as_ac_var'}'` = yes; then
38982 cat >>confdefs.h <<_ACEOF
38983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38984 _ACEOF
38987 done
38989 else
38991 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38992 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38993 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38994 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38995 echo $ECHO_N "(cached) $ECHO_C" >&6
38996 else
39000 ac_ext=cc
39001 ac_cpp='$CXXCPP $CPPFLAGS'
39002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39006 cat >conftest.$ac_ext <<_ACEOF
39007 /* confdefs.h. */
39008 _ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39012 #include <math.h>
39013 #ifdef HAVE_IEEEFP_H
39014 #include <ieeefp.h>
39015 #endif
39018 main ()
39020 _log10f(0);
39022 return 0;
39024 _ACEOF
39025 rm -f conftest.$ac_objext
39026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39027 (eval $ac_compile) 2>conftest.er1
39028 ac_status=$?
39029 grep -v '^ *+' conftest.er1 >conftest.err
39030 rm -f conftest.er1
39031 cat conftest.err >&5
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); } &&
39034 { ac_try='test -z "$ac_cxx_werror_flag"
39035 || test ! -s conftest.err'
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest.$ac_objext'
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39044 ac_status=$?
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; }; then
39047 glibcxx_cv_func__log10f_use=yes
39048 else
39049 echo "$as_me: failed program was:" >&5
39050 sed 's/^/| /' conftest.$ac_ext >&5
39052 glibcxx_cv_func__log10f_use=no
39054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39055 ac_ext=c
39056 ac_cpp='$CPP $CPPFLAGS'
39057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39065 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
39066 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
39068 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
39070 for ac_func in _log10f
39072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39073 echo "$as_me:$LINENO: checking for $ac_func" >&5
39074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39075 if eval "test \"\${$as_ac_var+set}\" = set"; then
39076 echo $ECHO_N "(cached) $ECHO_C" >&6
39077 else
39078 if test x$gcc_no_link = xyes; then
39079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39081 { (exit 1); exit 1; }; }
39083 cat >conftest.$ac_ext <<_ACEOF
39084 /* confdefs.h. */
39085 _ACEOF
39086 cat confdefs.h >>conftest.$ac_ext
39087 cat >>conftest.$ac_ext <<_ACEOF
39088 /* end confdefs.h. */
39089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39091 #define $ac_func innocuous_$ac_func
39093 /* System header to define __stub macros and hopefully few prototypes,
39094 which can conflict with char $ac_func (); below.
39095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39096 <limits.h> exists even on freestanding compilers. */
39098 #ifdef __STDC__
39099 # include <limits.h>
39100 #else
39101 # include <assert.h>
39102 #endif
39104 #undef $ac_func
39106 /* Override any gcc2 internal prototype to avoid an error. */
39107 #ifdef __cplusplus
39108 extern "C"
39110 #endif
39111 /* We use char because int might match the return type of a gcc2
39112 builtin and then its argument prototype would still apply. */
39113 char $ac_func ();
39114 /* The GNU C library defines this for functions which it implements
39115 to always fail with ENOSYS. Some functions are actually named
39116 something starting with __ and the normal name is an alias. */
39117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39118 choke me
39119 #else
39120 char (*f) () = $ac_func;
39121 #endif
39122 #ifdef __cplusplus
39124 #endif
39127 main ()
39129 return f != $ac_func;
39131 return 0;
39133 _ACEOF
39134 rm -f conftest.$ac_objext conftest$ac_exeext
39135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39136 (eval $ac_link) 2>conftest.er1
39137 ac_status=$?
39138 grep -v '^ *+' conftest.er1 >conftest.err
39139 rm -f conftest.er1
39140 cat conftest.err >&5
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); } &&
39143 { ac_try='test -z "$ac_c_werror_flag"
39144 || test ! -s conftest.err'
39145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39146 (eval $ac_try) 2>&5
39147 ac_status=$?
39148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149 (exit $ac_status); }; } &&
39150 { ac_try='test -s conftest$ac_exeext'
39151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39152 (eval $ac_try) 2>&5
39153 ac_status=$?
39154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155 (exit $ac_status); }; }; then
39156 eval "$as_ac_var=yes"
39157 else
39158 echo "$as_me: failed program was:" >&5
39159 sed 's/^/| /' conftest.$ac_ext >&5
39161 eval "$as_ac_var=no"
39163 rm -f conftest.err conftest.$ac_objext \
39164 conftest$ac_exeext conftest.$ac_ext
39166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39168 if test `eval echo '${'$as_ac_var'}'` = yes; then
39169 cat >>confdefs.h <<_ACEOF
39170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39171 _ACEOF
39174 done
39181 echo "$as_me:$LINENO: checking for modff declaration" >&5
39182 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39183 if test x${glibcxx_cv_func_modff_use+set} != xset; then
39184 if test "${glibcxx_cv_func_modff_use+set}" = set; then
39185 echo $ECHO_N "(cached) $ECHO_C" >&6
39186 else
39190 ac_ext=cc
39191 ac_cpp='$CXXCPP $CPPFLAGS'
39192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39196 cat >conftest.$ac_ext <<_ACEOF
39197 /* confdefs.h. */
39198 _ACEOF
39199 cat confdefs.h >>conftest.$ac_ext
39200 cat >>conftest.$ac_ext <<_ACEOF
39201 /* end confdefs.h. */
39202 #include <math.h>
39204 main ()
39206 modff(0, 0);
39208 return 0;
39210 _ACEOF
39211 rm -f conftest.$ac_objext
39212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39213 (eval $ac_compile) 2>conftest.er1
39214 ac_status=$?
39215 grep -v '^ *+' conftest.er1 >conftest.err
39216 rm -f conftest.er1
39217 cat conftest.err >&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); } &&
39220 { ac_try='test -z "$ac_cxx_werror_flag"
39221 || test ! -s conftest.err'
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39224 ac_status=$?
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; } &&
39227 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39233 glibcxx_cv_func_modff_use=yes
39234 else
39235 echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39238 glibcxx_cv_func_modff_use=no
39240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39241 ac_ext=c
39242 ac_cpp='$CPP $CPPFLAGS'
39243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39251 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39252 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39254 if test x$glibcxx_cv_func_modff_use = x"yes"; then
39256 for ac_func in modff
39258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39259 echo "$as_me:$LINENO: checking for $ac_func" >&5
39260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39261 if eval "test \"\${$as_ac_var+set}\" = set"; then
39262 echo $ECHO_N "(cached) $ECHO_C" >&6
39263 else
39264 if test x$gcc_no_link = xyes; then
39265 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39267 { (exit 1); exit 1; }; }
39269 cat >conftest.$ac_ext <<_ACEOF
39270 /* confdefs.h. */
39271 _ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h. */
39275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39277 #define $ac_func innocuous_$ac_func
39279 /* System header to define __stub macros and hopefully few prototypes,
39280 which can conflict with char $ac_func (); below.
39281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39282 <limits.h> exists even on freestanding compilers. */
39284 #ifdef __STDC__
39285 # include <limits.h>
39286 #else
39287 # include <assert.h>
39288 #endif
39290 #undef $ac_func
39292 /* Override any gcc2 internal prototype to avoid an error. */
39293 #ifdef __cplusplus
39294 extern "C"
39296 #endif
39297 /* We use char because int might match the return type of a gcc2
39298 builtin and then its argument prototype would still apply. */
39299 char $ac_func ();
39300 /* The GNU C library defines this for functions which it implements
39301 to always fail with ENOSYS. Some functions are actually named
39302 something starting with __ and the normal name is an alias. */
39303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39304 choke me
39305 #else
39306 char (*f) () = $ac_func;
39307 #endif
39308 #ifdef __cplusplus
39310 #endif
39313 main ()
39315 return f != $ac_func;
39317 return 0;
39319 _ACEOF
39320 rm -f conftest.$ac_objext conftest$ac_exeext
39321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39322 (eval $ac_link) 2>conftest.er1
39323 ac_status=$?
39324 grep -v '^ *+' conftest.er1 >conftest.err
39325 rm -f conftest.er1
39326 cat conftest.err >&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); } &&
39329 { ac_try='test -z "$ac_c_werror_flag"
39330 || test ! -s conftest.err'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39333 ac_status=$?
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; } &&
39336 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39342 eval "$as_ac_var=yes"
39343 else
39344 echo "$as_me: failed program was:" >&5
39345 sed 's/^/| /' conftest.$ac_ext >&5
39347 eval "$as_ac_var=no"
39349 rm -f conftest.err conftest.$ac_objext \
39350 conftest$ac_exeext conftest.$ac_ext
39352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39354 if test `eval echo '${'$as_ac_var'}'` = yes; then
39355 cat >>confdefs.h <<_ACEOF
39356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39357 _ACEOF
39360 done
39362 else
39364 echo "$as_me:$LINENO: checking for _modff declaration" >&5
39365 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39366 if test x${glibcxx_cv_func__modff_use+set} != xset; then
39367 if test "${glibcxx_cv_func__modff_use+set}" = set; then
39368 echo $ECHO_N "(cached) $ECHO_C" >&6
39369 else
39373 ac_ext=cc
39374 ac_cpp='$CXXCPP $CPPFLAGS'
39375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39379 cat >conftest.$ac_ext <<_ACEOF
39380 /* confdefs.h. */
39381 _ACEOF
39382 cat confdefs.h >>conftest.$ac_ext
39383 cat >>conftest.$ac_ext <<_ACEOF
39384 /* end confdefs.h. */
39385 #include <math.h>
39387 main ()
39389 _modff(0, 0);
39391 return 0;
39393 _ACEOF
39394 rm -f conftest.$ac_objext
39395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39396 (eval $ac_compile) 2>conftest.er1
39397 ac_status=$?
39398 grep -v '^ *+' conftest.er1 >conftest.err
39399 rm -f conftest.er1
39400 cat conftest.err >&5
39401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); } &&
39403 { ac_try='test -z "$ac_cxx_werror_flag"
39404 || test ! -s conftest.err'
39405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39406 (eval $ac_try) 2>&5
39407 ac_status=$?
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); }; } &&
39410 { ac_try='test -s conftest.$ac_objext'
39411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39412 (eval $ac_try) 2>&5
39413 ac_status=$?
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); }; }; then
39416 glibcxx_cv_func__modff_use=yes
39417 else
39418 echo "$as_me: failed program was:" >&5
39419 sed 's/^/| /' conftest.$ac_ext >&5
39421 glibcxx_cv_func__modff_use=no
39423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39424 ac_ext=c
39425 ac_cpp='$CPP $CPPFLAGS'
39426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39434 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39435 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39437 if test x$glibcxx_cv_func__modff_use = x"yes"; then
39439 for ac_func in _modff
39441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39442 echo "$as_me:$LINENO: checking for $ac_func" >&5
39443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39444 if eval "test \"\${$as_ac_var+set}\" = set"; then
39445 echo $ECHO_N "(cached) $ECHO_C" >&6
39446 else
39447 if test x$gcc_no_link = xyes; then
39448 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39450 { (exit 1); exit 1; }; }
39452 cat >conftest.$ac_ext <<_ACEOF
39453 /* confdefs.h. */
39454 _ACEOF
39455 cat confdefs.h >>conftest.$ac_ext
39456 cat >>conftest.$ac_ext <<_ACEOF
39457 /* end confdefs.h. */
39458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39460 #define $ac_func innocuous_$ac_func
39462 /* System header to define __stub macros and hopefully few prototypes,
39463 which can conflict with char $ac_func (); below.
39464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39465 <limits.h> exists even on freestanding compilers. */
39467 #ifdef __STDC__
39468 # include <limits.h>
39469 #else
39470 # include <assert.h>
39471 #endif
39473 #undef $ac_func
39475 /* Override any gcc2 internal prototype to avoid an error. */
39476 #ifdef __cplusplus
39477 extern "C"
39479 #endif
39480 /* We use char because int might match the return type of a gcc2
39481 builtin and then its argument prototype would still apply. */
39482 char $ac_func ();
39483 /* The GNU C library defines this for functions which it implements
39484 to always fail with ENOSYS. Some functions are actually named
39485 something starting with __ and the normal name is an alias. */
39486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39487 choke me
39488 #else
39489 char (*f) () = $ac_func;
39490 #endif
39491 #ifdef __cplusplus
39493 #endif
39496 main ()
39498 return f != $ac_func;
39500 return 0;
39502 _ACEOF
39503 rm -f conftest.$ac_objext conftest$ac_exeext
39504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39505 (eval $ac_link) 2>conftest.er1
39506 ac_status=$?
39507 grep -v '^ *+' conftest.er1 >conftest.err
39508 rm -f conftest.er1
39509 cat conftest.err >&5
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); } &&
39512 { ac_try='test -z "$ac_c_werror_flag"
39513 || test ! -s conftest.err'
39514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39515 (eval $ac_try) 2>&5
39516 ac_status=$?
39517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518 (exit $ac_status); }; } &&
39519 { ac_try='test -s conftest$ac_exeext'
39520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39521 (eval $ac_try) 2>&5
39522 ac_status=$?
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
39525 eval "$as_ac_var=yes"
39526 else
39527 echo "$as_me: failed program was:" >&5
39528 sed 's/^/| /' conftest.$ac_ext >&5
39530 eval "$as_ac_var=no"
39532 rm -f conftest.err conftest.$ac_objext \
39533 conftest$ac_exeext conftest.$ac_ext
39535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39537 if test `eval echo '${'$as_ac_var'}'` = yes; then
39538 cat >>confdefs.h <<_ACEOF
39539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39540 _ACEOF
39543 done
39550 echo "$as_me:$LINENO: checking for powf declaration" >&5
39551 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39552 if test x${glibcxx_cv_func_powf_use+set} != xset; then
39553 if test "${glibcxx_cv_func_powf_use+set}" = set; then
39554 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 else
39559 ac_ext=cc
39560 ac_cpp='$CXXCPP $CPPFLAGS'
39561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39565 cat >conftest.$ac_ext <<_ACEOF
39566 /* confdefs.h. */
39567 _ACEOF
39568 cat confdefs.h >>conftest.$ac_ext
39569 cat >>conftest.$ac_ext <<_ACEOF
39570 /* end confdefs.h. */
39571 #include <math.h>
39573 main ()
39575 powf(0, 0);
39577 return 0;
39579 _ACEOF
39580 rm -f conftest.$ac_objext
39581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39582 (eval $ac_compile) 2>conftest.er1
39583 ac_status=$?
39584 grep -v '^ *+' conftest.er1 >conftest.err
39585 rm -f conftest.er1
39586 cat conftest.err >&5
39587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588 (exit $ac_status); } &&
39589 { ac_try='test -z "$ac_cxx_werror_flag"
39590 || test ! -s conftest.err'
39591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39592 (eval $ac_try) 2>&5
39593 ac_status=$?
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); }; } &&
39596 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39602 glibcxx_cv_func_powf_use=yes
39603 else
39604 echo "$as_me: failed program was:" >&5
39605 sed 's/^/| /' conftest.$ac_ext >&5
39607 glibcxx_cv_func_powf_use=no
39609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39610 ac_ext=c
39611 ac_cpp='$CPP $CPPFLAGS'
39612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39620 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39621 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39623 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39625 for ac_func in powf
39627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39628 echo "$as_me:$LINENO: checking for $ac_func" >&5
39629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39630 if eval "test \"\${$as_ac_var+set}\" = set"; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39632 else
39633 if test x$gcc_no_link = xyes; then
39634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39636 { (exit 1); exit 1; }; }
39638 cat >conftest.$ac_ext <<_ACEOF
39639 /* confdefs.h. */
39640 _ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39646 #define $ac_func innocuous_$ac_func
39648 /* System header to define __stub macros and hopefully few prototypes,
39649 which can conflict with char $ac_func (); below.
39650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39651 <limits.h> exists even on freestanding compilers. */
39653 #ifdef __STDC__
39654 # include <limits.h>
39655 #else
39656 # include <assert.h>
39657 #endif
39659 #undef $ac_func
39661 /* Override any gcc2 internal prototype to avoid an error. */
39662 #ifdef __cplusplus
39663 extern "C"
39665 #endif
39666 /* We use char because int might match the return type of a gcc2
39667 builtin and then its argument prototype would still apply. */
39668 char $ac_func ();
39669 /* The GNU C library defines this for functions which it implements
39670 to always fail with ENOSYS. Some functions are actually named
39671 something starting with __ and the normal name is an alias. */
39672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39673 choke me
39674 #else
39675 char (*f) () = $ac_func;
39676 #endif
39677 #ifdef __cplusplus
39679 #endif
39682 main ()
39684 return f != $ac_func;
39686 return 0;
39688 _ACEOF
39689 rm -f conftest.$ac_objext conftest$ac_exeext
39690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39691 (eval $ac_link) 2>conftest.er1
39692 ac_status=$?
39693 grep -v '^ *+' conftest.er1 >conftest.err
39694 rm -f conftest.er1
39695 cat conftest.err >&5
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); } &&
39698 { ac_try='test -z "$ac_c_werror_flag"
39699 || test ! -s conftest.err'
39700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701 (eval $ac_try) 2>&5
39702 ac_status=$?
39703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704 (exit $ac_status); }; } &&
39705 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39711 eval "$as_ac_var=yes"
39712 else
39713 echo "$as_me: failed program was:" >&5
39714 sed 's/^/| /' conftest.$ac_ext >&5
39716 eval "$as_ac_var=no"
39718 rm -f conftest.err conftest.$ac_objext \
39719 conftest$ac_exeext conftest.$ac_ext
39721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39723 if test `eval echo '${'$as_ac_var'}'` = yes; then
39724 cat >>confdefs.h <<_ACEOF
39725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39726 _ACEOF
39729 done
39731 else
39733 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39734 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39735 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39736 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39737 echo $ECHO_N "(cached) $ECHO_C" >&6
39738 else
39742 ac_ext=cc
39743 ac_cpp='$CXXCPP $CPPFLAGS'
39744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39748 cat >conftest.$ac_ext <<_ACEOF
39749 /* confdefs.h. */
39750 _ACEOF
39751 cat confdefs.h >>conftest.$ac_ext
39752 cat >>conftest.$ac_ext <<_ACEOF
39753 /* end confdefs.h. */
39754 #include <math.h>
39756 main ()
39758 _powf(0, 0);
39760 return 0;
39762 _ACEOF
39763 rm -f conftest.$ac_objext
39764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39765 (eval $ac_compile) 2>conftest.er1
39766 ac_status=$?
39767 grep -v '^ *+' conftest.er1 >conftest.err
39768 rm -f conftest.er1
39769 cat conftest.err >&5
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); } &&
39772 { ac_try='test -z "$ac_cxx_werror_flag"
39773 || test ! -s conftest.err'
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39776 ac_status=$?
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; } &&
39779 { ac_try='test -s conftest.$ac_objext'
39780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781 (eval $ac_try) 2>&5
39782 ac_status=$?
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; }; then
39785 glibcxx_cv_func__powf_use=yes
39786 else
39787 echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39790 glibcxx_cv_func__powf_use=no
39792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39793 ac_ext=c
39794 ac_cpp='$CPP $CPPFLAGS'
39795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39803 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39804 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39806 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39808 for ac_func in _powf
39810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39811 echo "$as_me:$LINENO: checking for $ac_func" >&5
39812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39813 if eval "test \"\${$as_ac_var+set}\" = set"; then
39814 echo $ECHO_N "(cached) $ECHO_C" >&6
39815 else
39816 if test x$gcc_no_link = xyes; then
39817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39819 { (exit 1); exit 1; }; }
39821 cat >conftest.$ac_ext <<_ACEOF
39822 /* confdefs.h. */
39823 _ACEOF
39824 cat confdefs.h >>conftest.$ac_ext
39825 cat >>conftest.$ac_ext <<_ACEOF
39826 /* end confdefs.h. */
39827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39829 #define $ac_func innocuous_$ac_func
39831 /* System header to define __stub macros and hopefully few prototypes,
39832 which can conflict with char $ac_func (); below.
39833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39834 <limits.h> exists even on freestanding compilers. */
39836 #ifdef __STDC__
39837 # include <limits.h>
39838 #else
39839 # include <assert.h>
39840 #endif
39842 #undef $ac_func
39844 /* Override any gcc2 internal prototype to avoid an error. */
39845 #ifdef __cplusplus
39846 extern "C"
39848 #endif
39849 /* We use char because int might match the return type of a gcc2
39850 builtin and then its argument prototype would still apply. */
39851 char $ac_func ();
39852 /* The GNU C library defines this for functions which it implements
39853 to always fail with ENOSYS. Some functions are actually named
39854 something starting with __ and the normal name is an alias. */
39855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39856 choke me
39857 #else
39858 char (*f) () = $ac_func;
39859 #endif
39860 #ifdef __cplusplus
39862 #endif
39865 main ()
39867 return f != $ac_func;
39869 return 0;
39871 _ACEOF
39872 rm -f conftest.$ac_objext conftest$ac_exeext
39873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39874 (eval $ac_link) 2>conftest.er1
39875 ac_status=$?
39876 grep -v '^ *+' conftest.er1 >conftest.err
39877 rm -f conftest.er1
39878 cat conftest.err >&5
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); } &&
39881 { ac_try='test -z "$ac_c_werror_flag"
39882 || test ! -s conftest.err'
39883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39884 (eval $ac_try) 2>&5
39885 ac_status=$?
39886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); }; } &&
39888 { ac_try='test -s conftest$ac_exeext'
39889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39890 (eval $ac_try) 2>&5
39891 ac_status=$?
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); }; }; then
39894 eval "$as_ac_var=yes"
39895 else
39896 echo "$as_me: failed program was:" >&5
39897 sed 's/^/| /' conftest.$ac_ext >&5
39899 eval "$as_ac_var=no"
39901 rm -f conftest.err conftest.$ac_objext \
39902 conftest$ac_exeext conftest.$ac_ext
39904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39906 if test `eval echo '${'$as_ac_var'}'` = yes; then
39907 cat >>confdefs.h <<_ACEOF
39908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39909 _ACEOF
39912 done
39919 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39920 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39921 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39922 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39923 echo $ECHO_N "(cached) $ECHO_C" >&6
39924 else
39928 ac_ext=cc
39929 ac_cpp='$CXXCPP $CPPFLAGS'
39930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39934 cat >conftest.$ac_ext <<_ACEOF
39935 /* confdefs.h. */
39936 _ACEOF
39937 cat confdefs.h >>conftest.$ac_ext
39938 cat >>conftest.$ac_ext <<_ACEOF
39939 /* end confdefs.h. */
39940 #include <math.h>
39941 #ifdef HAVE_IEEEFP_H
39942 #include <ieeefp.h>
39943 #endif
39946 main ()
39948 sqrtf(0);
39950 return 0;
39952 _ACEOF
39953 rm -f conftest.$ac_objext
39954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39955 (eval $ac_compile) 2>conftest.er1
39956 ac_status=$?
39957 grep -v '^ *+' conftest.er1 >conftest.err
39958 rm -f conftest.er1
39959 cat conftest.err >&5
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); } &&
39962 { ac_try='test -z "$ac_cxx_werror_flag"
39963 || test ! -s conftest.err'
39964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39965 (eval $ac_try) 2>&5
39966 ac_status=$?
39967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968 (exit $ac_status); }; } &&
39969 { ac_try='test -s conftest.$ac_objext'
39970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39971 (eval $ac_try) 2>&5
39972 ac_status=$?
39973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974 (exit $ac_status); }; }; then
39975 glibcxx_cv_func_sqrtf_use=yes
39976 else
39977 echo "$as_me: failed program was:" >&5
39978 sed 's/^/| /' conftest.$ac_ext >&5
39980 glibcxx_cv_func_sqrtf_use=no
39982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39983 ac_ext=c
39984 ac_cpp='$CPP $CPPFLAGS'
39985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39993 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39994 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39996 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39998 for ac_func in sqrtf
40000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40001 echo "$as_me:$LINENO: checking for $ac_func" >&5
40002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40003 if eval "test \"\${$as_ac_var+set}\" = set"; then
40004 echo $ECHO_N "(cached) $ECHO_C" >&6
40005 else
40006 if test x$gcc_no_link = xyes; then
40007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40008 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40009 { (exit 1); exit 1; }; }
40011 cat >conftest.$ac_ext <<_ACEOF
40012 /* confdefs.h. */
40013 _ACEOF
40014 cat confdefs.h >>conftest.$ac_ext
40015 cat >>conftest.$ac_ext <<_ACEOF
40016 /* end confdefs.h. */
40017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40019 #define $ac_func innocuous_$ac_func
40021 /* System header to define __stub macros and hopefully few prototypes,
40022 which can conflict with char $ac_func (); below.
40023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40024 <limits.h> exists even on freestanding compilers. */
40026 #ifdef __STDC__
40027 # include <limits.h>
40028 #else
40029 # include <assert.h>
40030 #endif
40032 #undef $ac_func
40034 /* Override any gcc2 internal prototype to avoid an error. */
40035 #ifdef __cplusplus
40036 extern "C"
40038 #endif
40039 /* We use char because int might match the return type of a gcc2
40040 builtin and then its argument prototype would still apply. */
40041 char $ac_func ();
40042 /* The GNU C library defines this for functions which it implements
40043 to always fail with ENOSYS. Some functions are actually named
40044 something starting with __ and the normal name is an alias. */
40045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40046 choke me
40047 #else
40048 char (*f) () = $ac_func;
40049 #endif
40050 #ifdef __cplusplus
40052 #endif
40055 main ()
40057 return f != $ac_func;
40059 return 0;
40061 _ACEOF
40062 rm -f conftest.$ac_objext conftest$ac_exeext
40063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40064 (eval $ac_link) 2>conftest.er1
40065 ac_status=$?
40066 grep -v '^ *+' conftest.er1 >conftest.err
40067 rm -f conftest.er1
40068 cat conftest.err >&5
40069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070 (exit $ac_status); } &&
40071 { ac_try='test -z "$ac_c_werror_flag"
40072 || test ! -s conftest.err'
40073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40074 (eval $ac_try) 2>&5
40075 ac_status=$?
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); }; } &&
40078 { ac_try='test -s conftest$ac_exeext'
40079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40080 (eval $ac_try) 2>&5
40081 ac_status=$?
40082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083 (exit $ac_status); }; }; then
40084 eval "$as_ac_var=yes"
40085 else
40086 echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40089 eval "$as_ac_var=no"
40091 rm -f conftest.err conftest.$ac_objext \
40092 conftest$ac_exeext conftest.$ac_ext
40094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40096 if test `eval echo '${'$as_ac_var'}'` = yes; then
40097 cat >>confdefs.h <<_ACEOF
40098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40099 _ACEOF
40102 done
40104 else
40106 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
40107 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
40108 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
40109 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
40110 echo $ECHO_N "(cached) $ECHO_C" >&6
40111 else
40115 ac_ext=cc
40116 ac_cpp='$CXXCPP $CPPFLAGS'
40117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40121 cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h. */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40127 #include <math.h>
40128 #ifdef HAVE_IEEEFP_H
40129 #include <ieeefp.h>
40130 #endif
40133 main ()
40135 _sqrtf(0);
40137 return 0;
40139 _ACEOF
40140 rm -f conftest.$ac_objext
40141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40142 (eval $ac_compile) 2>conftest.er1
40143 ac_status=$?
40144 grep -v '^ *+' conftest.er1 >conftest.err
40145 rm -f conftest.er1
40146 cat conftest.err >&5
40147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148 (exit $ac_status); } &&
40149 { ac_try='test -z "$ac_cxx_werror_flag"
40150 || test ! -s conftest.err'
40151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40152 (eval $ac_try) 2>&5
40153 ac_status=$?
40154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); }; } &&
40156 { ac_try='test -s conftest.$ac_objext'
40157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40158 (eval $ac_try) 2>&5
40159 ac_status=$?
40160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40161 (exit $ac_status); }; }; then
40162 glibcxx_cv_func__sqrtf_use=yes
40163 else
40164 echo "$as_me: failed program was:" >&5
40165 sed 's/^/| /' conftest.$ac_ext >&5
40167 glibcxx_cv_func__sqrtf_use=no
40169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40170 ac_ext=c
40171 ac_cpp='$CPP $CPPFLAGS'
40172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40180 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40181 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40183 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40185 for ac_func in _sqrtf
40187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40188 echo "$as_me:$LINENO: checking for $ac_func" >&5
40189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40190 if eval "test \"\${$as_ac_var+set}\" = set"; then
40191 echo $ECHO_N "(cached) $ECHO_C" >&6
40192 else
40193 if test x$gcc_no_link = xyes; then
40194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40196 { (exit 1); exit 1; }; }
40198 cat >conftest.$ac_ext <<_ACEOF
40199 /* confdefs.h. */
40200 _ACEOF
40201 cat confdefs.h >>conftest.$ac_ext
40202 cat >>conftest.$ac_ext <<_ACEOF
40203 /* end confdefs.h. */
40204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40206 #define $ac_func innocuous_$ac_func
40208 /* System header to define __stub macros and hopefully few prototypes,
40209 which can conflict with char $ac_func (); below.
40210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40211 <limits.h> exists even on freestanding compilers. */
40213 #ifdef __STDC__
40214 # include <limits.h>
40215 #else
40216 # include <assert.h>
40217 #endif
40219 #undef $ac_func
40221 /* Override any gcc2 internal prototype to avoid an error. */
40222 #ifdef __cplusplus
40223 extern "C"
40225 #endif
40226 /* We use char because int might match the return type of a gcc2
40227 builtin and then its argument prototype would still apply. */
40228 char $ac_func ();
40229 /* The GNU C library defines this for functions which it implements
40230 to always fail with ENOSYS. Some functions are actually named
40231 something starting with __ and the normal name is an alias. */
40232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40233 choke me
40234 #else
40235 char (*f) () = $ac_func;
40236 #endif
40237 #ifdef __cplusplus
40239 #endif
40242 main ()
40244 return f != $ac_func;
40246 return 0;
40248 _ACEOF
40249 rm -f conftest.$ac_objext conftest$ac_exeext
40250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40251 (eval $ac_link) 2>conftest.er1
40252 ac_status=$?
40253 grep -v '^ *+' conftest.er1 >conftest.err
40254 rm -f conftest.er1
40255 cat conftest.err >&5
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); } &&
40258 { ac_try='test -z "$ac_c_werror_flag"
40259 || test ! -s conftest.err'
40260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40261 (eval $ac_try) 2>&5
40262 ac_status=$?
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; } &&
40265 { ac_try='test -s conftest$ac_exeext'
40266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40267 (eval $ac_try) 2>&5
40268 ac_status=$?
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); }; }; then
40271 eval "$as_ac_var=yes"
40272 else
40273 echo "$as_me: failed program was:" >&5
40274 sed 's/^/| /' conftest.$ac_ext >&5
40276 eval "$as_ac_var=no"
40278 rm -f conftest.err conftest.$ac_objext \
40279 conftest$ac_exeext conftest.$ac_ext
40281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40283 if test `eval echo '${'$as_ac_var'}'` = yes; then
40284 cat >>confdefs.h <<_ACEOF
40285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40286 _ACEOF
40289 done
40296 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40297 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40298 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40299 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40300 echo $ECHO_N "(cached) $ECHO_C" >&6
40301 else
40305 ac_ext=cc
40306 ac_cpp='$CXXCPP $CPPFLAGS'
40307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40311 cat >conftest.$ac_ext <<_ACEOF
40312 /* confdefs.h. */
40313 _ACEOF
40314 cat confdefs.h >>conftest.$ac_ext
40315 cat >>conftest.$ac_ext <<_ACEOF
40316 /* end confdefs.h. */
40317 #include <math.h>
40319 main ()
40321 sincosf(0, 0, 0);
40323 return 0;
40325 _ACEOF
40326 rm -f conftest.$ac_objext
40327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40328 (eval $ac_compile) 2>conftest.er1
40329 ac_status=$?
40330 grep -v '^ *+' conftest.er1 >conftest.err
40331 rm -f conftest.er1
40332 cat conftest.err >&5
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); } &&
40335 { ac_try='test -z "$ac_cxx_werror_flag"
40336 || test ! -s conftest.err'
40337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40338 (eval $ac_try) 2>&5
40339 ac_status=$?
40340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341 (exit $ac_status); }; } &&
40342 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
40348 glibcxx_cv_func_sincosf_use=yes
40349 else
40350 echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40353 glibcxx_cv_func_sincosf_use=no
40355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40356 ac_ext=c
40357 ac_cpp='$CPP $CPPFLAGS'
40358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40366 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40367 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40369 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40371 for ac_func in sincosf
40373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40374 echo "$as_me:$LINENO: checking for $ac_func" >&5
40375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40376 if eval "test \"\${$as_ac_var+set}\" = set"; then
40377 echo $ECHO_N "(cached) $ECHO_C" >&6
40378 else
40379 if test x$gcc_no_link = xyes; then
40380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40382 { (exit 1); exit 1; }; }
40384 cat >conftest.$ac_ext <<_ACEOF
40385 /* confdefs.h. */
40386 _ACEOF
40387 cat confdefs.h >>conftest.$ac_ext
40388 cat >>conftest.$ac_ext <<_ACEOF
40389 /* end confdefs.h. */
40390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40392 #define $ac_func innocuous_$ac_func
40394 /* System header to define __stub macros and hopefully few prototypes,
40395 which can conflict with char $ac_func (); below.
40396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40397 <limits.h> exists even on freestanding compilers. */
40399 #ifdef __STDC__
40400 # include <limits.h>
40401 #else
40402 # include <assert.h>
40403 #endif
40405 #undef $ac_func
40407 /* Override any gcc2 internal prototype to avoid an error. */
40408 #ifdef __cplusplus
40409 extern "C"
40411 #endif
40412 /* We use char because int might match the return type of a gcc2
40413 builtin and then its argument prototype would still apply. */
40414 char $ac_func ();
40415 /* The GNU C library defines this for functions which it implements
40416 to always fail with ENOSYS. Some functions are actually named
40417 something starting with __ and the normal name is an alias. */
40418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40419 choke me
40420 #else
40421 char (*f) () = $ac_func;
40422 #endif
40423 #ifdef __cplusplus
40425 #endif
40428 main ()
40430 return f != $ac_func;
40432 return 0;
40434 _ACEOF
40435 rm -f conftest.$ac_objext conftest$ac_exeext
40436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40437 (eval $ac_link) 2>conftest.er1
40438 ac_status=$?
40439 grep -v '^ *+' conftest.er1 >conftest.err
40440 rm -f conftest.er1
40441 cat conftest.err >&5
40442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40443 (exit $ac_status); } &&
40444 { ac_try='test -z "$ac_c_werror_flag"
40445 || test ! -s conftest.err'
40446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40447 (eval $ac_try) 2>&5
40448 ac_status=$?
40449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450 (exit $ac_status); }; } &&
40451 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40457 eval "$as_ac_var=yes"
40458 else
40459 echo "$as_me: failed program was:" >&5
40460 sed 's/^/| /' conftest.$ac_ext >&5
40462 eval "$as_ac_var=no"
40464 rm -f conftest.err conftest.$ac_objext \
40465 conftest$ac_exeext conftest.$ac_ext
40467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40469 if test `eval echo '${'$as_ac_var'}'` = yes; then
40470 cat >>confdefs.h <<_ACEOF
40471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40472 _ACEOF
40475 done
40477 else
40479 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40480 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40481 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40482 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40483 echo $ECHO_N "(cached) $ECHO_C" >&6
40484 else
40488 ac_ext=cc
40489 ac_cpp='$CXXCPP $CPPFLAGS'
40490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40494 cat >conftest.$ac_ext <<_ACEOF
40495 /* confdefs.h. */
40496 _ACEOF
40497 cat confdefs.h >>conftest.$ac_ext
40498 cat >>conftest.$ac_ext <<_ACEOF
40499 /* end confdefs.h. */
40500 #include <math.h>
40502 main ()
40504 _sincosf(0, 0, 0);
40506 return 0;
40508 _ACEOF
40509 rm -f conftest.$ac_objext
40510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40511 (eval $ac_compile) 2>conftest.er1
40512 ac_status=$?
40513 grep -v '^ *+' conftest.er1 >conftest.err
40514 rm -f conftest.er1
40515 cat conftest.err >&5
40516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517 (exit $ac_status); } &&
40518 { ac_try='test -z "$ac_cxx_werror_flag"
40519 || test ! -s conftest.err'
40520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40521 (eval $ac_try) 2>&5
40522 ac_status=$?
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); }; } &&
40525 { ac_try='test -s conftest.$ac_objext'
40526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527 (eval $ac_try) 2>&5
40528 ac_status=$?
40529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); }; }; then
40531 glibcxx_cv_func__sincosf_use=yes
40532 else
40533 echo "$as_me: failed program was:" >&5
40534 sed 's/^/| /' conftest.$ac_ext >&5
40536 glibcxx_cv_func__sincosf_use=no
40538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40539 ac_ext=c
40540 ac_cpp='$CPP $CPPFLAGS'
40541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40549 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40550 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40552 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40554 for ac_func in _sincosf
40556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40557 echo "$as_me:$LINENO: checking for $ac_func" >&5
40558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40559 if eval "test \"\${$as_ac_var+set}\" = set"; then
40560 echo $ECHO_N "(cached) $ECHO_C" >&6
40561 else
40562 if test x$gcc_no_link = xyes; then
40563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40565 { (exit 1); exit 1; }; }
40567 cat >conftest.$ac_ext <<_ACEOF
40568 /* confdefs.h. */
40569 _ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h. */
40573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40575 #define $ac_func innocuous_$ac_func
40577 /* System header to define __stub macros and hopefully few prototypes,
40578 which can conflict with char $ac_func (); below.
40579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40580 <limits.h> exists even on freestanding compilers. */
40582 #ifdef __STDC__
40583 # include <limits.h>
40584 #else
40585 # include <assert.h>
40586 #endif
40588 #undef $ac_func
40590 /* Override any gcc2 internal prototype to avoid an error. */
40591 #ifdef __cplusplus
40592 extern "C"
40594 #endif
40595 /* We use char because int might match the return type of a gcc2
40596 builtin and then its argument prototype would still apply. */
40597 char $ac_func ();
40598 /* The GNU C library defines this for functions which it implements
40599 to always fail with ENOSYS. Some functions are actually named
40600 something starting with __ and the normal name is an alias. */
40601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40602 choke me
40603 #else
40604 char (*f) () = $ac_func;
40605 #endif
40606 #ifdef __cplusplus
40608 #endif
40611 main ()
40613 return f != $ac_func;
40615 return 0;
40617 _ACEOF
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40620 (eval $ac_link) 2>conftest.er1
40621 ac_status=$?
40622 grep -v '^ *+' conftest.er1 >conftest.err
40623 rm -f conftest.er1
40624 cat conftest.err >&5
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); } &&
40627 { ac_try='test -z "$ac_c_werror_flag"
40628 || test ! -s conftest.err'
40629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630 (eval $ac_try) 2>&5
40631 ac_status=$?
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); }; } &&
40634 { ac_try='test -s conftest$ac_exeext'
40635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636 (eval $ac_try) 2>&5
40637 ac_status=$?
40638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639 (exit $ac_status); }; }; then
40640 eval "$as_ac_var=yes"
40641 else
40642 echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40645 eval "$as_ac_var=no"
40647 rm -f conftest.err conftest.$ac_objext \
40648 conftest$ac_exeext conftest.$ac_ext
40650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40652 if test `eval echo '${'$as_ac_var'}'` = yes; then
40653 cat >>confdefs.h <<_ACEOF
40654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40655 _ACEOF
40658 done
40665 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40666 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40667 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40668 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40669 echo $ECHO_N "(cached) $ECHO_C" >&6
40670 else
40674 ac_ext=cc
40675 ac_cpp='$CXXCPP $CPPFLAGS'
40676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40680 cat >conftest.$ac_ext <<_ACEOF
40681 /* confdefs.h. */
40682 _ACEOF
40683 cat confdefs.h >>conftest.$ac_ext
40684 cat >>conftest.$ac_ext <<_ACEOF
40685 /* end confdefs.h. */
40686 #include <math.h>
40687 #ifdef HAVE_IEEEFP_H
40688 #include <ieeefp.h>
40689 #endif
40692 main ()
40694 finitef(0);
40696 return 0;
40698 _ACEOF
40699 rm -f conftest.$ac_objext
40700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40701 (eval $ac_compile) 2>conftest.er1
40702 ac_status=$?
40703 grep -v '^ *+' conftest.er1 >conftest.err
40704 rm -f conftest.er1
40705 cat conftest.err >&5
40706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707 (exit $ac_status); } &&
40708 { ac_try='test -z "$ac_cxx_werror_flag"
40709 || test ! -s conftest.err'
40710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40711 (eval $ac_try) 2>&5
40712 ac_status=$?
40713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714 (exit $ac_status); }; } &&
40715 { ac_try='test -s conftest.$ac_objext'
40716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717 (eval $ac_try) 2>&5
40718 ac_status=$?
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); }; }; then
40721 glibcxx_cv_func_finitef_use=yes
40722 else
40723 echo "$as_me: failed program was:" >&5
40724 sed 's/^/| /' conftest.$ac_ext >&5
40726 glibcxx_cv_func_finitef_use=no
40728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40729 ac_ext=c
40730 ac_cpp='$CPP $CPPFLAGS'
40731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40739 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40740 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40742 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40744 for ac_func in finitef
40746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40747 echo "$as_me:$LINENO: checking for $ac_func" >&5
40748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40749 if eval "test \"\${$as_ac_var+set}\" = set"; then
40750 echo $ECHO_N "(cached) $ECHO_C" >&6
40751 else
40752 if test x$gcc_no_link = xyes; then
40753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40755 { (exit 1); exit 1; }; }
40757 cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h. */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h. */
40763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40765 #define $ac_func innocuous_$ac_func
40767 /* System header to define __stub macros and hopefully few prototypes,
40768 which can conflict with char $ac_func (); below.
40769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40770 <limits.h> exists even on freestanding compilers. */
40772 #ifdef __STDC__
40773 # include <limits.h>
40774 #else
40775 # include <assert.h>
40776 #endif
40778 #undef $ac_func
40780 /* Override any gcc2 internal prototype to avoid an error. */
40781 #ifdef __cplusplus
40782 extern "C"
40784 #endif
40785 /* We use char because int might match the return type of a gcc2
40786 builtin and then its argument prototype would still apply. */
40787 char $ac_func ();
40788 /* The GNU C library defines this for functions which it implements
40789 to always fail with ENOSYS. Some functions are actually named
40790 something starting with __ and the normal name is an alias. */
40791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40792 choke me
40793 #else
40794 char (*f) () = $ac_func;
40795 #endif
40796 #ifdef __cplusplus
40798 #endif
40801 main ()
40803 return f != $ac_func;
40805 return 0;
40807 _ACEOF
40808 rm -f conftest.$ac_objext conftest$ac_exeext
40809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40810 (eval $ac_link) 2>conftest.er1
40811 ac_status=$?
40812 grep -v '^ *+' conftest.er1 >conftest.err
40813 rm -f conftest.er1
40814 cat conftest.err >&5
40815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816 (exit $ac_status); } &&
40817 { ac_try='test -z "$ac_c_werror_flag"
40818 || test ! -s conftest.err'
40819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 (eval $ac_try) 2>&5
40821 ac_status=$?
40822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 (exit $ac_status); }; } &&
40824 { ac_try='test -s conftest$ac_exeext'
40825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40826 (eval $ac_try) 2>&5
40827 ac_status=$?
40828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 (exit $ac_status); }; }; then
40830 eval "$as_ac_var=yes"
40831 else
40832 echo "$as_me: failed program was:" >&5
40833 sed 's/^/| /' conftest.$ac_ext >&5
40835 eval "$as_ac_var=no"
40837 rm -f conftest.err conftest.$ac_objext \
40838 conftest$ac_exeext conftest.$ac_ext
40840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40842 if test `eval echo '${'$as_ac_var'}'` = yes; then
40843 cat >>confdefs.h <<_ACEOF
40844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40845 _ACEOF
40848 done
40850 else
40852 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40853 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40854 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40855 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40856 echo $ECHO_N "(cached) $ECHO_C" >&6
40857 else
40861 ac_ext=cc
40862 ac_cpp='$CXXCPP $CPPFLAGS'
40863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40867 cat >conftest.$ac_ext <<_ACEOF
40868 /* confdefs.h. */
40869 _ACEOF
40870 cat confdefs.h >>conftest.$ac_ext
40871 cat >>conftest.$ac_ext <<_ACEOF
40872 /* end confdefs.h. */
40873 #include <math.h>
40874 #ifdef HAVE_IEEEFP_H
40875 #include <ieeefp.h>
40876 #endif
40879 main ()
40881 _finitef(0);
40883 return 0;
40885 _ACEOF
40886 rm -f conftest.$ac_objext
40887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40888 (eval $ac_compile) 2>conftest.er1
40889 ac_status=$?
40890 grep -v '^ *+' conftest.er1 >conftest.err
40891 rm -f conftest.er1
40892 cat conftest.err >&5
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); } &&
40895 { ac_try='test -z "$ac_cxx_werror_flag"
40896 || test ! -s conftest.err'
40897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40898 (eval $ac_try) 2>&5
40899 ac_status=$?
40900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40901 (exit $ac_status); }; } &&
40902 { ac_try='test -s conftest.$ac_objext'
40903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904 (eval $ac_try) 2>&5
40905 ac_status=$?
40906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907 (exit $ac_status); }; }; then
40908 glibcxx_cv_func__finitef_use=yes
40909 else
40910 echo "$as_me: failed program was:" >&5
40911 sed 's/^/| /' conftest.$ac_ext >&5
40913 glibcxx_cv_func__finitef_use=no
40915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40916 ac_ext=c
40917 ac_cpp='$CPP $CPPFLAGS'
40918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40926 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40927 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40929 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40931 for ac_func in _finitef
40933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40934 echo "$as_me:$LINENO: checking for $ac_func" >&5
40935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40936 if eval "test \"\${$as_ac_var+set}\" = set"; then
40937 echo $ECHO_N "(cached) $ECHO_C" >&6
40938 else
40939 if test x$gcc_no_link = xyes; then
40940 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40942 { (exit 1); exit 1; }; }
40944 cat >conftest.$ac_ext <<_ACEOF
40945 /* confdefs.h. */
40946 _ACEOF
40947 cat confdefs.h >>conftest.$ac_ext
40948 cat >>conftest.$ac_ext <<_ACEOF
40949 /* end confdefs.h. */
40950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40952 #define $ac_func innocuous_$ac_func
40954 /* System header to define __stub macros and hopefully few prototypes,
40955 which can conflict with char $ac_func (); below.
40956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40957 <limits.h> exists even on freestanding compilers. */
40959 #ifdef __STDC__
40960 # include <limits.h>
40961 #else
40962 # include <assert.h>
40963 #endif
40965 #undef $ac_func
40967 /* Override any gcc2 internal prototype to avoid an error. */
40968 #ifdef __cplusplus
40969 extern "C"
40971 #endif
40972 /* We use char because int might match the return type of a gcc2
40973 builtin and then its argument prototype would still apply. */
40974 char $ac_func ();
40975 /* The GNU C library defines this for functions which it implements
40976 to always fail with ENOSYS. Some functions are actually named
40977 something starting with __ and the normal name is an alias. */
40978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40979 choke me
40980 #else
40981 char (*f) () = $ac_func;
40982 #endif
40983 #ifdef __cplusplus
40985 #endif
40988 main ()
40990 return f != $ac_func;
40992 return 0;
40994 _ACEOF
40995 rm -f conftest.$ac_objext conftest$ac_exeext
40996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40997 (eval $ac_link) 2>conftest.er1
40998 ac_status=$?
40999 grep -v '^ *+' conftest.er1 >conftest.err
41000 rm -f conftest.er1
41001 cat conftest.err >&5
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); } &&
41004 { ac_try='test -z "$ac_c_werror_flag"
41005 || test ! -s conftest.err'
41006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41007 (eval $ac_try) 2>&5
41008 ac_status=$?
41009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41010 (exit $ac_status); }; } &&
41011 { ac_try='test -s conftest$ac_exeext'
41012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013 (eval $ac_try) 2>&5
41014 ac_status=$?
41015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016 (exit $ac_status); }; }; then
41017 eval "$as_ac_var=yes"
41018 else
41019 echo "$as_me: failed program was:" >&5
41020 sed 's/^/| /' conftest.$ac_ext >&5
41022 eval "$as_ac_var=no"
41024 rm -f conftest.err conftest.$ac_objext \
41025 conftest$ac_exeext conftest.$ac_ext
41027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41029 if test `eval echo '${'$as_ac_var'}'` = yes; then
41030 cat >>confdefs.h <<_ACEOF
41031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41032 _ACEOF
41035 done
41042 echo "$as_me:$LINENO: checking for long double trig functions" >&5
41043 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
41044 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
41045 echo $ECHO_N "(cached) $ECHO_C" >&6
41046 else
41050 ac_ext=cc
41051 ac_cpp='$CXXCPP $CPPFLAGS'
41052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41056 cat >conftest.$ac_ext <<_ACEOF
41057 /* confdefs.h. */
41058 _ACEOF
41059 cat confdefs.h >>conftest.$ac_ext
41060 cat >>conftest.$ac_ext <<_ACEOF
41061 /* end confdefs.h. */
41062 #include <math.h>
41064 main ()
41066 `for x in acosl asinl atanl \
41067 cosl sinl tanl \
41068 coshl sinhl tanhl; do echo "$x (0);"; done`
41070 return 0;
41072 _ACEOF
41073 rm -f conftest.$ac_objext
41074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41075 (eval $ac_compile) 2>conftest.er1
41076 ac_status=$?
41077 grep -v '^ *+' conftest.er1 >conftest.err
41078 rm -f conftest.er1
41079 cat conftest.err >&5
41080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081 (exit $ac_status); } &&
41082 { ac_try='test -z "$ac_cxx_werror_flag"
41083 || test ! -s conftest.err'
41084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41085 (eval $ac_try) 2>&5
41086 ac_status=$?
41087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088 (exit $ac_status); }; } &&
41089 { ac_try='test -s conftest.$ac_objext'
41090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41091 (eval $ac_try) 2>&5
41092 ac_status=$?
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); }; }; then
41095 glibcxx_cv_func_long_double_trig_use=yes
41096 else
41097 echo "$as_me: failed program was:" >&5
41098 sed 's/^/| /' conftest.$ac_ext >&5
41100 glibcxx_cv_func_long_double_trig_use=no
41102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41103 ac_ext=c
41104 ac_cpp='$CPP $CPPFLAGS'
41105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41111 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
41112 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
41113 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
41123 for ac_func in acosl asinl atanl \
41124 cosl sinl tanl \
41125 coshl sinhl tanhl
41127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41128 echo "$as_me:$LINENO: checking for $ac_func" >&5
41129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41130 if eval "test \"\${$as_ac_var+set}\" = set"; then
41131 echo $ECHO_N "(cached) $ECHO_C" >&6
41132 else
41133 if test x$gcc_no_link = xyes; then
41134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41136 { (exit 1); exit 1; }; }
41138 cat >conftest.$ac_ext <<_ACEOF
41139 /* confdefs.h. */
41140 _ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h. */
41144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41146 #define $ac_func innocuous_$ac_func
41148 /* System header to define __stub macros and hopefully few prototypes,
41149 which can conflict with char $ac_func (); below.
41150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41151 <limits.h> exists even on freestanding compilers. */
41153 #ifdef __STDC__
41154 # include <limits.h>
41155 #else
41156 # include <assert.h>
41157 #endif
41159 #undef $ac_func
41161 /* Override any gcc2 internal prototype to avoid an error. */
41162 #ifdef __cplusplus
41163 extern "C"
41165 #endif
41166 /* We use char because int might match the return type of a gcc2
41167 builtin and then its argument prototype would still apply. */
41168 char $ac_func ();
41169 /* The GNU C library defines this for functions which it implements
41170 to always fail with ENOSYS. Some functions are actually named
41171 something starting with __ and the normal name is an alias. */
41172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41173 choke me
41174 #else
41175 char (*f) () = $ac_func;
41176 #endif
41177 #ifdef __cplusplus
41179 #endif
41182 main ()
41184 return f != $ac_func;
41186 return 0;
41188 _ACEOF
41189 rm -f conftest.$ac_objext conftest$ac_exeext
41190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41191 (eval $ac_link) 2>conftest.er1
41192 ac_status=$?
41193 grep -v '^ *+' conftest.er1 >conftest.err
41194 rm -f conftest.er1
41195 cat conftest.err >&5
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); } &&
41198 { ac_try='test -z "$ac_c_werror_flag"
41199 || test ! -s conftest.err'
41200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41201 (eval $ac_try) 2>&5
41202 ac_status=$?
41203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41204 (exit $ac_status); }; } &&
41205 { ac_try='test -s conftest$ac_exeext'
41206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41207 (eval $ac_try) 2>&5
41208 ac_status=$?
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); }; }; then
41211 eval "$as_ac_var=yes"
41212 else
41213 echo "$as_me: failed program was:" >&5
41214 sed 's/^/| /' conftest.$ac_ext >&5
41216 eval "$as_ac_var=no"
41218 rm -f conftest.err conftest.$ac_objext \
41219 conftest$ac_exeext conftest.$ac_ext
41221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41223 if test `eval echo '${'$as_ac_var'}'` = yes; then
41224 cat >>confdefs.h <<_ACEOF
41225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41226 _ACEOF
41229 done
41234 echo "$as_me:$LINENO: checking for long double round functions" >&5
41235 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41236 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41237 echo $ECHO_N "(cached) $ECHO_C" >&6
41238 else
41242 ac_ext=cc
41243 ac_cpp='$CXXCPP $CPPFLAGS'
41244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41248 cat >conftest.$ac_ext <<_ACEOF
41249 /* confdefs.h. */
41250 _ACEOF
41251 cat confdefs.h >>conftest.$ac_ext
41252 cat >>conftest.$ac_ext <<_ACEOF
41253 /* end confdefs.h. */
41254 #include <math.h>
41256 main ()
41258 `for x in ceill floorl; do echo "$x (0);"; done`
41260 return 0;
41262 _ACEOF
41263 rm -f conftest.$ac_objext
41264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41265 (eval $ac_compile) 2>conftest.er1
41266 ac_status=$?
41267 grep -v '^ *+' conftest.er1 >conftest.err
41268 rm -f conftest.er1
41269 cat conftest.err >&5
41270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271 (exit $ac_status); } &&
41272 { ac_try='test -z "$ac_cxx_werror_flag"
41273 || test ! -s conftest.err'
41274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41275 (eval $ac_try) 2>&5
41276 ac_status=$?
41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); }; } &&
41279 { ac_try='test -s conftest.$ac_objext'
41280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41281 (eval $ac_try) 2>&5
41282 ac_status=$?
41283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284 (exit $ac_status); }; }; then
41285 glibcxx_cv_func_long_double_round_use=yes
41286 else
41287 echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41290 glibcxx_cv_func_long_double_round_use=no
41292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41293 ac_ext=c
41294 ac_cpp='$CPP $CPPFLAGS'
41295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41301 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41302 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41303 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41306 for ac_func in ceill floorl
41308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41309 echo "$as_me:$LINENO: checking for $ac_func" >&5
41310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41311 if eval "test \"\${$as_ac_var+set}\" = set"; then
41312 echo $ECHO_N "(cached) $ECHO_C" >&6
41313 else
41314 if test x$gcc_no_link = xyes; then
41315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41317 { (exit 1); exit 1; }; }
41319 cat >conftest.$ac_ext <<_ACEOF
41320 /* confdefs.h. */
41321 _ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h. */
41325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41327 #define $ac_func innocuous_$ac_func
41329 /* System header to define __stub macros and hopefully few prototypes,
41330 which can conflict with char $ac_func (); below.
41331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41332 <limits.h> exists even on freestanding compilers. */
41334 #ifdef __STDC__
41335 # include <limits.h>
41336 #else
41337 # include <assert.h>
41338 #endif
41340 #undef $ac_func
41342 /* Override any gcc2 internal prototype to avoid an error. */
41343 #ifdef __cplusplus
41344 extern "C"
41346 #endif
41347 /* We use char because int might match the return type of a gcc2
41348 builtin and then its argument prototype would still apply. */
41349 char $ac_func ();
41350 /* The GNU C library defines this for functions which it implements
41351 to always fail with ENOSYS. Some functions are actually named
41352 something starting with __ and the normal name is an alias. */
41353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41354 choke me
41355 #else
41356 char (*f) () = $ac_func;
41357 #endif
41358 #ifdef __cplusplus
41360 #endif
41363 main ()
41365 return f != $ac_func;
41367 return 0;
41369 _ACEOF
41370 rm -f conftest.$ac_objext conftest$ac_exeext
41371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41372 (eval $ac_link) 2>conftest.er1
41373 ac_status=$?
41374 grep -v '^ *+' conftest.er1 >conftest.err
41375 rm -f conftest.er1
41376 cat conftest.err >&5
41377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41378 (exit $ac_status); } &&
41379 { ac_try='test -z "$ac_c_werror_flag"
41380 || test ! -s conftest.err'
41381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41382 (eval $ac_try) 2>&5
41383 ac_status=$?
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); }; } &&
41386 { ac_try='test -s conftest$ac_exeext'
41387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41388 (eval $ac_try) 2>&5
41389 ac_status=$?
41390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391 (exit $ac_status); }; }; then
41392 eval "$as_ac_var=yes"
41393 else
41394 echo "$as_me: failed program was:" >&5
41395 sed 's/^/| /' conftest.$ac_ext >&5
41397 eval "$as_ac_var=no"
41399 rm -f conftest.err conftest.$ac_objext \
41400 conftest$ac_exeext conftest.$ac_ext
41402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41404 if test `eval echo '${'$as_ac_var'}'` = yes; then
41405 cat >>confdefs.h <<_ACEOF
41406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41407 _ACEOF
41410 done
41416 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41417 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41418 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41419 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41420 echo $ECHO_N "(cached) $ECHO_C" >&6
41421 else
41425 ac_ext=cc
41426 ac_cpp='$CXXCPP $CPPFLAGS'
41427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41431 cat >conftest.$ac_ext <<_ACEOF
41432 /* confdefs.h. */
41433 _ACEOF
41434 cat confdefs.h >>conftest.$ac_ext
41435 cat >>conftest.$ac_ext <<_ACEOF
41436 /* end confdefs.h. */
41437 #include <math.h>
41438 #ifdef HAVE_IEEEFP_H
41439 #include <ieeefp.h>
41440 #endif
41443 main ()
41445 isnanl(0);
41447 return 0;
41449 _ACEOF
41450 rm -f conftest.$ac_objext
41451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41452 (eval $ac_compile) 2>conftest.er1
41453 ac_status=$?
41454 grep -v '^ *+' conftest.er1 >conftest.err
41455 rm -f conftest.er1
41456 cat conftest.err >&5
41457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458 (exit $ac_status); } &&
41459 { ac_try='test -z "$ac_cxx_werror_flag"
41460 || test ! -s conftest.err'
41461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41462 (eval $ac_try) 2>&5
41463 ac_status=$?
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); }; } &&
41466 { ac_try='test -s conftest.$ac_objext'
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41469 ac_status=$?
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; }; then
41472 glibcxx_cv_func_isnanl_use=yes
41473 else
41474 echo "$as_me: failed program was:" >&5
41475 sed 's/^/| /' conftest.$ac_ext >&5
41477 glibcxx_cv_func_isnanl_use=no
41479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41480 ac_ext=c
41481 ac_cpp='$CPP $CPPFLAGS'
41482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41490 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41491 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41493 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41495 for ac_func in isnanl
41497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41498 echo "$as_me:$LINENO: checking for $ac_func" >&5
41499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41500 if eval "test \"\${$as_ac_var+set}\" = set"; then
41501 echo $ECHO_N "(cached) $ECHO_C" >&6
41502 else
41503 if test x$gcc_no_link = xyes; then
41504 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41506 { (exit 1); exit 1; }; }
41508 cat >conftest.$ac_ext <<_ACEOF
41509 /* confdefs.h. */
41510 _ACEOF
41511 cat confdefs.h >>conftest.$ac_ext
41512 cat >>conftest.$ac_ext <<_ACEOF
41513 /* end confdefs.h. */
41514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41516 #define $ac_func innocuous_$ac_func
41518 /* System header to define __stub macros and hopefully few prototypes,
41519 which can conflict with char $ac_func (); below.
41520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41521 <limits.h> exists even on freestanding compilers. */
41523 #ifdef __STDC__
41524 # include <limits.h>
41525 #else
41526 # include <assert.h>
41527 #endif
41529 #undef $ac_func
41531 /* Override any gcc2 internal prototype to avoid an error. */
41532 #ifdef __cplusplus
41533 extern "C"
41535 #endif
41536 /* We use char because int might match the return type of a gcc2
41537 builtin and then its argument prototype would still apply. */
41538 char $ac_func ();
41539 /* The GNU C library defines this for functions which it implements
41540 to always fail with ENOSYS. Some functions are actually named
41541 something starting with __ and the normal name is an alias. */
41542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41543 choke me
41544 #else
41545 char (*f) () = $ac_func;
41546 #endif
41547 #ifdef __cplusplus
41549 #endif
41552 main ()
41554 return f != $ac_func;
41556 return 0;
41558 _ACEOF
41559 rm -f conftest.$ac_objext conftest$ac_exeext
41560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41561 (eval $ac_link) 2>conftest.er1
41562 ac_status=$?
41563 grep -v '^ *+' conftest.er1 >conftest.err
41564 rm -f conftest.er1
41565 cat conftest.err >&5
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); } &&
41568 { ac_try='test -z "$ac_c_werror_flag"
41569 || test ! -s conftest.err'
41570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41571 (eval $ac_try) 2>&5
41572 ac_status=$?
41573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574 (exit $ac_status); }; } &&
41575 { ac_try='test -s conftest$ac_exeext'
41576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577 (eval $ac_try) 2>&5
41578 ac_status=$?
41579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); }; }; then
41581 eval "$as_ac_var=yes"
41582 else
41583 echo "$as_me: failed program was:" >&5
41584 sed 's/^/| /' conftest.$ac_ext >&5
41586 eval "$as_ac_var=no"
41588 rm -f conftest.err conftest.$ac_objext \
41589 conftest$ac_exeext conftest.$ac_ext
41591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41593 if test `eval echo '${'$as_ac_var'}'` = yes; then
41594 cat >>confdefs.h <<_ACEOF
41595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41596 _ACEOF
41599 done
41601 else
41603 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41604 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41605 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41606 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41607 echo $ECHO_N "(cached) $ECHO_C" >&6
41608 else
41612 ac_ext=cc
41613 ac_cpp='$CXXCPP $CPPFLAGS'
41614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41618 cat >conftest.$ac_ext <<_ACEOF
41619 /* confdefs.h. */
41620 _ACEOF
41621 cat confdefs.h >>conftest.$ac_ext
41622 cat >>conftest.$ac_ext <<_ACEOF
41623 /* end confdefs.h. */
41624 #include <math.h>
41625 #ifdef HAVE_IEEEFP_H
41626 #include <ieeefp.h>
41627 #endif
41630 main ()
41632 _isnanl(0);
41634 return 0;
41636 _ACEOF
41637 rm -f conftest.$ac_objext
41638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41639 (eval $ac_compile) 2>conftest.er1
41640 ac_status=$?
41641 grep -v '^ *+' conftest.er1 >conftest.err
41642 rm -f conftest.er1
41643 cat conftest.err >&5
41644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41645 (exit $ac_status); } &&
41646 { ac_try='test -z "$ac_cxx_werror_flag"
41647 || test ! -s conftest.err'
41648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649 (eval $ac_try) 2>&5
41650 ac_status=$?
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); }; } &&
41653 { ac_try='test -s conftest.$ac_objext'
41654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41655 (eval $ac_try) 2>&5
41656 ac_status=$?
41657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658 (exit $ac_status); }; }; then
41659 glibcxx_cv_func__isnanl_use=yes
41660 else
41661 echo "$as_me: failed program was:" >&5
41662 sed 's/^/| /' conftest.$ac_ext >&5
41664 glibcxx_cv_func__isnanl_use=no
41666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41667 ac_ext=c
41668 ac_cpp='$CPP $CPPFLAGS'
41669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41677 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41678 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41680 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41682 for ac_func in _isnanl
41684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41685 echo "$as_me:$LINENO: checking for $ac_func" >&5
41686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41687 if eval "test \"\${$as_ac_var+set}\" = set"; then
41688 echo $ECHO_N "(cached) $ECHO_C" >&6
41689 else
41690 if test x$gcc_no_link = xyes; then
41691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41693 { (exit 1); exit 1; }; }
41695 cat >conftest.$ac_ext <<_ACEOF
41696 /* confdefs.h. */
41697 _ACEOF
41698 cat confdefs.h >>conftest.$ac_ext
41699 cat >>conftest.$ac_ext <<_ACEOF
41700 /* end confdefs.h. */
41701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41703 #define $ac_func innocuous_$ac_func
41705 /* System header to define __stub macros and hopefully few prototypes,
41706 which can conflict with char $ac_func (); below.
41707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41708 <limits.h> exists even on freestanding compilers. */
41710 #ifdef __STDC__
41711 # include <limits.h>
41712 #else
41713 # include <assert.h>
41714 #endif
41716 #undef $ac_func
41718 /* Override any gcc2 internal prototype to avoid an error. */
41719 #ifdef __cplusplus
41720 extern "C"
41722 #endif
41723 /* We use char because int might match the return type of a gcc2
41724 builtin and then its argument prototype would still apply. */
41725 char $ac_func ();
41726 /* The GNU C library defines this for functions which it implements
41727 to always fail with ENOSYS. Some functions are actually named
41728 something starting with __ and the normal name is an alias. */
41729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41730 choke me
41731 #else
41732 char (*f) () = $ac_func;
41733 #endif
41734 #ifdef __cplusplus
41736 #endif
41739 main ()
41741 return f != $ac_func;
41743 return 0;
41745 _ACEOF
41746 rm -f conftest.$ac_objext conftest$ac_exeext
41747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41748 (eval $ac_link) 2>conftest.er1
41749 ac_status=$?
41750 grep -v '^ *+' conftest.er1 >conftest.err
41751 rm -f conftest.er1
41752 cat conftest.err >&5
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); } &&
41755 { ac_try='test -z "$ac_c_werror_flag"
41756 || test ! -s conftest.err'
41757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758 (eval $ac_try) 2>&5
41759 ac_status=$?
41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761 (exit $ac_status); }; } &&
41762 { ac_try='test -s conftest$ac_exeext'
41763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41764 (eval $ac_try) 2>&5
41765 ac_status=$?
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); }; }; then
41768 eval "$as_ac_var=yes"
41769 else
41770 echo "$as_me: failed program was:" >&5
41771 sed 's/^/| /' conftest.$ac_ext >&5
41773 eval "$as_ac_var=no"
41775 rm -f conftest.err conftest.$ac_objext \
41776 conftest$ac_exeext conftest.$ac_ext
41778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41780 if test `eval echo '${'$as_ac_var'}'` = yes; then
41781 cat >>confdefs.h <<_ACEOF
41782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41783 _ACEOF
41786 done
41793 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41794 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41795 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41796 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41797 echo $ECHO_N "(cached) $ECHO_C" >&6
41798 else
41802 ac_ext=cc
41803 ac_cpp='$CXXCPP $CPPFLAGS'
41804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41808 cat >conftest.$ac_ext <<_ACEOF
41809 /* confdefs.h. */
41810 _ACEOF
41811 cat confdefs.h >>conftest.$ac_ext
41812 cat >>conftest.$ac_ext <<_ACEOF
41813 /* end confdefs.h. */
41814 #include <math.h>
41815 #ifdef HAVE_IEEEFP_H
41816 #include <ieeefp.h>
41817 #endif
41820 main ()
41822 isinfl(0);
41824 return 0;
41826 _ACEOF
41827 rm -f conftest.$ac_objext
41828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41829 (eval $ac_compile) 2>conftest.er1
41830 ac_status=$?
41831 grep -v '^ *+' conftest.er1 >conftest.err
41832 rm -f conftest.er1
41833 cat conftest.err >&5
41834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); } &&
41836 { ac_try='test -z "$ac_cxx_werror_flag"
41837 || test ! -s conftest.err'
41838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839 (eval $ac_try) 2>&5
41840 ac_status=$?
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); }; } &&
41843 { ac_try='test -s conftest.$ac_objext'
41844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41845 (eval $ac_try) 2>&5
41846 ac_status=$?
41847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41848 (exit $ac_status); }; }; then
41849 glibcxx_cv_func_isinfl_use=yes
41850 else
41851 echo "$as_me: failed program was:" >&5
41852 sed 's/^/| /' conftest.$ac_ext >&5
41854 glibcxx_cv_func_isinfl_use=no
41856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41857 ac_ext=c
41858 ac_cpp='$CPP $CPPFLAGS'
41859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41867 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41868 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41870 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41872 for ac_func in isinfl
41874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41875 echo "$as_me:$LINENO: checking for $ac_func" >&5
41876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41877 if eval "test \"\${$as_ac_var+set}\" = set"; then
41878 echo $ECHO_N "(cached) $ECHO_C" >&6
41879 else
41880 if test x$gcc_no_link = xyes; then
41881 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41882 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41883 { (exit 1); exit 1; }; }
41885 cat >conftest.$ac_ext <<_ACEOF
41886 /* confdefs.h. */
41887 _ACEOF
41888 cat confdefs.h >>conftest.$ac_ext
41889 cat >>conftest.$ac_ext <<_ACEOF
41890 /* end confdefs.h. */
41891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41893 #define $ac_func innocuous_$ac_func
41895 /* System header to define __stub macros and hopefully few prototypes,
41896 which can conflict with char $ac_func (); below.
41897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41898 <limits.h> exists even on freestanding compilers. */
41900 #ifdef __STDC__
41901 # include <limits.h>
41902 #else
41903 # include <assert.h>
41904 #endif
41906 #undef $ac_func
41908 /* Override any gcc2 internal prototype to avoid an error. */
41909 #ifdef __cplusplus
41910 extern "C"
41912 #endif
41913 /* We use char because int might match the return type of a gcc2
41914 builtin and then its argument prototype would still apply. */
41915 char $ac_func ();
41916 /* The GNU C library defines this for functions which it implements
41917 to always fail with ENOSYS. Some functions are actually named
41918 something starting with __ and the normal name is an alias. */
41919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41920 choke me
41921 #else
41922 char (*f) () = $ac_func;
41923 #endif
41924 #ifdef __cplusplus
41926 #endif
41929 main ()
41931 return f != $ac_func;
41933 return 0;
41935 _ACEOF
41936 rm -f conftest.$ac_objext conftest$ac_exeext
41937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41938 (eval $ac_link) 2>conftest.er1
41939 ac_status=$?
41940 grep -v '^ *+' conftest.er1 >conftest.err
41941 rm -f conftest.er1
41942 cat conftest.err >&5
41943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944 (exit $ac_status); } &&
41945 { ac_try='test -z "$ac_c_werror_flag"
41946 || test ! -s conftest.err'
41947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41948 (eval $ac_try) 2>&5
41949 ac_status=$?
41950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41951 (exit $ac_status); }; } &&
41952 { ac_try='test -s conftest$ac_exeext'
41953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41954 (eval $ac_try) 2>&5
41955 ac_status=$?
41956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41957 (exit $ac_status); }; }; then
41958 eval "$as_ac_var=yes"
41959 else
41960 echo "$as_me: failed program was:" >&5
41961 sed 's/^/| /' conftest.$ac_ext >&5
41963 eval "$as_ac_var=no"
41965 rm -f conftest.err conftest.$ac_objext \
41966 conftest$ac_exeext conftest.$ac_ext
41968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41970 if test `eval echo '${'$as_ac_var'}'` = yes; then
41971 cat >>confdefs.h <<_ACEOF
41972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41973 _ACEOF
41976 done
41978 else
41980 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41981 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41982 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41983 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41984 echo $ECHO_N "(cached) $ECHO_C" >&6
41985 else
41989 ac_ext=cc
41990 ac_cpp='$CXXCPP $CPPFLAGS'
41991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41995 cat >conftest.$ac_ext <<_ACEOF
41996 /* confdefs.h. */
41997 _ACEOF
41998 cat confdefs.h >>conftest.$ac_ext
41999 cat >>conftest.$ac_ext <<_ACEOF
42000 /* end confdefs.h. */
42001 #include <math.h>
42002 #ifdef HAVE_IEEEFP_H
42003 #include <ieeefp.h>
42004 #endif
42007 main ()
42009 _isinfl(0);
42011 return 0;
42013 _ACEOF
42014 rm -f conftest.$ac_objext
42015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42016 (eval $ac_compile) 2>conftest.er1
42017 ac_status=$?
42018 grep -v '^ *+' conftest.er1 >conftest.err
42019 rm -f conftest.er1
42020 cat conftest.err >&5
42021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42022 (exit $ac_status); } &&
42023 { ac_try='test -z "$ac_cxx_werror_flag"
42024 || test ! -s conftest.err'
42025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42026 (eval $ac_try) 2>&5
42027 ac_status=$?
42028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42029 (exit $ac_status); }; } &&
42030 { ac_try='test -s conftest.$ac_objext'
42031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42032 (eval $ac_try) 2>&5
42033 ac_status=$?
42034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42035 (exit $ac_status); }; }; then
42036 glibcxx_cv_func__isinfl_use=yes
42037 else
42038 echo "$as_me: failed program was:" >&5
42039 sed 's/^/| /' conftest.$ac_ext >&5
42041 glibcxx_cv_func__isinfl_use=no
42043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42044 ac_ext=c
42045 ac_cpp='$CPP $CPPFLAGS'
42046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42054 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
42055 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
42057 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
42059 for ac_func in _isinfl
42061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42062 echo "$as_me:$LINENO: checking for $ac_func" >&5
42063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42064 if eval "test \"\${$as_ac_var+set}\" = set"; then
42065 echo $ECHO_N "(cached) $ECHO_C" >&6
42066 else
42067 if test x$gcc_no_link = xyes; then
42068 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42070 { (exit 1); exit 1; }; }
42072 cat >conftest.$ac_ext <<_ACEOF
42073 /* confdefs.h. */
42074 _ACEOF
42075 cat confdefs.h >>conftest.$ac_ext
42076 cat >>conftest.$ac_ext <<_ACEOF
42077 /* end confdefs.h. */
42078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42080 #define $ac_func innocuous_$ac_func
42082 /* System header to define __stub macros and hopefully few prototypes,
42083 which can conflict with char $ac_func (); below.
42084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42085 <limits.h> exists even on freestanding compilers. */
42087 #ifdef __STDC__
42088 # include <limits.h>
42089 #else
42090 # include <assert.h>
42091 #endif
42093 #undef $ac_func
42095 /* Override any gcc2 internal prototype to avoid an error. */
42096 #ifdef __cplusplus
42097 extern "C"
42099 #endif
42100 /* We use char because int might match the return type of a gcc2
42101 builtin and then its argument prototype would still apply. */
42102 char $ac_func ();
42103 /* The GNU C library defines this for functions which it implements
42104 to always fail with ENOSYS. Some functions are actually named
42105 something starting with __ and the normal name is an alias. */
42106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42107 choke me
42108 #else
42109 char (*f) () = $ac_func;
42110 #endif
42111 #ifdef __cplusplus
42113 #endif
42116 main ()
42118 return f != $ac_func;
42120 return 0;
42122 _ACEOF
42123 rm -f conftest.$ac_objext conftest$ac_exeext
42124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42125 (eval $ac_link) 2>conftest.er1
42126 ac_status=$?
42127 grep -v '^ *+' conftest.er1 >conftest.err
42128 rm -f conftest.er1
42129 cat conftest.err >&5
42130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131 (exit $ac_status); } &&
42132 { ac_try='test -z "$ac_c_werror_flag"
42133 || test ! -s conftest.err'
42134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42135 (eval $ac_try) 2>&5
42136 ac_status=$?
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); }; } &&
42139 { ac_try='test -s conftest$ac_exeext'
42140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42141 (eval $ac_try) 2>&5
42142 ac_status=$?
42143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42144 (exit $ac_status); }; }; then
42145 eval "$as_ac_var=yes"
42146 else
42147 echo "$as_me: failed program was:" >&5
42148 sed 's/^/| /' conftest.$ac_ext >&5
42150 eval "$as_ac_var=no"
42152 rm -f conftest.err conftest.$ac_objext \
42153 conftest$ac_exeext conftest.$ac_ext
42155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42157 if test `eval echo '${'$as_ac_var'}'` = yes; then
42158 cat >>confdefs.h <<_ACEOF
42159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42160 _ACEOF
42163 done
42170 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
42171 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
42172 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
42173 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
42174 echo $ECHO_N "(cached) $ECHO_C" >&6
42175 else
42179 ac_ext=cc
42180 ac_cpp='$CXXCPP $CPPFLAGS'
42181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42185 cat >conftest.$ac_ext <<_ACEOF
42186 /* confdefs.h. */
42187 _ACEOF
42188 cat confdefs.h >>conftest.$ac_ext
42189 cat >>conftest.$ac_ext <<_ACEOF
42190 /* end confdefs.h. */
42191 #include <math.h>
42193 main ()
42195 copysignl(0, 0);
42197 return 0;
42199 _ACEOF
42200 rm -f conftest.$ac_objext
42201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42202 (eval $ac_compile) 2>conftest.er1
42203 ac_status=$?
42204 grep -v '^ *+' conftest.er1 >conftest.err
42205 rm -f conftest.er1
42206 cat conftest.err >&5
42207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208 (exit $ac_status); } &&
42209 { ac_try='test -z "$ac_cxx_werror_flag"
42210 || test ! -s conftest.err'
42211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42212 (eval $ac_try) 2>&5
42213 ac_status=$?
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); }; } &&
42216 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
42222 glibcxx_cv_func_copysignl_use=yes
42223 else
42224 echo "$as_me: failed program was:" >&5
42225 sed 's/^/| /' conftest.$ac_ext >&5
42227 glibcxx_cv_func_copysignl_use=no
42229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42230 ac_ext=c
42231 ac_cpp='$CPP $CPPFLAGS'
42232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42240 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42241 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42243 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42245 for ac_func in copysignl
42247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42248 echo "$as_me:$LINENO: checking for $ac_func" >&5
42249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42250 if eval "test \"\${$as_ac_var+set}\" = set"; then
42251 echo $ECHO_N "(cached) $ECHO_C" >&6
42252 else
42253 if test x$gcc_no_link = xyes; then
42254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42256 { (exit 1); exit 1; }; }
42258 cat >conftest.$ac_ext <<_ACEOF
42259 /* confdefs.h. */
42260 _ACEOF
42261 cat confdefs.h >>conftest.$ac_ext
42262 cat >>conftest.$ac_ext <<_ACEOF
42263 /* end confdefs.h. */
42264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42266 #define $ac_func innocuous_$ac_func
42268 /* System header to define __stub macros and hopefully few prototypes,
42269 which can conflict with char $ac_func (); below.
42270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42271 <limits.h> exists even on freestanding compilers. */
42273 #ifdef __STDC__
42274 # include <limits.h>
42275 #else
42276 # include <assert.h>
42277 #endif
42279 #undef $ac_func
42281 /* Override any gcc2 internal prototype to avoid an error. */
42282 #ifdef __cplusplus
42283 extern "C"
42285 #endif
42286 /* We use char because int might match the return type of a gcc2
42287 builtin and then its argument prototype would still apply. */
42288 char $ac_func ();
42289 /* The GNU C library defines this for functions which it implements
42290 to always fail with ENOSYS. Some functions are actually named
42291 something starting with __ and the normal name is an alias. */
42292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42293 choke me
42294 #else
42295 char (*f) () = $ac_func;
42296 #endif
42297 #ifdef __cplusplus
42299 #endif
42302 main ()
42304 return f != $ac_func;
42306 return 0;
42308 _ACEOF
42309 rm -f conftest.$ac_objext conftest$ac_exeext
42310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42311 (eval $ac_link) 2>conftest.er1
42312 ac_status=$?
42313 grep -v '^ *+' conftest.er1 >conftest.err
42314 rm -f conftest.er1
42315 cat conftest.err >&5
42316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317 (exit $ac_status); } &&
42318 { ac_try='test -z "$ac_c_werror_flag"
42319 || test ! -s conftest.err'
42320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42321 (eval $ac_try) 2>&5
42322 ac_status=$?
42323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42324 (exit $ac_status); }; } &&
42325 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
42331 eval "$as_ac_var=yes"
42332 else
42333 echo "$as_me: failed program was:" >&5
42334 sed 's/^/| /' conftest.$ac_ext >&5
42336 eval "$as_ac_var=no"
42338 rm -f conftest.err conftest.$ac_objext \
42339 conftest$ac_exeext conftest.$ac_ext
42341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42343 if test `eval echo '${'$as_ac_var'}'` = yes; then
42344 cat >>confdefs.h <<_ACEOF
42345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42346 _ACEOF
42349 done
42351 else
42353 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42354 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42355 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42356 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42357 echo $ECHO_N "(cached) $ECHO_C" >&6
42358 else
42362 ac_ext=cc
42363 ac_cpp='$CXXCPP $CPPFLAGS'
42364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42368 cat >conftest.$ac_ext <<_ACEOF
42369 /* confdefs.h. */
42370 _ACEOF
42371 cat confdefs.h >>conftest.$ac_ext
42372 cat >>conftest.$ac_ext <<_ACEOF
42373 /* end confdefs.h. */
42374 #include <math.h>
42376 main ()
42378 _copysignl(0, 0);
42380 return 0;
42382 _ACEOF
42383 rm -f conftest.$ac_objext
42384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42385 (eval $ac_compile) 2>conftest.er1
42386 ac_status=$?
42387 grep -v '^ *+' conftest.er1 >conftest.err
42388 rm -f conftest.er1
42389 cat conftest.err >&5
42390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42391 (exit $ac_status); } &&
42392 { ac_try='test -z "$ac_cxx_werror_flag"
42393 || test ! -s conftest.err'
42394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395 (eval $ac_try) 2>&5
42396 ac_status=$?
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); }; } &&
42399 { ac_try='test -s conftest.$ac_objext'
42400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401 (eval $ac_try) 2>&5
42402 ac_status=$?
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); }; }; then
42405 glibcxx_cv_func__copysignl_use=yes
42406 else
42407 echo "$as_me: failed program was:" >&5
42408 sed 's/^/| /' conftest.$ac_ext >&5
42410 glibcxx_cv_func__copysignl_use=no
42412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42413 ac_ext=c
42414 ac_cpp='$CPP $CPPFLAGS'
42415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42423 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42424 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42426 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42428 for ac_func in _copysignl
42430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42431 echo "$as_me:$LINENO: checking for $ac_func" >&5
42432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42433 if eval "test \"\${$as_ac_var+set}\" = set"; then
42434 echo $ECHO_N "(cached) $ECHO_C" >&6
42435 else
42436 if test x$gcc_no_link = xyes; then
42437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42439 { (exit 1); exit 1; }; }
42441 cat >conftest.$ac_ext <<_ACEOF
42442 /* confdefs.h. */
42443 _ACEOF
42444 cat confdefs.h >>conftest.$ac_ext
42445 cat >>conftest.$ac_ext <<_ACEOF
42446 /* end confdefs.h. */
42447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42449 #define $ac_func innocuous_$ac_func
42451 /* System header to define __stub macros and hopefully few prototypes,
42452 which can conflict with char $ac_func (); below.
42453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42454 <limits.h> exists even on freestanding compilers. */
42456 #ifdef __STDC__
42457 # include <limits.h>
42458 #else
42459 # include <assert.h>
42460 #endif
42462 #undef $ac_func
42464 /* Override any gcc2 internal prototype to avoid an error. */
42465 #ifdef __cplusplus
42466 extern "C"
42468 #endif
42469 /* We use char because int might match the return type of a gcc2
42470 builtin and then its argument prototype would still apply. */
42471 char $ac_func ();
42472 /* The GNU C library defines this for functions which it implements
42473 to always fail with ENOSYS. Some functions are actually named
42474 something starting with __ and the normal name is an alias. */
42475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42476 choke me
42477 #else
42478 char (*f) () = $ac_func;
42479 #endif
42480 #ifdef __cplusplus
42482 #endif
42485 main ()
42487 return f != $ac_func;
42489 return 0;
42491 _ACEOF
42492 rm -f conftest.$ac_objext conftest$ac_exeext
42493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42494 (eval $ac_link) 2>conftest.er1
42495 ac_status=$?
42496 grep -v '^ *+' conftest.er1 >conftest.err
42497 rm -f conftest.er1
42498 cat conftest.err >&5
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); } &&
42501 { ac_try='test -z "$ac_c_werror_flag"
42502 || test ! -s conftest.err'
42503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42504 (eval $ac_try) 2>&5
42505 ac_status=$?
42506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507 (exit $ac_status); }; } &&
42508 { ac_try='test -s conftest$ac_exeext'
42509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42510 (eval $ac_try) 2>&5
42511 ac_status=$?
42512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513 (exit $ac_status); }; }; then
42514 eval "$as_ac_var=yes"
42515 else
42516 echo "$as_me: failed program was:" >&5
42517 sed 's/^/| /' conftest.$ac_ext >&5
42519 eval "$as_ac_var=no"
42521 rm -f conftest.err conftest.$ac_objext \
42522 conftest$ac_exeext conftest.$ac_ext
42524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42526 if test `eval echo '${'$as_ac_var'}'` = yes; then
42527 cat >>confdefs.h <<_ACEOF
42528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42529 _ACEOF
42532 done
42539 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42540 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42541 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42542 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42543 echo $ECHO_N "(cached) $ECHO_C" >&6
42544 else
42548 ac_ext=cc
42549 ac_cpp='$CXXCPP $CPPFLAGS'
42550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42554 cat >conftest.$ac_ext <<_ACEOF
42555 /* confdefs.h. */
42556 _ACEOF
42557 cat confdefs.h >>conftest.$ac_ext
42558 cat >>conftest.$ac_ext <<_ACEOF
42559 /* end confdefs.h. */
42560 #include <math.h>
42562 main ()
42564 atan2l(0, 0);
42566 return 0;
42568 _ACEOF
42569 rm -f conftest.$ac_objext
42570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42571 (eval $ac_compile) 2>conftest.er1
42572 ac_status=$?
42573 grep -v '^ *+' conftest.er1 >conftest.err
42574 rm -f conftest.er1
42575 cat conftest.err >&5
42576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577 (exit $ac_status); } &&
42578 { ac_try='test -z "$ac_cxx_werror_flag"
42579 || test ! -s conftest.err'
42580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42581 (eval $ac_try) 2>&5
42582 ac_status=$?
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); }; } &&
42585 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
42591 glibcxx_cv_func_atan2l_use=yes
42592 else
42593 echo "$as_me: failed program was:" >&5
42594 sed 's/^/| /' conftest.$ac_ext >&5
42596 glibcxx_cv_func_atan2l_use=no
42598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42599 ac_ext=c
42600 ac_cpp='$CPP $CPPFLAGS'
42601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42609 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42610 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42612 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42614 for ac_func in atan2l
42616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42617 echo "$as_me:$LINENO: checking for $ac_func" >&5
42618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42619 if eval "test \"\${$as_ac_var+set}\" = set"; then
42620 echo $ECHO_N "(cached) $ECHO_C" >&6
42621 else
42622 if test x$gcc_no_link = xyes; then
42623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42624 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42625 { (exit 1); exit 1; }; }
42627 cat >conftest.$ac_ext <<_ACEOF
42628 /* confdefs.h. */
42629 _ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h. */
42633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42635 #define $ac_func innocuous_$ac_func
42637 /* System header to define __stub macros and hopefully few prototypes,
42638 which can conflict with char $ac_func (); below.
42639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42640 <limits.h> exists even on freestanding compilers. */
42642 #ifdef __STDC__
42643 # include <limits.h>
42644 #else
42645 # include <assert.h>
42646 #endif
42648 #undef $ac_func
42650 /* Override any gcc2 internal prototype to avoid an error. */
42651 #ifdef __cplusplus
42652 extern "C"
42654 #endif
42655 /* We use char because int might match the return type of a gcc2
42656 builtin and then its argument prototype would still apply. */
42657 char $ac_func ();
42658 /* The GNU C library defines this for functions which it implements
42659 to always fail with ENOSYS. Some functions are actually named
42660 something starting with __ and the normal name is an alias. */
42661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42662 choke me
42663 #else
42664 char (*f) () = $ac_func;
42665 #endif
42666 #ifdef __cplusplus
42668 #endif
42671 main ()
42673 return f != $ac_func;
42675 return 0;
42677 _ACEOF
42678 rm -f conftest.$ac_objext conftest$ac_exeext
42679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42680 (eval $ac_link) 2>conftest.er1
42681 ac_status=$?
42682 grep -v '^ *+' conftest.er1 >conftest.err
42683 rm -f conftest.er1
42684 cat conftest.err >&5
42685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42686 (exit $ac_status); } &&
42687 { ac_try='test -z "$ac_c_werror_flag"
42688 || test ! -s conftest.err'
42689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42690 (eval $ac_try) 2>&5
42691 ac_status=$?
42692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693 (exit $ac_status); }; } &&
42694 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
42700 eval "$as_ac_var=yes"
42701 else
42702 echo "$as_me: failed program was:" >&5
42703 sed 's/^/| /' conftest.$ac_ext >&5
42705 eval "$as_ac_var=no"
42707 rm -f conftest.err conftest.$ac_objext \
42708 conftest$ac_exeext conftest.$ac_ext
42710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42712 if test `eval echo '${'$as_ac_var'}'` = yes; then
42713 cat >>confdefs.h <<_ACEOF
42714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42715 _ACEOF
42718 done
42720 else
42722 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42723 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42724 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42725 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42726 echo $ECHO_N "(cached) $ECHO_C" >&6
42727 else
42731 ac_ext=cc
42732 ac_cpp='$CXXCPP $CPPFLAGS'
42733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42737 cat >conftest.$ac_ext <<_ACEOF
42738 /* confdefs.h. */
42739 _ACEOF
42740 cat confdefs.h >>conftest.$ac_ext
42741 cat >>conftest.$ac_ext <<_ACEOF
42742 /* end confdefs.h. */
42743 #include <math.h>
42745 main ()
42747 _atan2l(0, 0);
42749 return 0;
42751 _ACEOF
42752 rm -f conftest.$ac_objext
42753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42754 (eval $ac_compile) 2>conftest.er1
42755 ac_status=$?
42756 grep -v '^ *+' conftest.er1 >conftest.err
42757 rm -f conftest.er1
42758 cat conftest.err >&5
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); } &&
42761 { ac_try='test -z "$ac_cxx_werror_flag"
42762 || test ! -s conftest.err'
42763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42764 (eval $ac_try) 2>&5
42765 ac_status=$?
42766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767 (exit $ac_status); }; } &&
42768 { ac_try='test -s conftest.$ac_objext'
42769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42770 (eval $ac_try) 2>&5
42771 ac_status=$?
42772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42773 (exit $ac_status); }; }; then
42774 glibcxx_cv_func__atan2l_use=yes
42775 else
42776 echo "$as_me: failed program was:" >&5
42777 sed 's/^/| /' conftest.$ac_ext >&5
42779 glibcxx_cv_func__atan2l_use=no
42781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42782 ac_ext=c
42783 ac_cpp='$CPP $CPPFLAGS'
42784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42792 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42793 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42795 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42797 for ac_func in _atan2l
42799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42800 echo "$as_me:$LINENO: checking for $ac_func" >&5
42801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42802 if eval "test \"\${$as_ac_var+set}\" = set"; then
42803 echo $ECHO_N "(cached) $ECHO_C" >&6
42804 else
42805 if test x$gcc_no_link = xyes; then
42806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42808 { (exit 1); exit 1; }; }
42810 cat >conftest.$ac_ext <<_ACEOF
42811 /* confdefs.h. */
42812 _ACEOF
42813 cat confdefs.h >>conftest.$ac_ext
42814 cat >>conftest.$ac_ext <<_ACEOF
42815 /* end confdefs.h. */
42816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42818 #define $ac_func innocuous_$ac_func
42820 /* System header to define __stub macros and hopefully few prototypes,
42821 which can conflict with char $ac_func (); below.
42822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42823 <limits.h> exists even on freestanding compilers. */
42825 #ifdef __STDC__
42826 # include <limits.h>
42827 #else
42828 # include <assert.h>
42829 #endif
42831 #undef $ac_func
42833 /* Override any gcc2 internal prototype to avoid an error. */
42834 #ifdef __cplusplus
42835 extern "C"
42837 #endif
42838 /* We use char because int might match the return type of a gcc2
42839 builtin and then its argument prototype would still apply. */
42840 char $ac_func ();
42841 /* The GNU C library defines this for functions which it implements
42842 to always fail with ENOSYS. Some functions are actually named
42843 something starting with __ and the normal name is an alias. */
42844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42845 choke me
42846 #else
42847 char (*f) () = $ac_func;
42848 #endif
42849 #ifdef __cplusplus
42851 #endif
42854 main ()
42856 return f != $ac_func;
42858 return 0;
42860 _ACEOF
42861 rm -f conftest.$ac_objext conftest$ac_exeext
42862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42863 (eval $ac_link) 2>conftest.er1
42864 ac_status=$?
42865 grep -v '^ *+' conftest.er1 >conftest.err
42866 rm -f conftest.er1
42867 cat conftest.err >&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); } &&
42870 { ac_try='test -z "$ac_c_werror_flag"
42871 || test ! -s conftest.err'
42872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42873 (eval $ac_try) 2>&5
42874 ac_status=$?
42875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876 (exit $ac_status); }; } &&
42877 { ac_try='test -s conftest$ac_exeext'
42878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42879 (eval $ac_try) 2>&5
42880 ac_status=$?
42881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882 (exit $ac_status); }; }; then
42883 eval "$as_ac_var=yes"
42884 else
42885 echo "$as_me: failed program was:" >&5
42886 sed 's/^/| /' conftest.$ac_ext >&5
42888 eval "$as_ac_var=no"
42890 rm -f conftest.err conftest.$ac_objext \
42891 conftest$ac_exeext conftest.$ac_ext
42893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42895 if test `eval echo '${'$as_ac_var'}'` = yes; then
42896 cat >>confdefs.h <<_ACEOF
42897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42898 _ACEOF
42901 done
42908 echo "$as_me:$LINENO: checking for expl declaration" >&5
42909 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42910 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42911 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42912 echo $ECHO_N "(cached) $ECHO_C" >&6
42913 else
42917 ac_ext=cc
42918 ac_cpp='$CXXCPP $CPPFLAGS'
42919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42923 cat >conftest.$ac_ext <<_ACEOF
42924 /* confdefs.h. */
42925 _ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h. */
42929 #include <math.h>
42930 #ifdef HAVE_IEEEFP_H
42931 #include <ieeefp.h>
42932 #endif
42935 main ()
42937 expl(0);
42939 return 0;
42941 _ACEOF
42942 rm -f conftest.$ac_objext
42943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42944 (eval $ac_compile) 2>conftest.er1
42945 ac_status=$?
42946 grep -v '^ *+' conftest.er1 >conftest.err
42947 rm -f conftest.er1
42948 cat conftest.err >&5
42949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42950 (exit $ac_status); } &&
42951 { ac_try='test -z "$ac_cxx_werror_flag"
42952 || test ! -s conftest.err'
42953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954 (eval $ac_try) 2>&5
42955 ac_status=$?
42956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957 (exit $ac_status); }; } &&
42958 { ac_try='test -s conftest.$ac_objext'
42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42960 (eval $ac_try) 2>&5
42961 ac_status=$?
42962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; }; then
42964 glibcxx_cv_func_expl_use=yes
42965 else
42966 echo "$as_me: failed program was:" >&5
42967 sed 's/^/| /' conftest.$ac_ext >&5
42969 glibcxx_cv_func_expl_use=no
42971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42972 ac_ext=c
42973 ac_cpp='$CPP $CPPFLAGS'
42974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42982 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42983 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42985 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42987 for ac_func in expl
42989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42990 echo "$as_me:$LINENO: checking for $ac_func" >&5
42991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42992 if eval "test \"\${$as_ac_var+set}\" = set"; then
42993 echo $ECHO_N "(cached) $ECHO_C" >&6
42994 else
42995 if test x$gcc_no_link = xyes; then
42996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42998 { (exit 1); exit 1; }; }
43000 cat >conftest.$ac_ext <<_ACEOF
43001 /* confdefs.h. */
43002 _ACEOF
43003 cat confdefs.h >>conftest.$ac_ext
43004 cat >>conftest.$ac_ext <<_ACEOF
43005 /* end confdefs.h. */
43006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43008 #define $ac_func innocuous_$ac_func
43010 /* System header to define __stub macros and hopefully few prototypes,
43011 which can conflict with char $ac_func (); below.
43012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43013 <limits.h> exists even on freestanding compilers. */
43015 #ifdef __STDC__
43016 # include <limits.h>
43017 #else
43018 # include <assert.h>
43019 #endif
43021 #undef $ac_func
43023 /* Override any gcc2 internal prototype to avoid an error. */
43024 #ifdef __cplusplus
43025 extern "C"
43027 #endif
43028 /* We use char because int might match the return type of a gcc2
43029 builtin and then its argument prototype would still apply. */
43030 char $ac_func ();
43031 /* The GNU C library defines this for functions which it implements
43032 to always fail with ENOSYS. Some functions are actually named
43033 something starting with __ and the normal name is an alias. */
43034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43035 choke me
43036 #else
43037 char (*f) () = $ac_func;
43038 #endif
43039 #ifdef __cplusplus
43041 #endif
43044 main ()
43046 return f != $ac_func;
43048 return 0;
43050 _ACEOF
43051 rm -f conftest.$ac_objext conftest$ac_exeext
43052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43053 (eval $ac_link) 2>conftest.er1
43054 ac_status=$?
43055 grep -v '^ *+' conftest.er1 >conftest.err
43056 rm -f conftest.er1
43057 cat conftest.err >&5
43058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059 (exit $ac_status); } &&
43060 { ac_try='test -z "$ac_c_werror_flag"
43061 || test ! -s conftest.err'
43062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43063 (eval $ac_try) 2>&5
43064 ac_status=$?
43065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066 (exit $ac_status); }; } &&
43067 { ac_try='test -s conftest$ac_exeext'
43068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43069 (eval $ac_try) 2>&5
43070 ac_status=$?
43071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072 (exit $ac_status); }; }; then
43073 eval "$as_ac_var=yes"
43074 else
43075 echo "$as_me: failed program was:" >&5
43076 sed 's/^/| /' conftest.$ac_ext >&5
43078 eval "$as_ac_var=no"
43080 rm -f conftest.err conftest.$ac_objext \
43081 conftest$ac_exeext conftest.$ac_ext
43083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43085 if test `eval echo '${'$as_ac_var'}'` = yes; then
43086 cat >>confdefs.h <<_ACEOF
43087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43088 _ACEOF
43091 done
43093 else
43095 echo "$as_me:$LINENO: checking for _expl declaration" >&5
43096 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
43097 if test x${glibcxx_cv_func__expl_use+set} != xset; then
43098 if test "${glibcxx_cv_func__expl_use+set}" = set; then
43099 echo $ECHO_N "(cached) $ECHO_C" >&6
43100 else
43104 ac_ext=cc
43105 ac_cpp='$CXXCPP $CPPFLAGS'
43106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43110 cat >conftest.$ac_ext <<_ACEOF
43111 /* confdefs.h. */
43112 _ACEOF
43113 cat confdefs.h >>conftest.$ac_ext
43114 cat >>conftest.$ac_ext <<_ACEOF
43115 /* end confdefs.h. */
43116 #include <math.h>
43117 #ifdef HAVE_IEEEFP_H
43118 #include <ieeefp.h>
43119 #endif
43122 main ()
43124 _expl(0);
43126 return 0;
43128 _ACEOF
43129 rm -f conftest.$ac_objext
43130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43131 (eval $ac_compile) 2>conftest.er1
43132 ac_status=$?
43133 grep -v '^ *+' conftest.er1 >conftest.err
43134 rm -f conftest.er1
43135 cat conftest.err >&5
43136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137 (exit $ac_status); } &&
43138 { ac_try='test -z "$ac_cxx_werror_flag"
43139 || test ! -s conftest.err'
43140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43141 (eval $ac_try) 2>&5
43142 ac_status=$?
43143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144 (exit $ac_status); }; } &&
43145 { ac_try='test -s conftest.$ac_objext'
43146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43147 (eval $ac_try) 2>&5
43148 ac_status=$?
43149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150 (exit $ac_status); }; }; then
43151 glibcxx_cv_func__expl_use=yes
43152 else
43153 echo "$as_me: failed program was:" >&5
43154 sed 's/^/| /' conftest.$ac_ext >&5
43156 glibcxx_cv_func__expl_use=no
43158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43159 ac_ext=c
43160 ac_cpp='$CPP $CPPFLAGS'
43161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43169 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
43170 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
43172 if test x$glibcxx_cv_func__expl_use = x"yes"; then
43174 for ac_func in _expl
43176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43177 echo "$as_me:$LINENO: checking for $ac_func" >&5
43178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43179 if eval "test \"\${$as_ac_var+set}\" = set"; then
43180 echo $ECHO_N "(cached) $ECHO_C" >&6
43181 else
43182 if test x$gcc_no_link = xyes; then
43183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43185 { (exit 1); exit 1; }; }
43187 cat >conftest.$ac_ext <<_ACEOF
43188 /* confdefs.h. */
43189 _ACEOF
43190 cat confdefs.h >>conftest.$ac_ext
43191 cat >>conftest.$ac_ext <<_ACEOF
43192 /* end confdefs.h. */
43193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43195 #define $ac_func innocuous_$ac_func
43197 /* System header to define __stub macros and hopefully few prototypes,
43198 which can conflict with char $ac_func (); below.
43199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43200 <limits.h> exists even on freestanding compilers. */
43202 #ifdef __STDC__
43203 # include <limits.h>
43204 #else
43205 # include <assert.h>
43206 #endif
43208 #undef $ac_func
43210 /* Override any gcc2 internal prototype to avoid an error. */
43211 #ifdef __cplusplus
43212 extern "C"
43214 #endif
43215 /* We use char because int might match the return type of a gcc2
43216 builtin and then its argument prototype would still apply. */
43217 char $ac_func ();
43218 /* The GNU C library defines this for functions which it implements
43219 to always fail with ENOSYS. Some functions are actually named
43220 something starting with __ and the normal name is an alias. */
43221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43222 choke me
43223 #else
43224 char (*f) () = $ac_func;
43225 #endif
43226 #ifdef __cplusplus
43228 #endif
43231 main ()
43233 return f != $ac_func;
43235 return 0;
43237 _ACEOF
43238 rm -f conftest.$ac_objext conftest$ac_exeext
43239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43240 (eval $ac_link) 2>conftest.er1
43241 ac_status=$?
43242 grep -v '^ *+' conftest.er1 >conftest.err
43243 rm -f conftest.er1
43244 cat conftest.err >&5
43245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246 (exit $ac_status); } &&
43247 { ac_try='test -z "$ac_c_werror_flag"
43248 || test ! -s conftest.err'
43249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43250 (eval $ac_try) 2>&5
43251 ac_status=$?
43252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253 (exit $ac_status); }; } &&
43254 { ac_try='test -s conftest$ac_exeext'
43255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43256 (eval $ac_try) 2>&5
43257 ac_status=$?
43258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259 (exit $ac_status); }; }; then
43260 eval "$as_ac_var=yes"
43261 else
43262 echo "$as_me: failed program was:" >&5
43263 sed 's/^/| /' conftest.$ac_ext >&5
43265 eval "$as_ac_var=no"
43267 rm -f conftest.err conftest.$ac_objext \
43268 conftest$ac_exeext conftest.$ac_ext
43270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43272 if test `eval echo '${'$as_ac_var'}'` = yes; then
43273 cat >>confdefs.h <<_ACEOF
43274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43275 _ACEOF
43278 done
43285 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43286 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43287 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43288 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43289 echo $ECHO_N "(cached) $ECHO_C" >&6
43290 else
43294 ac_ext=cc
43295 ac_cpp='$CXXCPP $CPPFLAGS'
43296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43300 cat >conftest.$ac_ext <<_ACEOF
43301 /* confdefs.h. */
43302 _ACEOF
43303 cat confdefs.h >>conftest.$ac_ext
43304 cat >>conftest.$ac_ext <<_ACEOF
43305 /* end confdefs.h. */
43306 #include <math.h>
43307 #ifdef HAVE_IEEEFP_H
43308 #include <ieeefp.h>
43309 #endif
43312 main ()
43314 fabsl(0);
43316 return 0;
43318 _ACEOF
43319 rm -f conftest.$ac_objext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43321 (eval $ac_compile) 2>conftest.er1
43322 ac_status=$?
43323 grep -v '^ *+' conftest.er1 >conftest.err
43324 rm -f conftest.er1
43325 cat conftest.err >&5
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } &&
43328 { ac_try='test -z "$ac_cxx_werror_flag"
43329 || test ! -s conftest.err'
43330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331 (eval $ac_try) 2>&5
43332 ac_status=$?
43333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334 (exit $ac_status); }; } &&
43335 { ac_try='test -s conftest.$ac_objext'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43338 ac_status=$?
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; }; then
43341 glibcxx_cv_func_fabsl_use=yes
43342 else
43343 echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43346 glibcxx_cv_func_fabsl_use=no
43348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43349 ac_ext=c
43350 ac_cpp='$CPP $CPPFLAGS'
43351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43359 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43360 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43362 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43364 for ac_func in fabsl
43366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43367 echo "$as_me:$LINENO: checking for $ac_func" >&5
43368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43369 if eval "test \"\${$as_ac_var+set}\" = set"; then
43370 echo $ECHO_N "(cached) $ECHO_C" >&6
43371 else
43372 if test x$gcc_no_link = xyes; then
43373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43375 { (exit 1); exit 1; }; }
43377 cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h. */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h. */
43383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43385 #define $ac_func innocuous_$ac_func
43387 /* System header to define __stub macros and hopefully few prototypes,
43388 which can conflict with char $ac_func (); below.
43389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43390 <limits.h> exists even on freestanding compilers. */
43392 #ifdef __STDC__
43393 # include <limits.h>
43394 #else
43395 # include <assert.h>
43396 #endif
43398 #undef $ac_func
43400 /* Override any gcc2 internal prototype to avoid an error. */
43401 #ifdef __cplusplus
43402 extern "C"
43404 #endif
43405 /* We use char because int might match the return type of a gcc2
43406 builtin and then its argument prototype would still apply. */
43407 char $ac_func ();
43408 /* The GNU C library defines this for functions which it implements
43409 to always fail with ENOSYS. Some functions are actually named
43410 something starting with __ and the normal name is an alias. */
43411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43412 choke me
43413 #else
43414 char (*f) () = $ac_func;
43415 #endif
43416 #ifdef __cplusplus
43418 #endif
43421 main ()
43423 return f != $ac_func;
43425 return 0;
43427 _ACEOF
43428 rm -f conftest.$ac_objext conftest$ac_exeext
43429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43430 (eval $ac_link) 2>conftest.er1
43431 ac_status=$?
43432 grep -v '^ *+' conftest.er1 >conftest.err
43433 rm -f conftest.er1
43434 cat conftest.err >&5
43435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43436 (exit $ac_status); } &&
43437 { ac_try='test -z "$ac_c_werror_flag"
43438 || test ! -s conftest.err'
43439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43440 (eval $ac_try) 2>&5
43441 ac_status=$?
43442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443 (exit $ac_status); }; } &&
43444 { ac_try='test -s conftest$ac_exeext'
43445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43446 (eval $ac_try) 2>&5
43447 ac_status=$?
43448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43449 (exit $ac_status); }; }; then
43450 eval "$as_ac_var=yes"
43451 else
43452 echo "$as_me: failed program was:" >&5
43453 sed 's/^/| /' conftest.$ac_ext >&5
43455 eval "$as_ac_var=no"
43457 rm -f conftest.err conftest.$ac_objext \
43458 conftest$ac_exeext conftest.$ac_ext
43460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43462 if test `eval echo '${'$as_ac_var'}'` = yes; then
43463 cat >>confdefs.h <<_ACEOF
43464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43465 _ACEOF
43468 done
43470 else
43472 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43473 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43474 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43475 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43476 echo $ECHO_N "(cached) $ECHO_C" >&6
43477 else
43481 ac_ext=cc
43482 ac_cpp='$CXXCPP $CPPFLAGS'
43483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43487 cat >conftest.$ac_ext <<_ACEOF
43488 /* confdefs.h. */
43489 _ACEOF
43490 cat confdefs.h >>conftest.$ac_ext
43491 cat >>conftest.$ac_ext <<_ACEOF
43492 /* end confdefs.h. */
43493 #include <math.h>
43494 #ifdef HAVE_IEEEFP_H
43495 #include <ieeefp.h>
43496 #endif
43499 main ()
43501 _fabsl(0);
43503 return 0;
43505 _ACEOF
43506 rm -f conftest.$ac_objext
43507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43508 (eval $ac_compile) 2>conftest.er1
43509 ac_status=$?
43510 grep -v '^ *+' conftest.er1 >conftest.err
43511 rm -f conftest.er1
43512 cat conftest.err >&5
43513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43514 (exit $ac_status); } &&
43515 { ac_try='test -z "$ac_cxx_werror_flag"
43516 || test ! -s conftest.err'
43517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43518 (eval $ac_try) 2>&5
43519 ac_status=$?
43520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521 (exit $ac_status); }; } &&
43522 { ac_try='test -s conftest.$ac_objext'
43523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43524 (eval $ac_try) 2>&5
43525 ac_status=$?
43526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527 (exit $ac_status); }; }; then
43528 glibcxx_cv_func__fabsl_use=yes
43529 else
43530 echo "$as_me: failed program was:" >&5
43531 sed 's/^/| /' conftest.$ac_ext >&5
43533 glibcxx_cv_func__fabsl_use=no
43535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43536 ac_ext=c
43537 ac_cpp='$CPP $CPPFLAGS'
43538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43546 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43547 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43549 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43551 for ac_func in _fabsl
43553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43554 echo "$as_me:$LINENO: checking for $ac_func" >&5
43555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43556 if eval "test \"\${$as_ac_var+set}\" = set"; then
43557 echo $ECHO_N "(cached) $ECHO_C" >&6
43558 else
43559 if test x$gcc_no_link = xyes; then
43560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43562 { (exit 1); exit 1; }; }
43564 cat >conftest.$ac_ext <<_ACEOF
43565 /* confdefs.h. */
43566 _ACEOF
43567 cat confdefs.h >>conftest.$ac_ext
43568 cat >>conftest.$ac_ext <<_ACEOF
43569 /* end confdefs.h. */
43570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43572 #define $ac_func innocuous_$ac_func
43574 /* System header to define __stub macros and hopefully few prototypes,
43575 which can conflict with char $ac_func (); below.
43576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43577 <limits.h> exists even on freestanding compilers. */
43579 #ifdef __STDC__
43580 # include <limits.h>
43581 #else
43582 # include <assert.h>
43583 #endif
43585 #undef $ac_func
43587 /* Override any gcc2 internal prototype to avoid an error. */
43588 #ifdef __cplusplus
43589 extern "C"
43591 #endif
43592 /* We use char because int might match the return type of a gcc2
43593 builtin and then its argument prototype would still apply. */
43594 char $ac_func ();
43595 /* The GNU C library defines this for functions which it implements
43596 to always fail with ENOSYS. Some functions are actually named
43597 something starting with __ and the normal name is an alias. */
43598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43599 choke me
43600 #else
43601 char (*f) () = $ac_func;
43602 #endif
43603 #ifdef __cplusplus
43605 #endif
43608 main ()
43610 return f != $ac_func;
43612 return 0;
43614 _ACEOF
43615 rm -f conftest.$ac_objext conftest$ac_exeext
43616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43617 (eval $ac_link) 2>conftest.er1
43618 ac_status=$?
43619 grep -v '^ *+' conftest.er1 >conftest.err
43620 rm -f conftest.er1
43621 cat conftest.err >&5
43622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43623 (exit $ac_status); } &&
43624 { ac_try='test -z "$ac_c_werror_flag"
43625 || test ! -s conftest.err'
43626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43627 (eval $ac_try) 2>&5
43628 ac_status=$?
43629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43630 (exit $ac_status); }; } &&
43631 { ac_try='test -s conftest$ac_exeext'
43632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43633 (eval $ac_try) 2>&5
43634 ac_status=$?
43635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43636 (exit $ac_status); }; }; then
43637 eval "$as_ac_var=yes"
43638 else
43639 echo "$as_me: failed program was:" >&5
43640 sed 's/^/| /' conftest.$ac_ext >&5
43642 eval "$as_ac_var=no"
43644 rm -f conftest.err conftest.$ac_objext \
43645 conftest$ac_exeext conftest.$ac_ext
43647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43649 if test `eval echo '${'$as_ac_var'}'` = yes; then
43650 cat >>confdefs.h <<_ACEOF
43651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43652 _ACEOF
43655 done
43662 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43663 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43664 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43665 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43666 echo $ECHO_N "(cached) $ECHO_C" >&6
43667 else
43671 ac_ext=cc
43672 ac_cpp='$CXXCPP $CPPFLAGS'
43673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43677 cat >conftest.$ac_ext <<_ACEOF
43678 /* confdefs.h. */
43679 _ACEOF
43680 cat confdefs.h >>conftest.$ac_ext
43681 cat >>conftest.$ac_ext <<_ACEOF
43682 /* end confdefs.h. */
43683 #include <math.h>
43685 main ()
43687 fmodl(0, 0);
43689 return 0;
43691 _ACEOF
43692 rm -f conftest.$ac_objext
43693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43694 (eval $ac_compile) 2>conftest.er1
43695 ac_status=$?
43696 grep -v '^ *+' conftest.er1 >conftest.err
43697 rm -f conftest.er1
43698 cat conftest.err >&5
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); } &&
43701 { ac_try='test -z "$ac_cxx_werror_flag"
43702 || test ! -s conftest.err'
43703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43704 (eval $ac_try) 2>&5
43705 ac_status=$?
43706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43707 (exit $ac_status); }; } &&
43708 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
43714 glibcxx_cv_func_fmodl_use=yes
43715 else
43716 echo "$as_me: failed program was:" >&5
43717 sed 's/^/| /' conftest.$ac_ext >&5
43719 glibcxx_cv_func_fmodl_use=no
43721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43722 ac_ext=c
43723 ac_cpp='$CPP $CPPFLAGS'
43724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43732 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43733 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43735 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43737 for ac_func in fmodl
43739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43740 echo "$as_me:$LINENO: checking for $ac_func" >&5
43741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43742 if eval "test \"\${$as_ac_var+set}\" = set"; then
43743 echo $ECHO_N "(cached) $ECHO_C" >&6
43744 else
43745 if test x$gcc_no_link = xyes; then
43746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43748 { (exit 1); exit 1; }; }
43750 cat >conftest.$ac_ext <<_ACEOF
43751 /* confdefs.h. */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h. */
43756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43758 #define $ac_func innocuous_$ac_func
43760 /* System header to define __stub macros and hopefully few prototypes,
43761 which can conflict with char $ac_func (); below.
43762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43763 <limits.h> exists even on freestanding compilers. */
43765 #ifdef __STDC__
43766 # include <limits.h>
43767 #else
43768 # include <assert.h>
43769 #endif
43771 #undef $ac_func
43773 /* Override any gcc2 internal prototype to avoid an error. */
43774 #ifdef __cplusplus
43775 extern "C"
43777 #endif
43778 /* We use char because int might match the return type of a gcc2
43779 builtin and then its argument prototype would still apply. */
43780 char $ac_func ();
43781 /* The GNU C library defines this for functions which it implements
43782 to always fail with ENOSYS. Some functions are actually named
43783 something starting with __ and the normal name is an alias. */
43784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43785 choke me
43786 #else
43787 char (*f) () = $ac_func;
43788 #endif
43789 #ifdef __cplusplus
43791 #endif
43794 main ()
43796 return f != $ac_func;
43798 return 0;
43800 _ACEOF
43801 rm -f conftest.$ac_objext conftest$ac_exeext
43802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43803 (eval $ac_link) 2>conftest.er1
43804 ac_status=$?
43805 grep -v '^ *+' conftest.er1 >conftest.err
43806 rm -f conftest.er1
43807 cat conftest.err >&5
43808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43809 (exit $ac_status); } &&
43810 { ac_try='test -z "$ac_c_werror_flag"
43811 || test ! -s conftest.err'
43812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813 (eval $ac_try) 2>&5
43814 ac_status=$?
43815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816 (exit $ac_status); }; } &&
43817 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43823 eval "$as_ac_var=yes"
43824 else
43825 echo "$as_me: failed program was:" >&5
43826 sed 's/^/| /' conftest.$ac_ext >&5
43828 eval "$as_ac_var=no"
43830 rm -f conftest.err conftest.$ac_objext \
43831 conftest$ac_exeext conftest.$ac_ext
43833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43835 if test `eval echo '${'$as_ac_var'}'` = yes; then
43836 cat >>confdefs.h <<_ACEOF
43837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43838 _ACEOF
43841 done
43843 else
43845 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43846 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43847 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43848 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43849 echo $ECHO_N "(cached) $ECHO_C" >&6
43850 else
43854 ac_ext=cc
43855 ac_cpp='$CXXCPP $CPPFLAGS'
43856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43860 cat >conftest.$ac_ext <<_ACEOF
43861 /* confdefs.h. */
43862 _ACEOF
43863 cat confdefs.h >>conftest.$ac_ext
43864 cat >>conftest.$ac_ext <<_ACEOF
43865 /* end confdefs.h. */
43866 #include <math.h>
43868 main ()
43870 _fmodl(0, 0);
43872 return 0;
43874 _ACEOF
43875 rm -f conftest.$ac_objext
43876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43877 (eval $ac_compile) 2>conftest.er1
43878 ac_status=$?
43879 grep -v '^ *+' conftest.er1 >conftest.err
43880 rm -f conftest.er1
43881 cat conftest.err >&5
43882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883 (exit $ac_status); } &&
43884 { ac_try='test -z "$ac_cxx_werror_flag"
43885 || test ! -s conftest.err'
43886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43887 (eval $ac_try) 2>&5
43888 ac_status=$?
43889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890 (exit $ac_status); }; } &&
43891 { ac_try='test -s conftest.$ac_objext'
43892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43893 (eval $ac_try) 2>&5
43894 ac_status=$?
43895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43896 (exit $ac_status); }; }; then
43897 glibcxx_cv_func__fmodl_use=yes
43898 else
43899 echo "$as_me: failed program was:" >&5
43900 sed 's/^/| /' conftest.$ac_ext >&5
43902 glibcxx_cv_func__fmodl_use=no
43904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43905 ac_ext=c
43906 ac_cpp='$CPP $CPPFLAGS'
43907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43915 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43916 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43918 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43920 for ac_func in _fmodl
43922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43923 echo "$as_me:$LINENO: checking for $ac_func" >&5
43924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43925 if eval "test \"\${$as_ac_var+set}\" = set"; then
43926 echo $ECHO_N "(cached) $ECHO_C" >&6
43927 else
43928 if test x$gcc_no_link = xyes; then
43929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43931 { (exit 1); exit 1; }; }
43933 cat >conftest.$ac_ext <<_ACEOF
43934 /* confdefs.h. */
43935 _ACEOF
43936 cat confdefs.h >>conftest.$ac_ext
43937 cat >>conftest.$ac_ext <<_ACEOF
43938 /* end confdefs.h. */
43939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43941 #define $ac_func innocuous_$ac_func
43943 /* System header to define __stub macros and hopefully few prototypes,
43944 which can conflict with char $ac_func (); below.
43945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43946 <limits.h> exists even on freestanding compilers. */
43948 #ifdef __STDC__
43949 # include <limits.h>
43950 #else
43951 # include <assert.h>
43952 #endif
43954 #undef $ac_func
43956 /* Override any gcc2 internal prototype to avoid an error. */
43957 #ifdef __cplusplus
43958 extern "C"
43960 #endif
43961 /* We use char because int might match the return type of a gcc2
43962 builtin and then its argument prototype would still apply. */
43963 char $ac_func ();
43964 /* The GNU C library defines this for functions which it implements
43965 to always fail with ENOSYS. Some functions are actually named
43966 something starting with __ and the normal name is an alias. */
43967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43968 choke me
43969 #else
43970 char (*f) () = $ac_func;
43971 #endif
43972 #ifdef __cplusplus
43974 #endif
43977 main ()
43979 return f != $ac_func;
43981 return 0;
43983 _ACEOF
43984 rm -f conftest.$ac_objext conftest$ac_exeext
43985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43986 (eval $ac_link) 2>conftest.er1
43987 ac_status=$?
43988 grep -v '^ *+' conftest.er1 >conftest.err
43989 rm -f conftest.er1
43990 cat conftest.err >&5
43991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992 (exit $ac_status); } &&
43993 { ac_try='test -z "$ac_c_werror_flag"
43994 || test ! -s conftest.err'
43995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43996 (eval $ac_try) 2>&5
43997 ac_status=$?
43998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43999 (exit $ac_status); }; } &&
44000 { ac_try='test -s conftest$ac_exeext'
44001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44002 (eval $ac_try) 2>&5
44003 ac_status=$?
44004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005 (exit $ac_status); }; }; then
44006 eval "$as_ac_var=yes"
44007 else
44008 echo "$as_me: failed program was:" >&5
44009 sed 's/^/| /' conftest.$ac_ext >&5
44011 eval "$as_ac_var=no"
44013 rm -f conftest.err conftest.$ac_objext \
44014 conftest$ac_exeext conftest.$ac_ext
44016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44018 if test `eval echo '${'$as_ac_var'}'` = yes; then
44019 cat >>confdefs.h <<_ACEOF
44020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44021 _ACEOF
44024 done
44031 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
44032 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
44033 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
44034 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
44035 echo $ECHO_N "(cached) $ECHO_C" >&6
44036 else
44040 ac_ext=cc
44041 ac_cpp='$CXXCPP $CPPFLAGS'
44042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44046 cat >conftest.$ac_ext <<_ACEOF
44047 /* confdefs.h. */
44048 _ACEOF
44049 cat confdefs.h >>conftest.$ac_ext
44050 cat >>conftest.$ac_ext <<_ACEOF
44051 /* end confdefs.h. */
44052 #include <math.h>
44054 main ()
44056 frexpl(0, 0);
44058 return 0;
44060 _ACEOF
44061 rm -f conftest.$ac_objext
44062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44063 (eval $ac_compile) 2>conftest.er1
44064 ac_status=$?
44065 grep -v '^ *+' conftest.er1 >conftest.err
44066 rm -f conftest.er1
44067 cat conftest.err >&5
44068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069 (exit $ac_status); } &&
44070 { ac_try='test -z "$ac_cxx_werror_flag"
44071 || test ! -s conftest.err'
44072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44073 (eval $ac_try) 2>&5
44074 ac_status=$?
44075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44076 (exit $ac_status); }; } &&
44077 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
44083 glibcxx_cv_func_frexpl_use=yes
44084 else
44085 echo "$as_me: failed program was:" >&5
44086 sed 's/^/| /' conftest.$ac_ext >&5
44088 glibcxx_cv_func_frexpl_use=no
44090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44091 ac_ext=c
44092 ac_cpp='$CPP $CPPFLAGS'
44093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44101 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
44102 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
44104 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44106 for ac_func in frexpl
44108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44109 echo "$as_me:$LINENO: checking for $ac_func" >&5
44110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44111 if eval "test \"\${$as_ac_var+set}\" = set"; then
44112 echo $ECHO_N "(cached) $ECHO_C" >&6
44113 else
44114 if test x$gcc_no_link = xyes; then
44115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44117 { (exit 1); exit 1; }; }
44119 cat >conftest.$ac_ext <<_ACEOF
44120 /* confdefs.h. */
44121 _ACEOF
44122 cat confdefs.h >>conftest.$ac_ext
44123 cat >>conftest.$ac_ext <<_ACEOF
44124 /* end confdefs.h. */
44125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44127 #define $ac_func innocuous_$ac_func
44129 /* System header to define __stub macros and hopefully few prototypes,
44130 which can conflict with char $ac_func (); below.
44131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44132 <limits.h> exists even on freestanding compilers. */
44134 #ifdef __STDC__
44135 # include <limits.h>
44136 #else
44137 # include <assert.h>
44138 #endif
44140 #undef $ac_func
44142 /* Override any gcc2 internal prototype to avoid an error. */
44143 #ifdef __cplusplus
44144 extern "C"
44146 #endif
44147 /* We use char because int might match the return type of a gcc2
44148 builtin and then its argument prototype would still apply. */
44149 char $ac_func ();
44150 /* The GNU C library defines this for functions which it implements
44151 to always fail with ENOSYS. Some functions are actually named
44152 something starting with __ and the normal name is an alias. */
44153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44154 choke me
44155 #else
44156 char (*f) () = $ac_func;
44157 #endif
44158 #ifdef __cplusplus
44160 #endif
44163 main ()
44165 return f != $ac_func;
44167 return 0;
44169 _ACEOF
44170 rm -f conftest.$ac_objext conftest$ac_exeext
44171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44172 (eval $ac_link) 2>conftest.er1
44173 ac_status=$?
44174 grep -v '^ *+' conftest.er1 >conftest.err
44175 rm -f conftest.er1
44176 cat conftest.err >&5
44177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44178 (exit $ac_status); } &&
44179 { ac_try='test -z "$ac_c_werror_flag"
44180 || test ! -s conftest.err'
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182 (eval $ac_try) 2>&5
44183 ac_status=$?
44184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; } &&
44186 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
44192 eval "$as_ac_var=yes"
44193 else
44194 echo "$as_me: failed program was:" >&5
44195 sed 's/^/| /' conftest.$ac_ext >&5
44197 eval "$as_ac_var=no"
44199 rm -f conftest.err conftest.$ac_objext \
44200 conftest$ac_exeext conftest.$ac_ext
44202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44204 if test `eval echo '${'$as_ac_var'}'` = yes; then
44205 cat >>confdefs.h <<_ACEOF
44206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44207 _ACEOF
44210 done
44212 else
44214 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44215 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44216 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44217 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44218 echo $ECHO_N "(cached) $ECHO_C" >&6
44219 else
44223 ac_ext=cc
44224 ac_cpp='$CXXCPP $CPPFLAGS'
44225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44229 cat >conftest.$ac_ext <<_ACEOF
44230 /* confdefs.h. */
44231 _ACEOF
44232 cat confdefs.h >>conftest.$ac_ext
44233 cat >>conftest.$ac_ext <<_ACEOF
44234 /* end confdefs.h. */
44235 #include <math.h>
44237 main ()
44239 _frexpl(0, 0);
44241 return 0;
44243 _ACEOF
44244 rm -f conftest.$ac_objext
44245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44246 (eval $ac_compile) 2>conftest.er1
44247 ac_status=$?
44248 grep -v '^ *+' conftest.er1 >conftest.err
44249 rm -f conftest.er1
44250 cat conftest.err >&5
44251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44252 (exit $ac_status); } &&
44253 { ac_try='test -z "$ac_cxx_werror_flag"
44254 || test ! -s conftest.err'
44255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44256 (eval $ac_try) 2>&5
44257 ac_status=$?
44258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44259 (exit $ac_status); }; } &&
44260 { ac_try='test -s conftest.$ac_objext'
44261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44262 (eval $ac_try) 2>&5
44263 ac_status=$?
44264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); }; }; then
44266 glibcxx_cv_func__frexpl_use=yes
44267 else
44268 echo "$as_me: failed program was:" >&5
44269 sed 's/^/| /' conftest.$ac_ext >&5
44271 glibcxx_cv_func__frexpl_use=no
44273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44274 ac_ext=c
44275 ac_cpp='$CPP $CPPFLAGS'
44276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44284 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44285 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44287 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44289 for ac_func in _frexpl
44291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44292 echo "$as_me:$LINENO: checking for $ac_func" >&5
44293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44294 if eval "test \"\${$as_ac_var+set}\" = set"; then
44295 echo $ECHO_N "(cached) $ECHO_C" >&6
44296 else
44297 if test x$gcc_no_link = xyes; then
44298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44300 { (exit 1); exit 1; }; }
44302 cat >conftest.$ac_ext <<_ACEOF
44303 /* confdefs.h. */
44304 _ACEOF
44305 cat confdefs.h >>conftest.$ac_ext
44306 cat >>conftest.$ac_ext <<_ACEOF
44307 /* end confdefs.h. */
44308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44310 #define $ac_func innocuous_$ac_func
44312 /* System header to define __stub macros and hopefully few prototypes,
44313 which can conflict with char $ac_func (); below.
44314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44315 <limits.h> exists even on freestanding compilers. */
44317 #ifdef __STDC__
44318 # include <limits.h>
44319 #else
44320 # include <assert.h>
44321 #endif
44323 #undef $ac_func
44325 /* Override any gcc2 internal prototype to avoid an error. */
44326 #ifdef __cplusplus
44327 extern "C"
44329 #endif
44330 /* We use char because int might match the return type of a gcc2
44331 builtin and then its argument prototype would still apply. */
44332 char $ac_func ();
44333 /* The GNU C library defines this for functions which it implements
44334 to always fail with ENOSYS. Some functions are actually named
44335 something starting with __ and the normal name is an alias. */
44336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44337 choke me
44338 #else
44339 char (*f) () = $ac_func;
44340 #endif
44341 #ifdef __cplusplus
44343 #endif
44346 main ()
44348 return f != $ac_func;
44350 return 0;
44352 _ACEOF
44353 rm -f conftest.$ac_objext conftest$ac_exeext
44354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44355 (eval $ac_link) 2>conftest.er1
44356 ac_status=$?
44357 grep -v '^ *+' conftest.er1 >conftest.err
44358 rm -f conftest.er1
44359 cat conftest.err >&5
44360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44361 (exit $ac_status); } &&
44362 { ac_try='test -z "$ac_c_werror_flag"
44363 || test ! -s conftest.err'
44364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44365 (eval $ac_try) 2>&5
44366 ac_status=$?
44367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368 (exit $ac_status); }; } &&
44369 { ac_try='test -s conftest$ac_exeext'
44370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44371 (eval $ac_try) 2>&5
44372 ac_status=$?
44373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44374 (exit $ac_status); }; }; then
44375 eval "$as_ac_var=yes"
44376 else
44377 echo "$as_me: failed program was:" >&5
44378 sed 's/^/| /' conftest.$ac_ext >&5
44380 eval "$as_ac_var=no"
44382 rm -f conftest.err conftest.$ac_objext \
44383 conftest$ac_exeext conftest.$ac_ext
44385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44387 if test `eval echo '${'$as_ac_var'}'` = yes; then
44388 cat >>confdefs.h <<_ACEOF
44389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44390 _ACEOF
44393 done
44400 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44401 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44402 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44403 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44404 echo $ECHO_N "(cached) $ECHO_C" >&6
44405 else
44409 ac_ext=cc
44410 ac_cpp='$CXXCPP $CPPFLAGS'
44411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44415 cat >conftest.$ac_ext <<_ACEOF
44416 /* confdefs.h. */
44417 _ACEOF
44418 cat confdefs.h >>conftest.$ac_ext
44419 cat >>conftest.$ac_ext <<_ACEOF
44420 /* end confdefs.h. */
44421 #include <math.h>
44423 main ()
44425 hypotl(0, 0);
44427 return 0;
44429 _ACEOF
44430 rm -f conftest.$ac_objext
44431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44432 (eval $ac_compile) 2>conftest.er1
44433 ac_status=$?
44434 grep -v '^ *+' conftest.er1 >conftest.err
44435 rm -f conftest.er1
44436 cat conftest.err >&5
44437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44438 (exit $ac_status); } &&
44439 { ac_try='test -z "$ac_cxx_werror_flag"
44440 || test ! -s conftest.err'
44441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44442 (eval $ac_try) 2>&5
44443 ac_status=$?
44444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44445 (exit $ac_status); }; } &&
44446 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
44452 glibcxx_cv_func_hypotl_use=yes
44453 else
44454 echo "$as_me: failed program was:" >&5
44455 sed 's/^/| /' conftest.$ac_ext >&5
44457 glibcxx_cv_func_hypotl_use=no
44459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44460 ac_ext=c
44461 ac_cpp='$CPP $CPPFLAGS'
44462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44470 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44471 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44473 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44475 for ac_func in hypotl
44477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44478 echo "$as_me:$LINENO: checking for $ac_func" >&5
44479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44480 if eval "test \"\${$as_ac_var+set}\" = set"; then
44481 echo $ECHO_N "(cached) $ECHO_C" >&6
44482 else
44483 if test x$gcc_no_link = xyes; then
44484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44486 { (exit 1); exit 1; }; }
44488 cat >conftest.$ac_ext <<_ACEOF
44489 /* confdefs.h. */
44490 _ACEOF
44491 cat confdefs.h >>conftest.$ac_ext
44492 cat >>conftest.$ac_ext <<_ACEOF
44493 /* end confdefs.h. */
44494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44496 #define $ac_func innocuous_$ac_func
44498 /* System header to define __stub macros and hopefully few prototypes,
44499 which can conflict with char $ac_func (); below.
44500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44501 <limits.h> exists even on freestanding compilers. */
44503 #ifdef __STDC__
44504 # include <limits.h>
44505 #else
44506 # include <assert.h>
44507 #endif
44509 #undef $ac_func
44511 /* Override any gcc2 internal prototype to avoid an error. */
44512 #ifdef __cplusplus
44513 extern "C"
44515 #endif
44516 /* We use char because int might match the return type of a gcc2
44517 builtin and then its argument prototype would still apply. */
44518 char $ac_func ();
44519 /* The GNU C library defines this for functions which it implements
44520 to always fail with ENOSYS. Some functions are actually named
44521 something starting with __ and the normal name is an alias. */
44522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44523 choke me
44524 #else
44525 char (*f) () = $ac_func;
44526 #endif
44527 #ifdef __cplusplus
44529 #endif
44532 main ()
44534 return f != $ac_func;
44536 return 0;
44538 _ACEOF
44539 rm -f conftest.$ac_objext conftest$ac_exeext
44540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44541 (eval $ac_link) 2>conftest.er1
44542 ac_status=$?
44543 grep -v '^ *+' conftest.er1 >conftest.err
44544 rm -f conftest.er1
44545 cat conftest.err >&5
44546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547 (exit $ac_status); } &&
44548 { ac_try='test -z "$ac_c_werror_flag"
44549 || test ! -s conftest.err'
44550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44551 (eval $ac_try) 2>&5
44552 ac_status=$?
44553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44554 (exit $ac_status); }; } &&
44555 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
44561 eval "$as_ac_var=yes"
44562 else
44563 echo "$as_me: failed program was:" >&5
44564 sed 's/^/| /' conftest.$ac_ext >&5
44566 eval "$as_ac_var=no"
44568 rm -f conftest.err conftest.$ac_objext \
44569 conftest$ac_exeext conftest.$ac_ext
44571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44573 if test `eval echo '${'$as_ac_var'}'` = yes; then
44574 cat >>confdefs.h <<_ACEOF
44575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44576 _ACEOF
44579 done
44581 else
44583 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44584 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44585 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44586 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44587 echo $ECHO_N "(cached) $ECHO_C" >&6
44588 else
44592 ac_ext=cc
44593 ac_cpp='$CXXCPP $CPPFLAGS'
44594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44598 cat >conftest.$ac_ext <<_ACEOF
44599 /* confdefs.h. */
44600 _ACEOF
44601 cat confdefs.h >>conftest.$ac_ext
44602 cat >>conftest.$ac_ext <<_ACEOF
44603 /* end confdefs.h. */
44604 #include <math.h>
44606 main ()
44608 _hypotl(0, 0);
44610 return 0;
44612 _ACEOF
44613 rm -f conftest.$ac_objext
44614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44615 (eval $ac_compile) 2>conftest.er1
44616 ac_status=$?
44617 grep -v '^ *+' conftest.er1 >conftest.err
44618 rm -f conftest.er1
44619 cat conftest.err >&5
44620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44621 (exit $ac_status); } &&
44622 { ac_try='test -z "$ac_cxx_werror_flag"
44623 || test ! -s conftest.err'
44624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44625 (eval $ac_try) 2>&5
44626 ac_status=$?
44627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44628 (exit $ac_status); }; } &&
44629 { ac_try='test -s conftest.$ac_objext'
44630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44631 (eval $ac_try) 2>&5
44632 ac_status=$?
44633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634 (exit $ac_status); }; }; then
44635 glibcxx_cv_func__hypotl_use=yes
44636 else
44637 echo "$as_me: failed program was:" >&5
44638 sed 's/^/| /' conftest.$ac_ext >&5
44640 glibcxx_cv_func__hypotl_use=no
44642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44643 ac_ext=c
44644 ac_cpp='$CPP $CPPFLAGS'
44645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44653 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44654 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44656 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44658 for ac_func in _hypotl
44660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44661 echo "$as_me:$LINENO: checking for $ac_func" >&5
44662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44663 if eval "test \"\${$as_ac_var+set}\" = set"; then
44664 echo $ECHO_N "(cached) $ECHO_C" >&6
44665 else
44666 if test x$gcc_no_link = xyes; then
44667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44669 { (exit 1); exit 1; }; }
44671 cat >conftest.$ac_ext <<_ACEOF
44672 /* confdefs.h. */
44673 _ACEOF
44674 cat confdefs.h >>conftest.$ac_ext
44675 cat >>conftest.$ac_ext <<_ACEOF
44676 /* end confdefs.h. */
44677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44679 #define $ac_func innocuous_$ac_func
44681 /* System header to define __stub macros and hopefully few prototypes,
44682 which can conflict with char $ac_func (); below.
44683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44684 <limits.h> exists even on freestanding compilers. */
44686 #ifdef __STDC__
44687 # include <limits.h>
44688 #else
44689 # include <assert.h>
44690 #endif
44692 #undef $ac_func
44694 /* Override any gcc2 internal prototype to avoid an error. */
44695 #ifdef __cplusplus
44696 extern "C"
44698 #endif
44699 /* We use char because int might match the return type of a gcc2
44700 builtin and then its argument prototype would still apply. */
44701 char $ac_func ();
44702 /* The GNU C library defines this for functions which it implements
44703 to always fail with ENOSYS. Some functions are actually named
44704 something starting with __ and the normal name is an alias. */
44705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44706 choke me
44707 #else
44708 char (*f) () = $ac_func;
44709 #endif
44710 #ifdef __cplusplus
44712 #endif
44715 main ()
44717 return f != $ac_func;
44719 return 0;
44721 _ACEOF
44722 rm -f conftest.$ac_objext conftest$ac_exeext
44723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44724 (eval $ac_link) 2>conftest.er1
44725 ac_status=$?
44726 grep -v '^ *+' conftest.er1 >conftest.err
44727 rm -f conftest.er1
44728 cat conftest.err >&5
44729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44730 (exit $ac_status); } &&
44731 { ac_try='test -z "$ac_c_werror_flag"
44732 || test ! -s conftest.err'
44733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44734 (eval $ac_try) 2>&5
44735 ac_status=$?
44736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737 (exit $ac_status); }; } &&
44738 { ac_try='test -s conftest$ac_exeext'
44739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44740 (eval $ac_try) 2>&5
44741 ac_status=$?
44742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44743 (exit $ac_status); }; }; then
44744 eval "$as_ac_var=yes"
44745 else
44746 echo "$as_me: failed program was:" >&5
44747 sed 's/^/| /' conftest.$ac_ext >&5
44749 eval "$as_ac_var=no"
44751 rm -f conftest.err conftest.$ac_objext \
44752 conftest$ac_exeext conftest.$ac_ext
44754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44756 if test `eval echo '${'$as_ac_var'}'` = yes; then
44757 cat >>confdefs.h <<_ACEOF
44758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44759 _ACEOF
44762 done
44769 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44770 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44771 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44772 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44773 echo $ECHO_N "(cached) $ECHO_C" >&6
44774 else
44778 ac_ext=cc
44779 ac_cpp='$CXXCPP $CPPFLAGS'
44780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44784 cat >conftest.$ac_ext <<_ACEOF
44785 /* confdefs.h. */
44786 _ACEOF
44787 cat confdefs.h >>conftest.$ac_ext
44788 cat >>conftest.$ac_ext <<_ACEOF
44789 /* end confdefs.h. */
44790 #include <math.h>
44792 main ()
44794 ldexpl(0, 0);
44796 return 0;
44798 _ACEOF
44799 rm -f conftest.$ac_objext
44800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44801 (eval $ac_compile) 2>conftest.er1
44802 ac_status=$?
44803 grep -v '^ *+' conftest.er1 >conftest.err
44804 rm -f conftest.er1
44805 cat conftest.err >&5
44806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); } &&
44808 { ac_try='test -z "$ac_cxx_werror_flag"
44809 || test ! -s conftest.err'
44810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44811 (eval $ac_try) 2>&5
44812 ac_status=$?
44813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44814 (exit $ac_status); }; } &&
44815 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
44821 glibcxx_cv_func_ldexpl_use=yes
44822 else
44823 echo "$as_me: failed program was:" >&5
44824 sed 's/^/| /' conftest.$ac_ext >&5
44826 glibcxx_cv_func_ldexpl_use=no
44828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44829 ac_ext=c
44830 ac_cpp='$CPP $CPPFLAGS'
44831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44839 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44840 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44842 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44844 for ac_func in ldexpl
44846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44847 echo "$as_me:$LINENO: checking for $ac_func" >&5
44848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44849 if eval "test \"\${$as_ac_var+set}\" = set"; then
44850 echo $ECHO_N "(cached) $ECHO_C" >&6
44851 else
44852 if test x$gcc_no_link = xyes; then
44853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44855 { (exit 1); exit 1; }; }
44857 cat >conftest.$ac_ext <<_ACEOF
44858 /* confdefs.h. */
44859 _ACEOF
44860 cat confdefs.h >>conftest.$ac_ext
44861 cat >>conftest.$ac_ext <<_ACEOF
44862 /* end confdefs.h. */
44863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44865 #define $ac_func innocuous_$ac_func
44867 /* System header to define __stub macros and hopefully few prototypes,
44868 which can conflict with char $ac_func (); below.
44869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44870 <limits.h> exists even on freestanding compilers. */
44872 #ifdef __STDC__
44873 # include <limits.h>
44874 #else
44875 # include <assert.h>
44876 #endif
44878 #undef $ac_func
44880 /* Override any gcc2 internal prototype to avoid an error. */
44881 #ifdef __cplusplus
44882 extern "C"
44884 #endif
44885 /* We use char because int might match the return type of a gcc2
44886 builtin and then its argument prototype would still apply. */
44887 char $ac_func ();
44888 /* The GNU C library defines this for functions which it implements
44889 to always fail with ENOSYS. Some functions are actually named
44890 something starting with __ and the normal name is an alias. */
44891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44892 choke me
44893 #else
44894 char (*f) () = $ac_func;
44895 #endif
44896 #ifdef __cplusplus
44898 #endif
44901 main ()
44903 return f != $ac_func;
44905 return 0;
44907 _ACEOF
44908 rm -f conftest.$ac_objext conftest$ac_exeext
44909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44910 (eval $ac_link) 2>conftest.er1
44911 ac_status=$?
44912 grep -v '^ *+' conftest.er1 >conftest.err
44913 rm -f conftest.er1
44914 cat conftest.err >&5
44915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44916 (exit $ac_status); } &&
44917 { ac_try='test -z "$ac_c_werror_flag"
44918 || test ! -s conftest.err'
44919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44920 (eval $ac_try) 2>&5
44921 ac_status=$?
44922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44923 (exit $ac_status); }; } &&
44924 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
44930 eval "$as_ac_var=yes"
44931 else
44932 echo "$as_me: failed program was:" >&5
44933 sed 's/^/| /' conftest.$ac_ext >&5
44935 eval "$as_ac_var=no"
44937 rm -f conftest.err conftest.$ac_objext \
44938 conftest$ac_exeext conftest.$ac_ext
44940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44942 if test `eval echo '${'$as_ac_var'}'` = yes; then
44943 cat >>confdefs.h <<_ACEOF
44944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44945 _ACEOF
44948 done
44950 else
44952 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44953 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44954 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44955 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44956 echo $ECHO_N "(cached) $ECHO_C" >&6
44957 else
44961 ac_ext=cc
44962 ac_cpp='$CXXCPP $CPPFLAGS'
44963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44967 cat >conftest.$ac_ext <<_ACEOF
44968 /* confdefs.h. */
44969 _ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h. */
44973 #include <math.h>
44975 main ()
44977 _ldexpl(0, 0);
44979 return 0;
44981 _ACEOF
44982 rm -f conftest.$ac_objext
44983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44984 (eval $ac_compile) 2>conftest.er1
44985 ac_status=$?
44986 grep -v '^ *+' conftest.er1 >conftest.err
44987 rm -f conftest.er1
44988 cat conftest.err >&5
44989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44990 (exit $ac_status); } &&
44991 { ac_try='test -z "$ac_cxx_werror_flag"
44992 || test ! -s conftest.err'
44993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44994 (eval $ac_try) 2>&5
44995 ac_status=$?
44996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997 (exit $ac_status); }; } &&
44998 { ac_try='test -s conftest.$ac_objext'
44999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45000 (eval $ac_try) 2>&5
45001 ac_status=$?
45002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45003 (exit $ac_status); }; }; then
45004 glibcxx_cv_func__ldexpl_use=yes
45005 else
45006 echo "$as_me: failed program was:" >&5
45007 sed 's/^/| /' conftest.$ac_ext >&5
45009 glibcxx_cv_func__ldexpl_use=no
45011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45012 ac_ext=c
45013 ac_cpp='$CPP $CPPFLAGS'
45014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45022 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
45023 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
45025 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
45027 for ac_func in _ldexpl
45029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45030 echo "$as_me:$LINENO: checking for $ac_func" >&5
45031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45032 if eval "test \"\${$as_ac_var+set}\" = set"; then
45033 echo $ECHO_N "(cached) $ECHO_C" >&6
45034 else
45035 if test x$gcc_no_link = xyes; then
45036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45038 { (exit 1); exit 1; }; }
45040 cat >conftest.$ac_ext <<_ACEOF
45041 /* confdefs.h. */
45042 _ACEOF
45043 cat confdefs.h >>conftest.$ac_ext
45044 cat >>conftest.$ac_ext <<_ACEOF
45045 /* end confdefs.h. */
45046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45048 #define $ac_func innocuous_$ac_func
45050 /* System header to define __stub macros and hopefully few prototypes,
45051 which can conflict with char $ac_func (); below.
45052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45053 <limits.h> exists even on freestanding compilers. */
45055 #ifdef __STDC__
45056 # include <limits.h>
45057 #else
45058 # include <assert.h>
45059 #endif
45061 #undef $ac_func
45063 /* Override any gcc2 internal prototype to avoid an error. */
45064 #ifdef __cplusplus
45065 extern "C"
45067 #endif
45068 /* We use char because int might match the return type of a gcc2
45069 builtin and then its argument prototype would still apply. */
45070 char $ac_func ();
45071 /* The GNU C library defines this for functions which it implements
45072 to always fail with ENOSYS. Some functions are actually named
45073 something starting with __ and the normal name is an alias. */
45074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45075 choke me
45076 #else
45077 char (*f) () = $ac_func;
45078 #endif
45079 #ifdef __cplusplus
45081 #endif
45084 main ()
45086 return f != $ac_func;
45088 return 0;
45090 _ACEOF
45091 rm -f conftest.$ac_objext conftest$ac_exeext
45092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45093 (eval $ac_link) 2>conftest.er1
45094 ac_status=$?
45095 grep -v '^ *+' conftest.er1 >conftest.err
45096 rm -f conftest.er1
45097 cat conftest.err >&5
45098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099 (exit $ac_status); } &&
45100 { ac_try='test -z "$ac_c_werror_flag"
45101 || test ! -s conftest.err'
45102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45103 (eval $ac_try) 2>&5
45104 ac_status=$?
45105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 (exit $ac_status); }; } &&
45107 { ac_try='test -s conftest$ac_exeext'
45108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45109 (eval $ac_try) 2>&5
45110 ac_status=$?
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); }; }; then
45113 eval "$as_ac_var=yes"
45114 else
45115 echo "$as_me: failed program was:" >&5
45116 sed 's/^/| /' conftest.$ac_ext >&5
45118 eval "$as_ac_var=no"
45120 rm -f conftest.err conftest.$ac_objext \
45121 conftest$ac_exeext conftest.$ac_ext
45123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45125 if test `eval echo '${'$as_ac_var'}'` = yes; then
45126 cat >>confdefs.h <<_ACEOF
45127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45128 _ACEOF
45131 done
45138 echo "$as_me:$LINENO: checking for logl declaration" >&5
45139 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
45140 if test x${glibcxx_cv_func_logl_use+set} != xset; then
45141 if test "${glibcxx_cv_func_logl_use+set}" = set; then
45142 echo $ECHO_N "(cached) $ECHO_C" >&6
45143 else
45147 ac_ext=cc
45148 ac_cpp='$CXXCPP $CPPFLAGS'
45149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45153 cat >conftest.$ac_ext <<_ACEOF
45154 /* confdefs.h. */
45155 _ACEOF
45156 cat confdefs.h >>conftest.$ac_ext
45157 cat >>conftest.$ac_ext <<_ACEOF
45158 /* end confdefs.h. */
45159 #include <math.h>
45160 #ifdef HAVE_IEEEFP_H
45161 #include <ieeefp.h>
45162 #endif
45165 main ()
45167 logl(0);
45169 return 0;
45171 _ACEOF
45172 rm -f conftest.$ac_objext
45173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45174 (eval $ac_compile) 2>conftest.er1
45175 ac_status=$?
45176 grep -v '^ *+' conftest.er1 >conftest.err
45177 rm -f conftest.er1
45178 cat conftest.err >&5
45179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45180 (exit $ac_status); } &&
45181 { ac_try='test -z "$ac_cxx_werror_flag"
45182 || test ! -s conftest.err'
45183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45184 (eval $ac_try) 2>&5
45185 ac_status=$?
45186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187 (exit $ac_status); }; } &&
45188 { ac_try='test -s conftest.$ac_objext'
45189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45190 (eval $ac_try) 2>&5
45191 ac_status=$?
45192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45193 (exit $ac_status); }; }; then
45194 glibcxx_cv_func_logl_use=yes
45195 else
45196 echo "$as_me: failed program was:" >&5
45197 sed 's/^/| /' conftest.$ac_ext >&5
45199 glibcxx_cv_func_logl_use=no
45201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45202 ac_ext=c
45203 ac_cpp='$CPP $CPPFLAGS'
45204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45212 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45213 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45215 if test x$glibcxx_cv_func_logl_use = x"yes"; then
45217 for ac_func in logl
45219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45220 echo "$as_me:$LINENO: checking for $ac_func" >&5
45221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45222 if eval "test \"\${$as_ac_var+set}\" = set"; then
45223 echo $ECHO_N "(cached) $ECHO_C" >&6
45224 else
45225 if test x$gcc_no_link = xyes; then
45226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45228 { (exit 1); exit 1; }; }
45230 cat >conftest.$ac_ext <<_ACEOF
45231 /* confdefs.h. */
45232 _ACEOF
45233 cat confdefs.h >>conftest.$ac_ext
45234 cat >>conftest.$ac_ext <<_ACEOF
45235 /* end confdefs.h. */
45236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45238 #define $ac_func innocuous_$ac_func
45240 /* System header to define __stub macros and hopefully few prototypes,
45241 which can conflict with char $ac_func (); below.
45242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45243 <limits.h> exists even on freestanding compilers. */
45245 #ifdef __STDC__
45246 # include <limits.h>
45247 #else
45248 # include <assert.h>
45249 #endif
45251 #undef $ac_func
45253 /* Override any gcc2 internal prototype to avoid an error. */
45254 #ifdef __cplusplus
45255 extern "C"
45257 #endif
45258 /* We use char because int might match the return type of a gcc2
45259 builtin and then its argument prototype would still apply. */
45260 char $ac_func ();
45261 /* The GNU C library defines this for functions which it implements
45262 to always fail with ENOSYS. Some functions are actually named
45263 something starting with __ and the normal name is an alias. */
45264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45265 choke me
45266 #else
45267 char (*f) () = $ac_func;
45268 #endif
45269 #ifdef __cplusplus
45271 #endif
45274 main ()
45276 return f != $ac_func;
45278 return 0;
45280 _ACEOF
45281 rm -f conftest.$ac_objext conftest$ac_exeext
45282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45283 (eval $ac_link) 2>conftest.er1
45284 ac_status=$?
45285 grep -v '^ *+' conftest.er1 >conftest.err
45286 rm -f conftest.er1
45287 cat conftest.err >&5
45288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45289 (exit $ac_status); } &&
45290 { ac_try='test -z "$ac_c_werror_flag"
45291 || test ! -s conftest.err'
45292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45293 (eval $ac_try) 2>&5
45294 ac_status=$?
45295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45296 (exit $ac_status); }; } &&
45297 { ac_try='test -s conftest$ac_exeext'
45298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45299 (eval $ac_try) 2>&5
45300 ac_status=$?
45301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45302 (exit $ac_status); }; }; then
45303 eval "$as_ac_var=yes"
45304 else
45305 echo "$as_me: failed program was:" >&5
45306 sed 's/^/| /' conftest.$ac_ext >&5
45308 eval "$as_ac_var=no"
45310 rm -f conftest.err conftest.$ac_objext \
45311 conftest$ac_exeext conftest.$ac_ext
45313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45315 if test `eval echo '${'$as_ac_var'}'` = yes; then
45316 cat >>confdefs.h <<_ACEOF
45317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45318 _ACEOF
45321 done
45323 else
45325 echo "$as_me:$LINENO: checking for _logl declaration" >&5
45326 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45327 if test x${glibcxx_cv_func__logl_use+set} != xset; then
45328 if test "${glibcxx_cv_func__logl_use+set}" = set; then
45329 echo $ECHO_N "(cached) $ECHO_C" >&6
45330 else
45334 ac_ext=cc
45335 ac_cpp='$CXXCPP $CPPFLAGS'
45336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45340 cat >conftest.$ac_ext <<_ACEOF
45341 /* confdefs.h. */
45342 _ACEOF
45343 cat confdefs.h >>conftest.$ac_ext
45344 cat >>conftest.$ac_ext <<_ACEOF
45345 /* end confdefs.h. */
45346 #include <math.h>
45347 #ifdef HAVE_IEEEFP_H
45348 #include <ieeefp.h>
45349 #endif
45352 main ()
45354 _logl(0);
45356 return 0;
45358 _ACEOF
45359 rm -f conftest.$ac_objext
45360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45361 (eval $ac_compile) 2>conftest.er1
45362 ac_status=$?
45363 grep -v '^ *+' conftest.er1 >conftest.err
45364 rm -f conftest.er1
45365 cat conftest.err >&5
45366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45367 (exit $ac_status); } &&
45368 { ac_try='test -z "$ac_cxx_werror_flag"
45369 || test ! -s conftest.err'
45370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45371 (eval $ac_try) 2>&5
45372 ac_status=$?
45373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45374 (exit $ac_status); }; } &&
45375 { ac_try='test -s conftest.$ac_objext'
45376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45377 (eval $ac_try) 2>&5
45378 ac_status=$?
45379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45380 (exit $ac_status); }; }; then
45381 glibcxx_cv_func__logl_use=yes
45382 else
45383 echo "$as_me: failed program was:" >&5
45384 sed 's/^/| /' conftest.$ac_ext >&5
45386 glibcxx_cv_func__logl_use=no
45388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45389 ac_ext=c
45390 ac_cpp='$CPP $CPPFLAGS'
45391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45399 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45400 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45402 if test x$glibcxx_cv_func__logl_use = x"yes"; then
45404 for ac_func in _logl
45406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45407 echo "$as_me:$LINENO: checking for $ac_func" >&5
45408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45409 if eval "test \"\${$as_ac_var+set}\" = set"; then
45410 echo $ECHO_N "(cached) $ECHO_C" >&6
45411 else
45412 if test x$gcc_no_link = xyes; then
45413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45415 { (exit 1); exit 1; }; }
45417 cat >conftest.$ac_ext <<_ACEOF
45418 /* confdefs.h. */
45419 _ACEOF
45420 cat confdefs.h >>conftest.$ac_ext
45421 cat >>conftest.$ac_ext <<_ACEOF
45422 /* end confdefs.h. */
45423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45425 #define $ac_func innocuous_$ac_func
45427 /* System header to define __stub macros and hopefully few prototypes,
45428 which can conflict with char $ac_func (); below.
45429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45430 <limits.h> exists even on freestanding compilers. */
45432 #ifdef __STDC__
45433 # include <limits.h>
45434 #else
45435 # include <assert.h>
45436 #endif
45438 #undef $ac_func
45440 /* Override any gcc2 internal prototype to avoid an error. */
45441 #ifdef __cplusplus
45442 extern "C"
45444 #endif
45445 /* We use char because int might match the return type of a gcc2
45446 builtin and then its argument prototype would still apply. */
45447 char $ac_func ();
45448 /* The GNU C library defines this for functions which it implements
45449 to always fail with ENOSYS. Some functions are actually named
45450 something starting with __ and the normal name is an alias. */
45451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45452 choke me
45453 #else
45454 char (*f) () = $ac_func;
45455 #endif
45456 #ifdef __cplusplus
45458 #endif
45461 main ()
45463 return f != $ac_func;
45465 return 0;
45467 _ACEOF
45468 rm -f conftest.$ac_objext conftest$ac_exeext
45469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45470 (eval $ac_link) 2>conftest.er1
45471 ac_status=$?
45472 grep -v '^ *+' conftest.er1 >conftest.err
45473 rm -f conftest.er1
45474 cat conftest.err >&5
45475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45476 (exit $ac_status); } &&
45477 { ac_try='test -z "$ac_c_werror_flag"
45478 || test ! -s conftest.err'
45479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45480 (eval $ac_try) 2>&5
45481 ac_status=$?
45482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45483 (exit $ac_status); }; } &&
45484 { ac_try='test -s conftest$ac_exeext'
45485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45486 (eval $ac_try) 2>&5
45487 ac_status=$?
45488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45489 (exit $ac_status); }; }; then
45490 eval "$as_ac_var=yes"
45491 else
45492 echo "$as_me: failed program was:" >&5
45493 sed 's/^/| /' conftest.$ac_ext >&5
45495 eval "$as_ac_var=no"
45497 rm -f conftest.err conftest.$ac_objext \
45498 conftest$ac_exeext conftest.$ac_ext
45500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45502 if test `eval echo '${'$as_ac_var'}'` = yes; then
45503 cat >>confdefs.h <<_ACEOF
45504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45505 _ACEOF
45508 done
45515 echo "$as_me:$LINENO: checking for log10l declaration" >&5
45516 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45517 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45518 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45519 echo $ECHO_N "(cached) $ECHO_C" >&6
45520 else
45524 ac_ext=cc
45525 ac_cpp='$CXXCPP $CPPFLAGS'
45526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45530 cat >conftest.$ac_ext <<_ACEOF
45531 /* confdefs.h. */
45532 _ACEOF
45533 cat confdefs.h >>conftest.$ac_ext
45534 cat >>conftest.$ac_ext <<_ACEOF
45535 /* end confdefs.h. */
45536 #include <math.h>
45537 #ifdef HAVE_IEEEFP_H
45538 #include <ieeefp.h>
45539 #endif
45542 main ()
45544 log10l(0);
45546 return 0;
45548 _ACEOF
45549 rm -f conftest.$ac_objext
45550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45551 (eval $ac_compile) 2>conftest.er1
45552 ac_status=$?
45553 grep -v '^ *+' conftest.er1 >conftest.err
45554 rm -f conftest.er1
45555 cat conftest.err >&5
45556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45557 (exit $ac_status); } &&
45558 { ac_try='test -z "$ac_cxx_werror_flag"
45559 || test ! -s conftest.err'
45560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45561 (eval $ac_try) 2>&5
45562 ac_status=$?
45563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45564 (exit $ac_status); }; } &&
45565 { ac_try='test -s conftest.$ac_objext'
45566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45567 (eval $ac_try) 2>&5
45568 ac_status=$?
45569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45570 (exit $ac_status); }; }; then
45571 glibcxx_cv_func_log10l_use=yes
45572 else
45573 echo "$as_me: failed program was:" >&5
45574 sed 's/^/| /' conftest.$ac_ext >&5
45576 glibcxx_cv_func_log10l_use=no
45578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45579 ac_ext=c
45580 ac_cpp='$CPP $CPPFLAGS'
45581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45589 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45590 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45592 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45594 for ac_func in log10l
45596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45597 echo "$as_me:$LINENO: checking for $ac_func" >&5
45598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45599 if eval "test \"\${$as_ac_var+set}\" = set"; then
45600 echo $ECHO_N "(cached) $ECHO_C" >&6
45601 else
45602 if test x$gcc_no_link = xyes; then
45603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45605 { (exit 1); exit 1; }; }
45607 cat >conftest.$ac_ext <<_ACEOF
45608 /* confdefs.h. */
45609 _ACEOF
45610 cat confdefs.h >>conftest.$ac_ext
45611 cat >>conftest.$ac_ext <<_ACEOF
45612 /* end confdefs.h. */
45613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45615 #define $ac_func innocuous_$ac_func
45617 /* System header to define __stub macros and hopefully few prototypes,
45618 which can conflict with char $ac_func (); below.
45619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45620 <limits.h> exists even on freestanding compilers. */
45622 #ifdef __STDC__
45623 # include <limits.h>
45624 #else
45625 # include <assert.h>
45626 #endif
45628 #undef $ac_func
45630 /* Override any gcc2 internal prototype to avoid an error. */
45631 #ifdef __cplusplus
45632 extern "C"
45634 #endif
45635 /* We use char because int might match the return type of a gcc2
45636 builtin and then its argument prototype would still apply. */
45637 char $ac_func ();
45638 /* The GNU C library defines this for functions which it implements
45639 to always fail with ENOSYS. Some functions are actually named
45640 something starting with __ and the normal name is an alias. */
45641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45642 choke me
45643 #else
45644 char (*f) () = $ac_func;
45645 #endif
45646 #ifdef __cplusplus
45648 #endif
45651 main ()
45653 return f != $ac_func;
45655 return 0;
45657 _ACEOF
45658 rm -f conftest.$ac_objext conftest$ac_exeext
45659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45660 (eval $ac_link) 2>conftest.er1
45661 ac_status=$?
45662 grep -v '^ *+' conftest.er1 >conftest.err
45663 rm -f conftest.er1
45664 cat conftest.err >&5
45665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45666 (exit $ac_status); } &&
45667 { ac_try='test -z "$ac_c_werror_flag"
45668 || test ! -s conftest.err'
45669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45670 (eval $ac_try) 2>&5
45671 ac_status=$?
45672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45673 (exit $ac_status); }; } &&
45674 { ac_try='test -s conftest$ac_exeext'
45675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45676 (eval $ac_try) 2>&5
45677 ac_status=$?
45678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45679 (exit $ac_status); }; }; then
45680 eval "$as_ac_var=yes"
45681 else
45682 echo "$as_me: failed program was:" >&5
45683 sed 's/^/| /' conftest.$ac_ext >&5
45685 eval "$as_ac_var=no"
45687 rm -f conftest.err conftest.$ac_objext \
45688 conftest$ac_exeext conftest.$ac_ext
45690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45692 if test `eval echo '${'$as_ac_var'}'` = yes; then
45693 cat >>confdefs.h <<_ACEOF
45694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45695 _ACEOF
45698 done
45700 else
45702 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45703 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45704 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45705 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45706 echo $ECHO_N "(cached) $ECHO_C" >&6
45707 else
45711 ac_ext=cc
45712 ac_cpp='$CXXCPP $CPPFLAGS'
45713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45717 cat >conftest.$ac_ext <<_ACEOF
45718 /* confdefs.h. */
45719 _ACEOF
45720 cat confdefs.h >>conftest.$ac_ext
45721 cat >>conftest.$ac_ext <<_ACEOF
45722 /* end confdefs.h. */
45723 #include <math.h>
45724 #ifdef HAVE_IEEEFP_H
45725 #include <ieeefp.h>
45726 #endif
45729 main ()
45731 _log10l(0);
45733 return 0;
45735 _ACEOF
45736 rm -f conftest.$ac_objext
45737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45738 (eval $ac_compile) 2>conftest.er1
45739 ac_status=$?
45740 grep -v '^ *+' conftest.er1 >conftest.err
45741 rm -f conftest.er1
45742 cat conftest.err >&5
45743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45744 (exit $ac_status); } &&
45745 { ac_try='test -z "$ac_cxx_werror_flag"
45746 || test ! -s conftest.err'
45747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45748 (eval $ac_try) 2>&5
45749 ac_status=$?
45750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45751 (exit $ac_status); }; } &&
45752 { ac_try='test -s conftest.$ac_objext'
45753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754 (eval $ac_try) 2>&5
45755 ac_status=$?
45756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757 (exit $ac_status); }; }; then
45758 glibcxx_cv_func__log10l_use=yes
45759 else
45760 echo "$as_me: failed program was:" >&5
45761 sed 's/^/| /' conftest.$ac_ext >&5
45763 glibcxx_cv_func__log10l_use=no
45765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45766 ac_ext=c
45767 ac_cpp='$CPP $CPPFLAGS'
45768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45776 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45777 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45779 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45781 for ac_func in _log10l
45783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45784 echo "$as_me:$LINENO: checking for $ac_func" >&5
45785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45786 if eval "test \"\${$as_ac_var+set}\" = set"; then
45787 echo $ECHO_N "(cached) $ECHO_C" >&6
45788 else
45789 if test x$gcc_no_link = xyes; then
45790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45792 { (exit 1); exit 1; }; }
45794 cat >conftest.$ac_ext <<_ACEOF
45795 /* confdefs.h. */
45796 _ACEOF
45797 cat confdefs.h >>conftest.$ac_ext
45798 cat >>conftest.$ac_ext <<_ACEOF
45799 /* end confdefs.h. */
45800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45802 #define $ac_func innocuous_$ac_func
45804 /* System header to define __stub macros and hopefully few prototypes,
45805 which can conflict with char $ac_func (); below.
45806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45807 <limits.h> exists even on freestanding compilers. */
45809 #ifdef __STDC__
45810 # include <limits.h>
45811 #else
45812 # include <assert.h>
45813 #endif
45815 #undef $ac_func
45817 /* Override any gcc2 internal prototype to avoid an error. */
45818 #ifdef __cplusplus
45819 extern "C"
45821 #endif
45822 /* We use char because int might match the return type of a gcc2
45823 builtin and then its argument prototype would still apply. */
45824 char $ac_func ();
45825 /* The GNU C library defines this for functions which it implements
45826 to always fail with ENOSYS. Some functions are actually named
45827 something starting with __ and the normal name is an alias. */
45828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45829 choke me
45830 #else
45831 char (*f) () = $ac_func;
45832 #endif
45833 #ifdef __cplusplus
45835 #endif
45838 main ()
45840 return f != $ac_func;
45842 return 0;
45844 _ACEOF
45845 rm -f conftest.$ac_objext conftest$ac_exeext
45846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45847 (eval $ac_link) 2>conftest.er1
45848 ac_status=$?
45849 grep -v '^ *+' conftest.er1 >conftest.err
45850 rm -f conftest.er1
45851 cat conftest.err >&5
45852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45853 (exit $ac_status); } &&
45854 { ac_try='test -z "$ac_c_werror_flag"
45855 || test ! -s conftest.err'
45856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45857 (eval $ac_try) 2>&5
45858 ac_status=$?
45859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45860 (exit $ac_status); }; } &&
45861 { ac_try='test -s conftest$ac_exeext'
45862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45863 (eval $ac_try) 2>&5
45864 ac_status=$?
45865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45866 (exit $ac_status); }; }; then
45867 eval "$as_ac_var=yes"
45868 else
45869 echo "$as_me: failed program was:" >&5
45870 sed 's/^/| /' conftest.$ac_ext >&5
45872 eval "$as_ac_var=no"
45874 rm -f conftest.err conftest.$ac_objext \
45875 conftest$ac_exeext conftest.$ac_ext
45877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45879 if test `eval echo '${'$as_ac_var'}'` = yes; then
45880 cat >>confdefs.h <<_ACEOF
45881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45882 _ACEOF
45885 done
45892 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45893 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45894 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45895 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45896 echo $ECHO_N "(cached) $ECHO_C" >&6
45897 else
45901 ac_ext=cc
45902 ac_cpp='$CXXCPP $CPPFLAGS'
45903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45907 cat >conftest.$ac_ext <<_ACEOF
45908 /* confdefs.h. */
45909 _ACEOF
45910 cat confdefs.h >>conftest.$ac_ext
45911 cat >>conftest.$ac_ext <<_ACEOF
45912 /* end confdefs.h. */
45913 #include <math.h>
45915 main ()
45917 modfl(0, 0);
45919 return 0;
45921 _ACEOF
45922 rm -f conftest.$ac_objext
45923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45924 (eval $ac_compile) 2>conftest.er1
45925 ac_status=$?
45926 grep -v '^ *+' conftest.er1 >conftest.err
45927 rm -f conftest.er1
45928 cat conftest.err >&5
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); } &&
45931 { ac_try='test -z "$ac_cxx_werror_flag"
45932 || test ! -s conftest.err'
45933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45934 (eval $ac_try) 2>&5
45935 ac_status=$?
45936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45937 (exit $ac_status); }; } &&
45938 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
45944 glibcxx_cv_func_modfl_use=yes
45945 else
45946 echo "$as_me: failed program was:" >&5
45947 sed 's/^/| /' conftest.$ac_ext >&5
45949 glibcxx_cv_func_modfl_use=no
45951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45952 ac_ext=c
45953 ac_cpp='$CPP $CPPFLAGS'
45954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45962 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45963 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45965 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45967 for ac_func in modfl
45969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45970 echo "$as_me:$LINENO: checking for $ac_func" >&5
45971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45972 if eval "test \"\${$as_ac_var+set}\" = set"; then
45973 echo $ECHO_N "(cached) $ECHO_C" >&6
45974 else
45975 if test x$gcc_no_link = xyes; then
45976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45978 { (exit 1); exit 1; }; }
45980 cat >conftest.$ac_ext <<_ACEOF
45981 /* confdefs.h. */
45982 _ACEOF
45983 cat confdefs.h >>conftest.$ac_ext
45984 cat >>conftest.$ac_ext <<_ACEOF
45985 /* end confdefs.h. */
45986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45988 #define $ac_func innocuous_$ac_func
45990 /* System header to define __stub macros and hopefully few prototypes,
45991 which can conflict with char $ac_func (); below.
45992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45993 <limits.h> exists even on freestanding compilers. */
45995 #ifdef __STDC__
45996 # include <limits.h>
45997 #else
45998 # include <assert.h>
45999 #endif
46001 #undef $ac_func
46003 /* Override any gcc2 internal prototype to avoid an error. */
46004 #ifdef __cplusplus
46005 extern "C"
46007 #endif
46008 /* We use char because int might match the return type of a gcc2
46009 builtin and then its argument prototype would still apply. */
46010 char $ac_func ();
46011 /* The GNU C library defines this for functions which it implements
46012 to always fail with ENOSYS. Some functions are actually named
46013 something starting with __ and the normal name is an alias. */
46014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46015 choke me
46016 #else
46017 char (*f) () = $ac_func;
46018 #endif
46019 #ifdef __cplusplus
46021 #endif
46024 main ()
46026 return f != $ac_func;
46028 return 0;
46030 _ACEOF
46031 rm -f conftest.$ac_objext conftest$ac_exeext
46032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46033 (eval $ac_link) 2>conftest.er1
46034 ac_status=$?
46035 grep -v '^ *+' conftest.er1 >conftest.err
46036 rm -f conftest.er1
46037 cat conftest.err >&5
46038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46039 (exit $ac_status); } &&
46040 { ac_try='test -z "$ac_c_werror_flag"
46041 || test ! -s conftest.err'
46042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043 (eval $ac_try) 2>&5
46044 ac_status=$?
46045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046 (exit $ac_status); }; } &&
46047 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
46053 eval "$as_ac_var=yes"
46054 else
46055 echo "$as_me: failed program was:" >&5
46056 sed 's/^/| /' conftest.$ac_ext >&5
46058 eval "$as_ac_var=no"
46060 rm -f conftest.err conftest.$ac_objext \
46061 conftest$ac_exeext conftest.$ac_ext
46063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46065 if test `eval echo '${'$as_ac_var'}'` = yes; then
46066 cat >>confdefs.h <<_ACEOF
46067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46068 _ACEOF
46071 done
46073 else
46075 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
46076 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
46077 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
46078 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
46079 echo $ECHO_N "(cached) $ECHO_C" >&6
46080 else
46084 ac_ext=cc
46085 ac_cpp='$CXXCPP $CPPFLAGS'
46086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46090 cat >conftest.$ac_ext <<_ACEOF
46091 /* confdefs.h. */
46092 _ACEOF
46093 cat confdefs.h >>conftest.$ac_ext
46094 cat >>conftest.$ac_ext <<_ACEOF
46095 /* end confdefs.h. */
46096 #include <math.h>
46098 main ()
46100 _modfl(0, 0);
46102 return 0;
46104 _ACEOF
46105 rm -f conftest.$ac_objext
46106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46107 (eval $ac_compile) 2>conftest.er1
46108 ac_status=$?
46109 grep -v '^ *+' conftest.er1 >conftest.err
46110 rm -f conftest.er1
46111 cat conftest.err >&5
46112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46113 (exit $ac_status); } &&
46114 { ac_try='test -z "$ac_cxx_werror_flag"
46115 || test ! -s conftest.err'
46116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46117 (eval $ac_try) 2>&5
46118 ac_status=$?
46119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120 (exit $ac_status); }; } &&
46121 { ac_try='test -s conftest.$ac_objext'
46122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46123 (eval $ac_try) 2>&5
46124 ac_status=$?
46125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46126 (exit $ac_status); }; }; then
46127 glibcxx_cv_func__modfl_use=yes
46128 else
46129 echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46132 glibcxx_cv_func__modfl_use=no
46134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46135 ac_ext=c
46136 ac_cpp='$CPP $CPPFLAGS'
46137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46145 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
46146 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
46148 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
46150 for ac_func in _modfl
46152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46153 echo "$as_me:$LINENO: checking for $ac_func" >&5
46154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46155 if eval "test \"\${$as_ac_var+set}\" = set"; then
46156 echo $ECHO_N "(cached) $ECHO_C" >&6
46157 else
46158 if test x$gcc_no_link = xyes; then
46159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46161 { (exit 1); exit 1; }; }
46163 cat >conftest.$ac_ext <<_ACEOF
46164 /* confdefs.h. */
46165 _ACEOF
46166 cat confdefs.h >>conftest.$ac_ext
46167 cat >>conftest.$ac_ext <<_ACEOF
46168 /* end confdefs.h. */
46169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46171 #define $ac_func innocuous_$ac_func
46173 /* System header to define __stub macros and hopefully few prototypes,
46174 which can conflict with char $ac_func (); below.
46175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46176 <limits.h> exists even on freestanding compilers. */
46178 #ifdef __STDC__
46179 # include <limits.h>
46180 #else
46181 # include <assert.h>
46182 #endif
46184 #undef $ac_func
46186 /* Override any gcc2 internal prototype to avoid an error. */
46187 #ifdef __cplusplus
46188 extern "C"
46190 #endif
46191 /* We use char because int might match the return type of a gcc2
46192 builtin and then its argument prototype would still apply. */
46193 char $ac_func ();
46194 /* The GNU C library defines this for functions which it implements
46195 to always fail with ENOSYS. Some functions are actually named
46196 something starting with __ and the normal name is an alias. */
46197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46198 choke me
46199 #else
46200 char (*f) () = $ac_func;
46201 #endif
46202 #ifdef __cplusplus
46204 #endif
46207 main ()
46209 return f != $ac_func;
46211 return 0;
46213 _ACEOF
46214 rm -f conftest.$ac_objext conftest$ac_exeext
46215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46216 (eval $ac_link) 2>conftest.er1
46217 ac_status=$?
46218 grep -v '^ *+' conftest.er1 >conftest.err
46219 rm -f conftest.er1
46220 cat conftest.err >&5
46221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46222 (exit $ac_status); } &&
46223 { ac_try='test -z "$ac_c_werror_flag"
46224 || test ! -s conftest.err'
46225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46226 (eval $ac_try) 2>&5
46227 ac_status=$?
46228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46229 (exit $ac_status); }; } &&
46230 { ac_try='test -s conftest$ac_exeext'
46231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46232 (eval $ac_try) 2>&5
46233 ac_status=$?
46234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46235 (exit $ac_status); }; }; then
46236 eval "$as_ac_var=yes"
46237 else
46238 echo "$as_me: failed program was:" >&5
46239 sed 's/^/| /' conftest.$ac_ext >&5
46241 eval "$as_ac_var=no"
46243 rm -f conftest.err conftest.$ac_objext \
46244 conftest$ac_exeext conftest.$ac_ext
46246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46248 if test `eval echo '${'$as_ac_var'}'` = yes; then
46249 cat >>confdefs.h <<_ACEOF
46250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46251 _ACEOF
46254 done
46261 echo "$as_me:$LINENO: checking for powl declaration" >&5
46262 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46263 if test x${glibcxx_cv_func_powl_use+set} != xset; then
46264 if test "${glibcxx_cv_func_powl_use+set}" = set; then
46265 echo $ECHO_N "(cached) $ECHO_C" >&6
46266 else
46270 ac_ext=cc
46271 ac_cpp='$CXXCPP $CPPFLAGS'
46272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46276 cat >conftest.$ac_ext <<_ACEOF
46277 /* confdefs.h. */
46278 _ACEOF
46279 cat confdefs.h >>conftest.$ac_ext
46280 cat >>conftest.$ac_ext <<_ACEOF
46281 /* end confdefs.h. */
46282 #include <math.h>
46284 main ()
46286 powl(0, 0);
46288 return 0;
46290 _ACEOF
46291 rm -f conftest.$ac_objext
46292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46293 (eval $ac_compile) 2>conftest.er1
46294 ac_status=$?
46295 grep -v '^ *+' conftest.er1 >conftest.err
46296 rm -f conftest.er1
46297 cat conftest.err >&5
46298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46299 (exit $ac_status); } &&
46300 { ac_try='test -z "$ac_cxx_werror_flag"
46301 || test ! -s conftest.err'
46302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46303 (eval $ac_try) 2>&5
46304 ac_status=$?
46305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46306 (exit $ac_status); }; } &&
46307 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
46313 glibcxx_cv_func_powl_use=yes
46314 else
46315 echo "$as_me: failed program was:" >&5
46316 sed 's/^/| /' conftest.$ac_ext >&5
46318 glibcxx_cv_func_powl_use=no
46320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46321 ac_ext=c
46322 ac_cpp='$CPP $CPPFLAGS'
46323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46331 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46332 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46334 if test x$glibcxx_cv_func_powl_use = x"yes"; then
46336 for ac_func in powl
46338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46339 echo "$as_me:$LINENO: checking for $ac_func" >&5
46340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46341 if eval "test \"\${$as_ac_var+set}\" = set"; then
46342 echo $ECHO_N "(cached) $ECHO_C" >&6
46343 else
46344 if test x$gcc_no_link = xyes; then
46345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46347 { (exit 1); exit 1; }; }
46349 cat >conftest.$ac_ext <<_ACEOF
46350 /* confdefs.h. */
46351 _ACEOF
46352 cat confdefs.h >>conftest.$ac_ext
46353 cat >>conftest.$ac_ext <<_ACEOF
46354 /* end confdefs.h. */
46355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46357 #define $ac_func innocuous_$ac_func
46359 /* System header to define __stub macros and hopefully few prototypes,
46360 which can conflict with char $ac_func (); below.
46361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46362 <limits.h> exists even on freestanding compilers. */
46364 #ifdef __STDC__
46365 # include <limits.h>
46366 #else
46367 # include <assert.h>
46368 #endif
46370 #undef $ac_func
46372 /* Override any gcc2 internal prototype to avoid an error. */
46373 #ifdef __cplusplus
46374 extern "C"
46376 #endif
46377 /* We use char because int might match the return type of a gcc2
46378 builtin and then its argument prototype would still apply. */
46379 char $ac_func ();
46380 /* The GNU C library defines this for functions which it implements
46381 to always fail with ENOSYS. Some functions are actually named
46382 something starting with __ and the normal name is an alias. */
46383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46384 choke me
46385 #else
46386 char (*f) () = $ac_func;
46387 #endif
46388 #ifdef __cplusplus
46390 #endif
46393 main ()
46395 return f != $ac_func;
46397 return 0;
46399 _ACEOF
46400 rm -f conftest.$ac_objext conftest$ac_exeext
46401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46402 (eval $ac_link) 2>conftest.er1
46403 ac_status=$?
46404 grep -v '^ *+' conftest.er1 >conftest.err
46405 rm -f conftest.er1
46406 cat conftest.err >&5
46407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46408 (exit $ac_status); } &&
46409 { ac_try='test -z "$ac_c_werror_flag"
46410 || test ! -s conftest.err'
46411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46412 (eval $ac_try) 2>&5
46413 ac_status=$?
46414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46415 (exit $ac_status); }; } &&
46416 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
46422 eval "$as_ac_var=yes"
46423 else
46424 echo "$as_me: failed program was:" >&5
46425 sed 's/^/| /' conftest.$ac_ext >&5
46427 eval "$as_ac_var=no"
46429 rm -f conftest.err conftest.$ac_objext \
46430 conftest$ac_exeext conftest.$ac_ext
46432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46434 if test `eval echo '${'$as_ac_var'}'` = yes; then
46435 cat >>confdefs.h <<_ACEOF
46436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46437 _ACEOF
46440 done
46442 else
46444 echo "$as_me:$LINENO: checking for _powl declaration" >&5
46445 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46446 if test x${glibcxx_cv_func__powl_use+set} != xset; then
46447 if test "${glibcxx_cv_func__powl_use+set}" = set; then
46448 echo $ECHO_N "(cached) $ECHO_C" >&6
46449 else
46453 ac_ext=cc
46454 ac_cpp='$CXXCPP $CPPFLAGS'
46455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46459 cat >conftest.$ac_ext <<_ACEOF
46460 /* confdefs.h. */
46461 _ACEOF
46462 cat confdefs.h >>conftest.$ac_ext
46463 cat >>conftest.$ac_ext <<_ACEOF
46464 /* end confdefs.h. */
46465 #include <math.h>
46467 main ()
46469 _powl(0, 0);
46471 return 0;
46473 _ACEOF
46474 rm -f conftest.$ac_objext
46475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46476 (eval $ac_compile) 2>conftest.er1
46477 ac_status=$?
46478 grep -v '^ *+' conftest.er1 >conftest.err
46479 rm -f conftest.er1
46480 cat conftest.err >&5
46481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482 (exit $ac_status); } &&
46483 { ac_try='test -z "$ac_cxx_werror_flag"
46484 || test ! -s conftest.err'
46485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46486 (eval $ac_try) 2>&5
46487 ac_status=$?
46488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46489 (exit $ac_status); }; } &&
46490 { ac_try='test -s conftest.$ac_objext'
46491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46492 (eval $ac_try) 2>&5
46493 ac_status=$?
46494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495 (exit $ac_status); }; }; then
46496 glibcxx_cv_func__powl_use=yes
46497 else
46498 echo "$as_me: failed program was:" >&5
46499 sed 's/^/| /' conftest.$ac_ext >&5
46501 glibcxx_cv_func__powl_use=no
46503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46504 ac_ext=c
46505 ac_cpp='$CPP $CPPFLAGS'
46506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46514 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46515 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46517 if test x$glibcxx_cv_func__powl_use = x"yes"; then
46519 for ac_func in _powl
46521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46522 echo "$as_me:$LINENO: checking for $ac_func" >&5
46523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46524 if eval "test \"\${$as_ac_var+set}\" = set"; then
46525 echo $ECHO_N "(cached) $ECHO_C" >&6
46526 else
46527 if test x$gcc_no_link = xyes; then
46528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46530 { (exit 1); exit 1; }; }
46532 cat >conftest.$ac_ext <<_ACEOF
46533 /* confdefs.h. */
46534 _ACEOF
46535 cat confdefs.h >>conftest.$ac_ext
46536 cat >>conftest.$ac_ext <<_ACEOF
46537 /* end confdefs.h. */
46538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46540 #define $ac_func innocuous_$ac_func
46542 /* System header to define __stub macros and hopefully few prototypes,
46543 which can conflict with char $ac_func (); below.
46544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46545 <limits.h> exists even on freestanding compilers. */
46547 #ifdef __STDC__
46548 # include <limits.h>
46549 #else
46550 # include <assert.h>
46551 #endif
46553 #undef $ac_func
46555 /* Override any gcc2 internal prototype to avoid an error. */
46556 #ifdef __cplusplus
46557 extern "C"
46559 #endif
46560 /* We use char because int might match the return type of a gcc2
46561 builtin and then its argument prototype would still apply. */
46562 char $ac_func ();
46563 /* The GNU C library defines this for functions which it implements
46564 to always fail with ENOSYS. Some functions are actually named
46565 something starting with __ and the normal name is an alias. */
46566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46567 choke me
46568 #else
46569 char (*f) () = $ac_func;
46570 #endif
46571 #ifdef __cplusplus
46573 #endif
46576 main ()
46578 return f != $ac_func;
46580 return 0;
46582 _ACEOF
46583 rm -f conftest.$ac_objext conftest$ac_exeext
46584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46585 (eval $ac_link) 2>conftest.er1
46586 ac_status=$?
46587 grep -v '^ *+' conftest.er1 >conftest.err
46588 rm -f conftest.er1
46589 cat conftest.err >&5
46590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591 (exit $ac_status); } &&
46592 { ac_try='test -z "$ac_c_werror_flag"
46593 || test ! -s conftest.err'
46594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595 (eval $ac_try) 2>&5
46596 ac_status=$?
46597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598 (exit $ac_status); }; } &&
46599 { ac_try='test -s conftest$ac_exeext'
46600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46601 (eval $ac_try) 2>&5
46602 ac_status=$?
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); }; }; then
46605 eval "$as_ac_var=yes"
46606 else
46607 echo "$as_me: failed program was:" >&5
46608 sed 's/^/| /' conftest.$ac_ext >&5
46610 eval "$as_ac_var=no"
46612 rm -f conftest.err conftest.$ac_objext \
46613 conftest$ac_exeext conftest.$ac_ext
46615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46617 if test `eval echo '${'$as_ac_var'}'` = yes; then
46618 cat >>confdefs.h <<_ACEOF
46619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46620 _ACEOF
46623 done
46630 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46631 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46632 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46633 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46634 echo $ECHO_N "(cached) $ECHO_C" >&6
46635 else
46639 ac_ext=cc
46640 ac_cpp='$CXXCPP $CPPFLAGS'
46641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46645 cat >conftest.$ac_ext <<_ACEOF
46646 /* confdefs.h. */
46647 _ACEOF
46648 cat confdefs.h >>conftest.$ac_ext
46649 cat >>conftest.$ac_ext <<_ACEOF
46650 /* end confdefs.h. */
46651 #include <math.h>
46652 #ifdef HAVE_IEEEFP_H
46653 #include <ieeefp.h>
46654 #endif
46657 main ()
46659 sqrtl(0);
46661 return 0;
46663 _ACEOF
46664 rm -f conftest.$ac_objext
46665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46666 (eval $ac_compile) 2>conftest.er1
46667 ac_status=$?
46668 grep -v '^ *+' conftest.er1 >conftest.err
46669 rm -f conftest.er1
46670 cat conftest.err >&5
46671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46672 (exit $ac_status); } &&
46673 { ac_try='test -z "$ac_cxx_werror_flag"
46674 || test ! -s conftest.err'
46675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46676 (eval $ac_try) 2>&5
46677 ac_status=$?
46678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679 (exit $ac_status); }; } &&
46680 { ac_try='test -s conftest.$ac_objext'
46681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46682 (eval $ac_try) 2>&5
46683 ac_status=$?
46684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46685 (exit $ac_status); }; }; then
46686 glibcxx_cv_func_sqrtl_use=yes
46687 else
46688 echo "$as_me: failed program was:" >&5
46689 sed 's/^/| /' conftest.$ac_ext >&5
46691 glibcxx_cv_func_sqrtl_use=no
46693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46694 ac_ext=c
46695 ac_cpp='$CPP $CPPFLAGS'
46696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46704 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46705 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46707 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46709 for ac_func in sqrtl
46711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46712 echo "$as_me:$LINENO: checking for $ac_func" >&5
46713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46714 if eval "test \"\${$as_ac_var+set}\" = set"; then
46715 echo $ECHO_N "(cached) $ECHO_C" >&6
46716 else
46717 if test x$gcc_no_link = xyes; then
46718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46720 { (exit 1); exit 1; }; }
46722 cat >conftest.$ac_ext <<_ACEOF
46723 /* confdefs.h. */
46724 _ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h. */
46728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46730 #define $ac_func innocuous_$ac_func
46732 /* System header to define __stub macros and hopefully few prototypes,
46733 which can conflict with char $ac_func (); below.
46734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46735 <limits.h> exists even on freestanding compilers. */
46737 #ifdef __STDC__
46738 # include <limits.h>
46739 #else
46740 # include <assert.h>
46741 #endif
46743 #undef $ac_func
46745 /* Override any gcc2 internal prototype to avoid an error. */
46746 #ifdef __cplusplus
46747 extern "C"
46749 #endif
46750 /* We use char because int might match the return type of a gcc2
46751 builtin and then its argument prototype would still apply. */
46752 char $ac_func ();
46753 /* The GNU C library defines this for functions which it implements
46754 to always fail with ENOSYS. Some functions are actually named
46755 something starting with __ and the normal name is an alias. */
46756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46757 choke me
46758 #else
46759 char (*f) () = $ac_func;
46760 #endif
46761 #ifdef __cplusplus
46763 #endif
46766 main ()
46768 return f != $ac_func;
46770 return 0;
46772 _ACEOF
46773 rm -f conftest.$ac_objext conftest$ac_exeext
46774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46775 (eval $ac_link) 2>conftest.er1
46776 ac_status=$?
46777 grep -v '^ *+' conftest.er1 >conftest.err
46778 rm -f conftest.er1
46779 cat conftest.err >&5
46780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46781 (exit $ac_status); } &&
46782 { ac_try='test -z "$ac_c_werror_flag"
46783 || test ! -s conftest.err'
46784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46785 (eval $ac_try) 2>&5
46786 ac_status=$?
46787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46788 (exit $ac_status); }; } &&
46789 { ac_try='test -s conftest$ac_exeext'
46790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46791 (eval $ac_try) 2>&5
46792 ac_status=$?
46793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794 (exit $ac_status); }; }; then
46795 eval "$as_ac_var=yes"
46796 else
46797 echo "$as_me: failed program was:" >&5
46798 sed 's/^/| /' conftest.$ac_ext >&5
46800 eval "$as_ac_var=no"
46802 rm -f conftest.err conftest.$ac_objext \
46803 conftest$ac_exeext conftest.$ac_ext
46805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46807 if test `eval echo '${'$as_ac_var'}'` = yes; then
46808 cat >>confdefs.h <<_ACEOF
46809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46810 _ACEOF
46813 done
46815 else
46817 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46818 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46819 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46820 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46821 echo $ECHO_N "(cached) $ECHO_C" >&6
46822 else
46826 ac_ext=cc
46827 ac_cpp='$CXXCPP $CPPFLAGS'
46828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46832 cat >conftest.$ac_ext <<_ACEOF
46833 /* confdefs.h. */
46834 _ACEOF
46835 cat confdefs.h >>conftest.$ac_ext
46836 cat >>conftest.$ac_ext <<_ACEOF
46837 /* end confdefs.h. */
46838 #include <math.h>
46839 #ifdef HAVE_IEEEFP_H
46840 #include <ieeefp.h>
46841 #endif
46844 main ()
46846 _sqrtl(0);
46848 return 0;
46850 _ACEOF
46851 rm -f conftest.$ac_objext
46852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46853 (eval $ac_compile) 2>conftest.er1
46854 ac_status=$?
46855 grep -v '^ *+' conftest.er1 >conftest.err
46856 rm -f conftest.er1
46857 cat conftest.err >&5
46858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859 (exit $ac_status); } &&
46860 { ac_try='test -z "$ac_cxx_werror_flag"
46861 || test ! -s conftest.err'
46862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46863 (eval $ac_try) 2>&5
46864 ac_status=$?
46865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46866 (exit $ac_status); }; } &&
46867 { ac_try='test -s conftest.$ac_objext'
46868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46869 (eval $ac_try) 2>&5
46870 ac_status=$?
46871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46872 (exit $ac_status); }; }; then
46873 glibcxx_cv_func__sqrtl_use=yes
46874 else
46875 echo "$as_me: failed program was:" >&5
46876 sed 's/^/| /' conftest.$ac_ext >&5
46878 glibcxx_cv_func__sqrtl_use=no
46880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46881 ac_ext=c
46882 ac_cpp='$CPP $CPPFLAGS'
46883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46891 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46892 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46894 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46896 for ac_func in _sqrtl
46898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46899 echo "$as_me:$LINENO: checking for $ac_func" >&5
46900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46901 if eval "test \"\${$as_ac_var+set}\" = set"; then
46902 echo $ECHO_N "(cached) $ECHO_C" >&6
46903 else
46904 if test x$gcc_no_link = xyes; then
46905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46907 { (exit 1); exit 1; }; }
46909 cat >conftest.$ac_ext <<_ACEOF
46910 /* confdefs.h. */
46911 _ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h. */
46915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46917 #define $ac_func innocuous_$ac_func
46919 /* System header to define __stub macros and hopefully few prototypes,
46920 which can conflict with char $ac_func (); below.
46921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46922 <limits.h> exists even on freestanding compilers. */
46924 #ifdef __STDC__
46925 # include <limits.h>
46926 #else
46927 # include <assert.h>
46928 #endif
46930 #undef $ac_func
46932 /* Override any gcc2 internal prototype to avoid an error. */
46933 #ifdef __cplusplus
46934 extern "C"
46936 #endif
46937 /* We use char because int might match the return type of a gcc2
46938 builtin and then its argument prototype would still apply. */
46939 char $ac_func ();
46940 /* The GNU C library defines this for functions which it implements
46941 to always fail with ENOSYS. Some functions are actually named
46942 something starting with __ and the normal name is an alias. */
46943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46944 choke me
46945 #else
46946 char (*f) () = $ac_func;
46947 #endif
46948 #ifdef __cplusplus
46950 #endif
46953 main ()
46955 return f != $ac_func;
46957 return 0;
46959 _ACEOF
46960 rm -f conftest.$ac_objext conftest$ac_exeext
46961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46962 (eval $ac_link) 2>conftest.er1
46963 ac_status=$?
46964 grep -v '^ *+' conftest.er1 >conftest.err
46965 rm -f conftest.er1
46966 cat conftest.err >&5
46967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968 (exit $ac_status); } &&
46969 { ac_try='test -z "$ac_c_werror_flag"
46970 || test ! -s conftest.err'
46971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46972 (eval $ac_try) 2>&5
46973 ac_status=$?
46974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46975 (exit $ac_status); }; } &&
46976 { ac_try='test -s conftest$ac_exeext'
46977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46978 (eval $ac_try) 2>&5
46979 ac_status=$?
46980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46981 (exit $ac_status); }; }; then
46982 eval "$as_ac_var=yes"
46983 else
46984 echo "$as_me: failed program was:" >&5
46985 sed 's/^/| /' conftest.$ac_ext >&5
46987 eval "$as_ac_var=no"
46989 rm -f conftest.err conftest.$ac_objext \
46990 conftest$ac_exeext conftest.$ac_ext
46992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46994 if test `eval echo '${'$as_ac_var'}'` = yes; then
46995 cat >>confdefs.h <<_ACEOF
46996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46997 _ACEOF
47000 done
47007 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
47008 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
47009 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
47010 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
47011 echo $ECHO_N "(cached) $ECHO_C" >&6
47012 else
47016 ac_ext=cc
47017 ac_cpp='$CXXCPP $CPPFLAGS'
47018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47022 cat >conftest.$ac_ext <<_ACEOF
47023 /* confdefs.h. */
47024 _ACEOF
47025 cat confdefs.h >>conftest.$ac_ext
47026 cat >>conftest.$ac_ext <<_ACEOF
47027 /* end confdefs.h. */
47028 #include <math.h>
47030 main ()
47032 sincosl(0, 0, 0);
47034 return 0;
47036 _ACEOF
47037 rm -f conftest.$ac_objext
47038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47039 (eval $ac_compile) 2>conftest.er1
47040 ac_status=$?
47041 grep -v '^ *+' conftest.er1 >conftest.err
47042 rm -f conftest.er1
47043 cat conftest.err >&5
47044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47045 (exit $ac_status); } &&
47046 { ac_try='test -z "$ac_cxx_werror_flag"
47047 || test ! -s conftest.err'
47048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47049 (eval $ac_try) 2>&5
47050 ac_status=$?
47051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47052 (exit $ac_status); }; } &&
47053 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
47059 glibcxx_cv_func_sincosl_use=yes
47060 else
47061 echo "$as_me: failed program was:" >&5
47062 sed 's/^/| /' conftest.$ac_ext >&5
47064 glibcxx_cv_func_sincosl_use=no
47066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47067 ac_ext=c
47068 ac_cpp='$CPP $CPPFLAGS'
47069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47077 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
47078 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
47080 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
47082 for ac_func in sincosl
47084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47085 echo "$as_me:$LINENO: checking for $ac_func" >&5
47086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47087 if eval "test \"\${$as_ac_var+set}\" = set"; then
47088 echo $ECHO_N "(cached) $ECHO_C" >&6
47089 else
47090 if test x$gcc_no_link = xyes; then
47091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47093 { (exit 1); exit 1; }; }
47095 cat >conftest.$ac_ext <<_ACEOF
47096 /* confdefs.h. */
47097 _ACEOF
47098 cat confdefs.h >>conftest.$ac_ext
47099 cat >>conftest.$ac_ext <<_ACEOF
47100 /* end confdefs.h. */
47101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47103 #define $ac_func innocuous_$ac_func
47105 /* System header to define __stub macros and hopefully few prototypes,
47106 which can conflict with char $ac_func (); below.
47107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47108 <limits.h> exists even on freestanding compilers. */
47110 #ifdef __STDC__
47111 # include <limits.h>
47112 #else
47113 # include <assert.h>
47114 #endif
47116 #undef $ac_func
47118 /* Override any gcc2 internal prototype to avoid an error. */
47119 #ifdef __cplusplus
47120 extern "C"
47122 #endif
47123 /* We use char because int might match the return type of a gcc2
47124 builtin and then its argument prototype would still apply. */
47125 char $ac_func ();
47126 /* The GNU C library defines this for functions which it implements
47127 to always fail with ENOSYS. Some functions are actually named
47128 something starting with __ and the normal name is an alias. */
47129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47130 choke me
47131 #else
47132 char (*f) () = $ac_func;
47133 #endif
47134 #ifdef __cplusplus
47136 #endif
47139 main ()
47141 return f != $ac_func;
47143 return 0;
47145 _ACEOF
47146 rm -f conftest.$ac_objext conftest$ac_exeext
47147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47148 (eval $ac_link) 2>conftest.er1
47149 ac_status=$?
47150 grep -v '^ *+' conftest.er1 >conftest.err
47151 rm -f conftest.er1
47152 cat conftest.err >&5
47153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47154 (exit $ac_status); } &&
47155 { ac_try='test -z "$ac_c_werror_flag"
47156 || test ! -s conftest.err'
47157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47158 (eval $ac_try) 2>&5
47159 ac_status=$?
47160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47161 (exit $ac_status); }; } &&
47162 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
47168 eval "$as_ac_var=yes"
47169 else
47170 echo "$as_me: failed program was:" >&5
47171 sed 's/^/| /' conftest.$ac_ext >&5
47173 eval "$as_ac_var=no"
47175 rm -f conftest.err conftest.$ac_objext \
47176 conftest$ac_exeext conftest.$ac_ext
47178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47180 if test `eval echo '${'$as_ac_var'}'` = yes; then
47181 cat >>confdefs.h <<_ACEOF
47182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47183 _ACEOF
47186 done
47188 else
47190 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47191 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47192 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47193 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47194 echo $ECHO_N "(cached) $ECHO_C" >&6
47195 else
47199 ac_ext=cc
47200 ac_cpp='$CXXCPP $CPPFLAGS'
47201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47205 cat >conftest.$ac_ext <<_ACEOF
47206 /* confdefs.h. */
47207 _ACEOF
47208 cat confdefs.h >>conftest.$ac_ext
47209 cat >>conftest.$ac_ext <<_ACEOF
47210 /* end confdefs.h. */
47211 #include <math.h>
47213 main ()
47215 _sincosl(0, 0, 0);
47217 return 0;
47219 _ACEOF
47220 rm -f conftest.$ac_objext
47221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47222 (eval $ac_compile) 2>conftest.er1
47223 ac_status=$?
47224 grep -v '^ *+' conftest.er1 >conftest.err
47225 rm -f conftest.er1
47226 cat conftest.err >&5
47227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); } &&
47229 { ac_try='test -z "$ac_cxx_werror_flag"
47230 || test ! -s conftest.err'
47231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47232 (eval $ac_try) 2>&5
47233 ac_status=$?
47234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47235 (exit $ac_status); }; } &&
47236 { ac_try='test -s conftest.$ac_objext'
47237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47238 (eval $ac_try) 2>&5
47239 ac_status=$?
47240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241 (exit $ac_status); }; }; then
47242 glibcxx_cv_func__sincosl_use=yes
47243 else
47244 echo "$as_me: failed program was:" >&5
47245 sed 's/^/| /' conftest.$ac_ext >&5
47247 glibcxx_cv_func__sincosl_use=no
47249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47250 ac_ext=c
47251 ac_cpp='$CPP $CPPFLAGS'
47252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47260 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47261 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47263 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47265 for ac_func in _sincosl
47267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47268 echo "$as_me:$LINENO: checking for $ac_func" >&5
47269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47270 if eval "test \"\${$as_ac_var+set}\" = set"; then
47271 echo $ECHO_N "(cached) $ECHO_C" >&6
47272 else
47273 if test x$gcc_no_link = xyes; then
47274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47276 { (exit 1); exit 1; }; }
47278 cat >conftest.$ac_ext <<_ACEOF
47279 /* confdefs.h. */
47280 _ACEOF
47281 cat confdefs.h >>conftest.$ac_ext
47282 cat >>conftest.$ac_ext <<_ACEOF
47283 /* end confdefs.h. */
47284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47286 #define $ac_func innocuous_$ac_func
47288 /* System header to define __stub macros and hopefully few prototypes,
47289 which can conflict with char $ac_func (); below.
47290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47291 <limits.h> exists even on freestanding compilers. */
47293 #ifdef __STDC__
47294 # include <limits.h>
47295 #else
47296 # include <assert.h>
47297 #endif
47299 #undef $ac_func
47301 /* Override any gcc2 internal prototype to avoid an error. */
47302 #ifdef __cplusplus
47303 extern "C"
47305 #endif
47306 /* We use char because int might match the return type of a gcc2
47307 builtin and then its argument prototype would still apply. */
47308 char $ac_func ();
47309 /* The GNU C library defines this for functions which it implements
47310 to always fail with ENOSYS. Some functions are actually named
47311 something starting with __ and the normal name is an alias. */
47312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47313 choke me
47314 #else
47315 char (*f) () = $ac_func;
47316 #endif
47317 #ifdef __cplusplus
47319 #endif
47322 main ()
47324 return f != $ac_func;
47326 return 0;
47328 _ACEOF
47329 rm -f conftest.$ac_objext conftest$ac_exeext
47330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47331 (eval $ac_link) 2>conftest.er1
47332 ac_status=$?
47333 grep -v '^ *+' conftest.er1 >conftest.err
47334 rm -f conftest.er1
47335 cat conftest.err >&5
47336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47337 (exit $ac_status); } &&
47338 { ac_try='test -z "$ac_c_werror_flag"
47339 || test ! -s conftest.err'
47340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47341 (eval $ac_try) 2>&5
47342 ac_status=$?
47343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47344 (exit $ac_status); }; } &&
47345 { ac_try='test -s conftest$ac_exeext'
47346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47347 (eval $ac_try) 2>&5
47348 ac_status=$?
47349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47350 (exit $ac_status); }; }; then
47351 eval "$as_ac_var=yes"
47352 else
47353 echo "$as_me: failed program was:" >&5
47354 sed 's/^/| /' conftest.$ac_ext >&5
47356 eval "$as_ac_var=no"
47358 rm -f conftest.err conftest.$ac_objext \
47359 conftest$ac_exeext conftest.$ac_ext
47361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47363 if test `eval echo '${'$as_ac_var'}'` = yes; then
47364 cat >>confdefs.h <<_ACEOF
47365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47366 _ACEOF
47369 done
47376 echo "$as_me:$LINENO: checking for finitel declaration" >&5
47377 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47378 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47379 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47380 echo $ECHO_N "(cached) $ECHO_C" >&6
47381 else
47385 ac_ext=cc
47386 ac_cpp='$CXXCPP $CPPFLAGS'
47387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47391 cat >conftest.$ac_ext <<_ACEOF
47392 /* confdefs.h. */
47393 _ACEOF
47394 cat confdefs.h >>conftest.$ac_ext
47395 cat >>conftest.$ac_ext <<_ACEOF
47396 /* end confdefs.h. */
47397 #include <math.h>
47398 #ifdef HAVE_IEEEFP_H
47399 #include <ieeefp.h>
47400 #endif
47403 main ()
47405 finitel(0);
47407 return 0;
47409 _ACEOF
47410 rm -f conftest.$ac_objext
47411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47412 (eval $ac_compile) 2>conftest.er1
47413 ac_status=$?
47414 grep -v '^ *+' conftest.er1 >conftest.err
47415 rm -f conftest.er1
47416 cat conftest.err >&5
47417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47418 (exit $ac_status); } &&
47419 { ac_try='test -z "$ac_cxx_werror_flag"
47420 || test ! -s conftest.err'
47421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47422 (eval $ac_try) 2>&5
47423 ac_status=$?
47424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47425 (exit $ac_status); }; } &&
47426 { ac_try='test -s conftest.$ac_objext'
47427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47428 (eval $ac_try) 2>&5
47429 ac_status=$?
47430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47431 (exit $ac_status); }; }; then
47432 glibcxx_cv_func_finitel_use=yes
47433 else
47434 echo "$as_me: failed program was:" >&5
47435 sed 's/^/| /' conftest.$ac_ext >&5
47437 glibcxx_cv_func_finitel_use=no
47439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47440 ac_ext=c
47441 ac_cpp='$CPP $CPPFLAGS'
47442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47450 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47451 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47453 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47455 for ac_func in finitel
47457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47458 echo "$as_me:$LINENO: checking for $ac_func" >&5
47459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47460 if eval "test \"\${$as_ac_var+set}\" = set"; then
47461 echo $ECHO_N "(cached) $ECHO_C" >&6
47462 else
47463 if test x$gcc_no_link = xyes; then
47464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47466 { (exit 1); exit 1; }; }
47468 cat >conftest.$ac_ext <<_ACEOF
47469 /* confdefs.h. */
47470 _ACEOF
47471 cat confdefs.h >>conftest.$ac_ext
47472 cat >>conftest.$ac_ext <<_ACEOF
47473 /* end confdefs.h. */
47474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47476 #define $ac_func innocuous_$ac_func
47478 /* System header to define __stub macros and hopefully few prototypes,
47479 which can conflict with char $ac_func (); below.
47480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47481 <limits.h> exists even on freestanding compilers. */
47483 #ifdef __STDC__
47484 # include <limits.h>
47485 #else
47486 # include <assert.h>
47487 #endif
47489 #undef $ac_func
47491 /* Override any gcc2 internal prototype to avoid an error. */
47492 #ifdef __cplusplus
47493 extern "C"
47495 #endif
47496 /* We use char because int might match the return type of a gcc2
47497 builtin and then its argument prototype would still apply. */
47498 char $ac_func ();
47499 /* The GNU C library defines this for functions which it implements
47500 to always fail with ENOSYS. Some functions are actually named
47501 something starting with __ and the normal name is an alias. */
47502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47503 choke me
47504 #else
47505 char (*f) () = $ac_func;
47506 #endif
47507 #ifdef __cplusplus
47509 #endif
47512 main ()
47514 return f != $ac_func;
47516 return 0;
47518 _ACEOF
47519 rm -f conftest.$ac_objext conftest$ac_exeext
47520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47521 (eval $ac_link) 2>conftest.er1
47522 ac_status=$?
47523 grep -v '^ *+' conftest.er1 >conftest.err
47524 rm -f conftest.er1
47525 cat conftest.err >&5
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); } &&
47528 { ac_try='test -z "$ac_c_werror_flag"
47529 || test ! -s conftest.err'
47530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47531 (eval $ac_try) 2>&5
47532 ac_status=$?
47533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534 (exit $ac_status); }; } &&
47535 { ac_try='test -s conftest$ac_exeext'
47536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47537 (eval $ac_try) 2>&5
47538 ac_status=$?
47539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540 (exit $ac_status); }; }; then
47541 eval "$as_ac_var=yes"
47542 else
47543 echo "$as_me: failed program was:" >&5
47544 sed 's/^/| /' conftest.$ac_ext >&5
47546 eval "$as_ac_var=no"
47548 rm -f conftest.err conftest.$ac_objext \
47549 conftest$ac_exeext conftest.$ac_ext
47551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47553 if test `eval echo '${'$as_ac_var'}'` = yes; then
47554 cat >>confdefs.h <<_ACEOF
47555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47556 _ACEOF
47559 done
47561 else
47563 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47564 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47565 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47566 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47567 echo $ECHO_N "(cached) $ECHO_C" >&6
47568 else
47572 ac_ext=cc
47573 ac_cpp='$CXXCPP $CPPFLAGS'
47574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47578 cat >conftest.$ac_ext <<_ACEOF
47579 /* confdefs.h. */
47580 _ACEOF
47581 cat confdefs.h >>conftest.$ac_ext
47582 cat >>conftest.$ac_ext <<_ACEOF
47583 /* end confdefs.h. */
47584 #include <math.h>
47585 #ifdef HAVE_IEEEFP_H
47586 #include <ieeefp.h>
47587 #endif
47590 main ()
47592 _finitel(0);
47594 return 0;
47596 _ACEOF
47597 rm -f conftest.$ac_objext
47598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47599 (eval $ac_compile) 2>conftest.er1
47600 ac_status=$?
47601 grep -v '^ *+' conftest.er1 >conftest.err
47602 rm -f conftest.er1
47603 cat conftest.err >&5
47604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); } &&
47606 { ac_try='test -z "$ac_cxx_werror_flag"
47607 || test ! -s conftest.err'
47608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47609 (eval $ac_try) 2>&5
47610 ac_status=$?
47611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47612 (exit $ac_status); }; } &&
47613 { ac_try='test -s conftest.$ac_objext'
47614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47615 (eval $ac_try) 2>&5
47616 ac_status=$?
47617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47618 (exit $ac_status); }; }; then
47619 glibcxx_cv_func__finitel_use=yes
47620 else
47621 echo "$as_me: failed program was:" >&5
47622 sed 's/^/| /' conftest.$ac_ext >&5
47624 glibcxx_cv_func__finitel_use=no
47626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47627 ac_ext=c
47628 ac_cpp='$CPP $CPPFLAGS'
47629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47637 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47638 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47640 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47642 for ac_func in _finitel
47644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47645 echo "$as_me:$LINENO: checking for $ac_func" >&5
47646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47647 if eval "test \"\${$as_ac_var+set}\" = set"; then
47648 echo $ECHO_N "(cached) $ECHO_C" >&6
47649 else
47650 if test x$gcc_no_link = xyes; then
47651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47653 { (exit 1); exit 1; }; }
47655 cat >conftest.$ac_ext <<_ACEOF
47656 /* confdefs.h. */
47657 _ACEOF
47658 cat confdefs.h >>conftest.$ac_ext
47659 cat >>conftest.$ac_ext <<_ACEOF
47660 /* end confdefs.h. */
47661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47663 #define $ac_func innocuous_$ac_func
47665 /* System header to define __stub macros and hopefully few prototypes,
47666 which can conflict with char $ac_func (); below.
47667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47668 <limits.h> exists even on freestanding compilers. */
47670 #ifdef __STDC__
47671 # include <limits.h>
47672 #else
47673 # include <assert.h>
47674 #endif
47676 #undef $ac_func
47678 /* Override any gcc2 internal prototype to avoid an error. */
47679 #ifdef __cplusplus
47680 extern "C"
47682 #endif
47683 /* We use char because int might match the return type of a gcc2
47684 builtin and then its argument prototype would still apply. */
47685 char $ac_func ();
47686 /* The GNU C library defines this for functions which it implements
47687 to always fail with ENOSYS. Some functions are actually named
47688 something starting with __ and the normal name is an alias. */
47689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47690 choke me
47691 #else
47692 char (*f) () = $ac_func;
47693 #endif
47694 #ifdef __cplusplus
47696 #endif
47699 main ()
47701 return f != $ac_func;
47703 return 0;
47705 _ACEOF
47706 rm -f conftest.$ac_objext conftest$ac_exeext
47707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47708 (eval $ac_link) 2>conftest.er1
47709 ac_status=$?
47710 grep -v '^ *+' conftest.er1 >conftest.err
47711 rm -f conftest.er1
47712 cat conftest.err >&5
47713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714 (exit $ac_status); } &&
47715 { ac_try='test -z "$ac_c_werror_flag"
47716 || test ! -s conftest.err'
47717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47718 (eval $ac_try) 2>&5
47719 ac_status=$?
47720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47721 (exit $ac_status); }; } &&
47722 { ac_try='test -s conftest$ac_exeext'
47723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47724 (eval $ac_try) 2>&5
47725 ac_status=$?
47726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47727 (exit $ac_status); }; }; then
47728 eval "$as_ac_var=yes"
47729 else
47730 echo "$as_me: failed program was:" >&5
47731 sed 's/^/| /' conftest.$ac_ext >&5
47733 eval "$as_ac_var=no"
47735 rm -f conftest.err conftest.$ac_objext \
47736 conftest$ac_exeext conftest.$ac_ext
47738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47740 if test `eval echo '${'$as_ac_var'}'` = yes; then
47741 cat >>confdefs.h <<_ACEOF
47742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47743 _ACEOF
47746 done
47754 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47755 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47756 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47757 echo $ECHO_N "(cached) $ECHO_C" >&6
47758 else
47762 ac_ext=cc
47763 ac_cpp='$CXXCPP $CPPFLAGS'
47764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47768 cat >conftest.$ac_ext <<_ACEOF
47769 /* confdefs.h. */
47770 _ACEOF
47771 cat confdefs.h >>conftest.$ac_ext
47772 cat >>conftest.$ac_ext <<_ACEOF
47773 /* end confdefs.h. */
47774 #include <math.h>
47776 main ()
47778 `for x in _acosf _asinf _atanf \
47779 _cosf _sinf _tanf \
47780 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47782 return 0;
47784 _ACEOF
47785 rm -f conftest.$ac_objext
47786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47787 (eval $ac_compile) 2>conftest.er1
47788 ac_status=$?
47789 grep -v '^ *+' conftest.er1 >conftest.err
47790 rm -f conftest.er1
47791 cat conftest.err >&5
47792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793 (exit $ac_status); } &&
47794 { ac_try='test -z "$ac_cxx_werror_flag"
47795 || test ! -s conftest.err'
47796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47797 (eval $ac_try) 2>&5
47798 ac_status=$?
47799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47800 (exit $ac_status); }; } &&
47801 { ac_try='test -s conftest.$ac_objext'
47802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47803 (eval $ac_try) 2>&5
47804 ac_status=$?
47805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806 (exit $ac_status); }; }; then
47807 glibcxx_cv_func__float_trig_use=yes
47808 else
47809 echo "$as_me: failed program was:" >&5
47810 sed 's/^/| /' conftest.$ac_ext >&5
47812 glibcxx_cv_func__float_trig_use=no
47814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47815 ac_ext=c
47816 ac_cpp='$CPP $CPPFLAGS'
47817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47823 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47824 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47825 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47835 for ac_func in _acosf _asinf _atanf \
47836 _cosf _sinf _tanf \
47837 _coshf _sinhf _tanhf
47839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47840 echo "$as_me:$LINENO: checking for $ac_func" >&5
47841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47842 if eval "test \"\${$as_ac_var+set}\" = set"; then
47843 echo $ECHO_N "(cached) $ECHO_C" >&6
47844 else
47845 if test x$gcc_no_link = xyes; then
47846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47848 { (exit 1); exit 1; }; }
47850 cat >conftest.$ac_ext <<_ACEOF
47851 /* confdefs.h. */
47852 _ACEOF
47853 cat confdefs.h >>conftest.$ac_ext
47854 cat >>conftest.$ac_ext <<_ACEOF
47855 /* end confdefs.h. */
47856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47858 #define $ac_func innocuous_$ac_func
47860 /* System header to define __stub macros and hopefully few prototypes,
47861 which can conflict with char $ac_func (); below.
47862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47863 <limits.h> exists even on freestanding compilers. */
47865 #ifdef __STDC__
47866 # include <limits.h>
47867 #else
47868 # include <assert.h>
47869 #endif
47871 #undef $ac_func
47873 /* Override any gcc2 internal prototype to avoid an error. */
47874 #ifdef __cplusplus
47875 extern "C"
47877 #endif
47878 /* We use char because int might match the return type of a gcc2
47879 builtin and then its argument prototype would still apply. */
47880 char $ac_func ();
47881 /* The GNU C library defines this for functions which it implements
47882 to always fail with ENOSYS. Some functions are actually named
47883 something starting with __ and the normal name is an alias. */
47884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47885 choke me
47886 #else
47887 char (*f) () = $ac_func;
47888 #endif
47889 #ifdef __cplusplus
47891 #endif
47894 main ()
47896 return f != $ac_func;
47898 return 0;
47900 _ACEOF
47901 rm -f conftest.$ac_objext conftest$ac_exeext
47902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47903 (eval $ac_link) 2>conftest.er1
47904 ac_status=$?
47905 grep -v '^ *+' conftest.er1 >conftest.err
47906 rm -f conftest.er1
47907 cat conftest.err >&5
47908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47909 (exit $ac_status); } &&
47910 { ac_try='test -z "$ac_c_werror_flag"
47911 || test ! -s conftest.err'
47912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47913 (eval $ac_try) 2>&5
47914 ac_status=$?
47915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47916 (exit $ac_status); }; } &&
47917 { ac_try='test -s conftest$ac_exeext'
47918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47919 (eval $ac_try) 2>&5
47920 ac_status=$?
47921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47922 (exit $ac_status); }; }; then
47923 eval "$as_ac_var=yes"
47924 else
47925 echo "$as_me: failed program was:" >&5
47926 sed 's/^/| /' conftest.$ac_ext >&5
47928 eval "$as_ac_var=no"
47930 rm -f conftest.err conftest.$ac_objext \
47931 conftest$ac_exeext conftest.$ac_ext
47933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47935 if test `eval echo '${'$as_ac_var'}'` = yes; then
47936 cat >>confdefs.h <<_ACEOF
47937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47938 _ACEOF
47941 done
47946 echo "$as_me:$LINENO: checking for _float round functions" >&5
47947 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47948 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47949 echo $ECHO_N "(cached) $ECHO_C" >&6
47950 else
47954 ac_ext=cc
47955 ac_cpp='$CXXCPP $CPPFLAGS'
47956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47960 cat >conftest.$ac_ext <<_ACEOF
47961 /* confdefs.h. */
47962 _ACEOF
47963 cat confdefs.h >>conftest.$ac_ext
47964 cat >>conftest.$ac_ext <<_ACEOF
47965 /* end confdefs.h. */
47966 #include <math.h>
47968 main ()
47970 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47972 return 0;
47974 _ACEOF
47975 rm -f conftest.$ac_objext
47976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47977 (eval $ac_compile) 2>conftest.er1
47978 ac_status=$?
47979 grep -v '^ *+' conftest.er1 >conftest.err
47980 rm -f conftest.er1
47981 cat conftest.err >&5
47982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983 (exit $ac_status); } &&
47984 { ac_try='test -z "$ac_cxx_werror_flag"
47985 || test ! -s conftest.err'
47986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47987 (eval $ac_try) 2>&5
47988 ac_status=$?
47989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47990 (exit $ac_status); }; } &&
47991 { ac_try='test -s conftest.$ac_objext'
47992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47993 (eval $ac_try) 2>&5
47994 ac_status=$?
47995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47996 (exit $ac_status); }; }; then
47997 glibcxx_cv_func__float_round_use=yes
47998 else
47999 echo "$as_me: failed program was:" >&5
48000 sed 's/^/| /' conftest.$ac_ext >&5
48002 glibcxx_cv_func__float_round_use=no
48004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48005 ac_ext=c
48006 ac_cpp='$CPP $CPPFLAGS'
48007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48013 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
48014 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
48015 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
48018 for ac_func in _ceilf _floorf
48020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48021 echo "$as_me:$LINENO: checking for $ac_func" >&5
48022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48023 if eval "test \"\${$as_ac_var+set}\" = set"; then
48024 echo $ECHO_N "(cached) $ECHO_C" >&6
48025 else
48026 if test x$gcc_no_link = xyes; then
48027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48029 { (exit 1); exit 1; }; }
48031 cat >conftest.$ac_ext <<_ACEOF
48032 /* confdefs.h. */
48033 _ACEOF
48034 cat confdefs.h >>conftest.$ac_ext
48035 cat >>conftest.$ac_ext <<_ACEOF
48036 /* end confdefs.h. */
48037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48039 #define $ac_func innocuous_$ac_func
48041 /* System header to define __stub macros and hopefully few prototypes,
48042 which can conflict with char $ac_func (); below.
48043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48044 <limits.h> exists even on freestanding compilers. */
48046 #ifdef __STDC__
48047 # include <limits.h>
48048 #else
48049 # include <assert.h>
48050 #endif
48052 #undef $ac_func
48054 /* Override any gcc2 internal prototype to avoid an error. */
48055 #ifdef __cplusplus
48056 extern "C"
48058 #endif
48059 /* We use char because int might match the return type of a gcc2
48060 builtin and then its argument prototype would still apply. */
48061 char $ac_func ();
48062 /* The GNU C library defines this for functions which it implements
48063 to always fail with ENOSYS. Some functions are actually named
48064 something starting with __ and the normal name is an alias. */
48065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48066 choke me
48067 #else
48068 char (*f) () = $ac_func;
48069 #endif
48070 #ifdef __cplusplus
48072 #endif
48075 main ()
48077 return f != $ac_func;
48079 return 0;
48081 _ACEOF
48082 rm -f conftest.$ac_objext conftest$ac_exeext
48083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48084 (eval $ac_link) 2>conftest.er1
48085 ac_status=$?
48086 grep -v '^ *+' conftest.er1 >conftest.err
48087 rm -f conftest.er1
48088 cat conftest.err >&5
48089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48090 (exit $ac_status); } &&
48091 { ac_try='test -z "$ac_c_werror_flag"
48092 || test ! -s conftest.err'
48093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48094 (eval $ac_try) 2>&5
48095 ac_status=$?
48096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48097 (exit $ac_status); }; } &&
48098 { ac_try='test -s conftest$ac_exeext'
48099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48100 (eval $ac_try) 2>&5
48101 ac_status=$?
48102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48103 (exit $ac_status); }; }; then
48104 eval "$as_ac_var=yes"
48105 else
48106 echo "$as_me: failed program was:" >&5
48107 sed 's/^/| /' conftest.$ac_ext >&5
48109 eval "$as_ac_var=no"
48111 rm -f conftest.err conftest.$ac_objext \
48112 conftest$ac_exeext conftest.$ac_ext
48114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48116 if test `eval echo '${'$as_ac_var'}'` = yes; then
48117 cat >>confdefs.h <<_ACEOF
48118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48119 _ACEOF
48122 done
48128 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
48129 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
48130 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
48131 echo $ECHO_N "(cached) $ECHO_C" >&6
48132 else
48136 ac_ext=cc
48137 ac_cpp='$CXXCPP $CPPFLAGS'
48138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48142 cat >conftest.$ac_ext <<_ACEOF
48143 /* confdefs.h. */
48144 _ACEOF
48145 cat confdefs.h >>conftest.$ac_ext
48146 cat >>conftest.$ac_ext <<_ACEOF
48147 /* end confdefs.h. */
48148 #include <math.h>
48150 main ()
48152 `for x in _acosl _asinl _atanl \
48153 _cosl _sinl _tanl \
48154 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
48156 return 0;
48158 _ACEOF
48159 rm -f conftest.$ac_objext
48160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48161 (eval $ac_compile) 2>conftest.er1
48162 ac_status=$?
48163 grep -v '^ *+' conftest.er1 >conftest.err
48164 rm -f conftest.er1
48165 cat conftest.err >&5
48166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167 (exit $ac_status); } &&
48168 { ac_try='test -z "$ac_cxx_werror_flag"
48169 || test ! -s conftest.err'
48170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48171 (eval $ac_try) 2>&5
48172 ac_status=$?
48173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174 (exit $ac_status); }; } &&
48175 { ac_try='test -s conftest.$ac_objext'
48176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177 (eval $ac_try) 2>&5
48178 ac_status=$?
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); }; }; then
48181 glibcxx_cv_func__long_double_trig_use=yes
48182 else
48183 echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48186 glibcxx_cv_func__long_double_trig_use=no
48188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48189 ac_ext=c
48190 ac_cpp='$CPP $CPPFLAGS'
48191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48197 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48198 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48199 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48209 for ac_func in _acosl _asinl _atanl \
48210 _cosl _sinl _tanl \
48211 _coshl _sinhl _tanhl
48213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48214 echo "$as_me:$LINENO: checking for $ac_func" >&5
48215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48216 if eval "test \"\${$as_ac_var+set}\" = set"; then
48217 echo $ECHO_N "(cached) $ECHO_C" >&6
48218 else
48219 if test x$gcc_no_link = xyes; then
48220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48222 { (exit 1); exit 1; }; }
48224 cat >conftest.$ac_ext <<_ACEOF
48225 /* confdefs.h. */
48226 _ACEOF
48227 cat confdefs.h >>conftest.$ac_ext
48228 cat >>conftest.$ac_ext <<_ACEOF
48229 /* end confdefs.h. */
48230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48232 #define $ac_func innocuous_$ac_func
48234 /* System header to define __stub macros and hopefully few prototypes,
48235 which can conflict with char $ac_func (); below.
48236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48237 <limits.h> exists even on freestanding compilers. */
48239 #ifdef __STDC__
48240 # include <limits.h>
48241 #else
48242 # include <assert.h>
48243 #endif
48245 #undef $ac_func
48247 /* Override any gcc2 internal prototype to avoid an error. */
48248 #ifdef __cplusplus
48249 extern "C"
48251 #endif
48252 /* We use char because int might match the return type of a gcc2
48253 builtin and then its argument prototype would still apply. */
48254 char $ac_func ();
48255 /* The GNU C library defines this for functions which it implements
48256 to always fail with ENOSYS. Some functions are actually named
48257 something starting with __ and the normal name is an alias. */
48258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48259 choke me
48260 #else
48261 char (*f) () = $ac_func;
48262 #endif
48263 #ifdef __cplusplus
48265 #endif
48268 main ()
48270 return f != $ac_func;
48272 return 0;
48274 _ACEOF
48275 rm -f conftest.$ac_objext conftest$ac_exeext
48276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48277 (eval $ac_link) 2>conftest.er1
48278 ac_status=$?
48279 grep -v '^ *+' conftest.er1 >conftest.err
48280 rm -f conftest.er1
48281 cat conftest.err >&5
48282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48283 (exit $ac_status); } &&
48284 { ac_try='test -z "$ac_c_werror_flag"
48285 || test ! -s conftest.err'
48286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48287 (eval $ac_try) 2>&5
48288 ac_status=$?
48289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48290 (exit $ac_status); }; } &&
48291 { ac_try='test -s conftest$ac_exeext'
48292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48293 (eval $ac_try) 2>&5
48294 ac_status=$?
48295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48296 (exit $ac_status); }; }; then
48297 eval "$as_ac_var=yes"
48298 else
48299 echo "$as_me: failed program was:" >&5
48300 sed 's/^/| /' conftest.$ac_ext >&5
48302 eval "$as_ac_var=no"
48304 rm -f conftest.err conftest.$ac_objext \
48305 conftest$ac_exeext conftest.$ac_ext
48307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48309 if test `eval echo '${'$as_ac_var'}'` = yes; then
48310 cat >>confdefs.h <<_ACEOF
48311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48312 _ACEOF
48315 done
48320 echo "$as_me:$LINENO: checking for _long double round functions" >&5
48321 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48322 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48323 echo $ECHO_N "(cached) $ECHO_C" >&6
48324 else
48328 ac_ext=cc
48329 ac_cpp='$CXXCPP $CPPFLAGS'
48330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48334 cat >conftest.$ac_ext <<_ACEOF
48335 /* confdefs.h. */
48336 _ACEOF
48337 cat confdefs.h >>conftest.$ac_ext
48338 cat >>conftest.$ac_ext <<_ACEOF
48339 /* end confdefs.h. */
48340 #include <math.h>
48342 main ()
48344 `for x in _ceill _floorl; do echo "$x (0);"; done`
48346 return 0;
48348 _ACEOF
48349 rm -f conftest.$ac_objext
48350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48351 (eval $ac_compile) 2>conftest.er1
48352 ac_status=$?
48353 grep -v '^ *+' conftest.er1 >conftest.err
48354 rm -f conftest.er1
48355 cat conftest.err >&5
48356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48357 (exit $ac_status); } &&
48358 { ac_try='test -z "$ac_cxx_werror_flag"
48359 || test ! -s conftest.err'
48360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48361 (eval $ac_try) 2>&5
48362 ac_status=$?
48363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48364 (exit $ac_status); }; } &&
48365 { ac_try='test -s conftest.$ac_objext'
48366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48367 (eval $ac_try) 2>&5
48368 ac_status=$?
48369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48370 (exit $ac_status); }; }; then
48371 glibcxx_cv_func__long_double_round_use=yes
48372 else
48373 echo "$as_me: failed program was:" >&5
48374 sed 's/^/| /' conftest.$ac_ext >&5
48376 glibcxx_cv_func__long_double_round_use=no
48378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48379 ac_ext=c
48380 ac_cpp='$CPP $CPPFLAGS'
48381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48387 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48388 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48389 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48392 for ac_func in _ceill _floorl
48394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48395 echo "$as_me:$LINENO: checking for $ac_func" >&5
48396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48397 if eval "test \"\${$as_ac_var+set}\" = set"; then
48398 echo $ECHO_N "(cached) $ECHO_C" >&6
48399 else
48400 if test x$gcc_no_link = xyes; then
48401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48403 { (exit 1); exit 1; }; }
48405 cat >conftest.$ac_ext <<_ACEOF
48406 /* confdefs.h. */
48407 _ACEOF
48408 cat confdefs.h >>conftest.$ac_ext
48409 cat >>conftest.$ac_ext <<_ACEOF
48410 /* end confdefs.h. */
48411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48413 #define $ac_func innocuous_$ac_func
48415 /* System header to define __stub macros and hopefully few prototypes,
48416 which can conflict with char $ac_func (); below.
48417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48418 <limits.h> exists even on freestanding compilers. */
48420 #ifdef __STDC__
48421 # include <limits.h>
48422 #else
48423 # include <assert.h>
48424 #endif
48426 #undef $ac_func
48428 /* Override any gcc2 internal prototype to avoid an error. */
48429 #ifdef __cplusplus
48430 extern "C"
48432 #endif
48433 /* We use char because int might match the return type of a gcc2
48434 builtin and then its argument prototype would still apply. */
48435 char $ac_func ();
48436 /* The GNU C library defines this for functions which it implements
48437 to always fail with ENOSYS. Some functions are actually named
48438 something starting with __ and the normal name is an alias. */
48439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48440 choke me
48441 #else
48442 char (*f) () = $ac_func;
48443 #endif
48444 #ifdef __cplusplus
48446 #endif
48449 main ()
48451 return f != $ac_func;
48453 return 0;
48455 _ACEOF
48456 rm -f conftest.$ac_objext conftest$ac_exeext
48457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48458 (eval $ac_link) 2>conftest.er1
48459 ac_status=$?
48460 grep -v '^ *+' conftest.er1 >conftest.err
48461 rm -f conftest.er1
48462 cat conftest.err >&5
48463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48464 (exit $ac_status); } &&
48465 { ac_try='test -z "$ac_c_werror_flag"
48466 || test ! -s conftest.err'
48467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48468 (eval $ac_try) 2>&5
48469 ac_status=$?
48470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48471 (exit $ac_status); }; } &&
48472 { ac_try='test -s conftest$ac_exeext'
48473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48474 (eval $ac_try) 2>&5
48475 ac_status=$?
48476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48477 (exit $ac_status); }; }; then
48478 eval "$as_ac_var=yes"
48479 else
48480 echo "$as_me: failed program was:" >&5
48481 sed 's/^/| /' conftest.$ac_ext >&5
48483 eval "$as_ac_var=no"
48485 rm -f conftest.err conftest.$ac_objext \
48486 conftest$ac_exeext conftest.$ac_ext
48488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48490 if test `eval echo '${'$as_ac_var'}'` = yes; then
48491 cat >>confdefs.h <<_ACEOF
48492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48493 _ACEOF
48496 done
48501 LIBS="$ac_save_LIBS"
48502 CXXFLAGS="$ac_save_CXXFLAGS"
48506 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48507 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48508 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48509 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48510 echo $ECHO_N "(cached) $ECHO_C" >&6
48511 else
48515 ac_ext=cc
48516 ac_cpp='$CXXCPP $CPPFLAGS'
48517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48521 cat >conftest.$ac_ext <<_ACEOF
48522 /* confdefs.h. */
48523 _ACEOF
48524 cat confdefs.h >>conftest.$ac_ext
48525 cat >>conftest.$ac_ext <<_ACEOF
48526 /* end confdefs.h. */
48527 #include <math.h>
48529 main ()
48531 __builtin_abs(0);
48533 return 0;
48535 _ACEOF
48536 rm -f conftest.$ac_objext
48537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48538 (eval $ac_compile) 2>conftest.er1
48539 ac_status=$?
48540 grep -v '^ *+' conftest.er1 >conftest.err
48541 rm -f conftest.er1
48542 cat conftest.err >&5
48543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48544 (exit $ac_status); } &&
48545 { ac_try='test -z "$ac_cxx_werror_flag"
48546 || test ! -s conftest.err'
48547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48548 (eval $ac_try) 2>&5
48549 ac_status=$?
48550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48551 (exit $ac_status); }; } &&
48552 { ac_try='test -s conftest.$ac_objext'
48553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48554 (eval $ac_try) 2>&5
48555 ac_status=$?
48556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48557 (exit $ac_status); }; }; then
48558 glibcxx_cv_func___builtin_abs_use=yes
48559 else
48560 echo "$as_me: failed program was:" >&5
48561 sed 's/^/| /' conftest.$ac_ext >&5
48563 glibcxx_cv_func___builtin_abs_use=no
48565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48566 ac_ext=c
48567 ac_cpp='$CPP $CPPFLAGS'
48568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48576 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48577 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48578 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48579 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48580 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48581 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48582 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48583 echo $ECHO_N "(cached) $ECHO_C" >&6
48584 else
48586 if test x$gcc_no_link = xyes; then
48587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48589 { (exit 1); exit 1; }; }
48591 cat >conftest.$ac_ext <<_ACEOF
48592 /* confdefs.h. */
48593 _ACEOF
48594 cat confdefs.h >>conftest.$ac_ext
48595 cat >>conftest.$ac_ext <<_ACEOF
48596 /* end confdefs.h. */
48597 #include <math.h>
48599 main ()
48601 __builtin_abs(0);
48603 return 0;
48605 _ACEOF
48606 rm -f conftest.$ac_objext conftest$ac_exeext
48607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48608 (eval $ac_link) 2>conftest.er1
48609 ac_status=$?
48610 grep -v '^ *+' conftest.er1 >conftest.err
48611 rm -f conftest.er1
48612 cat conftest.err >&5
48613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48614 (exit $ac_status); } &&
48615 { ac_try='test -z "$ac_c_werror_flag"
48616 || test ! -s conftest.err'
48617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48618 (eval $ac_try) 2>&5
48619 ac_status=$?
48620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48621 (exit $ac_status); }; } &&
48622 { ac_try='test -s conftest$ac_exeext'
48623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48624 (eval $ac_try) 2>&5
48625 ac_status=$?
48626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48627 (exit $ac_status); }; }; then
48628 glibcxx_cv_func___builtin_abs_link=yes
48629 else
48630 echo "$as_me: failed program was:" >&5
48631 sed 's/^/| /' conftest.$ac_ext >&5
48633 glibcxx_cv_func___builtin_abs_link=no
48635 rm -f conftest.err conftest.$ac_objext \
48636 conftest$ac_exeext conftest.$ac_ext
48641 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48642 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48643 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48644 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48646 cat >>confdefs.h <<\_ACEOF
48647 #define ${ac_tr_func} 1
48648 _ACEOF
48654 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48655 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48656 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48657 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48658 echo $ECHO_N "(cached) $ECHO_C" >&6
48659 else
48663 ac_ext=cc
48664 ac_cpp='$CXXCPP $CPPFLAGS'
48665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48669 cat >conftest.$ac_ext <<_ACEOF
48670 /* confdefs.h. */
48671 _ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h. */
48675 #include <math.h>
48677 main ()
48679 __builtin_fabsf(0);
48681 return 0;
48683 _ACEOF
48684 rm -f conftest.$ac_objext
48685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48686 (eval $ac_compile) 2>conftest.er1
48687 ac_status=$?
48688 grep -v '^ *+' conftest.er1 >conftest.err
48689 rm -f conftest.er1
48690 cat conftest.err >&5
48691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48692 (exit $ac_status); } &&
48693 { ac_try='test -z "$ac_cxx_werror_flag"
48694 || test ! -s conftest.err'
48695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48696 (eval $ac_try) 2>&5
48697 ac_status=$?
48698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699 (exit $ac_status); }; } &&
48700 { ac_try='test -s conftest.$ac_objext'
48701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48702 (eval $ac_try) 2>&5
48703 ac_status=$?
48704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48705 (exit $ac_status); }; }; then
48706 glibcxx_cv_func___builtin_fabsf_use=yes
48707 else
48708 echo "$as_me: failed program was:" >&5
48709 sed 's/^/| /' conftest.$ac_ext >&5
48711 glibcxx_cv_func___builtin_fabsf_use=no
48713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48714 ac_ext=c
48715 ac_cpp='$CPP $CPPFLAGS'
48716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48724 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48725 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48726 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48727 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48728 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48729 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48730 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48731 echo $ECHO_N "(cached) $ECHO_C" >&6
48732 else
48734 if test x$gcc_no_link = xyes; then
48735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48737 { (exit 1); exit 1; }; }
48739 cat >conftest.$ac_ext <<_ACEOF
48740 /* confdefs.h. */
48741 _ACEOF
48742 cat confdefs.h >>conftest.$ac_ext
48743 cat >>conftest.$ac_ext <<_ACEOF
48744 /* end confdefs.h. */
48745 #include <math.h>
48747 main ()
48749 __builtin_fabsf(0);
48751 return 0;
48753 _ACEOF
48754 rm -f conftest.$ac_objext conftest$ac_exeext
48755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48756 (eval $ac_link) 2>conftest.er1
48757 ac_status=$?
48758 grep -v '^ *+' conftest.er1 >conftest.err
48759 rm -f conftest.er1
48760 cat conftest.err >&5
48761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48762 (exit $ac_status); } &&
48763 { ac_try='test -z "$ac_c_werror_flag"
48764 || test ! -s conftest.err'
48765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48766 (eval $ac_try) 2>&5
48767 ac_status=$?
48768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48769 (exit $ac_status); }; } &&
48770 { ac_try='test -s conftest$ac_exeext'
48771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48772 (eval $ac_try) 2>&5
48773 ac_status=$?
48774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775 (exit $ac_status); }; }; then
48776 glibcxx_cv_func___builtin_fabsf_link=yes
48777 else
48778 echo "$as_me: failed program was:" >&5
48779 sed 's/^/| /' conftest.$ac_ext >&5
48781 glibcxx_cv_func___builtin_fabsf_link=no
48783 rm -f conftest.err conftest.$ac_objext \
48784 conftest$ac_exeext conftest.$ac_ext
48789 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48790 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48791 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48792 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48794 cat >>confdefs.h <<\_ACEOF
48795 #define ${ac_tr_func} 1
48796 _ACEOF
48802 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48803 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48804 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48805 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48806 echo $ECHO_N "(cached) $ECHO_C" >&6
48807 else
48811 ac_ext=cc
48812 ac_cpp='$CXXCPP $CPPFLAGS'
48813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48817 cat >conftest.$ac_ext <<_ACEOF
48818 /* confdefs.h. */
48819 _ACEOF
48820 cat confdefs.h >>conftest.$ac_ext
48821 cat >>conftest.$ac_ext <<_ACEOF
48822 /* end confdefs.h. */
48823 #include <math.h>
48825 main ()
48827 __builtin_fabs(0);
48829 return 0;
48831 _ACEOF
48832 rm -f conftest.$ac_objext
48833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48834 (eval $ac_compile) 2>conftest.er1
48835 ac_status=$?
48836 grep -v '^ *+' conftest.er1 >conftest.err
48837 rm -f conftest.er1
48838 cat conftest.err >&5
48839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48840 (exit $ac_status); } &&
48841 { ac_try='test -z "$ac_cxx_werror_flag"
48842 || test ! -s conftest.err'
48843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48844 (eval $ac_try) 2>&5
48845 ac_status=$?
48846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48847 (exit $ac_status); }; } &&
48848 { ac_try='test -s conftest.$ac_objext'
48849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48850 (eval $ac_try) 2>&5
48851 ac_status=$?
48852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48853 (exit $ac_status); }; }; then
48854 glibcxx_cv_func___builtin_fabs_use=yes
48855 else
48856 echo "$as_me: failed program was:" >&5
48857 sed 's/^/| /' conftest.$ac_ext >&5
48859 glibcxx_cv_func___builtin_fabs_use=no
48861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48862 ac_ext=c
48863 ac_cpp='$CPP $CPPFLAGS'
48864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48872 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48873 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48874 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48875 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48876 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48877 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48878 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48879 echo $ECHO_N "(cached) $ECHO_C" >&6
48880 else
48882 if test x$gcc_no_link = xyes; then
48883 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48884 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48885 { (exit 1); exit 1; }; }
48887 cat >conftest.$ac_ext <<_ACEOF
48888 /* confdefs.h. */
48889 _ACEOF
48890 cat confdefs.h >>conftest.$ac_ext
48891 cat >>conftest.$ac_ext <<_ACEOF
48892 /* end confdefs.h. */
48893 #include <math.h>
48895 main ()
48897 __builtin_fabs(0);
48899 return 0;
48901 _ACEOF
48902 rm -f conftest.$ac_objext conftest$ac_exeext
48903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48904 (eval $ac_link) 2>conftest.er1
48905 ac_status=$?
48906 grep -v '^ *+' conftest.er1 >conftest.err
48907 rm -f conftest.er1
48908 cat conftest.err >&5
48909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910 (exit $ac_status); } &&
48911 { ac_try='test -z "$ac_c_werror_flag"
48912 || test ! -s conftest.err'
48913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48914 (eval $ac_try) 2>&5
48915 ac_status=$?
48916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48917 (exit $ac_status); }; } &&
48918 { ac_try='test -s conftest$ac_exeext'
48919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48920 (eval $ac_try) 2>&5
48921 ac_status=$?
48922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48923 (exit $ac_status); }; }; then
48924 glibcxx_cv_func___builtin_fabs_link=yes
48925 else
48926 echo "$as_me: failed program was:" >&5
48927 sed 's/^/| /' conftest.$ac_ext >&5
48929 glibcxx_cv_func___builtin_fabs_link=no
48931 rm -f conftest.err conftest.$ac_objext \
48932 conftest$ac_exeext conftest.$ac_ext
48937 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48938 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48939 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48940 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48942 cat >>confdefs.h <<\_ACEOF
48943 #define ${ac_tr_func} 1
48944 _ACEOF
48950 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48951 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48952 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48953 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48954 echo $ECHO_N "(cached) $ECHO_C" >&6
48955 else
48959 ac_ext=cc
48960 ac_cpp='$CXXCPP $CPPFLAGS'
48961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48965 cat >conftest.$ac_ext <<_ACEOF
48966 /* confdefs.h. */
48967 _ACEOF
48968 cat confdefs.h >>conftest.$ac_ext
48969 cat >>conftest.$ac_ext <<_ACEOF
48970 /* end confdefs.h. */
48971 #include <math.h>
48973 main ()
48975 __builtin_fabsl(0);
48977 return 0;
48979 _ACEOF
48980 rm -f conftest.$ac_objext
48981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48982 (eval $ac_compile) 2>conftest.er1
48983 ac_status=$?
48984 grep -v '^ *+' conftest.er1 >conftest.err
48985 rm -f conftest.er1
48986 cat conftest.err >&5
48987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48988 (exit $ac_status); } &&
48989 { ac_try='test -z "$ac_cxx_werror_flag"
48990 || test ! -s conftest.err'
48991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48992 (eval $ac_try) 2>&5
48993 ac_status=$?
48994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48995 (exit $ac_status); }; } &&
48996 { ac_try='test -s conftest.$ac_objext'
48997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48998 (eval $ac_try) 2>&5
48999 ac_status=$?
49000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001 (exit $ac_status); }; }; then
49002 glibcxx_cv_func___builtin_fabsl_use=yes
49003 else
49004 echo "$as_me: failed program was:" >&5
49005 sed 's/^/| /' conftest.$ac_ext >&5
49007 glibcxx_cv_func___builtin_fabsl_use=no
49009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49010 ac_ext=c
49011 ac_cpp='$CPP $CPPFLAGS'
49012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49020 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
49021 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
49022 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
49023 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
49024 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
49025 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
49026 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
49027 echo $ECHO_N "(cached) $ECHO_C" >&6
49028 else
49030 if test x$gcc_no_link = xyes; then
49031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49033 { (exit 1); exit 1; }; }
49035 cat >conftest.$ac_ext <<_ACEOF
49036 /* confdefs.h. */
49037 _ACEOF
49038 cat confdefs.h >>conftest.$ac_ext
49039 cat >>conftest.$ac_ext <<_ACEOF
49040 /* end confdefs.h. */
49041 #include <math.h>
49043 main ()
49045 __builtin_fabsl(0);
49047 return 0;
49049 _ACEOF
49050 rm -f conftest.$ac_objext conftest$ac_exeext
49051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49052 (eval $ac_link) 2>conftest.er1
49053 ac_status=$?
49054 grep -v '^ *+' conftest.er1 >conftest.err
49055 rm -f conftest.er1
49056 cat conftest.err >&5
49057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49058 (exit $ac_status); } &&
49059 { ac_try='test -z "$ac_c_werror_flag"
49060 || test ! -s conftest.err'
49061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49062 (eval $ac_try) 2>&5
49063 ac_status=$?
49064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49065 (exit $ac_status); }; } &&
49066 { ac_try='test -s conftest$ac_exeext'
49067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49068 (eval $ac_try) 2>&5
49069 ac_status=$?
49070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49071 (exit $ac_status); }; }; then
49072 glibcxx_cv_func___builtin_fabsl_link=yes
49073 else
49074 echo "$as_me: failed program was:" >&5
49075 sed 's/^/| /' conftest.$ac_ext >&5
49077 glibcxx_cv_func___builtin_fabsl_link=no
49079 rm -f conftest.err conftest.$ac_objext \
49080 conftest$ac_exeext conftest.$ac_ext
49085 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
49086 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
49087 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
49088 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49090 cat >>confdefs.h <<\_ACEOF
49091 #define ${ac_tr_func} 1
49092 _ACEOF
49098 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
49099 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
49100 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
49101 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
49102 echo $ECHO_N "(cached) $ECHO_C" >&6
49103 else
49107 ac_ext=cc
49108 ac_cpp='$CXXCPP $CPPFLAGS'
49109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49113 cat >conftest.$ac_ext <<_ACEOF
49114 /* confdefs.h. */
49115 _ACEOF
49116 cat confdefs.h >>conftest.$ac_ext
49117 cat >>conftest.$ac_ext <<_ACEOF
49118 /* end confdefs.h. */
49119 #include <math.h>
49121 main ()
49123 __builtin_labs(0);
49125 return 0;
49127 _ACEOF
49128 rm -f conftest.$ac_objext
49129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49130 (eval $ac_compile) 2>conftest.er1
49131 ac_status=$?
49132 grep -v '^ *+' conftest.er1 >conftest.err
49133 rm -f conftest.er1
49134 cat conftest.err >&5
49135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49136 (exit $ac_status); } &&
49137 { ac_try='test -z "$ac_cxx_werror_flag"
49138 || test ! -s conftest.err'
49139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49140 (eval $ac_try) 2>&5
49141 ac_status=$?
49142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49143 (exit $ac_status); }; } &&
49144 { ac_try='test -s conftest.$ac_objext'
49145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49146 (eval $ac_try) 2>&5
49147 ac_status=$?
49148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49149 (exit $ac_status); }; }; then
49150 glibcxx_cv_func___builtin_labs_use=yes
49151 else
49152 echo "$as_me: failed program was:" >&5
49153 sed 's/^/| /' conftest.$ac_ext >&5
49155 glibcxx_cv_func___builtin_labs_use=no
49157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49158 ac_ext=c
49159 ac_cpp='$CPP $CPPFLAGS'
49160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49168 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
49169 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
49170 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
49171 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
49172 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
49173 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
49174 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
49175 echo $ECHO_N "(cached) $ECHO_C" >&6
49176 else
49178 if test x$gcc_no_link = xyes; then
49179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49181 { (exit 1); exit 1; }; }
49183 cat >conftest.$ac_ext <<_ACEOF
49184 /* confdefs.h. */
49185 _ACEOF
49186 cat confdefs.h >>conftest.$ac_ext
49187 cat >>conftest.$ac_ext <<_ACEOF
49188 /* end confdefs.h. */
49189 #include <math.h>
49191 main ()
49193 __builtin_labs(0);
49195 return 0;
49197 _ACEOF
49198 rm -f conftest.$ac_objext conftest$ac_exeext
49199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49200 (eval $ac_link) 2>conftest.er1
49201 ac_status=$?
49202 grep -v '^ *+' conftest.er1 >conftest.err
49203 rm -f conftest.er1
49204 cat conftest.err >&5
49205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206 (exit $ac_status); } &&
49207 { ac_try='test -z "$ac_c_werror_flag"
49208 || test ! -s conftest.err'
49209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49210 (eval $ac_try) 2>&5
49211 ac_status=$?
49212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49213 (exit $ac_status); }; } &&
49214 { ac_try='test -s conftest$ac_exeext'
49215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49216 (eval $ac_try) 2>&5
49217 ac_status=$?
49218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49219 (exit $ac_status); }; }; then
49220 glibcxx_cv_func___builtin_labs_link=yes
49221 else
49222 echo "$as_me: failed program was:" >&5
49223 sed 's/^/| /' conftest.$ac_ext >&5
49225 glibcxx_cv_func___builtin_labs_link=no
49227 rm -f conftest.err conftest.$ac_objext \
49228 conftest$ac_exeext conftest.$ac_ext
49233 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49234 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49235 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49236 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49238 cat >>confdefs.h <<\_ACEOF
49239 #define ${ac_tr_func} 1
49240 _ACEOF
49247 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49248 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49249 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49250 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49251 echo $ECHO_N "(cached) $ECHO_C" >&6
49252 else
49256 ac_ext=cc
49257 ac_cpp='$CXXCPP $CPPFLAGS'
49258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49262 cat >conftest.$ac_ext <<_ACEOF
49263 /* confdefs.h. */
49264 _ACEOF
49265 cat confdefs.h >>conftest.$ac_ext
49266 cat >>conftest.$ac_ext <<_ACEOF
49267 /* end confdefs.h. */
49268 #include <math.h>
49270 main ()
49272 __builtin_sqrtf(0);
49274 return 0;
49276 _ACEOF
49277 rm -f conftest.$ac_objext
49278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49279 (eval $ac_compile) 2>conftest.er1
49280 ac_status=$?
49281 grep -v '^ *+' conftest.er1 >conftest.err
49282 rm -f conftest.er1
49283 cat conftest.err >&5
49284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49285 (exit $ac_status); } &&
49286 { ac_try='test -z "$ac_cxx_werror_flag"
49287 || test ! -s conftest.err'
49288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49289 (eval $ac_try) 2>&5
49290 ac_status=$?
49291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49292 (exit $ac_status); }; } &&
49293 { ac_try='test -s conftest.$ac_objext'
49294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49295 (eval $ac_try) 2>&5
49296 ac_status=$?
49297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49298 (exit $ac_status); }; }; then
49299 glibcxx_cv_func___builtin_sqrtf_use=yes
49300 else
49301 echo "$as_me: failed program was:" >&5
49302 sed 's/^/| /' conftest.$ac_ext >&5
49304 glibcxx_cv_func___builtin_sqrtf_use=no
49306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49307 ac_ext=c
49308 ac_cpp='$CPP $CPPFLAGS'
49309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49317 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49318 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49319 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49320 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49321 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49322 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49323 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49324 echo $ECHO_N "(cached) $ECHO_C" >&6
49325 else
49327 if test x$gcc_no_link = xyes; then
49328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49330 { (exit 1); exit 1; }; }
49332 cat >conftest.$ac_ext <<_ACEOF
49333 /* confdefs.h. */
49334 _ACEOF
49335 cat confdefs.h >>conftest.$ac_ext
49336 cat >>conftest.$ac_ext <<_ACEOF
49337 /* end confdefs.h. */
49338 #include <math.h>
49340 main ()
49342 __builtin_sqrtf(0);
49344 return 0;
49346 _ACEOF
49347 rm -f conftest.$ac_objext conftest$ac_exeext
49348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49349 (eval $ac_link) 2>conftest.er1
49350 ac_status=$?
49351 grep -v '^ *+' conftest.er1 >conftest.err
49352 rm -f conftest.er1
49353 cat conftest.err >&5
49354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355 (exit $ac_status); } &&
49356 { ac_try='test -z "$ac_c_werror_flag"
49357 || test ! -s conftest.err'
49358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49359 (eval $ac_try) 2>&5
49360 ac_status=$?
49361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362 (exit $ac_status); }; } &&
49363 { ac_try='test -s conftest$ac_exeext'
49364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49365 (eval $ac_try) 2>&5
49366 ac_status=$?
49367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49368 (exit $ac_status); }; }; then
49369 glibcxx_cv_func___builtin_sqrtf_link=yes
49370 else
49371 echo "$as_me: failed program was:" >&5
49372 sed 's/^/| /' conftest.$ac_ext >&5
49374 glibcxx_cv_func___builtin_sqrtf_link=no
49376 rm -f conftest.err conftest.$ac_objext \
49377 conftest$ac_exeext conftest.$ac_ext
49382 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49383 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49384 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49385 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49387 cat >>confdefs.h <<\_ACEOF
49388 #define ${ac_tr_func} 1
49389 _ACEOF
49395 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49396 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49397 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49398 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49399 echo $ECHO_N "(cached) $ECHO_C" >&6
49400 else
49404 ac_ext=cc
49405 ac_cpp='$CXXCPP $CPPFLAGS'
49406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49410 cat >conftest.$ac_ext <<_ACEOF
49411 /* confdefs.h. */
49412 _ACEOF
49413 cat confdefs.h >>conftest.$ac_ext
49414 cat >>conftest.$ac_ext <<_ACEOF
49415 /* end confdefs.h. */
49416 #include <math.h>
49418 main ()
49420 __builtin_sqrt(0);
49422 return 0;
49424 _ACEOF
49425 rm -f conftest.$ac_objext
49426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49427 (eval $ac_compile) 2>conftest.er1
49428 ac_status=$?
49429 grep -v '^ *+' conftest.er1 >conftest.err
49430 rm -f conftest.er1
49431 cat conftest.err >&5
49432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49433 (exit $ac_status); } &&
49434 { ac_try='test -z "$ac_cxx_werror_flag"
49435 || test ! -s conftest.err'
49436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49437 (eval $ac_try) 2>&5
49438 ac_status=$?
49439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49440 (exit $ac_status); }; } &&
49441 { ac_try='test -s conftest.$ac_objext'
49442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49443 (eval $ac_try) 2>&5
49444 ac_status=$?
49445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49446 (exit $ac_status); }; }; then
49447 glibcxx_cv_func___builtin_sqrt_use=yes
49448 else
49449 echo "$as_me: failed program was:" >&5
49450 sed 's/^/| /' conftest.$ac_ext >&5
49452 glibcxx_cv_func___builtin_sqrt_use=no
49454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49455 ac_ext=c
49456 ac_cpp='$CPP $CPPFLAGS'
49457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49465 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49466 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49467 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49468 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49469 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49470 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49471 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49472 echo $ECHO_N "(cached) $ECHO_C" >&6
49473 else
49475 if test x$gcc_no_link = xyes; then
49476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49478 { (exit 1); exit 1; }; }
49480 cat >conftest.$ac_ext <<_ACEOF
49481 /* confdefs.h. */
49482 _ACEOF
49483 cat confdefs.h >>conftest.$ac_ext
49484 cat >>conftest.$ac_ext <<_ACEOF
49485 /* end confdefs.h. */
49486 #include <math.h>
49488 main ()
49490 __builtin_sqrt(0);
49492 return 0;
49494 _ACEOF
49495 rm -f conftest.$ac_objext conftest$ac_exeext
49496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49497 (eval $ac_link) 2>conftest.er1
49498 ac_status=$?
49499 grep -v '^ *+' conftest.er1 >conftest.err
49500 rm -f conftest.er1
49501 cat conftest.err >&5
49502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49503 (exit $ac_status); } &&
49504 { ac_try='test -z "$ac_c_werror_flag"
49505 || test ! -s conftest.err'
49506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49507 (eval $ac_try) 2>&5
49508 ac_status=$?
49509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49510 (exit $ac_status); }; } &&
49511 { ac_try='test -s conftest$ac_exeext'
49512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49513 (eval $ac_try) 2>&5
49514 ac_status=$?
49515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516 (exit $ac_status); }; }; then
49517 glibcxx_cv_func___builtin_sqrt_link=yes
49518 else
49519 echo "$as_me: failed program was:" >&5
49520 sed 's/^/| /' conftest.$ac_ext >&5
49522 glibcxx_cv_func___builtin_sqrt_link=no
49524 rm -f conftest.err conftest.$ac_objext \
49525 conftest$ac_exeext conftest.$ac_ext
49530 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49531 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49532 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49533 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49535 cat >>confdefs.h <<\_ACEOF
49536 #define ${ac_tr_func} 1
49537 _ACEOF
49543 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49544 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49545 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49546 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49547 echo $ECHO_N "(cached) $ECHO_C" >&6
49548 else
49552 ac_ext=cc
49553 ac_cpp='$CXXCPP $CPPFLAGS'
49554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49558 cat >conftest.$ac_ext <<_ACEOF
49559 /* confdefs.h. */
49560 _ACEOF
49561 cat confdefs.h >>conftest.$ac_ext
49562 cat >>conftest.$ac_ext <<_ACEOF
49563 /* end confdefs.h. */
49564 #include <math.h>
49566 main ()
49568 __builtin_sqrtl(0);
49570 return 0;
49572 _ACEOF
49573 rm -f conftest.$ac_objext
49574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49575 (eval $ac_compile) 2>conftest.er1
49576 ac_status=$?
49577 grep -v '^ *+' conftest.er1 >conftest.err
49578 rm -f conftest.er1
49579 cat conftest.err >&5
49580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49581 (exit $ac_status); } &&
49582 { ac_try='test -z "$ac_cxx_werror_flag"
49583 || test ! -s conftest.err'
49584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49585 (eval $ac_try) 2>&5
49586 ac_status=$?
49587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49588 (exit $ac_status); }; } &&
49589 { ac_try='test -s conftest.$ac_objext'
49590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49591 (eval $ac_try) 2>&5
49592 ac_status=$?
49593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49594 (exit $ac_status); }; }; then
49595 glibcxx_cv_func___builtin_sqrtl_use=yes
49596 else
49597 echo "$as_me: failed program was:" >&5
49598 sed 's/^/| /' conftest.$ac_ext >&5
49600 glibcxx_cv_func___builtin_sqrtl_use=no
49602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49603 ac_ext=c
49604 ac_cpp='$CPP $CPPFLAGS'
49605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49613 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49614 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49615 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49616 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49617 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49618 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49619 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49620 echo $ECHO_N "(cached) $ECHO_C" >&6
49621 else
49623 if test x$gcc_no_link = xyes; then
49624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49626 { (exit 1); exit 1; }; }
49628 cat >conftest.$ac_ext <<_ACEOF
49629 /* confdefs.h. */
49630 _ACEOF
49631 cat confdefs.h >>conftest.$ac_ext
49632 cat >>conftest.$ac_ext <<_ACEOF
49633 /* end confdefs.h. */
49634 #include <math.h>
49636 main ()
49638 __builtin_sqrtl(0);
49640 return 0;
49642 _ACEOF
49643 rm -f conftest.$ac_objext conftest$ac_exeext
49644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49645 (eval $ac_link) 2>conftest.er1
49646 ac_status=$?
49647 grep -v '^ *+' conftest.er1 >conftest.err
49648 rm -f conftest.er1
49649 cat conftest.err >&5
49650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651 (exit $ac_status); } &&
49652 { ac_try='test -z "$ac_c_werror_flag"
49653 || test ! -s conftest.err'
49654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49655 (eval $ac_try) 2>&5
49656 ac_status=$?
49657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49658 (exit $ac_status); }; } &&
49659 { ac_try='test -s conftest$ac_exeext'
49660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49661 (eval $ac_try) 2>&5
49662 ac_status=$?
49663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49664 (exit $ac_status); }; }; then
49665 glibcxx_cv_func___builtin_sqrtl_link=yes
49666 else
49667 echo "$as_me: failed program was:" >&5
49668 sed 's/^/| /' conftest.$ac_ext >&5
49670 glibcxx_cv_func___builtin_sqrtl_link=no
49672 rm -f conftest.err conftest.$ac_objext \
49673 conftest$ac_exeext conftest.$ac_ext
49678 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49679 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49680 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49681 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49683 cat >>confdefs.h <<\_ACEOF
49684 #define ${ac_tr_func} 1
49685 _ACEOF
49692 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49693 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49694 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49695 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49696 echo $ECHO_N "(cached) $ECHO_C" >&6
49697 else
49701 ac_ext=cc
49702 ac_cpp='$CXXCPP $CPPFLAGS'
49703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49707 cat >conftest.$ac_ext <<_ACEOF
49708 /* confdefs.h. */
49709 _ACEOF
49710 cat confdefs.h >>conftest.$ac_ext
49711 cat >>conftest.$ac_ext <<_ACEOF
49712 /* end confdefs.h. */
49713 #include <math.h>
49715 main ()
49717 __builtin_sinf(0);
49719 return 0;
49721 _ACEOF
49722 rm -f conftest.$ac_objext
49723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49724 (eval $ac_compile) 2>conftest.er1
49725 ac_status=$?
49726 grep -v '^ *+' conftest.er1 >conftest.err
49727 rm -f conftest.er1
49728 cat conftest.err >&5
49729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730 (exit $ac_status); } &&
49731 { ac_try='test -z "$ac_cxx_werror_flag"
49732 || test ! -s conftest.err'
49733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49734 (eval $ac_try) 2>&5
49735 ac_status=$?
49736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49737 (exit $ac_status); }; } &&
49738 { ac_try='test -s conftest.$ac_objext'
49739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49740 (eval $ac_try) 2>&5
49741 ac_status=$?
49742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49743 (exit $ac_status); }; }; then
49744 glibcxx_cv_func___builtin_sinf_use=yes
49745 else
49746 echo "$as_me: failed program was:" >&5
49747 sed 's/^/| /' conftest.$ac_ext >&5
49749 glibcxx_cv_func___builtin_sinf_use=no
49751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49752 ac_ext=c
49753 ac_cpp='$CPP $CPPFLAGS'
49754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49762 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49763 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49764 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49765 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49766 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49767 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49768 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49769 echo $ECHO_N "(cached) $ECHO_C" >&6
49770 else
49772 if test x$gcc_no_link = xyes; then
49773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49775 { (exit 1); exit 1; }; }
49777 cat >conftest.$ac_ext <<_ACEOF
49778 /* confdefs.h. */
49779 _ACEOF
49780 cat confdefs.h >>conftest.$ac_ext
49781 cat >>conftest.$ac_ext <<_ACEOF
49782 /* end confdefs.h. */
49783 #include <math.h>
49785 main ()
49787 __builtin_sinf(0);
49789 return 0;
49791 _ACEOF
49792 rm -f conftest.$ac_objext conftest$ac_exeext
49793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49794 (eval $ac_link) 2>conftest.er1
49795 ac_status=$?
49796 grep -v '^ *+' conftest.er1 >conftest.err
49797 rm -f conftest.er1
49798 cat conftest.err >&5
49799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49800 (exit $ac_status); } &&
49801 { ac_try='test -z "$ac_c_werror_flag"
49802 || test ! -s conftest.err'
49803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49804 (eval $ac_try) 2>&5
49805 ac_status=$?
49806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49807 (exit $ac_status); }; } &&
49808 { ac_try='test -s conftest$ac_exeext'
49809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49810 (eval $ac_try) 2>&5
49811 ac_status=$?
49812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49813 (exit $ac_status); }; }; then
49814 glibcxx_cv_func___builtin_sinf_link=yes
49815 else
49816 echo "$as_me: failed program was:" >&5
49817 sed 's/^/| /' conftest.$ac_ext >&5
49819 glibcxx_cv_func___builtin_sinf_link=no
49821 rm -f conftest.err conftest.$ac_objext \
49822 conftest$ac_exeext conftest.$ac_ext
49827 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49828 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49829 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49830 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49832 cat >>confdefs.h <<\_ACEOF
49833 #define ${ac_tr_func} 1
49834 _ACEOF
49840 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49841 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49842 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49843 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49844 echo $ECHO_N "(cached) $ECHO_C" >&6
49845 else
49849 ac_ext=cc
49850 ac_cpp='$CXXCPP $CPPFLAGS'
49851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49855 cat >conftest.$ac_ext <<_ACEOF
49856 /* confdefs.h. */
49857 _ACEOF
49858 cat confdefs.h >>conftest.$ac_ext
49859 cat >>conftest.$ac_ext <<_ACEOF
49860 /* end confdefs.h. */
49861 #include <math.h>
49863 main ()
49865 __builtin_sin(0);
49867 return 0;
49869 _ACEOF
49870 rm -f conftest.$ac_objext
49871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49872 (eval $ac_compile) 2>conftest.er1
49873 ac_status=$?
49874 grep -v '^ *+' conftest.er1 >conftest.err
49875 rm -f conftest.er1
49876 cat conftest.err >&5
49877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49878 (exit $ac_status); } &&
49879 { ac_try='test -z "$ac_cxx_werror_flag"
49880 || test ! -s conftest.err'
49881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49882 (eval $ac_try) 2>&5
49883 ac_status=$?
49884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49885 (exit $ac_status); }; } &&
49886 { ac_try='test -s conftest.$ac_objext'
49887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49888 (eval $ac_try) 2>&5
49889 ac_status=$?
49890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49891 (exit $ac_status); }; }; then
49892 glibcxx_cv_func___builtin_sin_use=yes
49893 else
49894 echo "$as_me: failed program was:" >&5
49895 sed 's/^/| /' conftest.$ac_ext >&5
49897 glibcxx_cv_func___builtin_sin_use=no
49899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49900 ac_ext=c
49901 ac_cpp='$CPP $CPPFLAGS'
49902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49910 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49911 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49912 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49913 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49914 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49915 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49916 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49917 echo $ECHO_N "(cached) $ECHO_C" >&6
49918 else
49920 if test x$gcc_no_link = xyes; then
49921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49923 { (exit 1); exit 1; }; }
49925 cat >conftest.$ac_ext <<_ACEOF
49926 /* confdefs.h. */
49927 _ACEOF
49928 cat confdefs.h >>conftest.$ac_ext
49929 cat >>conftest.$ac_ext <<_ACEOF
49930 /* end confdefs.h. */
49931 #include <math.h>
49933 main ()
49935 __builtin_sin(0);
49937 return 0;
49939 _ACEOF
49940 rm -f conftest.$ac_objext conftest$ac_exeext
49941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49942 (eval $ac_link) 2>conftest.er1
49943 ac_status=$?
49944 grep -v '^ *+' conftest.er1 >conftest.err
49945 rm -f conftest.er1
49946 cat conftest.err >&5
49947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948 (exit $ac_status); } &&
49949 { ac_try='test -z "$ac_c_werror_flag"
49950 || test ! -s conftest.err'
49951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952 (eval $ac_try) 2>&5
49953 ac_status=$?
49954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955 (exit $ac_status); }; } &&
49956 { ac_try='test -s conftest$ac_exeext'
49957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958 (eval $ac_try) 2>&5
49959 ac_status=$?
49960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961 (exit $ac_status); }; }; then
49962 glibcxx_cv_func___builtin_sin_link=yes
49963 else
49964 echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49967 glibcxx_cv_func___builtin_sin_link=no
49969 rm -f conftest.err conftest.$ac_objext \
49970 conftest$ac_exeext conftest.$ac_ext
49975 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49976 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49977 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49978 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49980 cat >>confdefs.h <<\_ACEOF
49981 #define ${ac_tr_func} 1
49982 _ACEOF
49988 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49989 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49990 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49991 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49992 echo $ECHO_N "(cached) $ECHO_C" >&6
49993 else
49997 ac_ext=cc
49998 ac_cpp='$CXXCPP $CPPFLAGS'
49999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50003 cat >conftest.$ac_ext <<_ACEOF
50004 /* confdefs.h. */
50005 _ACEOF
50006 cat confdefs.h >>conftest.$ac_ext
50007 cat >>conftest.$ac_ext <<_ACEOF
50008 /* end confdefs.h. */
50009 #include <math.h>
50011 main ()
50013 __builtin_sinl(0);
50015 return 0;
50017 _ACEOF
50018 rm -f conftest.$ac_objext
50019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50020 (eval $ac_compile) 2>conftest.er1
50021 ac_status=$?
50022 grep -v '^ *+' conftest.er1 >conftest.err
50023 rm -f conftest.er1
50024 cat conftest.err >&5
50025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50026 (exit $ac_status); } &&
50027 { ac_try='test -z "$ac_cxx_werror_flag"
50028 || test ! -s conftest.err'
50029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50030 (eval $ac_try) 2>&5
50031 ac_status=$?
50032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50033 (exit $ac_status); }; } &&
50034 { ac_try='test -s conftest.$ac_objext'
50035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50036 (eval $ac_try) 2>&5
50037 ac_status=$?
50038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50039 (exit $ac_status); }; }; then
50040 glibcxx_cv_func___builtin_sinl_use=yes
50041 else
50042 echo "$as_me: failed program was:" >&5
50043 sed 's/^/| /' conftest.$ac_ext >&5
50045 glibcxx_cv_func___builtin_sinl_use=no
50047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50048 ac_ext=c
50049 ac_cpp='$CPP $CPPFLAGS'
50050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50058 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
50059 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
50060 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
50061 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
50062 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
50063 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
50064 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
50065 echo $ECHO_N "(cached) $ECHO_C" >&6
50066 else
50068 if test x$gcc_no_link = xyes; then
50069 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50070 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50071 { (exit 1); exit 1; }; }
50073 cat >conftest.$ac_ext <<_ACEOF
50074 /* confdefs.h. */
50075 _ACEOF
50076 cat confdefs.h >>conftest.$ac_ext
50077 cat >>conftest.$ac_ext <<_ACEOF
50078 /* end confdefs.h. */
50079 #include <math.h>
50081 main ()
50083 __builtin_sinl(0);
50085 return 0;
50087 _ACEOF
50088 rm -f conftest.$ac_objext conftest$ac_exeext
50089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50090 (eval $ac_link) 2>conftest.er1
50091 ac_status=$?
50092 grep -v '^ *+' conftest.er1 >conftest.err
50093 rm -f conftest.er1
50094 cat conftest.err >&5
50095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50096 (exit $ac_status); } &&
50097 { ac_try='test -z "$ac_c_werror_flag"
50098 || test ! -s conftest.err'
50099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50100 (eval $ac_try) 2>&5
50101 ac_status=$?
50102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50103 (exit $ac_status); }; } &&
50104 { ac_try='test -s conftest$ac_exeext'
50105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50106 (eval $ac_try) 2>&5
50107 ac_status=$?
50108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50109 (exit $ac_status); }; }; then
50110 glibcxx_cv_func___builtin_sinl_link=yes
50111 else
50112 echo "$as_me: failed program was:" >&5
50113 sed 's/^/| /' conftest.$ac_ext >&5
50115 glibcxx_cv_func___builtin_sinl_link=no
50117 rm -f conftest.err conftest.$ac_objext \
50118 conftest$ac_exeext conftest.$ac_ext
50123 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
50124 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
50125 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
50126 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50128 cat >>confdefs.h <<\_ACEOF
50129 #define ${ac_tr_func} 1
50130 _ACEOF
50137 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
50138 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
50139 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
50140 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
50141 echo $ECHO_N "(cached) $ECHO_C" >&6
50142 else
50146 ac_ext=cc
50147 ac_cpp='$CXXCPP $CPPFLAGS'
50148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50152 cat >conftest.$ac_ext <<_ACEOF
50153 /* confdefs.h. */
50154 _ACEOF
50155 cat confdefs.h >>conftest.$ac_ext
50156 cat >>conftest.$ac_ext <<_ACEOF
50157 /* end confdefs.h. */
50158 #include <math.h>
50160 main ()
50162 __builtin_cosf(0);
50164 return 0;
50166 _ACEOF
50167 rm -f conftest.$ac_objext
50168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50169 (eval $ac_compile) 2>conftest.er1
50170 ac_status=$?
50171 grep -v '^ *+' conftest.er1 >conftest.err
50172 rm -f conftest.er1
50173 cat conftest.err >&5
50174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50175 (exit $ac_status); } &&
50176 { ac_try='test -z "$ac_cxx_werror_flag"
50177 || test ! -s conftest.err'
50178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50179 (eval $ac_try) 2>&5
50180 ac_status=$?
50181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50182 (exit $ac_status); }; } &&
50183 { ac_try='test -s conftest.$ac_objext'
50184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50185 (eval $ac_try) 2>&5
50186 ac_status=$?
50187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50188 (exit $ac_status); }; }; then
50189 glibcxx_cv_func___builtin_cosf_use=yes
50190 else
50191 echo "$as_me: failed program was:" >&5
50192 sed 's/^/| /' conftest.$ac_ext >&5
50194 glibcxx_cv_func___builtin_cosf_use=no
50196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50197 ac_ext=c
50198 ac_cpp='$CPP $CPPFLAGS'
50199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50207 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50208 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50209 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50210 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50211 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50212 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50213 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50214 echo $ECHO_N "(cached) $ECHO_C" >&6
50215 else
50217 if test x$gcc_no_link = xyes; then
50218 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50220 { (exit 1); exit 1; }; }
50222 cat >conftest.$ac_ext <<_ACEOF
50223 /* confdefs.h. */
50224 _ACEOF
50225 cat confdefs.h >>conftest.$ac_ext
50226 cat >>conftest.$ac_ext <<_ACEOF
50227 /* end confdefs.h. */
50228 #include <math.h>
50230 main ()
50232 __builtin_cosf(0);
50234 return 0;
50236 _ACEOF
50237 rm -f conftest.$ac_objext conftest$ac_exeext
50238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50239 (eval $ac_link) 2>conftest.er1
50240 ac_status=$?
50241 grep -v '^ *+' conftest.er1 >conftest.err
50242 rm -f conftest.er1
50243 cat conftest.err >&5
50244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50245 (exit $ac_status); } &&
50246 { ac_try='test -z "$ac_c_werror_flag"
50247 || test ! -s conftest.err'
50248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50249 (eval $ac_try) 2>&5
50250 ac_status=$?
50251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252 (exit $ac_status); }; } &&
50253 { ac_try='test -s conftest$ac_exeext'
50254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50255 (eval $ac_try) 2>&5
50256 ac_status=$?
50257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50258 (exit $ac_status); }; }; then
50259 glibcxx_cv_func___builtin_cosf_link=yes
50260 else
50261 echo "$as_me: failed program was:" >&5
50262 sed 's/^/| /' conftest.$ac_ext >&5
50264 glibcxx_cv_func___builtin_cosf_link=no
50266 rm -f conftest.err conftest.$ac_objext \
50267 conftest$ac_exeext conftest.$ac_ext
50272 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50273 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50274 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50275 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50277 cat >>confdefs.h <<\_ACEOF
50278 #define ${ac_tr_func} 1
50279 _ACEOF
50285 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50286 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50287 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50288 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50289 echo $ECHO_N "(cached) $ECHO_C" >&6
50290 else
50294 ac_ext=cc
50295 ac_cpp='$CXXCPP $CPPFLAGS'
50296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50300 cat >conftest.$ac_ext <<_ACEOF
50301 /* confdefs.h. */
50302 _ACEOF
50303 cat confdefs.h >>conftest.$ac_ext
50304 cat >>conftest.$ac_ext <<_ACEOF
50305 /* end confdefs.h. */
50306 #include <math.h>
50308 main ()
50310 __builtin_cos(0);
50312 return 0;
50314 _ACEOF
50315 rm -f conftest.$ac_objext
50316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50317 (eval $ac_compile) 2>conftest.er1
50318 ac_status=$?
50319 grep -v '^ *+' conftest.er1 >conftest.err
50320 rm -f conftest.er1
50321 cat conftest.err >&5
50322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50323 (exit $ac_status); } &&
50324 { ac_try='test -z "$ac_cxx_werror_flag"
50325 || test ! -s conftest.err'
50326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50327 (eval $ac_try) 2>&5
50328 ac_status=$?
50329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50330 (exit $ac_status); }; } &&
50331 { ac_try='test -s conftest.$ac_objext'
50332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50333 (eval $ac_try) 2>&5
50334 ac_status=$?
50335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50336 (exit $ac_status); }; }; then
50337 glibcxx_cv_func___builtin_cos_use=yes
50338 else
50339 echo "$as_me: failed program was:" >&5
50340 sed 's/^/| /' conftest.$ac_ext >&5
50342 glibcxx_cv_func___builtin_cos_use=no
50344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50345 ac_ext=c
50346 ac_cpp='$CPP $CPPFLAGS'
50347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50355 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50356 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50357 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50358 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50359 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50360 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50361 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50362 echo $ECHO_N "(cached) $ECHO_C" >&6
50363 else
50365 if test x$gcc_no_link = xyes; then
50366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50368 { (exit 1); exit 1; }; }
50370 cat >conftest.$ac_ext <<_ACEOF
50371 /* confdefs.h. */
50372 _ACEOF
50373 cat confdefs.h >>conftest.$ac_ext
50374 cat >>conftest.$ac_ext <<_ACEOF
50375 /* end confdefs.h. */
50376 #include <math.h>
50378 main ()
50380 __builtin_cos(0);
50382 return 0;
50384 _ACEOF
50385 rm -f conftest.$ac_objext conftest$ac_exeext
50386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50387 (eval $ac_link) 2>conftest.er1
50388 ac_status=$?
50389 grep -v '^ *+' conftest.er1 >conftest.err
50390 rm -f conftest.er1
50391 cat conftest.err >&5
50392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50393 (exit $ac_status); } &&
50394 { ac_try='test -z "$ac_c_werror_flag"
50395 || test ! -s conftest.err'
50396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50397 (eval $ac_try) 2>&5
50398 ac_status=$?
50399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50400 (exit $ac_status); }; } &&
50401 { ac_try='test -s conftest$ac_exeext'
50402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50403 (eval $ac_try) 2>&5
50404 ac_status=$?
50405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50406 (exit $ac_status); }; }; then
50407 glibcxx_cv_func___builtin_cos_link=yes
50408 else
50409 echo "$as_me: failed program was:" >&5
50410 sed 's/^/| /' conftest.$ac_ext >&5
50412 glibcxx_cv_func___builtin_cos_link=no
50414 rm -f conftest.err conftest.$ac_objext \
50415 conftest$ac_exeext conftest.$ac_ext
50420 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50421 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50422 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50423 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50425 cat >>confdefs.h <<\_ACEOF
50426 #define ${ac_tr_func} 1
50427 _ACEOF
50433 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50434 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50435 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50436 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50437 echo $ECHO_N "(cached) $ECHO_C" >&6
50438 else
50442 ac_ext=cc
50443 ac_cpp='$CXXCPP $CPPFLAGS'
50444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50448 cat >conftest.$ac_ext <<_ACEOF
50449 /* confdefs.h. */
50450 _ACEOF
50451 cat confdefs.h >>conftest.$ac_ext
50452 cat >>conftest.$ac_ext <<_ACEOF
50453 /* end confdefs.h. */
50454 #include <math.h>
50456 main ()
50458 __builtin_cosl(0);
50460 return 0;
50462 _ACEOF
50463 rm -f conftest.$ac_objext
50464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50465 (eval $ac_compile) 2>conftest.er1
50466 ac_status=$?
50467 grep -v '^ *+' conftest.er1 >conftest.err
50468 rm -f conftest.er1
50469 cat conftest.err >&5
50470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50471 (exit $ac_status); } &&
50472 { ac_try='test -z "$ac_cxx_werror_flag"
50473 || test ! -s conftest.err'
50474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50475 (eval $ac_try) 2>&5
50476 ac_status=$?
50477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50478 (exit $ac_status); }; } &&
50479 { ac_try='test -s conftest.$ac_objext'
50480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50481 (eval $ac_try) 2>&5
50482 ac_status=$?
50483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484 (exit $ac_status); }; }; then
50485 glibcxx_cv_func___builtin_cosl_use=yes
50486 else
50487 echo "$as_me: failed program was:" >&5
50488 sed 's/^/| /' conftest.$ac_ext >&5
50490 glibcxx_cv_func___builtin_cosl_use=no
50492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50493 ac_ext=c
50494 ac_cpp='$CPP $CPPFLAGS'
50495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50503 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50504 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50505 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50506 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50507 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50508 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50509 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50510 echo $ECHO_N "(cached) $ECHO_C" >&6
50511 else
50513 if test x$gcc_no_link = xyes; then
50514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50516 { (exit 1); exit 1; }; }
50518 cat >conftest.$ac_ext <<_ACEOF
50519 /* confdefs.h. */
50520 _ACEOF
50521 cat confdefs.h >>conftest.$ac_ext
50522 cat >>conftest.$ac_ext <<_ACEOF
50523 /* end confdefs.h. */
50524 #include <math.h>
50526 main ()
50528 __builtin_cosl(0);
50530 return 0;
50532 _ACEOF
50533 rm -f conftest.$ac_objext conftest$ac_exeext
50534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50535 (eval $ac_link) 2>conftest.er1
50536 ac_status=$?
50537 grep -v '^ *+' conftest.er1 >conftest.err
50538 rm -f conftest.er1
50539 cat conftest.err >&5
50540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50541 (exit $ac_status); } &&
50542 { ac_try='test -z "$ac_c_werror_flag"
50543 || test ! -s conftest.err'
50544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50545 (eval $ac_try) 2>&5
50546 ac_status=$?
50547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50548 (exit $ac_status); }; } &&
50549 { ac_try='test -s conftest$ac_exeext'
50550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50551 (eval $ac_try) 2>&5
50552 ac_status=$?
50553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50554 (exit $ac_status); }; }; then
50555 glibcxx_cv_func___builtin_cosl_link=yes
50556 else
50557 echo "$as_me: failed program was:" >&5
50558 sed 's/^/| /' conftest.$ac_ext >&5
50560 glibcxx_cv_func___builtin_cosl_link=no
50562 rm -f conftest.err conftest.$ac_objext \
50563 conftest$ac_exeext conftest.$ac_ext
50568 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50569 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50570 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50571 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50573 cat >>confdefs.h <<\_ACEOF
50574 #define ${ac_tr_func} 1
50575 _ACEOF
50583 echo "$as_me:$LINENO: checking for main in -lm" >&5
50584 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50585 if test "${ac_cv_lib_m_main+set}" = set; then
50586 echo $ECHO_N "(cached) $ECHO_C" >&6
50587 else
50588 ac_check_lib_save_LIBS=$LIBS
50589 LIBS="-lm $LIBS"
50590 if test x$gcc_no_link = xyes; then
50591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50593 { (exit 1); exit 1; }; }
50595 cat >conftest.$ac_ext <<_ACEOF
50596 /* confdefs.h. */
50597 _ACEOF
50598 cat confdefs.h >>conftest.$ac_ext
50599 cat >>conftest.$ac_ext <<_ACEOF
50600 /* end confdefs.h. */
50604 main ()
50606 main ();
50608 return 0;
50610 _ACEOF
50611 rm -f conftest.$ac_objext conftest$ac_exeext
50612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50613 (eval $ac_link) 2>conftest.er1
50614 ac_status=$?
50615 grep -v '^ *+' conftest.er1 >conftest.err
50616 rm -f conftest.er1
50617 cat conftest.err >&5
50618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50619 (exit $ac_status); } &&
50620 { ac_try='test -z "$ac_c_werror_flag"
50621 || test ! -s conftest.err'
50622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50623 (eval $ac_try) 2>&5
50624 ac_status=$?
50625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50626 (exit $ac_status); }; } &&
50627 { ac_try='test -s conftest$ac_exeext'
50628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50629 (eval $ac_try) 2>&5
50630 ac_status=$?
50631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50632 (exit $ac_status); }; }; then
50633 ac_cv_lib_m_main=yes
50634 else
50635 echo "$as_me: failed program was:" >&5
50636 sed 's/^/| /' conftest.$ac_ext >&5
50638 ac_cv_lib_m_main=no
50640 rm -f conftest.err conftest.$ac_objext \
50641 conftest$ac_exeext conftest.$ac_ext
50642 LIBS=$ac_check_lib_save_LIBS
50644 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50645 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50646 if test $ac_cv_lib_m_main = yes; then
50647 cat >>confdefs.h <<_ACEOF
50648 #define HAVE_LIBM 1
50649 _ACEOF
50651 LIBS="-lm $LIBS"
50656 for ac_func in copysignf
50658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50659 echo "$as_me:$LINENO: checking for $ac_func" >&5
50660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50661 if eval "test \"\${$as_ac_var+set}\" = set"; then
50662 echo $ECHO_N "(cached) $ECHO_C" >&6
50663 else
50664 if test x$gcc_no_link = xyes; then
50665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50667 { (exit 1); exit 1; }; }
50669 cat >conftest.$ac_ext <<_ACEOF
50670 /* confdefs.h. */
50671 _ACEOF
50672 cat confdefs.h >>conftest.$ac_ext
50673 cat >>conftest.$ac_ext <<_ACEOF
50674 /* end confdefs.h. */
50675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50677 #define $ac_func innocuous_$ac_func
50679 /* System header to define __stub macros and hopefully few prototypes,
50680 which can conflict with char $ac_func (); below.
50681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50682 <limits.h> exists even on freestanding compilers. */
50684 #ifdef __STDC__
50685 # include <limits.h>
50686 #else
50687 # include <assert.h>
50688 #endif
50690 #undef $ac_func
50692 /* Override any gcc2 internal prototype to avoid an error. */
50693 #ifdef __cplusplus
50694 extern "C"
50696 #endif
50697 /* We use char because int might match the return type of a gcc2
50698 builtin and then its argument prototype would still apply. */
50699 char $ac_func ();
50700 /* The GNU C library defines this for functions which it implements
50701 to always fail with ENOSYS. Some functions are actually named
50702 something starting with __ and the normal name is an alias. */
50703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50704 choke me
50705 #else
50706 char (*f) () = $ac_func;
50707 #endif
50708 #ifdef __cplusplus
50710 #endif
50713 main ()
50715 return f != $ac_func;
50717 return 0;
50719 _ACEOF
50720 rm -f conftest.$ac_objext conftest$ac_exeext
50721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50722 (eval $ac_link) 2>conftest.er1
50723 ac_status=$?
50724 grep -v '^ *+' conftest.er1 >conftest.err
50725 rm -f conftest.er1
50726 cat conftest.err >&5
50727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50728 (exit $ac_status); } &&
50729 { ac_try='test -z "$ac_c_werror_flag"
50730 || test ! -s conftest.err'
50731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50732 (eval $ac_try) 2>&5
50733 ac_status=$?
50734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50735 (exit $ac_status); }; } &&
50736 { ac_try='test -s conftest$ac_exeext'
50737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50738 (eval $ac_try) 2>&5
50739 ac_status=$?
50740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50741 (exit $ac_status); }; }; then
50742 eval "$as_ac_var=yes"
50743 else
50744 echo "$as_me: failed program was:" >&5
50745 sed 's/^/| /' conftest.$ac_ext >&5
50747 eval "$as_ac_var=no"
50749 rm -f conftest.err conftest.$ac_objext \
50750 conftest$ac_exeext conftest.$ac_ext
50752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50754 if test `eval echo '${'$as_ac_var'}'` = yes; then
50755 cat >>confdefs.h <<_ACEOF
50756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50757 _ACEOF
50759 else
50760 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50762 done
50766 for ac_func in __signbit
50768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50769 echo "$as_me:$LINENO: checking for $ac_func" >&5
50770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50771 if eval "test \"\${$as_ac_var+set}\" = set"; then
50772 echo $ECHO_N "(cached) $ECHO_C" >&6
50773 else
50774 if test x$gcc_no_link = xyes; then
50775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50777 { (exit 1); exit 1; }; }
50779 cat >conftest.$ac_ext <<_ACEOF
50780 /* confdefs.h. */
50781 _ACEOF
50782 cat confdefs.h >>conftest.$ac_ext
50783 cat >>conftest.$ac_ext <<_ACEOF
50784 /* end confdefs.h. */
50785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50787 #define $ac_func innocuous_$ac_func
50789 /* System header to define __stub macros and hopefully few prototypes,
50790 which can conflict with char $ac_func (); below.
50791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50792 <limits.h> exists even on freestanding compilers. */
50794 #ifdef __STDC__
50795 # include <limits.h>
50796 #else
50797 # include <assert.h>
50798 #endif
50800 #undef $ac_func
50802 /* Override any gcc2 internal prototype to avoid an error. */
50803 #ifdef __cplusplus
50804 extern "C"
50806 #endif
50807 /* We use char because int might match the return type of a gcc2
50808 builtin and then its argument prototype would still apply. */
50809 char $ac_func ();
50810 /* The GNU C library defines this for functions which it implements
50811 to always fail with ENOSYS. Some functions are actually named
50812 something starting with __ and the normal name is an alias. */
50813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50814 choke me
50815 #else
50816 char (*f) () = $ac_func;
50817 #endif
50818 #ifdef __cplusplus
50820 #endif
50823 main ()
50825 return f != $ac_func;
50827 return 0;
50829 _ACEOF
50830 rm -f conftest.$ac_objext conftest$ac_exeext
50831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50832 (eval $ac_link) 2>conftest.er1
50833 ac_status=$?
50834 grep -v '^ *+' conftest.er1 >conftest.err
50835 rm -f conftest.er1
50836 cat conftest.err >&5
50837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50838 (exit $ac_status); } &&
50839 { ac_try='test -z "$ac_c_werror_flag"
50840 || test ! -s conftest.err'
50841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50842 (eval $ac_try) 2>&5
50843 ac_status=$?
50844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50845 (exit $ac_status); }; } &&
50846 { ac_try='test -s conftest$ac_exeext'
50847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50848 (eval $ac_try) 2>&5
50849 ac_status=$?
50850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50851 (exit $ac_status); }; }; then
50852 eval "$as_ac_var=yes"
50853 else
50854 echo "$as_me: failed program was:" >&5
50855 sed 's/^/| /' conftest.$ac_ext >&5
50857 eval "$as_ac_var=no"
50859 rm -f conftest.err conftest.$ac_objext \
50860 conftest$ac_exeext conftest.$ac_ext
50862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50864 if test `eval echo '${'$as_ac_var'}'` = yes; then
50865 cat >>confdefs.h <<_ACEOF
50866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50867 _ACEOF
50869 else
50870 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50872 done
50876 for ac_func in __signbitf
50878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50879 echo "$as_me:$LINENO: checking for $ac_func" >&5
50880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50881 if eval "test \"\${$as_ac_var+set}\" = set"; then
50882 echo $ECHO_N "(cached) $ECHO_C" >&6
50883 else
50884 if test x$gcc_no_link = xyes; then
50885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50887 { (exit 1); exit 1; }; }
50889 cat >conftest.$ac_ext <<_ACEOF
50890 /* confdefs.h. */
50891 _ACEOF
50892 cat confdefs.h >>conftest.$ac_ext
50893 cat >>conftest.$ac_ext <<_ACEOF
50894 /* end confdefs.h. */
50895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50897 #define $ac_func innocuous_$ac_func
50899 /* System header to define __stub macros and hopefully few prototypes,
50900 which can conflict with char $ac_func (); below.
50901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50902 <limits.h> exists even on freestanding compilers. */
50904 #ifdef __STDC__
50905 # include <limits.h>
50906 #else
50907 # include <assert.h>
50908 #endif
50910 #undef $ac_func
50912 /* Override any gcc2 internal prototype to avoid an error. */
50913 #ifdef __cplusplus
50914 extern "C"
50916 #endif
50917 /* We use char because int might match the return type of a gcc2
50918 builtin and then its argument prototype would still apply. */
50919 char $ac_func ();
50920 /* The GNU C library defines this for functions which it implements
50921 to always fail with ENOSYS. Some functions are actually named
50922 something starting with __ and the normal name is an alias. */
50923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50924 choke me
50925 #else
50926 char (*f) () = $ac_func;
50927 #endif
50928 #ifdef __cplusplus
50930 #endif
50933 main ()
50935 return f != $ac_func;
50937 return 0;
50939 _ACEOF
50940 rm -f conftest.$ac_objext conftest$ac_exeext
50941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50942 (eval $ac_link) 2>conftest.er1
50943 ac_status=$?
50944 grep -v '^ *+' conftest.er1 >conftest.err
50945 rm -f conftest.er1
50946 cat conftest.err >&5
50947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50948 (exit $ac_status); } &&
50949 { ac_try='test -z "$ac_c_werror_flag"
50950 || test ! -s conftest.err'
50951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50952 (eval $ac_try) 2>&5
50953 ac_status=$?
50954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50955 (exit $ac_status); }; } &&
50956 { ac_try='test -s conftest$ac_exeext'
50957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50958 (eval $ac_try) 2>&5
50959 ac_status=$?
50960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50961 (exit $ac_status); }; }; then
50962 eval "$as_ac_var=yes"
50963 else
50964 echo "$as_me: failed program was:" >&5
50965 sed 's/^/| /' conftest.$ac_ext >&5
50967 eval "$as_ac_var=no"
50969 rm -f conftest.err conftest.$ac_objext \
50970 conftest$ac_exeext conftest.$ac_ext
50972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50974 if test `eval echo '${'$as_ac_var'}'` = yes; then
50975 cat >>confdefs.h <<_ACEOF
50976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50977 _ACEOF
50979 else
50980 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50982 done
50985 if test x$ac_cv_func_copysignl = x"yes"; then
50987 for ac_func in __signbitl
50989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50990 echo "$as_me:$LINENO: checking for $ac_func" >&5
50991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50992 if eval "test \"\${$as_ac_var+set}\" = set"; then
50993 echo $ECHO_N "(cached) $ECHO_C" >&6
50994 else
50995 if test x$gcc_no_link = xyes; then
50996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50998 { (exit 1); exit 1; }; }
51000 cat >conftest.$ac_ext <<_ACEOF
51001 /* confdefs.h. */
51002 _ACEOF
51003 cat confdefs.h >>conftest.$ac_ext
51004 cat >>conftest.$ac_ext <<_ACEOF
51005 /* end confdefs.h. */
51006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51008 #define $ac_func innocuous_$ac_func
51010 /* System header to define __stub macros and hopefully few prototypes,
51011 which can conflict with char $ac_func (); below.
51012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51013 <limits.h> exists even on freestanding compilers. */
51015 #ifdef __STDC__
51016 # include <limits.h>
51017 #else
51018 # include <assert.h>
51019 #endif
51021 #undef $ac_func
51023 /* Override any gcc2 internal prototype to avoid an error. */
51024 #ifdef __cplusplus
51025 extern "C"
51027 #endif
51028 /* We use char because int might match the return type of a gcc2
51029 builtin and then its argument prototype would still apply. */
51030 char $ac_func ();
51031 /* The GNU C library defines this for functions which it implements
51032 to always fail with ENOSYS. Some functions are actually named
51033 something starting with __ and the normal name is an alias. */
51034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51035 choke me
51036 #else
51037 char (*f) () = $ac_func;
51038 #endif
51039 #ifdef __cplusplus
51041 #endif
51044 main ()
51046 return f != $ac_func;
51048 return 0;
51050 _ACEOF
51051 rm -f conftest.$ac_objext conftest$ac_exeext
51052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51053 (eval $ac_link) 2>conftest.er1
51054 ac_status=$?
51055 grep -v '^ *+' conftest.er1 >conftest.err
51056 rm -f conftest.er1
51057 cat conftest.err >&5
51058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51059 (exit $ac_status); } &&
51060 { ac_try='test -z "$ac_c_werror_flag"
51061 || test ! -s conftest.err'
51062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51063 (eval $ac_try) 2>&5
51064 ac_status=$?
51065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51066 (exit $ac_status); }; } &&
51067 { ac_try='test -s conftest$ac_exeext'
51068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51069 (eval $ac_try) 2>&5
51070 ac_status=$?
51071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51072 (exit $ac_status); }; }; then
51073 eval "$as_ac_var=yes"
51074 else
51075 echo "$as_me: failed program was:" >&5
51076 sed 's/^/| /' conftest.$ac_ext >&5
51078 eval "$as_ac_var=no"
51080 rm -f conftest.err conftest.$ac_objext \
51081 conftest$ac_exeext conftest.$ac_ext
51083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51085 if test `eval echo '${'$as_ac_var'}'` = yes; then
51086 cat >>confdefs.h <<_ACEOF
51087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51088 _ACEOF
51090 else
51091 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51093 done
51097 # Used in libmath/Makefile.am.
51098 if test -n "$LIBMATHOBJS"; then
51099 need_libmath=yes
51104 # Test wchar.h for mbstate_t, which is needed for char_traits and
51105 # others even if wchar_t support is not on.
51106 echo "$as_me:$LINENO: checking for mbstate_t" >&5
51107 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51108 cat >conftest.$ac_ext <<_ACEOF
51109 /* confdefs.h. */
51110 _ACEOF
51111 cat confdefs.h >>conftest.$ac_ext
51112 cat >>conftest.$ac_ext <<_ACEOF
51113 /* end confdefs.h. */
51114 #include <wchar.h>
51116 main ()
51118 mbstate_t teststate;
51120 return 0;
51122 _ACEOF
51123 rm -f conftest.$ac_objext
51124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51125 (eval $ac_compile) 2>conftest.er1
51126 ac_status=$?
51127 grep -v '^ *+' conftest.er1 >conftest.err
51128 rm -f conftest.er1
51129 cat conftest.err >&5
51130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51131 (exit $ac_status); } &&
51132 { ac_try='test -z "$ac_c_werror_flag"
51133 || test ! -s conftest.err'
51134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51135 (eval $ac_try) 2>&5
51136 ac_status=$?
51137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51138 (exit $ac_status); }; } &&
51139 { ac_try='test -s conftest.$ac_objext'
51140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51141 (eval $ac_try) 2>&5
51142 ac_status=$?
51143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51144 (exit $ac_status); }; }; then
51145 have_mbstate_t=yes
51146 else
51147 echo "$as_me: failed program was:" >&5
51148 sed 's/^/| /' conftest.$ac_ext >&5
51150 have_mbstate_t=no
51152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51153 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51154 echo "${ECHO_T}$have_mbstate_t" >&6
51155 if test x"$have_mbstate_t" = xyes; then
51156 cat >>confdefs.h <<\_ACEOF
51157 #define HAVE_MBSTATE_T 1
51158 _ACEOF
51162 # Sanity check for existence of ISO C99 headers for extended encoding.
51164 for ac_header in wchar.h
51166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51168 echo "$as_me:$LINENO: checking for $ac_header" >&5
51169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51171 echo $ECHO_N "(cached) $ECHO_C" >&6
51173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51175 else
51176 # Is the header compilable?
51177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51179 cat >conftest.$ac_ext <<_ACEOF
51180 /* confdefs.h. */
51181 _ACEOF
51182 cat confdefs.h >>conftest.$ac_ext
51183 cat >>conftest.$ac_ext <<_ACEOF
51184 /* end confdefs.h. */
51185 $ac_includes_default
51186 #include <$ac_header>
51187 _ACEOF
51188 rm -f conftest.$ac_objext
51189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51190 (eval $ac_compile) 2>conftest.er1
51191 ac_status=$?
51192 grep -v '^ *+' conftest.er1 >conftest.err
51193 rm -f conftest.er1
51194 cat conftest.err >&5
51195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51196 (exit $ac_status); } &&
51197 { ac_try='test -z "$ac_c_werror_flag"
51198 || test ! -s conftest.err'
51199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51200 (eval $ac_try) 2>&5
51201 ac_status=$?
51202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51203 (exit $ac_status); }; } &&
51204 { ac_try='test -s conftest.$ac_objext'
51205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51206 (eval $ac_try) 2>&5
51207 ac_status=$?
51208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51209 (exit $ac_status); }; }; then
51210 ac_header_compiler=yes
51211 else
51212 echo "$as_me: failed program was:" >&5
51213 sed 's/^/| /' conftest.$ac_ext >&5
51215 ac_header_compiler=no
51217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51219 echo "${ECHO_T}$ac_header_compiler" >&6
51221 # Is the header present?
51222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51224 cat >conftest.$ac_ext <<_ACEOF
51225 /* confdefs.h. */
51226 _ACEOF
51227 cat confdefs.h >>conftest.$ac_ext
51228 cat >>conftest.$ac_ext <<_ACEOF
51229 /* end confdefs.h. */
51230 #include <$ac_header>
51231 _ACEOF
51232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51234 ac_status=$?
51235 grep -v '^ *+' conftest.er1 >conftest.err
51236 rm -f conftest.er1
51237 cat conftest.err >&5
51238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51239 (exit $ac_status); } >/dev/null; then
51240 if test -s conftest.err; then
51241 ac_cpp_err=$ac_c_preproc_warn_flag
51242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51243 else
51244 ac_cpp_err=
51246 else
51247 ac_cpp_err=yes
51249 if test -z "$ac_cpp_err"; then
51250 ac_header_preproc=yes
51251 else
51252 echo "$as_me: failed program was:" >&5
51253 sed 's/^/| /' conftest.$ac_ext >&5
51255 ac_header_preproc=no
51257 rm -f conftest.err conftest.$ac_ext
51258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51259 echo "${ECHO_T}$ac_header_preproc" >&6
51261 # So? What about this header?
51262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51263 yes:no: )
51264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51268 ac_header_preproc=yes
51270 no:yes:* )
51271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51284 cat <<\_ASBOX
51285 ## ----------------------------------------- ##
51286 ## Report this to the package-unused lists. ##
51287 ## ----------------------------------------- ##
51288 _ASBOX
51290 sed "s/^/$as_me: WARNING: /" >&2
51292 esac
51293 echo "$as_me:$LINENO: checking for $ac_header" >&5
51294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51296 echo $ECHO_N "(cached) $ECHO_C" >&6
51297 else
51298 eval "$as_ac_Header=\$ac_header_preproc"
51300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51305 cat >>confdefs.h <<_ACEOF
51306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51307 _ACEOF
51308 ac_has_wchar_h=yes
51309 else
51310 ac_has_wchar_h=no
51313 done
51316 for ac_header in wctype.h
51318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51320 echo "$as_me:$LINENO: checking for $ac_header" >&5
51321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51323 echo $ECHO_N "(cached) $ECHO_C" >&6
51325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51327 else
51328 # Is the header compilable?
51329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51331 cat >conftest.$ac_ext <<_ACEOF
51332 /* confdefs.h. */
51333 _ACEOF
51334 cat confdefs.h >>conftest.$ac_ext
51335 cat >>conftest.$ac_ext <<_ACEOF
51336 /* end confdefs.h. */
51337 $ac_includes_default
51338 #include <$ac_header>
51339 _ACEOF
51340 rm -f conftest.$ac_objext
51341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51342 (eval $ac_compile) 2>conftest.er1
51343 ac_status=$?
51344 grep -v '^ *+' conftest.er1 >conftest.err
51345 rm -f conftest.er1
51346 cat conftest.err >&5
51347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51348 (exit $ac_status); } &&
51349 { ac_try='test -z "$ac_c_werror_flag"
51350 || test ! -s conftest.err'
51351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51352 (eval $ac_try) 2>&5
51353 ac_status=$?
51354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51355 (exit $ac_status); }; } &&
51356 { ac_try='test -s conftest.$ac_objext'
51357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51358 (eval $ac_try) 2>&5
51359 ac_status=$?
51360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51361 (exit $ac_status); }; }; then
51362 ac_header_compiler=yes
51363 else
51364 echo "$as_me: failed program was:" >&5
51365 sed 's/^/| /' conftest.$ac_ext >&5
51367 ac_header_compiler=no
51369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51371 echo "${ECHO_T}$ac_header_compiler" >&6
51373 # Is the header present?
51374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51376 cat >conftest.$ac_ext <<_ACEOF
51377 /* confdefs.h. */
51378 _ACEOF
51379 cat confdefs.h >>conftest.$ac_ext
51380 cat >>conftest.$ac_ext <<_ACEOF
51381 /* end confdefs.h. */
51382 #include <$ac_header>
51383 _ACEOF
51384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51386 ac_status=$?
51387 grep -v '^ *+' conftest.er1 >conftest.err
51388 rm -f conftest.er1
51389 cat conftest.err >&5
51390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51391 (exit $ac_status); } >/dev/null; then
51392 if test -s conftest.err; then
51393 ac_cpp_err=$ac_c_preproc_warn_flag
51394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51395 else
51396 ac_cpp_err=
51398 else
51399 ac_cpp_err=yes
51401 if test -z "$ac_cpp_err"; then
51402 ac_header_preproc=yes
51403 else
51404 echo "$as_me: failed program was:" >&5
51405 sed 's/^/| /' conftest.$ac_ext >&5
51407 ac_header_preproc=no
51409 rm -f conftest.err conftest.$ac_ext
51410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51411 echo "${ECHO_T}$ac_header_preproc" >&6
51413 # So? What about this header?
51414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51415 yes:no: )
51416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51420 ac_header_preproc=yes
51422 no:yes:* )
51423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51436 cat <<\_ASBOX
51437 ## ----------------------------------------- ##
51438 ## Report this to the package-unused lists. ##
51439 ## ----------------------------------------- ##
51440 _ASBOX
51442 sed "s/^/$as_me: WARNING: /" >&2
51444 esac
51445 echo "$as_me:$LINENO: checking for $ac_header" >&5
51446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51448 echo $ECHO_N "(cached) $ECHO_C" >&6
51449 else
51450 eval "$as_ac_Header=\$ac_header_preproc"
51452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51457 cat >>confdefs.h <<_ACEOF
51458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51459 _ACEOF
51460 ac_has_wctype_h=yes
51461 else
51462 ac_has_wctype_h=no
51465 done
51468 # Only continue checking if the ISO C99 headers exist and support is on.
51469 if test x"$ac_has_wchar_h" = xyes &&
51470 test x"$ac_has_wctype_h" = xyes &&
51471 test x"$enable_c_mbchar" != xno; then
51473 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51474 # numeric_limits can instantiate type_traits<wchar_t>
51475 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51476 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51477 cat >conftest.$ac_ext <<_ACEOF
51478 /* confdefs.h. */
51479 _ACEOF
51480 cat confdefs.h >>conftest.$ac_ext
51481 cat >>conftest.$ac_ext <<_ACEOF
51482 /* end confdefs.h. */
51483 #include <wchar.h>
51485 main ()
51487 int i = WCHAR_MIN; int j = WCHAR_MAX;
51489 return 0;
51491 _ACEOF
51492 rm -f conftest.$ac_objext
51493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51494 (eval $ac_compile) 2>conftest.er1
51495 ac_status=$?
51496 grep -v '^ *+' conftest.er1 >conftest.err
51497 rm -f conftest.er1
51498 cat conftest.err >&5
51499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51500 (exit $ac_status); } &&
51501 { ac_try='test -z "$ac_c_werror_flag"
51502 || test ! -s conftest.err'
51503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504 (eval $ac_try) 2>&5
51505 ac_status=$?
51506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507 (exit $ac_status); }; } &&
51508 { ac_try='test -s conftest.$ac_objext'
51509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51510 (eval $ac_try) 2>&5
51511 ac_status=$?
51512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51513 (exit $ac_status); }; }; then
51514 has_wchar_minmax=yes
51515 else
51516 echo "$as_me: failed program was:" >&5
51517 sed 's/^/| /' conftest.$ac_ext >&5
51519 has_wchar_minmax=no
51521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51522 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51523 echo "${ECHO_T}$has_wchar_minmax" >&6
51525 # Test wchar.h for WEOF, which is what we use to determine whether
51526 # to specialize for char_traits<wchar_t> or not.
51527 echo "$as_me:$LINENO: checking for WEOF" >&5
51528 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51529 cat >conftest.$ac_ext <<_ACEOF
51530 /* confdefs.h. */
51531 _ACEOF
51532 cat confdefs.h >>conftest.$ac_ext
51533 cat >>conftest.$ac_ext <<_ACEOF
51534 /* end confdefs.h. */
51536 #include <wchar.h>
51537 #include <stddef.h>
51539 main ()
51541 wint_t i = WEOF;
51543 return 0;
51545 _ACEOF
51546 rm -f conftest.$ac_objext
51547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51548 (eval $ac_compile) 2>conftest.er1
51549 ac_status=$?
51550 grep -v '^ *+' conftest.er1 >conftest.err
51551 rm -f conftest.er1
51552 cat conftest.err >&5
51553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51554 (exit $ac_status); } &&
51555 { ac_try='test -z "$ac_c_werror_flag"
51556 || test ! -s conftest.err'
51557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51558 (eval $ac_try) 2>&5
51559 ac_status=$?
51560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51561 (exit $ac_status); }; } &&
51562 { ac_try='test -s conftest.$ac_objext'
51563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51564 (eval $ac_try) 2>&5
51565 ac_status=$?
51566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51567 (exit $ac_status); }; }; then
51568 has_weof=yes
51569 else
51570 echo "$as_me: failed program was:" >&5
51571 sed 's/^/| /' conftest.$ac_ext >&5
51573 has_weof=no
51575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51576 echo "$as_me:$LINENO: result: $has_weof" >&5
51577 echo "${ECHO_T}$has_weof" >&6
51579 # Tests for wide character functions used in char_traits<wchar_t>.
51580 ac_wfuncs=yes
51587 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51590 echo "$as_me:$LINENO: checking for $ac_func" >&5
51591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51592 if eval "test \"\${$as_ac_var+set}\" = set"; then
51593 echo $ECHO_N "(cached) $ECHO_C" >&6
51594 else
51595 if test x$gcc_no_link = xyes; then
51596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51598 { (exit 1); exit 1; }; }
51600 cat >conftest.$ac_ext <<_ACEOF
51601 /* confdefs.h. */
51602 _ACEOF
51603 cat confdefs.h >>conftest.$ac_ext
51604 cat >>conftest.$ac_ext <<_ACEOF
51605 /* end confdefs.h. */
51606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51608 #define $ac_func innocuous_$ac_func
51610 /* System header to define __stub macros and hopefully few prototypes,
51611 which can conflict with char $ac_func (); below.
51612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51613 <limits.h> exists even on freestanding compilers. */
51615 #ifdef __STDC__
51616 # include <limits.h>
51617 #else
51618 # include <assert.h>
51619 #endif
51621 #undef $ac_func
51623 /* Override any gcc2 internal prototype to avoid an error. */
51624 #ifdef __cplusplus
51625 extern "C"
51627 #endif
51628 /* We use char because int might match the return type of a gcc2
51629 builtin and then its argument prototype would still apply. */
51630 char $ac_func ();
51631 /* The GNU C library defines this for functions which it implements
51632 to always fail with ENOSYS. Some functions are actually named
51633 something starting with __ and the normal name is an alias. */
51634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51635 choke me
51636 #else
51637 char (*f) () = $ac_func;
51638 #endif
51639 #ifdef __cplusplus
51641 #endif
51644 main ()
51646 return f != $ac_func;
51648 return 0;
51650 _ACEOF
51651 rm -f conftest.$ac_objext conftest$ac_exeext
51652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51653 (eval $ac_link) 2>conftest.er1
51654 ac_status=$?
51655 grep -v '^ *+' conftest.er1 >conftest.err
51656 rm -f conftest.er1
51657 cat conftest.err >&5
51658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51659 (exit $ac_status); } &&
51660 { ac_try='test -z "$ac_c_werror_flag"
51661 || test ! -s conftest.err'
51662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51663 (eval $ac_try) 2>&5
51664 ac_status=$?
51665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51666 (exit $ac_status); }; } &&
51667 { ac_try='test -s conftest$ac_exeext'
51668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51669 (eval $ac_try) 2>&5
51670 ac_status=$?
51671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51672 (exit $ac_status); }; }; then
51673 eval "$as_ac_var=yes"
51674 else
51675 echo "$as_me: failed program was:" >&5
51676 sed 's/^/| /' conftest.$ac_ext >&5
51678 eval "$as_ac_var=no"
51680 rm -f conftest.err conftest.$ac_objext \
51681 conftest$ac_exeext conftest.$ac_ext
51683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51685 if test `eval echo '${'$as_ac_var'}'` = yes; then
51686 cat >>confdefs.h <<_ACEOF
51687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51688 _ACEOF
51690 else
51691 ac_wfuncs=no
51693 done
51696 # Checks for names injected into std:: by the c_std headers.
51743 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51744 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51745 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51746 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51747 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51748 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51751 echo "$as_me:$LINENO: checking for $ac_func" >&5
51752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51753 if eval "test \"\${$as_ac_var+set}\" = set"; then
51754 echo $ECHO_N "(cached) $ECHO_C" >&6
51755 else
51756 if test x$gcc_no_link = xyes; then
51757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51759 { (exit 1); exit 1; }; }
51761 cat >conftest.$ac_ext <<_ACEOF
51762 /* confdefs.h. */
51763 _ACEOF
51764 cat confdefs.h >>conftest.$ac_ext
51765 cat >>conftest.$ac_ext <<_ACEOF
51766 /* end confdefs.h. */
51767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51769 #define $ac_func innocuous_$ac_func
51771 /* System header to define __stub macros and hopefully few prototypes,
51772 which can conflict with char $ac_func (); below.
51773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51774 <limits.h> exists even on freestanding compilers. */
51776 #ifdef __STDC__
51777 # include <limits.h>
51778 #else
51779 # include <assert.h>
51780 #endif
51782 #undef $ac_func
51784 /* Override any gcc2 internal prototype to avoid an error. */
51785 #ifdef __cplusplus
51786 extern "C"
51788 #endif
51789 /* We use char because int might match the return type of a gcc2
51790 builtin and then its argument prototype would still apply. */
51791 char $ac_func ();
51792 /* The GNU C library defines this for functions which it implements
51793 to always fail with ENOSYS. Some functions are actually named
51794 something starting with __ and the normal name is an alias. */
51795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51796 choke me
51797 #else
51798 char (*f) () = $ac_func;
51799 #endif
51800 #ifdef __cplusplus
51802 #endif
51805 main ()
51807 return f != $ac_func;
51809 return 0;
51811 _ACEOF
51812 rm -f conftest.$ac_objext conftest$ac_exeext
51813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51814 (eval $ac_link) 2>conftest.er1
51815 ac_status=$?
51816 grep -v '^ *+' conftest.er1 >conftest.err
51817 rm -f conftest.er1
51818 cat conftest.err >&5
51819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51820 (exit $ac_status); } &&
51821 { ac_try='test -z "$ac_c_werror_flag"
51822 || test ! -s conftest.err'
51823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51824 (eval $ac_try) 2>&5
51825 ac_status=$?
51826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51827 (exit $ac_status); }; } &&
51828 { ac_try='test -s conftest$ac_exeext'
51829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51830 (eval $ac_try) 2>&5
51831 ac_status=$?
51832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51833 (exit $ac_status); }; }; then
51834 eval "$as_ac_var=yes"
51835 else
51836 echo "$as_me: failed program was:" >&5
51837 sed 's/^/| /' conftest.$ac_ext >&5
51839 eval "$as_ac_var=no"
51841 rm -f conftest.err conftest.$ac_objext \
51842 conftest$ac_exeext conftest.$ac_ext
51844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51846 if test `eval echo '${'$as_ac_var'}'` = yes; then
51847 cat >>confdefs.h <<_ACEOF
51848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51849 _ACEOF
51851 else
51852 ac_wfuncs=no
51854 done
51857 # Checks for wide character functions that are not required
51858 # for basic wchar_t support. Don't disable support if they are missing.
51859 # Injection of these is wrapped with guard macros.
51865 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51868 echo "$as_me:$LINENO: checking for $ac_func" >&5
51869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51870 if eval "test \"\${$as_ac_var+set}\" = set"; then
51871 echo $ECHO_N "(cached) $ECHO_C" >&6
51872 else
51873 if test x$gcc_no_link = xyes; then
51874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51876 { (exit 1); exit 1; }; }
51878 cat >conftest.$ac_ext <<_ACEOF
51879 /* confdefs.h. */
51880 _ACEOF
51881 cat confdefs.h >>conftest.$ac_ext
51882 cat >>conftest.$ac_ext <<_ACEOF
51883 /* end confdefs.h. */
51884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51886 #define $ac_func innocuous_$ac_func
51888 /* System header to define __stub macros and hopefully few prototypes,
51889 which can conflict with char $ac_func (); below.
51890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51891 <limits.h> exists even on freestanding compilers. */
51893 #ifdef __STDC__
51894 # include <limits.h>
51895 #else
51896 # include <assert.h>
51897 #endif
51899 #undef $ac_func
51901 /* Override any gcc2 internal prototype to avoid an error. */
51902 #ifdef __cplusplus
51903 extern "C"
51905 #endif
51906 /* We use char because int might match the return type of a gcc2
51907 builtin and then its argument prototype would still apply. */
51908 char $ac_func ();
51909 /* The GNU C library defines this for functions which it implements
51910 to always fail with ENOSYS. Some functions are actually named
51911 something starting with __ and the normal name is an alias. */
51912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51913 choke me
51914 #else
51915 char (*f) () = $ac_func;
51916 #endif
51917 #ifdef __cplusplus
51919 #endif
51922 main ()
51924 return f != $ac_func;
51926 return 0;
51928 _ACEOF
51929 rm -f conftest.$ac_objext conftest$ac_exeext
51930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51931 (eval $ac_link) 2>conftest.er1
51932 ac_status=$?
51933 grep -v '^ *+' conftest.er1 >conftest.err
51934 rm -f conftest.er1
51935 cat conftest.err >&5
51936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51937 (exit $ac_status); } &&
51938 { ac_try='test -z "$ac_c_werror_flag"
51939 || test ! -s conftest.err'
51940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51941 (eval $ac_try) 2>&5
51942 ac_status=$?
51943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51944 (exit $ac_status); }; } &&
51945 { ac_try='test -s conftest$ac_exeext'
51946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51947 (eval $ac_try) 2>&5
51948 ac_status=$?
51949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51950 (exit $ac_status); }; }; then
51951 eval "$as_ac_var=yes"
51952 else
51953 echo "$as_me: failed program was:" >&5
51954 sed 's/^/| /' conftest.$ac_ext >&5
51956 eval "$as_ac_var=no"
51958 rm -f conftest.err conftest.$ac_objext \
51959 conftest$ac_exeext conftest.$ac_ext
51961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51963 if test `eval echo '${'$as_ac_var'}'` = yes; then
51964 cat >>confdefs.h <<_ACEOF
51965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51966 _ACEOF
51969 done
51972 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51973 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51974 if test x"$has_weof" = xyes &&
51975 test x"$has_wchar_minmax" = xyes &&
51976 test x"$ac_wfuncs" = xyes;
51977 then
51978 ac_isoC99_wchar_t=yes
51979 else
51980 ac_isoC99_wchar_t=no
51982 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51983 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51985 # Use iconv for wchar_t to char conversions. As such, check for
51986 # X/Open Portability Guide, version 2 features (XPG2).
51987 if test "${ac_cv_header_iconv_h+set}" = set; then
51988 echo "$as_me:$LINENO: checking for iconv.h" >&5
51989 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51990 if test "${ac_cv_header_iconv_h+set}" = set; then
51991 echo $ECHO_N "(cached) $ECHO_C" >&6
51993 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51994 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51995 else
51996 # Is the header compilable?
51997 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51998 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51999 cat >conftest.$ac_ext <<_ACEOF
52000 /* confdefs.h. */
52001 _ACEOF
52002 cat confdefs.h >>conftest.$ac_ext
52003 cat >>conftest.$ac_ext <<_ACEOF
52004 /* end confdefs.h. */
52005 $ac_includes_default
52006 #include <iconv.h>
52007 _ACEOF
52008 rm -f conftest.$ac_objext
52009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52010 (eval $ac_compile) 2>conftest.er1
52011 ac_status=$?
52012 grep -v '^ *+' conftest.er1 >conftest.err
52013 rm -f conftest.er1
52014 cat conftest.err >&5
52015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52016 (exit $ac_status); } &&
52017 { ac_try='test -z "$ac_c_werror_flag"
52018 || test ! -s conftest.err'
52019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52020 (eval $ac_try) 2>&5
52021 ac_status=$?
52022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52023 (exit $ac_status); }; } &&
52024 { ac_try='test -s conftest.$ac_objext'
52025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52026 (eval $ac_try) 2>&5
52027 ac_status=$?
52028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52029 (exit $ac_status); }; }; then
52030 ac_header_compiler=yes
52031 else
52032 echo "$as_me: failed program was:" >&5
52033 sed 's/^/| /' conftest.$ac_ext >&5
52035 ac_header_compiler=no
52037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52039 echo "${ECHO_T}$ac_header_compiler" >&6
52041 # Is the header present?
52042 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52043 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52044 cat >conftest.$ac_ext <<_ACEOF
52045 /* confdefs.h. */
52046 _ACEOF
52047 cat confdefs.h >>conftest.$ac_ext
52048 cat >>conftest.$ac_ext <<_ACEOF
52049 /* end confdefs.h. */
52050 #include <iconv.h>
52051 _ACEOF
52052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52054 ac_status=$?
52055 grep -v '^ *+' conftest.er1 >conftest.err
52056 rm -f conftest.er1
52057 cat conftest.err >&5
52058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52059 (exit $ac_status); } >/dev/null; then
52060 if test -s conftest.err; then
52061 ac_cpp_err=$ac_c_preproc_warn_flag
52062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52063 else
52064 ac_cpp_err=
52066 else
52067 ac_cpp_err=yes
52069 if test -z "$ac_cpp_err"; then
52070 ac_header_preproc=yes
52071 else
52072 echo "$as_me: failed program was:" >&5
52073 sed 's/^/| /' conftest.$ac_ext >&5
52075 ac_header_preproc=no
52077 rm -f conftest.err conftest.$ac_ext
52078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52079 echo "${ECHO_T}$ac_header_preproc" >&6
52081 # So? What about this header?
52082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52083 yes:no: )
52084 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52085 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52086 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
52087 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
52088 ac_header_preproc=yes
52090 no:yes:* )
52091 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52092 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52093 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52094 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52095 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
52096 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
52097 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
52098 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
52099 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52100 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52101 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
52102 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
52104 cat <<\_ASBOX
52105 ## ----------------------------------------- ##
52106 ## Report this to the package-unused lists. ##
52107 ## ----------------------------------------- ##
52108 _ASBOX
52110 sed "s/^/$as_me: WARNING: /" >&2
52112 esac
52113 echo "$as_me:$LINENO: checking for iconv.h" >&5
52114 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52115 if test "${ac_cv_header_iconv_h+set}" = set; then
52116 echo $ECHO_N "(cached) $ECHO_C" >&6
52117 else
52118 ac_cv_header_iconv_h=$ac_header_preproc
52120 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52121 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52124 if test $ac_cv_header_iconv_h = yes; then
52125 ac_has_iconv_h=yes
52126 else
52127 ac_has_iconv_h=no
52131 if test "${ac_cv_header_langinfo_h+set}" = set; then
52132 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52133 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52134 if test "${ac_cv_header_langinfo_h+set}" = set; then
52135 echo $ECHO_N "(cached) $ECHO_C" >&6
52137 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52138 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52139 else
52140 # Is the header compilable?
52141 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52142 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52143 cat >conftest.$ac_ext <<_ACEOF
52144 /* confdefs.h. */
52145 _ACEOF
52146 cat confdefs.h >>conftest.$ac_ext
52147 cat >>conftest.$ac_ext <<_ACEOF
52148 /* end confdefs.h. */
52149 $ac_includes_default
52150 #include <langinfo.h>
52151 _ACEOF
52152 rm -f conftest.$ac_objext
52153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52154 (eval $ac_compile) 2>conftest.er1
52155 ac_status=$?
52156 grep -v '^ *+' conftest.er1 >conftest.err
52157 rm -f conftest.er1
52158 cat conftest.err >&5
52159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52160 (exit $ac_status); } &&
52161 { ac_try='test -z "$ac_c_werror_flag"
52162 || test ! -s conftest.err'
52163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52164 (eval $ac_try) 2>&5
52165 ac_status=$?
52166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52167 (exit $ac_status); }; } &&
52168 { ac_try='test -s conftest.$ac_objext'
52169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52170 (eval $ac_try) 2>&5
52171 ac_status=$?
52172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52173 (exit $ac_status); }; }; then
52174 ac_header_compiler=yes
52175 else
52176 echo "$as_me: failed program was:" >&5
52177 sed 's/^/| /' conftest.$ac_ext >&5
52179 ac_header_compiler=no
52181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52183 echo "${ECHO_T}$ac_header_compiler" >&6
52185 # Is the header present?
52186 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52187 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52188 cat >conftest.$ac_ext <<_ACEOF
52189 /* confdefs.h. */
52190 _ACEOF
52191 cat confdefs.h >>conftest.$ac_ext
52192 cat >>conftest.$ac_ext <<_ACEOF
52193 /* end confdefs.h. */
52194 #include <langinfo.h>
52195 _ACEOF
52196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52198 ac_status=$?
52199 grep -v '^ *+' conftest.er1 >conftest.err
52200 rm -f conftest.er1
52201 cat conftest.err >&5
52202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52203 (exit $ac_status); } >/dev/null; then
52204 if test -s conftest.err; then
52205 ac_cpp_err=$ac_c_preproc_warn_flag
52206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52207 else
52208 ac_cpp_err=
52210 else
52211 ac_cpp_err=yes
52213 if test -z "$ac_cpp_err"; then
52214 ac_header_preproc=yes
52215 else
52216 echo "$as_me: failed program was:" >&5
52217 sed 's/^/| /' conftest.$ac_ext >&5
52219 ac_header_preproc=no
52221 rm -f conftest.err conftest.$ac_ext
52222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52223 echo "${ECHO_T}$ac_header_preproc" >&6
52225 # So? What about this header?
52226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52227 yes:no: )
52228 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52229 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52230 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52231 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52232 ac_header_preproc=yes
52234 no:yes:* )
52235 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52236 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52237 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52238 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52239 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52240 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52241 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
52242 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
52243 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52244 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52245 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52246 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52248 cat <<\_ASBOX
52249 ## ----------------------------------------- ##
52250 ## Report this to the package-unused lists. ##
52251 ## ----------------------------------------- ##
52252 _ASBOX
52254 sed "s/^/$as_me: WARNING: /" >&2
52256 esac
52257 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52258 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52259 if test "${ac_cv_header_langinfo_h+set}" = set; then
52260 echo $ECHO_N "(cached) $ECHO_C" >&6
52261 else
52262 ac_cv_header_langinfo_h=$ac_header_preproc
52264 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52265 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52268 if test $ac_cv_header_langinfo_h = yes; then
52269 ac_has_langinfo_h=yes
52270 else
52271 ac_has_langinfo_h=no
52276 # Check for existence of libiconv.a providing XPG2 wchar_t support.
52277 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52278 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52279 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52280 echo $ECHO_N "(cached) $ECHO_C" >&6
52281 else
52282 ac_check_lib_save_LIBS=$LIBS
52283 LIBS="-liconv $LIBS"
52284 if test x$gcc_no_link = xyes; then
52285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52287 { (exit 1); exit 1; }; }
52289 cat >conftest.$ac_ext <<_ACEOF
52290 /* confdefs.h. */
52291 _ACEOF
52292 cat confdefs.h >>conftest.$ac_ext
52293 cat >>conftest.$ac_ext <<_ACEOF
52294 /* end confdefs.h. */
52296 /* Override any gcc2 internal prototype to avoid an error. */
52297 #ifdef __cplusplus
52298 extern "C"
52299 #endif
52300 /* We use char because int might match the return type of a gcc2
52301 builtin and then its argument prototype would still apply. */
52302 char iconv ();
52304 main ()
52306 iconv ();
52308 return 0;
52310 _ACEOF
52311 rm -f conftest.$ac_objext conftest$ac_exeext
52312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52313 (eval $ac_link) 2>conftest.er1
52314 ac_status=$?
52315 grep -v '^ *+' conftest.er1 >conftest.err
52316 rm -f conftest.er1
52317 cat conftest.err >&5
52318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52319 (exit $ac_status); } &&
52320 { ac_try='test -z "$ac_c_werror_flag"
52321 || test ! -s conftest.err'
52322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52323 (eval $ac_try) 2>&5
52324 ac_status=$?
52325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52326 (exit $ac_status); }; } &&
52327 { ac_try='test -s conftest$ac_exeext'
52328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52329 (eval $ac_try) 2>&5
52330 ac_status=$?
52331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52332 (exit $ac_status); }; }; then
52333 ac_cv_lib_iconv_iconv=yes
52334 else
52335 echo "$as_me: failed program was:" >&5
52336 sed 's/^/| /' conftest.$ac_ext >&5
52338 ac_cv_lib_iconv_iconv=no
52340 rm -f conftest.err conftest.$ac_objext \
52341 conftest$ac_exeext conftest.$ac_ext
52342 LIBS=$ac_check_lib_save_LIBS
52344 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52345 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52346 if test $ac_cv_lib_iconv_iconv = yes; then
52347 LIBICONV="-liconv"
52350 ac_save_LIBS="$LIBS"
52351 LIBS="$LIBS $LIBICONV"
52358 for ac_func in iconv_open iconv_close iconv nl_langinfo
52360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52361 echo "$as_me:$LINENO: checking for $ac_func" >&5
52362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52363 if eval "test \"\${$as_ac_var+set}\" = set"; then
52364 echo $ECHO_N "(cached) $ECHO_C" >&6
52365 else
52366 if test x$gcc_no_link = xyes; then
52367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52369 { (exit 1); exit 1; }; }
52371 cat >conftest.$ac_ext <<_ACEOF
52372 /* confdefs.h. */
52373 _ACEOF
52374 cat confdefs.h >>conftest.$ac_ext
52375 cat >>conftest.$ac_ext <<_ACEOF
52376 /* end confdefs.h. */
52377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52379 #define $ac_func innocuous_$ac_func
52381 /* System header to define __stub macros and hopefully few prototypes,
52382 which can conflict with char $ac_func (); below.
52383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52384 <limits.h> exists even on freestanding compilers. */
52386 #ifdef __STDC__
52387 # include <limits.h>
52388 #else
52389 # include <assert.h>
52390 #endif
52392 #undef $ac_func
52394 /* Override any gcc2 internal prototype to avoid an error. */
52395 #ifdef __cplusplus
52396 extern "C"
52398 #endif
52399 /* We use char because int might match the return type of a gcc2
52400 builtin and then its argument prototype would still apply. */
52401 char $ac_func ();
52402 /* The GNU C library defines this for functions which it implements
52403 to always fail with ENOSYS. Some functions are actually named
52404 something starting with __ and the normal name is an alias. */
52405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52406 choke me
52407 #else
52408 char (*f) () = $ac_func;
52409 #endif
52410 #ifdef __cplusplus
52412 #endif
52415 main ()
52417 return f != $ac_func;
52419 return 0;
52421 _ACEOF
52422 rm -f conftest.$ac_objext conftest$ac_exeext
52423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52424 (eval $ac_link) 2>conftest.er1
52425 ac_status=$?
52426 grep -v '^ *+' conftest.er1 >conftest.err
52427 rm -f conftest.er1
52428 cat conftest.err >&5
52429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52430 (exit $ac_status); } &&
52431 { ac_try='test -z "$ac_c_werror_flag"
52432 || test ! -s conftest.err'
52433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52434 (eval $ac_try) 2>&5
52435 ac_status=$?
52436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52437 (exit $ac_status); }; } &&
52438 { ac_try='test -s conftest$ac_exeext'
52439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52440 (eval $ac_try) 2>&5
52441 ac_status=$?
52442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52443 (exit $ac_status); }; }; then
52444 eval "$as_ac_var=yes"
52445 else
52446 echo "$as_me: failed program was:" >&5
52447 sed 's/^/| /' conftest.$ac_ext >&5
52449 eval "$as_ac_var=no"
52451 rm -f conftest.err conftest.$ac_objext \
52452 conftest$ac_exeext conftest.$ac_ext
52454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52456 if test `eval echo '${'$as_ac_var'}'` = yes; then
52457 cat >>confdefs.h <<_ACEOF
52458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52459 _ACEOF
52460 ac_XPG2funcs=yes
52461 else
52462 ac_XPG2funcs=no
52464 done
52467 LIBS="$ac_save_LIBS"
52469 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52470 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52471 if test x"$ac_has_iconv_h" = xyes &&
52472 test x"$ac_has_langinfo_h" = xyes &&
52473 test x"$ac_XPG2funcs" = xyes;
52474 then
52475 ac_XPG2_wchar_t=yes
52476 else
52477 ac_XPG2_wchar_t=no
52479 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52480 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52482 # At the moment, only enable wchar_t specializations if all the
52483 # above support is present.
52484 if test x"$ac_isoC99_wchar_t" = xyes &&
52485 test x"$ac_XPG2_wchar_t" = xyes;
52486 then
52487 cat >>confdefs.h <<\_ACEOF
52488 #define _GLIBCXX_USE_WCHAR_T 1
52489 _ACEOF
52491 enable_wchar_t=yes
52494 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52495 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52496 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52497 echo "${ECHO_T}$enable_wchar_t" >&6
52500 ac_test_CXXFLAGS="${CXXFLAGS+set}"
52501 ac_save_CXXFLAGS="$CXXFLAGS"
52502 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52505 echo "$as_me:$LINENO: checking for strtold declaration" >&5
52506 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52507 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52508 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52509 echo $ECHO_N "(cached) $ECHO_C" >&6
52510 else
52514 ac_ext=cc
52515 ac_cpp='$CXXCPP $CPPFLAGS'
52516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52520 cat >conftest.$ac_ext <<_ACEOF
52521 /* confdefs.h. */
52522 _ACEOF
52523 cat confdefs.h >>conftest.$ac_ext
52524 cat >>conftest.$ac_ext <<_ACEOF
52525 /* end confdefs.h. */
52526 #include <stdlib.h>
52528 main ()
52530 strtold(0, 0);
52532 return 0;
52534 _ACEOF
52535 rm -f conftest.$ac_objext
52536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52537 (eval $ac_compile) 2>conftest.er1
52538 ac_status=$?
52539 grep -v '^ *+' conftest.er1 >conftest.err
52540 rm -f conftest.er1
52541 cat conftest.err >&5
52542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52543 (exit $ac_status); } &&
52544 { ac_try='test -z "$ac_cxx_werror_flag"
52545 || test ! -s conftest.err'
52546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52547 (eval $ac_try) 2>&5
52548 ac_status=$?
52549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52550 (exit $ac_status); }; } &&
52551 { ac_try='test -s conftest.$ac_objext'
52552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52553 (eval $ac_try) 2>&5
52554 ac_status=$?
52555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52556 (exit $ac_status); }; }; then
52557 glibcxx_cv_func_strtold_use=yes
52558 else
52559 echo "$as_me: failed program was:" >&5
52560 sed 's/^/| /' conftest.$ac_ext >&5
52562 glibcxx_cv_func_strtold_use=no
52564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52565 ac_ext=c
52566 ac_cpp='$CPP $CPPFLAGS'
52567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52575 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52576 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52577 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52579 for ac_func in strtold
52581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52582 echo "$as_me:$LINENO: checking for $ac_func" >&5
52583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52584 if eval "test \"\${$as_ac_var+set}\" = set"; then
52585 echo $ECHO_N "(cached) $ECHO_C" >&6
52586 else
52587 if test x$gcc_no_link = xyes; then
52588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52590 { (exit 1); exit 1; }; }
52592 cat >conftest.$ac_ext <<_ACEOF
52593 /* confdefs.h. */
52594 _ACEOF
52595 cat confdefs.h >>conftest.$ac_ext
52596 cat >>conftest.$ac_ext <<_ACEOF
52597 /* end confdefs.h. */
52598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52600 #define $ac_func innocuous_$ac_func
52602 /* System header to define __stub macros and hopefully few prototypes,
52603 which can conflict with char $ac_func (); below.
52604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52605 <limits.h> exists even on freestanding compilers. */
52607 #ifdef __STDC__
52608 # include <limits.h>
52609 #else
52610 # include <assert.h>
52611 #endif
52613 #undef $ac_func
52615 /* Override any gcc2 internal prototype to avoid an error. */
52616 #ifdef __cplusplus
52617 extern "C"
52619 #endif
52620 /* We use char because int might match the return type of a gcc2
52621 builtin and then its argument prototype would still apply. */
52622 char $ac_func ();
52623 /* The GNU C library defines this for functions which it implements
52624 to always fail with ENOSYS. Some functions are actually named
52625 something starting with __ and the normal name is an alias. */
52626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52627 choke me
52628 #else
52629 char (*f) () = $ac_func;
52630 #endif
52631 #ifdef __cplusplus
52633 #endif
52636 main ()
52638 return f != $ac_func;
52640 return 0;
52642 _ACEOF
52643 rm -f conftest.$ac_objext conftest$ac_exeext
52644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52645 (eval $ac_link) 2>conftest.er1
52646 ac_status=$?
52647 grep -v '^ *+' conftest.er1 >conftest.err
52648 rm -f conftest.er1
52649 cat conftest.err >&5
52650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52651 (exit $ac_status); } &&
52652 { ac_try='test -z "$ac_c_werror_flag"
52653 || test ! -s conftest.err'
52654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52655 (eval $ac_try) 2>&5
52656 ac_status=$?
52657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52658 (exit $ac_status); }; } &&
52659 { ac_try='test -s conftest$ac_exeext'
52660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52661 (eval $ac_try) 2>&5
52662 ac_status=$?
52663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52664 (exit $ac_status); }; }; then
52665 eval "$as_ac_var=yes"
52666 else
52667 echo "$as_me: failed program was:" >&5
52668 sed 's/^/| /' conftest.$ac_ext >&5
52670 eval "$as_ac_var=no"
52672 rm -f conftest.err conftest.$ac_objext \
52673 conftest$ac_exeext conftest.$ac_ext
52675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52677 if test `eval echo '${'$as_ac_var'}'` = yes; then
52678 cat >>confdefs.h <<_ACEOF
52679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52680 _ACEOF
52683 done
52688 echo "$as_me:$LINENO: checking for strtof declaration" >&5
52689 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52690 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52691 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52692 echo $ECHO_N "(cached) $ECHO_C" >&6
52693 else
52697 ac_ext=cc
52698 ac_cpp='$CXXCPP $CPPFLAGS'
52699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52703 cat >conftest.$ac_ext <<_ACEOF
52704 /* confdefs.h. */
52705 _ACEOF
52706 cat confdefs.h >>conftest.$ac_ext
52707 cat >>conftest.$ac_ext <<_ACEOF
52708 /* end confdefs.h. */
52709 #include <stdlib.h>
52711 main ()
52713 strtof(0, 0);
52715 return 0;
52717 _ACEOF
52718 rm -f conftest.$ac_objext
52719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52720 (eval $ac_compile) 2>conftest.er1
52721 ac_status=$?
52722 grep -v '^ *+' conftest.er1 >conftest.err
52723 rm -f conftest.er1
52724 cat conftest.err >&5
52725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52726 (exit $ac_status); } &&
52727 { ac_try='test -z "$ac_cxx_werror_flag"
52728 || test ! -s conftest.err'
52729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52730 (eval $ac_try) 2>&5
52731 ac_status=$?
52732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52733 (exit $ac_status); }; } &&
52734 { ac_try='test -s conftest.$ac_objext'
52735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52736 (eval $ac_try) 2>&5
52737 ac_status=$?
52738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52739 (exit $ac_status); }; }; then
52740 glibcxx_cv_func_strtof_use=yes
52741 else
52742 echo "$as_me: failed program was:" >&5
52743 sed 's/^/| /' conftest.$ac_ext >&5
52745 glibcxx_cv_func_strtof_use=no
52747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52748 ac_ext=c
52749 ac_cpp='$CPP $CPPFLAGS'
52750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52758 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52759 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52760 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52762 for ac_func in strtof
52764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52765 echo "$as_me:$LINENO: checking for $ac_func" >&5
52766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52767 if eval "test \"\${$as_ac_var+set}\" = set"; then
52768 echo $ECHO_N "(cached) $ECHO_C" >&6
52769 else
52770 if test x$gcc_no_link = xyes; then
52771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52773 { (exit 1); exit 1; }; }
52775 cat >conftest.$ac_ext <<_ACEOF
52776 /* confdefs.h. */
52777 _ACEOF
52778 cat confdefs.h >>conftest.$ac_ext
52779 cat >>conftest.$ac_ext <<_ACEOF
52780 /* end confdefs.h. */
52781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52783 #define $ac_func innocuous_$ac_func
52785 /* System header to define __stub macros and hopefully few prototypes,
52786 which can conflict with char $ac_func (); below.
52787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52788 <limits.h> exists even on freestanding compilers. */
52790 #ifdef __STDC__
52791 # include <limits.h>
52792 #else
52793 # include <assert.h>
52794 #endif
52796 #undef $ac_func
52798 /* Override any gcc2 internal prototype to avoid an error. */
52799 #ifdef __cplusplus
52800 extern "C"
52802 #endif
52803 /* We use char because int might match the return type of a gcc2
52804 builtin and then its argument prototype would still apply. */
52805 char $ac_func ();
52806 /* The GNU C library defines this for functions which it implements
52807 to always fail with ENOSYS. Some functions are actually named
52808 something starting with __ and the normal name is an alias. */
52809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52810 choke me
52811 #else
52812 char (*f) () = $ac_func;
52813 #endif
52814 #ifdef __cplusplus
52816 #endif
52819 main ()
52821 return f != $ac_func;
52823 return 0;
52825 _ACEOF
52826 rm -f conftest.$ac_objext conftest$ac_exeext
52827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52828 (eval $ac_link) 2>conftest.er1
52829 ac_status=$?
52830 grep -v '^ *+' conftest.er1 >conftest.err
52831 rm -f conftest.er1
52832 cat conftest.err >&5
52833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52834 (exit $ac_status); } &&
52835 { ac_try='test -z "$ac_c_werror_flag"
52836 || test ! -s conftest.err'
52837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52838 (eval $ac_try) 2>&5
52839 ac_status=$?
52840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52841 (exit $ac_status); }; } &&
52842 { ac_try='test -s conftest$ac_exeext'
52843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52844 (eval $ac_try) 2>&5
52845 ac_status=$?
52846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52847 (exit $ac_status); }; }; then
52848 eval "$as_ac_var=yes"
52849 else
52850 echo "$as_me: failed program was:" >&5
52851 sed 's/^/| /' conftest.$ac_ext >&5
52853 eval "$as_ac_var=no"
52855 rm -f conftest.err conftest.$ac_objext \
52856 conftest$ac_exeext conftest.$ac_ext
52858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52860 if test `eval echo '${'$as_ac_var'}'` = yes; then
52861 cat >>confdefs.h <<_ACEOF
52862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52863 _ACEOF
52866 done
52871 CXXFLAGS="$ac_save_CXXFLAGS"
52874 # For showmanyc_helper().
52877 for ac_header in sys/ioctl.h sys/filio.h
52879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52881 echo "$as_me:$LINENO: checking for $ac_header" >&5
52882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52884 echo $ECHO_N "(cached) $ECHO_C" >&6
52886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52888 else
52889 # Is the header compilable?
52890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52892 cat >conftest.$ac_ext <<_ACEOF
52893 /* confdefs.h. */
52894 _ACEOF
52895 cat confdefs.h >>conftest.$ac_ext
52896 cat >>conftest.$ac_ext <<_ACEOF
52897 /* end confdefs.h. */
52898 $ac_includes_default
52899 #include <$ac_header>
52900 _ACEOF
52901 rm -f conftest.$ac_objext
52902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52903 (eval $ac_compile) 2>conftest.er1
52904 ac_status=$?
52905 grep -v '^ *+' conftest.er1 >conftest.err
52906 rm -f conftest.er1
52907 cat conftest.err >&5
52908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52909 (exit $ac_status); } &&
52910 { ac_try='test -z "$ac_c_werror_flag"
52911 || test ! -s conftest.err'
52912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52913 (eval $ac_try) 2>&5
52914 ac_status=$?
52915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52916 (exit $ac_status); }; } &&
52917 { ac_try='test -s conftest.$ac_objext'
52918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52919 (eval $ac_try) 2>&5
52920 ac_status=$?
52921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52922 (exit $ac_status); }; }; then
52923 ac_header_compiler=yes
52924 else
52925 echo "$as_me: failed program was:" >&5
52926 sed 's/^/| /' conftest.$ac_ext >&5
52928 ac_header_compiler=no
52930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52932 echo "${ECHO_T}$ac_header_compiler" >&6
52934 # Is the header present?
52935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52937 cat >conftest.$ac_ext <<_ACEOF
52938 /* confdefs.h. */
52939 _ACEOF
52940 cat confdefs.h >>conftest.$ac_ext
52941 cat >>conftest.$ac_ext <<_ACEOF
52942 /* end confdefs.h. */
52943 #include <$ac_header>
52944 _ACEOF
52945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52947 ac_status=$?
52948 grep -v '^ *+' conftest.er1 >conftest.err
52949 rm -f conftest.er1
52950 cat conftest.err >&5
52951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52952 (exit $ac_status); } >/dev/null; then
52953 if test -s conftest.err; then
52954 ac_cpp_err=$ac_c_preproc_warn_flag
52955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52956 else
52957 ac_cpp_err=
52959 else
52960 ac_cpp_err=yes
52962 if test -z "$ac_cpp_err"; then
52963 ac_header_preproc=yes
52964 else
52965 echo "$as_me: failed program was:" >&5
52966 sed 's/^/| /' conftest.$ac_ext >&5
52968 ac_header_preproc=no
52970 rm -f conftest.err conftest.$ac_ext
52971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52972 echo "${ECHO_T}$ac_header_preproc" >&6
52974 # So? What about this header?
52975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52976 yes:no: )
52977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52981 ac_header_preproc=yes
52983 no:yes:* )
52984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52997 cat <<\_ASBOX
52998 ## ----------------------------------------- ##
52999 ## Report this to the package-unused lists. ##
53000 ## ----------------------------------------- ##
53001 _ASBOX
53003 sed "s/^/$as_me: WARNING: /" >&2
53005 esac
53006 echo "$as_me:$LINENO: checking for $ac_header" >&5
53007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53009 echo $ECHO_N "(cached) $ECHO_C" >&6
53010 else
53011 eval "$as_ac_Header=\$ac_header_preproc"
53013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53018 cat >>confdefs.h <<_ACEOF
53019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53020 _ACEOF
53024 done
53027 if test "${glibcxx_cv_POLL+set}" = set; then
53028 echo $ECHO_N "(cached) $ECHO_C" >&6
53029 else
53031 if test x$gcc_no_link = xyes; then
53032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53034 { (exit 1); exit 1; }; }
53036 cat >conftest.$ac_ext <<_ACEOF
53037 /* confdefs.h. */
53038 _ACEOF
53039 cat confdefs.h >>conftest.$ac_ext
53040 cat >>conftest.$ac_ext <<_ACEOF
53041 /* end confdefs.h. */
53042 #include <poll.h>
53044 main ()
53046 struct pollfd pfd[1];
53047 pfd[0].events = POLLIN;
53048 poll(pfd, 1, 0);
53050 return 0;
53052 _ACEOF
53053 rm -f conftest.$ac_objext conftest$ac_exeext
53054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53055 (eval $ac_link) 2>conftest.er1
53056 ac_status=$?
53057 grep -v '^ *+' conftest.er1 >conftest.err
53058 rm -f conftest.er1
53059 cat conftest.err >&5
53060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53061 (exit $ac_status); } &&
53062 { ac_try='test -z "$ac_c_werror_flag"
53063 || test ! -s conftest.err'
53064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53065 (eval $ac_try) 2>&5
53066 ac_status=$?
53067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53068 (exit $ac_status); }; } &&
53069 { ac_try='test -s conftest$ac_exeext'
53070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53071 (eval $ac_try) 2>&5
53072 ac_status=$?
53073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53074 (exit $ac_status); }; }; then
53075 glibcxx_cv_POLL=yes
53076 else
53077 echo "$as_me: failed program was:" >&5
53078 sed 's/^/| /' conftest.$ac_ext >&5
53080 glibcxx_cv_POLL=no
53082 rm -f conftest.err conftest.$ac_objext \
53083 conftest$ac_exeext conftest.$ac_ext
53087 if test $glibcxx_cv_POLL = yes; then
53088 cat >>confdefs.h <<\_ACEOF
53089 #define HAVE_POLL 1
53090 _ACEOF
53095 if test "${glibcxx_cv_S_ISREG+set}" = set; then
53096 echo $ECHO_N "(cached) $ECHO_C" >&6
53097 else
53099 if test x$gcc_no_link = xyes; then
53100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53102 { (exit 1); exit 1; }; }
53104 cat >conftest.$ac_ext <<_ACEOF
53105 /* confdefs.h. */
53106 _ACEOF
53107 cat confdefs.h >>conftest.$ac_ext
53108 cat >>conftest.$ac_ext <<_ACEOF
53109 /* end confdefs.h. */
53110 #include <sys/stat.h>
53112 main ()
53114 struct stat buffer;
53115 fstat(0, &buffer);
53116 S_ISREG(buffer.st_mode);
53118 return 0;
53120 _ACEOF
53121 rm -f conftest.$ac_objext conftest$ac_exeext
53122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53123 (eval $ac_link) 2>conftest.er1
53124 ac_status=$?
53125 grep -v '^ *+' conftest.er1 >conftest.err
53126 rm -f conftest.er1
53127 cat conftest.err >&5
53128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53129 (exit $ac_status); } &&
53130 { ac_try='test -z "$ac_c_werror_flag"
53131 || test ! -s conftest.err'
53132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53133 (eval $ac_try) 2>&5
53134 ac_status=$?
53135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136 (exit $ac_status); }; } &&
53137 { ac_try='test -s conftest$ac_exeext'
53138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53139 (eval $ac_try) 2>&5
53140 ac_status=$?
53141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53142 (exit $ac_status); }; }; then
53143 glibcxx_cv_S_ISREG=yes
53144 else
53145 echo "$as_me: failed program was:" >&5
53146 sed 's/^/| /' conftest.$ac_ext >&5
53148 glibcxx_cv_S_ISREG=no
53150 rm -f conftest.err conftest.$ac_objext \
53151 conftest$ac_exeext conftest.$ac_ext
53155 if test "${glibcxx_cv_S_IFREG+set}" = set; then
53156 echo $ECHO_N "(cached) $ECHO_C" >&6
53157 else
53159 if test x$gcc_no_link = xyes; then
53160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53162 { (exit 1); exit 1; }; }
53164 cat >conftest.$ac_ext <<_ACEOF
53165 /* confdefs.h. */
53166 _ACEOF
53167 cat confdefs.h >>conftest.$ac_ext
53168 cat >>conftest.$ac_ext <<_ACEOF
53169 /* end confdefs.h. */
53170 #include <sys/stat.h>
53172 main ()
53174 struct stat buffer;
53175 fstat(0, &buffer);
53176 S_IFREG & buffer.st_mode;
53178 return 0;
53180 _ACEOF
53181 rm -f conftest.$ac_objext conftest$ac_exeext
53182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53183 (eval $ac_link) 2>conftest.er1
53184 ac_status=$?
53185 grep -v '^ *+' conftest.er1 >conftest.err
53186 rm -f conftest.er1
53187 cat conftest.err >&5
53188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53189 (exit $ac_status); } &&
53190 { ac_try='test -z "$ac_c_werror_flag"
53191 || test ! -s conftest.err'
53192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53193 (eval $ac_try) 2>&5
53194 ac_status=$?
53195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53196 (exit $ac_status); }; } &&
53197 { ac_try='test -s conftest$ac_exeext'
53198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53199 (eval $ac_try) 2>&5
53200 ac_status=$?
53201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53202 (exit $ac_status); }; }; then
53203 glibcxx_cv_S_IFREG=yes
53204 else
53205 echo "$as_me: failed program was:" >&5
53206 sed 's/^/| /' conftest.$ac_ext >&5
53208 glibcxx_cv_S_IFREG=no
53210 rm -f conftest.err conftest.$ac_objext \
53211 conftest$ac_exeext conftest.$ac_ext
53215 if test $glibcxx_cv_S_ISREG = yes; then
53216 cat >>confdefs.h <<\_ACEOF
53217 #define HAVE_S_ISREG 1
53218 _ACEOF
53220 elif test $glibcxx_cv_S_IFREG = yes; then
53221 cat >>confdefs.h <<\_ACEOF
53222 #define HAVE_S_IFREG 1
53223 _ACEOF
53228 # For xsputn_2().
53230 for ac_header in sys/uio.h
53232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53234 echo "$as_me:$LINENO: checking for $ac_header" >&5
53235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53237 echo $ECHO_N "(cached) $ECHO_C" >&6
53239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53241 else
53242 # Is the header compilable?
53243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53245 cat >conftest.$ac_ext <<_ACEOF
53246 /* confdefs.h. */
53247 _ACEOF
53248 cat confdefs.h >>conftest.$ac_ext
53249 cat >>conftest.$ac_ext <<_ACEOF
53250 /* end confdefs.h. */
53251 $ac_includes_default
53252 #include <$ac_header>
53253 _ACEOF
53254 rm -f conftest.$ac_objext
53255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53256 (eval $ac_compile) 2>conftest.er1
53257 ac_status=$?
53258 grep -v '^ *+' conftest.er1 >conftest.err
53259 rm -f conftest.er1
53260 cat conftest.err >&5
53261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53262 (exit $ac_status); } &&
53263 { ac_try='test -z "$ac_c_werror_flag"
53264 || test ! -s conftest.err'
53265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53266 (eval $ac_try) 2>&5
53267 ac_status=$?
53268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53269 (exit $ac_status); }; } &&
53270 { ac_try='test -s conftest.$ac_objext'
53271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53272 (eval $ac_try) 2>&5
53273 ac_status=$?
53274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53275 (exit $ac_status); }; }; then
53276 ac_header_compiler=yes
53277 else
53278 echo "$as_me: failed program was:" >&5
53279 sed 's/^/| /' conftest.$ac_ext >&5
53281 ac_header_compiler=no
53283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53285 echo "${ECHO_T}$ac_header_compiler" >&6
53287 # Is the header present?
53288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53290 cat >conftest.$ac_ext <<_ACEOF
53291 /* confdefs.h. */
53292 _ACEOF
53293 cat confdefs.h >>conftest.$ac_ext
53294 cat >>conftest.$ac_ext <<_ACEOF
53295 /* end confdefs.h. */
53296 #include <$ac_header>
53297 _ACEOF
53298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53300 ac_status=$?
53301 grep -v '^ *+' conftest.er1 >conftest.err
53302 rm -f conftest.er1
53303 cat conftest.err >&5
53304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53305 (exit $ac_status); } >/dev/null; then
53306 if test -s conftest.err; then
53307 ac_cpp_err=$ac_c_preproc_warn_flag
53308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53309 else
53310 ac_cpp_err=
53312 else
53313 ac_cpp_err=yes
53315 if test -z "$ac_cpp_err"; then
53316 ac_header_preproc=yes
53317 else
53318 echo "$as_me: failed program was:" >&5
53319 sed 's/^/| /' conftest.$ac_ext >&5
53321 ac_header_preproc=no
53323 rm -f conftest.err conftest.$ac_ext
53324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53325 echo "${ECHO_T}$ac_header_preproc" >&6
53327 # So? What about this header?
53328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53329 yes:no: )
53330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53334 ac_header_preproc=yes
53336 no:yes:* )
53337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53350 cat <<\_ASBOX
53351 ## ----------------------------------------- ##
53352 ## Report this to the package-unused lists. ##
53353 ## ----------------------------------------- ##
53354 _ASBOX
53356 sed "s/^/$as_me: WARNING: /" >&2
53358 esac
53359 echo "$as_me:$LINENO: checking for $ac_header" >&5
53360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53362 echo $ECHO_N "(cached) $ECHO_C" >&6
53363 else
53364 eval "$as_ac_Header=\$ac_header_preproc"
53366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53371 cat >>confdefs.h <<_ACEOF
53372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53373 _ACEOF
53377 done
53380 if test "${glibcxx_cv_WRITEV+set}" = set; then
53381 echo $ECHO_N "(cached) $ECHO_C" >&6
53382 else
53384 if test x$gcc_no_link = xyes; then
53385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53387 { (exit 1); exit 1; }; }
53389 cat >conftest.$ac_ext <<_ACEOF
53390 /* confdefs.h. */
53391 _ACEOF
53392 cat confdefs.h >>conftest.$ac_ext
53393 cat >>conftest.$ac_ext <<_ACEOF
53394 /* end confdefs.h. */
53395 #include <sys/uio.h>
53397 main ()
53399 struct iovec iov[2];
53400 writev(0, iov, 0);
53402 return 0;
53404 _ACEOF
53405 rm -f conftest.$ac_objext conftest$ac_exeext
53406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53407 (eval $ac_link) 2>conftest.er1
53408 ac_status=$?
53409 grep -v '^ *+' conftest.er1 >conftest.err
53410 rm -f conftest.er1
53411 cat conftest.err >&5
53412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53413 (exit $ac_status); } &&
53414 { ac_try='test -z "$ac_c_werror_flag"
53415 || test ! -s conftest.err'
53416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53417 (eval $ac_try) 2>&5
53418 ac_status=$?
53419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53420 (exit $ac_status); }; } &&
53421 { ac_try='test -s conftest$ac_exeext'
53422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53423 (eval $ac_try) 2>&5
53424 ac_status=$?
53425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53426 (exit $ac_status); }; }; then
53427 glibcxx_cv_WRITEV=yes
53428 else
53429 echo "$as_me: failed program was:" >&5
53430 sed 's/^/| /' conftest.$ac_ext >&5
53432 glibcxx_cv_WRITEV=no
53434 rm -f conftest.err conftest.$ac_objext \
53435 conftest$ac_exeext conftest.$ac_ext
53439 if test $glibcxx_cv_WRITEV = yes; then
53440 cat >>confdefs.h <<\_ACEOF
53441 #define HAVE_WRITEV 1
53442 _ACEOF
53447 cat >>confdefs.h <<\_ACEOF
53448 #define HAVE_LC_MESSAGES 1
53449 _ACEOF
53452 cat >conftest.$ac_ext <<_ACEOF
53453 /* confdefs.h. */
53454 _ACEOF
53455 cat confdefs.h >>conftest.$ac_ext
53456 cat >>conftest.$ac_ext <<_ACEOF
53457 /* end confdefs.h. */
53458 #include <setjmp.h>
53460 main ()
53462 sigjmp_buf env;
53463 while (! sigsetjmp (env, 1))
53464 siglongjmp (env, 1);
53467 return 0;
53469 _ACEOF
53470 rm -f conftest.$ac_objext
53471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53472 (eval $ac_compile) 2>conftest.er1
53473 ac_status=$?
53474 grep -v '^ *+' conftest.er1 >conftest.err
53475 rm -f conftest.er1
53476 cat conftest.err >&5
53477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53478 (exit $ac_status); } &&
53479 { ac_try='test -z "$ac_c_werror_flag"
53480 || test ! -s conftest.err'
53481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53482 (eval $ac_try) 2>&5
53483 ac_status=$?
53484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53485 (exit $ac_status); }; } &&
53486 { ac_try='test -s conftest.$ac_objext'
53487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53488 (eval $ac_try) 2>&5
53489 ac_status=$?
53490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53491 (exit $ac_status); }; }; then
53493 cat >>confdefs.h <<\_ACEOF
53494 #define HAVE_SIGSETJMP 1
53495 _ACEOF
53497 else
53498 echo "$as_me: failed program was:" >&5
53499 sed 's/^/| /' conftest.$ac_ext >&5
53502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53504 cat >>confdefs.h <<\_ACEOF
53505 #define HAVE_MMAP 1
53506 _ACEOF
53510 *-freebsd*)
53527 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53528 machine/endian.h machine/param.h sys/machine.h sys/types.h \
53529 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53530 sys/time.h unistd.h
53532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53534 echo "$as_me:$LINENO: checking for $ac_header" >&5
53535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53537 echo $ECHO_N "(cached) $ECHO_C" >&6
53539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53541 else
53542 # Is the header compilable?
53543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53545 cat >conftest.$ac_ext <<_ACEOF
53546 /* confdefs.h. */
53547 _ACEOF
53548 cat confdefs.h >>conftest.$ac_ext
53549 cat >>conftest.$ac_ext <<_ACEOF
53550 /* end confdefs.h. */
53551 $ac_includes_default
53552 #include <$ac_header>
53553 _ACEOF
53554 rm -f conftest.$ac_objext
53555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53556 (eval $ac_compile) 2>conftest.er1
53557 ac_status=$?
53558 grep -v '^ *+' conftest.er1 >conftest.err
53559 rm -f conftest.er1
53560 cat conftest.err >&5
53561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53562 (exit $ac_status); } &&
53563 { ac_try='test -z "$ac_c_werror_flag"
53564 || test ! -s conftest.err'
53565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53566 (eval $ac_try) 2>&5
53567 ac_status=$?
53568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53569 (exit $ac_status); }; } &&
53570 { ac_try='test -s conftest.$ac_objext'
53571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53572 (eval $ac_try) 2>&5
53573 ac_status=$?
53574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53575 (exit $ac_status); }; }; then
53576 ac_header_compiler=yes
53577 else
53578 echo "$as_me: failed program was:" >&5
53579 sed 's/^/| /' conftest.$ac_ext >&5
53581 ac_header_compiler=no
53583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53585 echo "${ECHO_T}$ac_header_compiler" >&6
53587 # Is the header present?
53588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53590 cat >conftest.$ac_ext <<_ACEOF
53591 /* confdefs.h. */
53592 _ACEOF
53593 cat confdefs.h >>conftest.$ac_ext
53594 cat >>conftest.$ac_ext <<_ACEOF
53595 /* end confdefs.h. */
53596 #include <$ac_header>
53597 _ACEOF
53598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53600 ac_status=$?
53601 grep -v '^ *+' conftest.er1 >conftest.err
53602 rm -f conftest.er1
53603 cat conftest.err >&5
53604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53605 (exit $ac_status); } >/dev/null; then
53606 if test -s conftest.err; then
53607 ac_cpp_err=$ac_c_preproc_warn_flag
53608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53609 else
53610 ac_cpp_err=
53612 else
53613 ac_cpp_err=yes
53615 if test -z "$ac_cpp_err"; then
53616 ac_header_preproc=yes
53617 else
53618 echo "$as_me: failed program was:" >&5
53619 sed 's/^/| /' conftest.$ac_ext >&5
53621 ac_header_preproc=no
53623 rm -f conftest.err conftest.$ac_ext
53624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53625 echo "${ECHO_T}$ac_header_preproc" >&6
53627 # So? What about this header?
53628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53629 yes:no: )
53630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53634 ac_header_preproc=yes
53636 no:yes:* )
53637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53650 cat <<\_ASBOX
53651 ## ----------------------------------------- ##
53652 ## Report this to the package-unused lists. ##
53653 ## ----------------------------------------- ##
53654 _ASBOX
53656 sed "s/^/$as_me: WARNING: /" >&2
53658 esac
53659 echo "$as_me:$LINENO: checking for $ac_header" >&5
53660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53662 echo $ECHO_N "(cached) $ECHO_C" >&6
53663 else
53664 eval "$as_ac_Header=\$ac_header_preproc"
53666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53671 cat >>confdefs.h <<_ACEOF
53672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53673 _ACEOF
53677 done
53679 SECTION_FLAGS='-ffunction-sections -fdata-sections'
53682 # If we're not using GNU ld, then there's no point in even trying these
53683 # tests. Check for that first. We should have already tested for gld
53684 # by now (in libtool), but require it now just to be safe...
53685 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53686 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53690 # The name set by libtool depends on the version of libtool. Shame on us
53691 # for depending on an impl detail, but c'est la vie. Older versions used
53692 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53693 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53694 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53695 # set (hence we're using an older libtool), then set it.
53696 if test x${with_gnu_ld+set} != xset; then
53697 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53698 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53699 with_gnu_ld=no
53700 else
53701 with_gnu_ld=$ac_cv_prog_gnu_ld
53705 # Start by getting the version number. I think the libtool test already
53706 # does some of this, but throws away the result.
53708 ldver=`$LD --version 2>/dev/null | head -1 | \
53709 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53711 glibcxx_gnu_ld_version=`echo $ldver | \
53712 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53714 # Set --gc-sections.
53715 if test "$with_gnu_ld" = "notbroken"; then
53716 # GNU ld it is! Joy and bunny rabbits!
53718 # All these tests are for C++; save the language and the compiler flags.
53719 # Need to do this so that g++ won't try to link in libstdc++
53720 ac_test_CFLAGS="${CFLAGS+set}"
53721 ac_save_CFLAGS="$CFLAGS"
53722 CFLAGS='-x c++ -Wl,--gc-sections'
53724 # Check for -Wl,--gc-sections
53725 # XXX This test is broken at the moment, as symbols required for linking
53726 # are now in libsupc++ (not built yet). In addition, this test has
53727 # cored on solaris in the past. In addition, --gc-sections doesn't
53728 # really work at the moment (keeps on discarding used sections, first
53729 # .eh_frame and now some of the glibc sections for iconv).
53730 # Bzzzzt. Thanks for playing, maybe next time.
53731 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53732 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53733 if test "$cross_compiling" = yes; then
53734 ac_sectionLDflags=yes
53735 else
53736 cat >conftest.$ac_ext <<_ACEOF
53737 /* confdefs.h. */
53738 _ACEOF
53739 cat confdefs.h >>conftest.$ac_ext
53740 cat >>conftest.$ac_ext <<_ACEOF
53741 /* end confdefs.h. */
53743 int main(void)
53745 try { throw 1; }
53746 catch (...) { };
53747 return 0;
53750 _ACEOF
53751 rm -f conftest$ac_exeext
53752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53753 (eval $ac_link) 2>&5
53754 ac_status=$?
53755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53758 (eval $ac_try) 2>&5
53759 ac_status=$?
53760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53761 (exit $ac_status); }; }; then
53762 ac_sectionLDflags=yes
53763 else
53764 echo "$as_me: program exited with status $ac_status" >&5
53765 echo "$as_me: failed program was:" >&5
53766 sed 's/^/| /' conftest.$ac_ext >&5
53768 ( exit $ac_status )
53769 ac_sectionLDflags=no
53771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53773 if test "$ac_test_CFLAGS" = set; then
53774 CFLAGS="$ac_save_CFLAGS"
53775 else
53776 # this is the suspicious part
53777 CFLAGS=''
53779 if test "$ac_sectionLDflags" = "yes"; then
53780 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53782 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53783 echo "${ECHO_T}$ac_sectionLDflags" >&6
53786 # Set linker optimization flags.
53787 if test x"$with_gnu_ld" = x"yes"; then
53788 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53796 echo "$as_me:$LINENO: checking for main in -lm" >&5
53797 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53798 if test "${ac_cv_lib_m_main+set}" = set; then
53799 echo $ECHO_N "(cached) $ECHO_C" >&6
53800 else
53801 ac_check_lib_save_LIBS=$LIBS
53802 LIBS="-lm $LIBS"
53803 if test x$gcc_no_link = xyes; then
53804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53806 { (exit 1); exit 1; }; }
53808 cat >conftest.$ac_ext <<_ACEOF
53809 /* confdefs.h. */
53810 _ACEOF
53811 cat confdefs.h >>conftest.$ac_ext
53812 cat >>conftest.$ac_ext <<_ACEOF
53813 /* end confdefs.h. */
53817 main ()
53819 main ();
53821 return 0;
53823 _ACEOF
53824 rm -f conftest.$ac_objext conftest$ac_exeext
53825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53826 (eval $ac_link) 2>conftest.er1
53827 ac_status=$?
53828 grep -v '^ *+' conftest.er1 >conftest.err
53829 rm -f conftest.er1
53830 cat conftest.err >&5
53831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53832 (exit $ac_status); } &&
53833 { ac_try='test -z "$ac_c_werror_flag"
53834 || test ! -s conftest.err'
53835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53836 (eval $ac_try) 2>&5
53837 ac_status=$?
53838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53839 (exit $ac_status); }; } &&
53840 { ac_try='test -s conftest$ac_exeext'
53841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53842 (eval $ac_try) 2>&5
53843 ac_status=$?
53844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53845 (exit $ac_status); }; }; then
53846 ac_cv_lib_m_main=yes
53847 else
53848 echo "$as_me: failed program was:" >&5
53849 sed 's/^/| /' conftest.$ac_ext >&5
53851 ac_cv_lib_m_main=no
53853 rm -f conftest.err conftest.$ac_objext \
53854 conftest$ac_exeext conftest.$ac_ext
53855 LIBS=$ac_check_lib_save_LIBS
53857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53858 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53859 if test $ac_cv_lib_m_main = yes; then
53860 cat >>confdefs.h <<_ACEOF
53861 #define HAVE_LIBM 1
53862 _ACEOF
53864 LIBS="-lm $LIBS"
53869 for ac_func in copysignf
53871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53872 echo "$as_me:$LINENO: checking for $ac_func" >&5
53873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53874 if eval "test \"\${$as_ac_var+set}\" = set"; then
53875 echo $ECHO_N "(cached) $ECHO_C" >&6
53876 else
53877 if test x$gcc_no_link = xyes; then
53878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53880 { (exit 1); exit 1; }; }
53882 cat >conftest.$ac_ext <<_ACEOF
53883 /* confdefs.h. */
53884 _ACEOF
53885 cat confdefs.h >>conftest.$ac_ext
53886 cat >>conftest.$ac_ext <<_ACEOF
53887 /* end confdefs.h. */
53888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53890 #define $ac_func innocuous_$ac_func
53892 /* System header to define __stub macros and hopefully few prototypes,
53893 which can conflict with char $ac_func (); below.
53894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53895 <limits.h> exists even on freestanding compilers. */
53897 #ifdef __STDC__
53898 # include <limits.h>
53899 #else
53900 # include <assert.h>
53901 #endif
53903 #undef $ac_func
53905 /* Override any gcc2 internal prototype to avoid an error. */
53906 #ifdef __cplusplus
53907 extern "C"
53909 #endif
53910 /* We use char because int might match the return type of a gcc2
53911 builtin and then its argument prototype would still apply. */
53912 char $ac_func ();
53913 /* The GNU C library defines this for functions which it implements
53914 to always fail with ENOSYS. Some functions are actually named
53915 something starting with __ and the normal name is an alias. */
53916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53917 choke me
53918 #else
53919 char (*f) () = $ac_func;
53920 #endif
53921 #ifdef __cplusplus
53923 #endif
53926 main ()
53928 return f != $ac_func;
53930 return 0;
53932 _ACEOF
53933 rm -f conftest.$ac_objext conftest$ac_exeext
53934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53935 (eval $ac_link) 2>conftest.er1
53936 ac_status=$?
53937 grep -v '^ *+' conftest.er1 >conftest.err
53938 rm -f conftest.er1
53939 cat conftest.err >&5
53940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53941 (exit $ac_status); } &&
53942 { ac_try='test -z "$ac_c_werror_flag"
53943 || test ! -s conftest.err'
53944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53945 (eval $ac_try) 2>&5
53946 ac_status=$?
53947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53948 (exit $ac_status); }; } &&
53949 { ac_try='test -s conftest$ac_exeext'
53950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53951 (eval $ac_try) 2>&5
53952 ac_status=$?
53953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53954 (exit $ac_status); }; }; then
53955 eval "$as_ac_var=yes"
53956 else
53957 echo "$as_me: failed program was:" >&5
53958 sed 's/^/| /' conftest.$ac_ext >&5
53960 eval "$as_ac_var=no"
53962 rm -f conftest.err conftest.$ac_objext \
53963 conftest$ac_exeext conftest.$ac_ext
53965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53967 if test `eval echo '${'$as_ac_var'}'` = yes; then
53968 cat >>confdefs.h <<_ACEOF
53969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53970 _ACEOF
53972 else
53973 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53975 done
53979 for ac_func in __signbit
53981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53982 echo "$as_me:$LINENO: checking for $ac_func" >&5
53983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53984 if eval "test \"\${$as_ac_var+set}\" = set"; then
53985 echo $ECHO_N "(cached) $ECHO_C" >&6
53986 else
53987 if test x$gcc_no_link = xyes; then
53988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53990 { (exit 1); exit 1; }; }
53992 cat >conftest.$ac_ext <<_ACEOF
53993 /* confdefs.h. */
53994 _ACEOF
53995 cat confdefs.h >>conftest.$ac_ext
53996 cat >>conftest.$ac_ext <<_ACEOF
53997 /* end confdefs.h. */
53998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54000 #define $ac_func innocuous_$ac_func
54002 /* System header to define __stub macros and hopefully few prototypes,
54003 which can conflict with char $ac_func (); below.
54004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54005 <limits.h> exists even on freestanding compilers. */
54007 #ifdef __STDC__
54008 # include <limits.h>
54009 #else
54010 # include <assert.h>
54011 #endif
54013 #undef $ac_func
54015 /* Override any gcc2 internal prototype to avoid an error. */
54016 #ifdef __cplusplus
54017 extern "C"
54019 #endif
54020 /* We use char because int might match the return type of a gcc2
54021 builtin and then its argument prototype would still apply. */
54022 char $ac_func ();
54023 /* The GNU C library defines this for functions which it implements
54024 to always fail with ENOSYS. Some functions are actually named
54025 something starting with __ and the normal name is an alias. */
54026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54027 choke me
54028 #else
54029 char (*f) () = $ac_func;
54030 #endif
54031 #ifdef __cplusplus
54033 #endif
54036 main ()
54038 return f != $ac_func;
54040 return 0;
54042 _ACEOF
54043 rm -f conftest.$ac_objext conftest$ac_exeext
54044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54045 (eval $ac_link) 2>conftest.er1
54046 ac_status=$?
54047 grep -v '^ *+' conftest.er1 >conftest.err
54048 rm -f conftest.er1
54049 cat conftest.err >&5
54050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54051 (exit $ac_status); } &&
54052 { ac_try='test -z "$ac_c_werror_flag"
54053 || test ! -s conftest.err'
54054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54055 (eval $ac_try) 2>&5
54056 ac_status=$?
54057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54058 (exit $ac_status); }; } &&
54059 { ac_try='test -s conftest$ac_exeext'
54060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54061 (eval $ac_try) 2>&5
54062 ac_status=$?
54063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54064 (exit $ac_status); }; }; then
54065 eval "$as_ac_var=yes"
54066 else
54067 echo "$as_me: failed program was:" >&5
54068 sed 's/^/| /' conftest.$ac_ext >&5
54070 eval "$as_ac_var=no"
54072 rm -f conftest.err conftest.$ac_objext \
54073 conftest$ac_exeext conftest.$ac_ext
54075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54077 if test `eval echo '${'$as_ac_var'}'` = yes; then
54078 cat >>confdefs.h <<_ACEOF
54079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54080 _ACEOF
54082 else
54083 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54085 done
54089 for ac_func in __signbitf
54091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54092 echo "$as_me:$LINENO: checking for $ac_func" >&5
54093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54094 if eval "test \"\${$as_ac_var+set}\" = set"; then
54095 echo $ECHO_N "(cached) $ECHO_C" >&6
54096 else
54097 if test x$gcc_no_link = xyes; then
54098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54100 { (exit 1); exit 1; }; }
54102 cat >conftest.$ac_ext <<_ACEOF
54103 /* confdefs.h. */
54104 _ACEOF
54105 cat confdefs.h >>conftest.$ac_ext
54106 cat >>conftest.$ac_ext <<_ACEOF
54107 /* end confdefs.h. */
54108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54110 #define $ac_func innocuous_$ac_func
54112 /* System header to define __stub macros and hopefully few prototypes,
54113 which can conflict with char $ac_func (); below.
54114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54115 <limits.h> exists even on freestanding compilers. */
54117 #ifdef __STDC__
54118 # include <limits.h>
54119 #else
54120 # include <assert.h>
54121 #endif
54123 #undef $ac_func
54125 /* Override any gcc2 internal prototype to avoid an error. */
54126 #ifdef __cplusplus
54127 extern "C"
54129 #endif
54130 /* We use char because int might match the return type of a gcc2
54131 builtin and then its argument prototype would still apply. */
54132 char $ac_func ();
54133 /* The GNU C library defines this for functions which it implements
54134 to always fail with ENOSYS. Some functions are actually named
54135 something starting with __ and the normal name is an alias. */
54136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54137 choke me
54138 #else
54139 char (*f) () = $ac_func;
54140 #endif
54141 #ifdef __cplusplus
54143 #endif
54146 main ()
54148 return f != $ac_func;
54150 return 0;
54152 _ACEOF
54153 rm -f conftest.$ac_objext conftest$ac_exeext
54154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54155 (eval $ac_link) 2>conftest.er1
54156 ac_status=$?
54157 grep -v '^ *+' conftest.er1 >conftest.err
54158 rm -f conftest.er1
54159 cat conftest.err >&5
54160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54161 (exit $ac_status); } &&
54162 { ac_try='test -z "$ac_c_werror_flag"
54163 || test ! -s conftest.err'
54164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54165 (eval $ac_try) 2>&5
54166 ac_status=$?
54167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54168 (exit $ac_status); }; } &&
54169 { ac_try='test -s conftest$ac_exeext'
54170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54171 (eval $ac_try) 2>&5
54172 ac_status=$?
54173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54174 (exit $ac_status); }; }; then
54175 eval "$as_ac_var=yes"
54176 else
54177 echo "$as_me: failed program was:" >&5
54178 sed 's/^/| /' conftest.$ac_ext >&5
54180 eval "$as_ac_var=no"
54182 rm -f conftest.err conftest.$ac_objext \
54183 conftest$ac_exeext conftest.$ac_ext
54185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54187 if test `eval echo '${'$as_ac_var'}'` = yes; then
54188 cat >>confdefs.h <<_ACEOF
54189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54190 _ACEOF
54192 else
54193 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54195 done
54198 if test x$ac_cv_func_copysignl = x"yes"; then
54200 for ac_func in __signbitl
54202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54203 echo "$as_me:$LINENO: checking for $ac_func" >&5
54204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54205 if eval "test \"\${$as_ac_var+set}\" = set"; then
54206 echo $ECHO_N "(cached) $ECHO_C" >&6
54207 else
54208 if test x$gcc_no_link = xyes; then
54209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54211 { (exit 1); exit 1; }; }
54213 cat >conftest.$ac_ext <<_ACEOF
54214 /* confdefs.h. */
54215 _ACEOF
54216 cat confdefs.h >>conftest.$ac_ext
54217 cat >>conftest.$ac_ext <<_ACEOF
54218 /* end confdefs.h. */
54219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54221 #define $ac_func innocuous_$ac_func
54223 /* System header to define __stub macros and hopefully few prototypes,
54224 which can conflict with char $ac_func (); below.
54225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54226 <limits.h> exists even on freestanding compilers. */
54228 #ifdef __STDC__
54229 # include <limits.h>
54230 #else
54231 # include <assert.h>
54232 #endif
54234 #undef $ac_func
54236 /* Override any gcc2 internal prototype to avoid an error. */
54237 #ifdef __cplusplus
54238 extern "C"
54240 #endif
54241 /* We use char because int might match the return type of a gcc2
54242 builtin and then its argument prototype would still apply. */
54243 char $ac_func ();
54244 /* The GNU C library defines this for functions which it implements
54245 to always fail with ENOSYS. Some functions are actually named
54246 something starting with __ and the normal name is an alias. */
54247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54248 choke me
54249 #else
54250 char (*f) () = $ac_func;
54251 #endif
54252 #ifdef __cplusplus
54254 #endif
54257 main ()
54259 return f != $ac_func;
54261 return 0;
54263 _ACEOF
54264 rm -f conftest.$ac_objext conftest$ac_exeext
54265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54266 (eval $ac_link) 2>conftest.er1
54267 ac_status=$?
54268 grep -v '^ *+' conftest.er1 >conftest.err
54269 rm -f conftest.er1
54270 cat conftest.err >&5
54271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54272 (exit $ac_status); } &&
54273 { ac_try='test -z "$ac_c_werror_flag"
54274 || test ! -s conftest.err'
54275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54276 (eval $ac_try) 2>&5
54277 ac_status=$?
54278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54279 (exit $ac_status); }; } &&
54280 { ac_try='test -s conftest$ac_exeext'
54281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54282 (eval $ac_try) 2>&5
54283 ac_status=$?
54284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54285 (exit $ac_status); }; }; then
54286 eval "$as_ac_var=yes"
54287 else
54288 echo "$as_me: failed program was:" >&5
54289 sed 's/^/| /' conftest.$ac_ext >&5
54291 eval "$as_ac_var=no"
54293 rm -f conftest.err conftest.$ac_objext \
54294 conftest$ac_exeext conftest.$ac_ext
54296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54298 if test `eval echo '${'$as_ac_var'}'` = yes; then
54299 cat >>confdefs.h <<_ACEOF
54300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54301 _ACEOF
54303 else
54304 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54306 done
54310 # Used in libmath/Makefile.am.
54311 if test -n "$LIBMATHOBJS"; then
54312 need_libmath=yes
54317 # Test wchar.h for mbstate_t, which is needed for char_traits and
54318 # others even if wchar_t support is not on.
54319 echo "$as_me:$LINENO: checking for mbstate_t" >&5
54320 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54321 cat >conftest.$ac_ext <<_ACEOF
54322 /* confdefs.h. */
54323 _ACEOF
54324 cat confdefs.h >>conftest.$ac_ext
54325 cat >>conftest.$ac_ext <<_ACEOF
54326 /* end confdefs.h. */
54327 #include <wchar.h>
54329 main ()
54331 mbstate_t teststate;
54333 return 0;
54335 _ACEOF
54336 rm -f conftest.$ac_objext
54337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54338 (eval $ac_compile) 2>conftest.er1
54339 ac_status=$?
54340 grep -v '^ *+' conftest.er1 >conftest.err
54341 rm -f conftest.er1
54342 cat conftest.err >&5
54343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54344 (exit $ac_status); } &&
54345 { ac_try='test -z "$ac_c_werror_flag"
54346 || test ! -s conftest.err'
54347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54348 (eval $ac_try) 2>&5
54349 ac_status=$?
54350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54351 (exit $ac_status); }; } &&
54352 { ac_try='test -s conftest.$ac_objext'
54353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54354 (eval $ac_try) 2>&5
54355 ac_status=$?
54356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54357 (exit $ac_status); }; }; then
54358 have_mbstate_t=yes
54359 else
54360 echo "$as_me: failed program was:" >&5
54361 sed 's/^/| /' conftest.$ac_ext >&5
54363 have_mbstate_t=no
54365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54366 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54367 echo "${ECHO_T}$have_mbstate_t" >&6
54368 if test x"$have_mbstate_t" = xyes; then
54369 cat >>confdefs.h <<\_ACEOF
54370 #define HAVE_MBSTATE_T 1
54371 _ACEOF
54375 # Sanity check for existence of ISO C99 headers for extended encoding.
54377 for ac_header in wchar.h
54379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54381 echo "$as_me:$LINENO: checking for $ac_header" >&5
54382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54384 echo $ECHO_N "(cached) $ECHO_C" >&6
54386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54388 else
54389 # Is the header compilable?
54390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54392 cat >conftest.$ac_ext <<_ACEOF
54393 /* confdefs.h. */
54394 _ACEOF
54395 cat confdefs.h >>conftest.$ac_ext
54396 cat >>conftest.$ac_ext <<_ACEOF
54397 /* end confdefs.h. */
54398 $ac_includes_default
54399 #include <$ac_header>
54400 _ACEOF
54401 rm -f conftest.$ac_objext
54402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54403 (eval $ac_compile) 2>conftest.er1
54404 ac_status=$?
54405 grep -v '^ *+' conftest.er1 >conftest.err
54406 rm -f conftest.er1
54407 cat conftest.err >&5
54408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409 (exit $ac_status); } &&
54410 { ac_try='test -z "$ac_c_werror_flag"
54411 || test ! -s conftest.err'
54412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54413 (eval $ac_try) 2>&5
54414 ac_status=$?
54415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54416 (exit $ac_status); }; } &&
54417 { ac_try='test -s conftest.$ac_objext'
54418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54419 (eval $ac_try) 2>&5
54420 ac_status=$?
54421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54422 (exit $ac_status); }; }; then
54423 ac_header_compiler=yes
54424 else
54425 echo "$as_me: failed program was:" >&5
54426 sed 's/^/| /' conftest.$ac_ext >&5
54428 ac_header_compiler=no
54430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54432 echo "${ECHO_T}$ac_header_compiler" >&6
54434 # Is the header present?
54435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54437 cat >conftest.$ac_ext <<_ACEOF
54438 /* confdefs.h. */
54439 _ACEOF
54440 cat confdefs.h >>conftest.$ac_ext
54441 cat >>conftest.$ac_ext <<_ACEOF
54442 /* end confdefs.h. */
54443 #include <$ac_header>
54444 _ACEOF
54445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54447 ac_status=$?
54448 grep -v '^ *+' conftest.er1 >conftest.err
54449 rm -f conftest.er1
54450 cat conftest.err >&5
54451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54452 (exit $ac_status); } >/dev/null; then
54453 if test -s conftest.err; then
54454 ac_cpp_err=$ac_c_preproc_warn_flag
54455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54456 else
54457 ac_cpp_err=
54459 else
54460 ac_cpp_err=yes
54462 if test -z "$ac_cpp_err"; then
54463 ac_header_preproc=yes
54464 else
54465 echo "$as_me: failed program was:" >&5
54466 sed 's/^/| /' conftest.$ac_ext >&5
54468 ac_header_preproc=no
54470 rm -f conftest.err conftest.$ac_ext
54471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54472 echo "${ECHO_T}$ac_header_preproc" >&6
54474 # So? What about this header?
54475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54476 yes:no: )
54477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54481 ac_header_preproc=yes
54483 no:yes:* )
54484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54497 cat <<\_ASBOX
54498 ## ----------------------------------------- ##
54499 ## Report this to the package-unused lists. ##
54500 ## ----------------------------------------- ##
54501 _ASBOX
54503 sed "s/^/$as_me: WARNING: /" >&2
54505 esac
54506 echo "$as_me:$LINENO: checking for $ac_header" >&5
54507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54509 echo $ECHO_N "(cached) $ECHO_C" >&6
54510 else
54511 eval "$as_ac_Header=\$ac_header_preproc"
54513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54518 cat >>confdefs.h <<_ACEOF
54519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54520 _ACEOF
54521 ac_has_wchar_h=yes
54522 else
54523 ac_has_wchar_h=no
54526 done
54529 for ac_header in wctype.h
54531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54533 echo "$as_me:$LINENO: checking for $ac_header" >&5
54534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54536 echo $ECHO_N "(cached) $ECHO_C" >&6
54538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54540 else
54541 # Is the header compilable?
54542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54544 cat >conftest.$ac_ext <<_ACEOF
54545 /* confdefs.h. */
54546 _ACEOF
54547 cat confdefs.h >>conftest.$ac_ext
54548 cat >>conftest.$ac_ext <<_ACEOF
54549 /* end confdefs.h. */
54550 $ac_includes_default
54551 #include <$ac_header>
54552 _ACEOF
54553 rm -f conftest.$ac_objext
54554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54555 (eval $ac_compile) 2>conftest.er1
54556 ac_status=$?
54557 grep -v '^ *+' conftest.er1 >conftest.err
54558 rm -f conftest.er1
54559 cat conftest.err >&5
54560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54561 (exit $ac_status); } &&
54562 { ac_try='test -z "$ac_c_werror_flag"
54563 || test ! -s conftest.err'
54564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54565 (eval $ac_try) 2>&5
54566 ac_status=$?
54567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54568 (exit $ac_status); }; } &&
54569 { ac_try='test -s conftest.$ac_objext'
54570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54571 (eval $ac_try) 2>&5
54572 ac_status=$?
54573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54574 (exit $ac_status); }; }; then
54575 ac_header_compiler=yes
54576 else
54577 echo "$as_me: failed program was:" >&5
54578 sed 's/^/| /' conftest.$ac_ext >&5
54580 ac_header_compiler=no
54582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54584 echo "${ECHO_T}$ac_header_compiler" >&6
54586 # Is the header present?
54587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54589 cat >conftest.$ac_ext <<_ACEOF
54590 /* confdefs.h. */
54591 _ACEOF
54592 cat confdefs.h >>conftest.$ac_ext
54593 cat >>conftest.$ac_ext <<_ACEOF
54594 /* end confdefs.h. */
54595 #include <$ac_header>
54596 _ACEOF
54597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54599 ac_status=$?
54600 grep -v '^ *+' conftest.er1 >conftest.err
54601 rm -f conftest.er1
54602 cat conftest.err >&5
54603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54604 (exit $ac_status); } >/dev/null; then
54605 if test -s conftest.err; then
54606 ac_cpp_err=$ac_c_preproc_warn_flag
54607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54608 else
54609 ac_cpp_err=
54611 else
54612 ac_cpp_err=yes
54614 if test -z "$ac_cpp_err"; then
54615 ac_header_preproc=yes
54616 else
54617 echo "$as_me: failed program was:" >&5
54618 sed 's/^/| /' conftest.$ac_ext >&5
54620 ac_header_preproc=no
54622 rm -f conftest.err conftest.$ac_ext
54623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54624 echo "${ECHO_T}$ac_header_preproc" >&6
54626 # So? What about this header?
54627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54628 yes:no: )
54629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54633 ac_header_preproc=yes
54635 no:yes:* )
54636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54649 cat <<\_ASBOX
54650 ## ----------------------------------------- ##
54651 ## Report this to the package-unused lists. ##
54652 ## ----------------------------------------- ##
54653 _ASBOX
54655 sed "s/^/$as_me: WARNING: /" >&2
54657 esac
54658 echo "$as_me:$LINENO: checking for $ac_header" >&5
54659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54661 echo $ECHO_N "(cached) $ECHO_C" >&6
54662 else
54663 eval "$as_ac_Header=\$ac_header_preproc"
54665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54670 cat >>confdefs.h <<_ACEOF
54671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54672 _ACEOF
54673 ac_has_wctype_h=yes
54674 else
54675 ac_has_wctype_h=no
54678 done
54681 # Only continue checking if the ISO C99 headers exist and support is on.
54682 if test x"$ac_has_wchar_h" = xyes &&
54683 test x"$ac_has_wctype_h" = xyes &&
54684 test x"$enable_c_mbchar" != xno; then
54686 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54687 # numeric_limits can instantiate type_traits<wchar_t>
54688 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54689 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54690 cat >conftest.$ac_ext <<_ACEOF
54691 /* confdefs.h. */
54692 _ACEOF
54693 cat confdefs.h >>conftest.$ac_ext
54694 cat >>conftest.$ac_ext <<_ACEOF
54695 /* end confdefs.h. */
54696 #include <wchar.h>
54698 main ()
54700 int i = WCHAR_MIN; int j = WCHAR_MAX;
54702 return 0;
54704 _ACEOF
54705 rm -f conftest.$ac_objext
54706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54707 (eval $ac_compile) 2>conftest.er1
54708 ac_status=$?
54709 grep -v '^ *+' conftest.er1 >conftest.err
54710 rm -f conftest.er1
54711 cat conftest.err >&5
54712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713 (exit $ac_status); } &&
54714 { ac_try='test -z "$ac_c_werror_flag"
54715 || test ! -s conftest.err'
54716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54717 (eval $ac_try) 2>&5
54718 ac_status=$?
54719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54720 (exit $ac_status); }; } &&
54721 { ac_try='test -s conftest.$ac_objext'
54722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54723 (eval $ac_try) 2>&5
54724 ac_status=$?
54725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726 (exit $ac_status); }; }; then
54727 has_wchar_minmax=yes
54728 else
54729 echo "$as_me: failed program was:" >&5
54730 sed 's/^/| /' conftest.$ac_ext >&5
54732 has_wchar_minmax=no
54734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54735 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54736 echo "${ECHO_T}$has_wchar_minmax" >&6
54738 # Test wchar.h for WEOF, which is what we use to determine whether
54739 # to specialize for char_traits<wchar_t> or not.
54740 echo "$as_me:$LINENO: checking for WEOF" >&5
54741 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54742 cat >conftest.$ac_ext <<_ACEOF
54743 /* confdefs.h. */
54744 _ACEOF
54745 cat confdefs.h >>conftest.$ac_ext
54746 cat >>conftest.$ac_ext <<_ACEOF
54747 /* end confdefs.h. */
54749 #include <wchar.h>
54750 #include <stddef.h>
54752 main ()
54754 wint_t i = WEOF;
54756 return 0;
54758 _ACEOF
54759 rm -f conftest.$ac_objext
54760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54761 (eval $ac_compile) 2>conftest.er1
54762 ac_status=$?
54763 grep -v '^ *+' conftest.er1 >conftest.err
54764 rm -f conftest.er1
54765 cat conftest.err >&5
54766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54767 (exit $ac_status); } &&
54768 { ac_try='test -z "$ac_c_werror_flag"
54769 || test ! -s conftest.err'
54770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54771 (eval $ac_try) 2>&5
54772 ac_status=$?
54773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54774 (exit $ac_status); }; } &&
54775 { ac_try='test -s conftest.$ac_objext'
54776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54777 (eval $ac_try) 2>&5
54778 ac_status=$?
54779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54780 (exit $ac_status); }; }; then
54781 has_weof=yes
54782 else
54783 echo "$as_me: failed program was:" >&5
54784 sed 's/^/| /' conftest.$ac_ext >&5
54786 has_weof=no
54788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54789 echo "$as_me:$LINENO: result: $has_weof" >&5
54790 echo "${ECHO_T}$has_weof" >&6
54792 # Tests for wide character functions used in char_traits<wchar_t>.
54793 ac_wfuncs=yes
54800 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54803 echo "$as_me:$LINENO: checking for $ac_func" >&5
54804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54805 if eval "test \"\${$as_ac_var+set}\" = set"; then
54806 echo $ECHO_N "(cached) $ECHO_C" >&6
54807 else
54808 if test x$gcc_no_link = xyes; then
54809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54811 { (exit 1); exit 1; }; }
54813 cat >conftest.$ac_ext <<_ACEOF
54814 /* confdefs.h. */
54815 _ACEOF
54816 cat confdefs.h >>conftest.$ac_ext
54817 cat >>conftest.$ac_ext <<_ACEOF
54818 /* end confdefs.h. */
54819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54821 #define $ac_func innocuous_$ac_func
54823 /* System header to define __stub macros and hopefully few prototypes,
54824 which can conflict with char $ac_func (); below.
54825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54826 <limits.h> exists even on freestanding compilers. */
54828 #ifdef __STDC__
54829 # include <limits.h>
54830 #else
54831 # include <assert.h>
54832 #endif
54834 #undef $ac_func
54836 /* Override any gcc2 internal prototype to avoid an error. */
54837 #ifdef __cplusplus
54838 extern "C"
54840 #endif
54841 /* We use char because int might match the return type of a gcc2
54842 builtin and then its argument prototype would still apply. */
54843 char $ac_func ();
54844 /* The GNU C library defines this for functions which it implements
54845 to always fail with ENOSYS. Some functions are actually named
54846 something starting with __ and the normal name is an alias. */
54847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54848 choke me
54849 #else
54850 char (*f) () = $ac_func;
54851 #endif
54852 #ifdef __cplusplus
54854 #endif
54857 main ()
54859 return f != $ac_func;
54861 return 0;
54863 _ACEOF
54864 rm -f conftest.$ac_objext conftest$ac_exeext
54865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54866 (eval $ac_link) 2>conftest.er1
54867 ac_status=$?
54868 grep -v '^ *+' conftest.er1 >conftest.err
54869 rm -f conftest.er1
54870 cat conftest.err >&5
54871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54872 (exit $ac_status); } &&
54873 { ac_try='test -z "$ac_c_werror_flag"
54874 || test ! -s conftest.err'
54875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54876 (eval $ac_try) 2>&5
54877 ac_status=$?
54878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54879 (exit $ac_status); }; } &&
54880 { ac_try='test -s conftest$ac_exeext'
54881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54882 (eval $ac_try) 2>&5
54883 ac_status=$?
54884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54885 (exit $ac_status); }; }; then
54886 eval "$as_ac_var=yes"
54887 else
54888 echo "$as_me: failed program was:" >&5
54889 sed 's/^/| /' conftest.$ac_ext >&5
54891 eval "$as_ac_var=no"
54893 rm -f conftest.err conftest.$ac_objext \
54894 conftest$ac_exeext conftest.$ac_ext
54896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54898 if test `eval echo '${'$as_ac_var'}'` = yes; then
54899 cat >>confdefs.h <<_ACEOF
54900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54901 _ACEOF
54903 else
54904 ac_wfuncs=no
54906 done
54909 # Checks for names injected into std:: by the c_std headers.
54956 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54957 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54958 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54959 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54960 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54961 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54964 echo "$as_me:$LINENO: checking for $ac_func" >&5
54965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54966 if eval "test \"\${$as_ac_var+set}\" = set"; then
54967 echo $ECHO_N "(cached) $ECHO_C" >&6
54968 else
54969 if test x$gcc_no_link = xyes; then
54970 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54972 { (exit 1); exit 1; }; }
54974 cat >conftest.$ac_ext <<_ACEOF
54975 /* confdefs.h. */
54976 _ACEOF
54977 cat confdefs.h >>conftest.$ac_ext
54978 cat >>conftest.$ac_ext <<_ACEOF
54979 /* end confdefs.h. */
54980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54982 #define $ac_func innocuous_$ac_func
54984 /* System header to define __stub macros and hopefully few prototypes,
54985 which can conflict with char $ac_func (); below.
54986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54987 <limits.h> exists even on freestanding compilers. */
54989 #ifdef __STDC__
54990 # include <limits.h>
54991 #else
54992 # include <assert.h>
54993 #endif
54995 #undef $ac_func
54997 /* Override any gcc2 internal prototype to avoid an error. */
54998 #ifdef __cplusplus
54999 extern "C"
55001 #endif
55002 /* We use char because int might match the return type of a gcc2
55003 builtin and then its argument prototype would still apply. */
55004 char $ac_func ();
55005 /* The GNU C library defines this for functions which it implements
55006 to always fail with ENOSYS. Some functions are actually named
55007 something starting with __ and the normal name is an alias. */
55008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55009 choke me
55010 #else
55011 char (*f) () = $ac_func;
55012 #endif
55013 #ifdef __cplusplus
55015 #endif
55018 main ()
55020 return f != $ac_func;
55022 return 0;
55024 _ACEOF
55025 rm -f conftest.$ac_objext conftest$ac_exeext
55026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55027 (eval $ac_link) 2>conftest.er1
55028 ac_status=$?
55029 grep -v '^ *+' conftest.er1 >conftest.err
55030 rm -f conftest.er1
55031 cat conftest.err >&5
55032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55033 (exit $ac_status); } &&
55034 { ac_try='test -z "$ac_c_werror_flag"
55035 || test ! -s conftest.err'
55036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55037 (eval $ac_try) 2>&5
55038 ac_status=$?
55039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55040 (exit $ac_status); }; } &&
55041 { ac_try='test -s conftest$ac_exeext'
55042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55043 (eval $ac_try) 2>&5
55044 ac_status=$?
55045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55046 (exit $ac_status); }; }; then
55047 eval "$as_ac_var=yes"
55048 else
55049 echo "$as_me: failed program was:" >&5
55050 sed 's/^/| /' conftest.$ac_ext >&5
55052 eval "$as_ac_var=no"
55054 rm -f conftest.err conftest.$ac_objext \
55055 conftest$ac_exeext conftest.$ac_ext
55057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55059 if test `eval echo '${'$as_ac_var'}'` = yes; then
55060 cat >>confdefs.h <<_ACEOF
55061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55062 _ACEOF
55064 else
55065 ac_wfuncs=no
55067 done
55070 # Checks for wide character functions that are not required
55071 # for basic wchar_t support. Don't disable support if they are missing.
55072 # Injection of these is wrapped with guard macros.
55078 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
55080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55081 echo "$as_me:$LINENO: checking for $ac_func" >&5
55082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55083 if eval "test \"\${$as_ac_var+set}\" = set"; then
55084 echo $ECHO_N "(cached) $ECHO_C" >&6
55085 else
55086 if test x$gcc_no_link = xyes; then
55087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55088 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55089 { (exit 1); exit 1; }; }
55091 cat >conftest.$ac_ext <<_ACEOF
55092 /* confdefs.h. */
55093 _ACEOF
55094 cat confdefs.h >>conftest.$ac_ext
55095 cat >>conftest.$ac_ext <<_ACEOF
55096 /* end confdefs.h. */
55097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55099 #define $ac_func innocuous_$ac_func
55101 /* System header to define __stub macros and hopefully few prototypes,
55102 which can conflict with char $ac_func (); below.
55103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55104 <limits.h> exists even on freestanding compilers. */
55106 #ifdef __STDC__
55107 # include <limits.h>
55108 #else
55109 # include <assert.h>
55110 #endif
55112 #undef $ac_func
55114 /* Override any gcc2 internal prototype to avoid an error. */
55115 #ifdef __cplusplus
55116 extern "C"
55118 #endif
55119 /* We use char because int might match the return type of a gcc2
55120 builtin and then its argument prototype would still apply. */
55121 char $ac_func ();
55122 /* The GNU C library defines this for functions which it implements
55123 to always fail with ENOSYS. Some functions are actually named
55124 something starting with __ and the normal name is an alias. */
55125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55126 choke me
55127 #else
55128 char (*f) () = $ac_func;
55129 #endif
55130 #ifdef __cplusplus
55132 #endif
55135 main ()
55137 return f != $ac_func;
55139 return 0;
55141 _ACEOF
55142 rm -f conftest.$ac_objext conftest$ac_exeext
55143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55144 (eval $ac_link) 2>conftest.er1
55145 ac_status=$?
55146 grep -v '^ *+' conftest.er1 >conftest.err
55147 rm -f conftest.er1
55148 cat conftest.err >&5
55149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55150 (exit $ac_status); } &&
55151 { ac_try='test -z "$ac_c_werror_flag"
55152 || test ! -s conftest.err'
55153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55154 (eval $ac_try) 2>&5
55155 ac_status=$?
55156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55157 (exit $ac_status); }; } &&
55158 { ac_try='test -s conftest$ac_exeext'
55159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55160 (eval $ac_try) 2>&5
55161 ac_status=$?
55162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55163 (exit $ac_status); }; }; then
55164 eval "$as_ac_var=yes"
55165 else
55166 echo "$as_me: failed program was:" >&5
55167 sed 's/^/| /' conftest.$ac_ext >&5
55169 eval "$as_ac_var=no"
55171 rm -f conftest.err conftest.$ac_objext \
55172 conftest$ac_exeext conftest.$ac_ext
55174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55176 if test `eval echo '${'$as_ac_var'}'` = yes; then
55177 cat >>confdefs.h <<_ACEOF
55178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55179 _ACEOF
55182 done
55185 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55186 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55187 if test x"$has_weof" = xyes &&
55188 test x"$has_wchar_minmax" = xyes &&
55189 test x"$ac_wfuncs" = xyes;
55190 then
55191 ac_isoC99_wchar_t=yes
55192 else
55193 ac_isoC99_wchar_t=no
55195 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55196 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55198 # Use iconv for wchar_t to char conversions. As such, check for
55199 # X/Open Portability Guide, version 2 features (XPG2).
55200 if test "${ac_cv_header_iconv_h+set}" = set; then
55201 echo "$as_me:$LINENO: checking for iconv.h" >&5
55202 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55203 if test "${ac_cv_header_iconv_h+set}" = set; then
55204 echo $ECHO_N "(cached) $ECHO_C" >&6
55206 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55207 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55208 else
55209 # Is the header compilable?
55210 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55211 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55212 cat >conftest.$ac_ext <<_ACEOF
55213 /* confdefs.h. */
55214 _ACEOF
55215 cat confdefs.h >>conftest.$ac_ext
55216 cat >>conftest.$ac_ext <<_ACEOF
55217 /* end confdefs.h. */
55218 $ac_includes_default
55219 #include <iconv.h>
55220 _ACEOF
55221 rm -f conftest.$ac_objext
55222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55223 (eval $ac_compile) 2>conftest.er1
55224 ac_status=$?
55225 grep -v '^ *+' conftest.er1 >conftest.err
55226 rm -f conftest.er1
55227 cat conftest.err >&5
55228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55229 (exit $ac_status); } &&
55230 { ac_try='test -z "$ac_c_werror_flag"
55231 || test ! -s conftest.err'
55232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55233 (eval $ac_try) 2>&5
55234 ac_status=$?
55235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55236 (exit $ac_status); }; } &&
55237 { ac_try='test -s conftest.$ac_objext'
55238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55239 (eval $ac_try) 2>&5
55240 ac_status=$?
55241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55242 (exit $ac_status); }; }; then
55243 ac_header_compiler=yes
55244 else
55245 echo "$as_me: failed program was:" >&5
55246 sed 's/^/| /' conftest.$ac_ext >&5
55248 ac_header_compiler=no
55250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55252 echo "${ECHO_T}$ac_header_compiler" >&6
55254 # Is the header present?
55255 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55256 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55257 cat >conftest.$ac_ext <<_ACEOF
55258 /* confdefs.h. */
55259 _ACEOF
55260 cat confdefs.h >>conftest.$ac_ext
55261 cat >>conftest.$ac_ext <<_ACEOF
55262 /* end confdefs.h. */
55263 #include <iconv.h>
55264 _ACEOF
55265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55267 ac_status=$?
55268 grep -v '^ *+' conftest.er1 >conftest.err
55269 rm -f conftest.er1
55270 cat conftest.err >&5
55271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55272 (exit $ac_status); } >/dev/null; then
55273 if test -s conftest.err; then
55274 ac_cpp_err=$ac_c_preproc_warn_flag
55275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55276 else
55277 ac_cpp_err=
55279 else
55280 ac_cpp_err=yes
55282 if test -z "$ac_cpp_err"; then
55283 ac_header_preproc=yes
55284 else
55285 echo "$as_me: failed program was:" >&5
55286 sed 's/^/| /' conftest.$ac_ext >&5
55288 ac_header_preproc=no
55290 rm -f conftest.err conftest.$ac_ext
55291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55292 echo "${ECHO_T}$ac_header_preproc" >&6
55294 # So? What about this header?
55295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55296 yes:no: )
55297 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55298 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55299 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55300 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55301 ac_header_preproc=yes
55303 no:yes:* )
55304 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55305 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55306 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55307 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55308 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55309 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55310 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
55311 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
55312 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55313 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55314 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55315 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55317 cat <<\_ASBOX
55318 ## ----------------------------------------- ##
55319 ## Report this to the package-unused lists. ##
55320 ## ----------------------------------------- ##
55321 _ASBOX
55323 sed "s/^/$as_me: WARNING: /" >&2
55325 esac
55326 echo "$as_me:$LINENO: checking for iconv.h" >&5
55327 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55328 if test "${ac_cv_header_iconv_h+set}" = set; then
55329 echo $ECHO_N "(cached) $ECHO_C" >&6
55330 else
55331 ac_cv_header_iconv_h=$ac_header_preproc
55333 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55334 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55337 if test $ac_cv_header_iconv_h = yes; then
55338 ac_has_iconv_h=yes
55339 else
55340 ac_has_iconv_h=no
55344 if test "${ac_cv_header_langinfo_h+set}" = set; then
55345 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55346 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55347 if test "${ac_cv_header_langinfo_h+set}" = set; then
55348 echo $ECHO_N "(cached) $ECHO_C" >&6
55350 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55351 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55352 else
55353 # Is the header compilable?
55354 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55355 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55356 cat >conftest.$ac_ext <<_ACEOF
55357 /* confdefs.h. */
55358 _ACEOF
55359 cat confdefs.h >>conftest.$ac_ext
55360 cat >>conftest.$ac_ext <<_ACEOF
55361 /* end confdefs.h. */
55362 $ac_includes_default
55363 #include <langinfo.h>
55364 _ACEOF
55365 rm -f conftest.$ac_objext
55366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55367 (eval $ac_compile) 2>conftest.er1
55368 ac_status=$?
55369 grep -v '^ *+' conftest.er1 >conftest.err
55370 rm -f conftest.er1
55371 cat conftest.err >&5
55372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55373 (exit $ac_status); } &&
55374 { ac_try='test -z "$ac_c_werror_flag"
55375 || test ! -s conftest.err'
55376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55377 (eval $ac_try) 2>&5
55378 ac_status=$?
55379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55380 (exit $ac_status); }; } &&
55381 { ac_try='test -s conftest.$ac_objext'
55382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55383 (eval $ac_try) 2>&5
55384 ac_status=$?
55385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55386 (exit $ac_status); }; }; then
55387 ac_header_compiler=yes
55388 else
55389 echo "$as_me: failed program was:" >&5
55390 sed 's/^/| /' conftest.$ac_ext >&5
55392 ac_header_compiler=no
55394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55396 echo "${ECHO_T}$ac_header_compiler" >&6
55398 # Is the header present?
55399 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55400 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55401 cat >conftest.$ac_ext <<_ACEOF
55402 /* confdefs.h. */
55403 _ACEOF
55404 cat confdefs.h >>conftest.$ac_ext
55405 cat >>conftest.$ac_ext <<_ACEOF
55406 /* end confdefs.h. */
55407 #include <langinfo.h>
55408 _ACEOF
55409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55411 ac_status=$?
55412 grep -v '^ *+' conftest.er1 >conftest.err
55413 rm -f conftest.er1
55414 cat conftest.err >&5
55415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55416 (exit $ac_status); } >/dev/null; then
55417 if test -s conftest.err; then
55418 ac_cpp_err=$ac_c_preproc_warn_flag
55419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55420 else
55421 ac_cpp_err=
55423 else
55424 ac_cpp_err=yes
55426 if test -z "$ac_cpp_err"; then
55427 ac_header_preproc=yes
55428 else
55429 echo "$as_me: failed program was:" >&5
55430 sed 's/^/| /' conftest.$ac_ext >&5
55432 ac_header_preproc=no
55434 rm -f conftest.err conftest.$ac_ext
55435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55436 echo "${ECHO_T}$ac_header_preproc" >&6
55438 # So? What about this header?
55439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55440 yes:no: )
55441 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55442 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55443 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55444 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55445 ac_header_preproc=yes
55447 no:yes:* )
55448 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55449 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55450 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55451 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55452 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55453 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55454 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
55455 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
55456 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55457 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55458 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55459 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55461 cat <<\_ASBOX
55462 ## ----------------------------------------- ##
55463 ## Report this to the package-unused lists. ##
55464 ## ----------------------------------------- ##
55465 _ASBOX
55467 sed "s/^/$as_me: WARNING: /" >&2
55469 esac
55470 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55471 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55472 if test "${ac_cv_header_langinfo_h+set}" = set; then
55473 echo $ECHO_N "(cached) $ECHO_C" >&6
55474 else
55475 ac_cv_header_langinfo_h=$ac_header_preproc
55477 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55478 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55481 if test $ac_cv_header_langinfo_h = yes; then
55482 ac_has_langinfo_h=yes
55483 else
55484 ac_has_langinfo_h=no
55489 # Check for existence of libiconv.a providing XPG2 wchar_t support.
55490 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55491 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55492 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55493 echo $ECHO_N "(cached) $ECHO_C" >&6
55494 else
55495 ac_check_lib_save_LIBS=$LIBS
55496 LIBS="-liconv $LIBS"
55497 if test x$gcc_no_link = xyes; then
55498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55500 { (exit 1); exit 1; }; }
55502 cat >conftest.$ac_ext <<_ACEOF
55503 /* confdefs.h. */
55504 _ACEOF
55505 cat confdefs.h >>conftest.$ac_ext
55506 cat >>conftest.$ac_ext <<_ACEOF
55507 /* end confdefs.h. */
55509 /* Override any gcc2 internal prototype to avoid an error. */
55510 #ifdef __cplusplus
55511 extern "C"
55512 #endif
55513 /* We use char because int might match the return type of a gcc2
55514 builtin and then its argument prototype would still apply. */
55515 char iconv ();
55517 main ()
55519 iconv ();
55521 return 0;
55523 _ACEOF
55524 rm -f conftest.$ac_objext conftest$ac_exeext
55525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55526 (eval $ac_link) 2>conftest.er1
55527 ac_status=$?
55528 grep -v '^ *+' conftest.er1 >conftest.err
55529 rm -f conftest.er1
55530 cat conftest.err >&5
55531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55532 (exit $ac_status); } &&
55533 { ac_try='test -z "$ac_c_werror_flag"
55534 || test ! -s conftest.err'
55535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55536 (eval $ac_try) 2>&5
55537 ac_status=$?
55538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55539 (exit $ac_status); }; } &&
55540 { ac_try='test -s conftest$ac_exeext'
55541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55542 (eval $ac_try) 2>&5
55543 ac_status=$?
55544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55545 (exit $ac_status); }; }; then
55546 ac_cv_lib_iconv_iconv=yes
55547 else
55548 echo "$as_me: failed program was:" >&5
55549 sed 's/^/| /' conftest.$ac_ext >&5
55551 ac_cv_lib_iconv_iconv=no
55553 rm -f conftest.err conftest.$ac_objext \
55554 conftest$ac_exeext conftest.$ac_ext
55555 LIBS=$ac_check_lib_save_LIBS
55557 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55558 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55559 if test $ac_cv_lib_iconv_iconv = yes; then
55560 LIBICONV="-liconv"
55563 ac_save_LIBS="$LIBS"
55564 LIBS="$LIBS $LIBICONV"
55571 for ac_func in iconv_open iconv_close iconv nl_langinfo
55573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55574 echo "$as_me:$LINENO: checking for $ac_func" >&5
55575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55576 if eval "test \"\${$as_ac_var+set}\" = set"; then
55577 echo $ECHO_N "(cached) $ECHO_C" >&6
55578 else
55579 if test x$gcc_no_link = xyes; then
55580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55582 { (exit 1); exit 1; }; }
55584 cat >conftest.$ac_ext <<_ACEOF
55585 /* confdefs.h. */
55586 _ACEOF
55587 cat confdefs.h >>conftest.$ac_ext
55588 cat >>conftest.$ac_ext <<_ACEOF
55589 /* end confdefs.h. */
55590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55592 #define $ac_func innocuous_$ac_func
55594 /* System header to define __stub macros and hopefully few prototypes,
55595 which can conflict with char $ac_func (); below.
55596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55597 <limits.h> exists even on freestanding compilers. */
55599 #ifdef __STDC__
55600 # include <limits.h>
55601 #else
55602 # include <assert.h>
55603 #endif
55605 #undef $ac_func
55607 /* Override any gcc2 internal prototype to avoid an error. */
55608 #ifdef __cplusplus
55609 extern "C"
55611 #endif
55612 /* We use char because int might match the return type of a gcc2
55613 builtin and then its argument prototype would still apply. */
55614 char $ac_func ();
55615 /* The GNU C library defines this for functions which it implements
55616 to always fail with ENOSYS. Some functions are actually named
55617 something starting with __ and the normal name is an alias. */
55618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55619 choke me
55620 #else
55621 char (*f) () = $ac_func;
55622 #endif
55623 #ifdef __cplusplus
55625 #endif
55628 main ()
55630 return f != $ac_func;
55632 return 0;
55634 _ACEOF
55635 rm -f conftest.$ac_objext conftest$ac_exeext
55636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55637 (eval $ac_link) 2>conftest.er1
55638 ac_status=$?
55639 grep -v '^ *+' conftest.er1 >conftest.err
55640 rm -f conftest.er1
55641 cat conftest.err >&5
55642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55643 (exit $ac_status); } &&
55644 { ac_try='test -z "$ac_c_werror_flag"
55645 || test ! -s conftest.err'
55646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55647 (eval $ac_try) 2>&5
55648 ac_status=$?
55649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55650 (exit $ac_status); }; } &&
55651 { ac_try='test -s conftest$ac_exeext'
55652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55653 (eval $ac_try) 2>&5
55654 ac_status=$?
55655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55656 (exit $ac_status); }; }; then
55657 eval "$as_ac_var=yes"
55658 else
55659 echo "$as_me: failed program was:" >&5
55660 sed 's/^/| /' conftest.$ac_ext >&5
55662 eval "$as_ac_var=no"
55664 rm -f conftest.err conftest.$ac_objext \
55665 conftest$ac_exeext conftest.$ac_ext
55667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55669 if test `eval echo '${'$as_ac_var'}'` = yes; then
55670 cat >>confdefs.h <<_ACEOF
55671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55672 _ACEOF
55673 ac_XPG2funcs=yes
55674 else
55675 ac_XPG2funcs=no
55677 done
55680 LIBS="$ac_save_LIBS"
55682 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55683 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55684 if test x"$ac_has_iconv_h" = xyes &&
55685 test x"$ac_has_langinfo_h" = xyes &&
55686 test x"$ac_XPG2funcs" = xyes;
55687 then
55688 ac_XPG2_wchar_t=yes
55689 else
55690 ac_XPG2_wchar_t=no
55692 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55693 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55695 # At the moment, only enable wchar_t specializations if all the
55696 # above support is present.
55697 if test x"$ac_isoC99_wchar_t" = xyes &&
55698 test x"$ac_XPG2_wchar_t" = xyes;
55699 then
55700 cat >>confdefs.h <<\_ACEOF
55701 #define _GLIBCXX_USE_WCHAR_T 1
55702 _ACEOF
55704 enable_wchar_t=yes
55707 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55708 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55709 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55710 echo "${ECHO_T}$enable_wchar_t" >&6
55712 cat >>confdefs.h <<\_ACEOF
55713 #define HAVE_LC_MESSAGES 1
55714 _ACEOF
55716 cat >>confdefs.h <<\_ACEOF
55717 #define HAVE_GETPAGESIZE 1
55718 _ACEOF
55720 cat >>confdefs.h <<\_ACEOF
55721 #define HAVE_SETENV 1
55722 _ACEOF
55724 cat >>confdefs.h <<\_ACEOF
55725 #define HAVE_SIGSETJMP 1
55726 _ACEOF
55728 cat >>confdefs.h <<\_ACEOF
55729 #define HAVE_COPYSIGN 1
55730 _ACEOF
55732 cat >>confdefs.h <<\_ACEOF
55733 #define HAVE_COPYSIGNF 1
55734 _ACEOF
55736 cat >>confdefs.h <<\_ACEOF
55737 #define HAVE_FINITEF 1
55738 _ACEOF
55740 cat >>confdefs.h <<\_ACEOF
55741 #define HAVE_FINITE 1
55742 _ACEOF
55744 cat >>confdefs.h <<\_ACEOF
55745 #define HAVE_FREXPF 1
55746 _ACEOF
55748 cat >>confdefs.h <<\_ACEOF
55749 #define HAVE_HYPOT 1
55750 _ACEOF
55752 cat >>confdefs.h <<\_ACEOF
55753 #define HAVE_HYPOTF 1
55754 _ACEOF
55756 cat >>confdefs.h <<\_ACEOF
55757 #define HAVE_ISINF 1
55758 _ACEOF
55760 cat >>confdefs.h <<\_ACEOF
55761 #define HAVE_ISNAN 1
55762 _ACEOF
55764 cat >>confdefs.h <<\_ACEOF
55765 #define HAVE_ISNANF 1
55766 _ACEOF
55769 cat >>confdefs.h <<\_ACEOF
55770 #define HAVE_MMAP 1
55771 _ACEOF
55773 cat >>confdefs.h <<\_ACEOF
55774 #define HAVE_ACOSF 1
55775 _ACEOF
55777 cat >>confdefs.h <<\_ACEOF
55778 #define HAVE_ASINF 1
55779 _ACEOF
55781 cat >>confdefs.h <<\_ACEOF
55782 #define HAVE_ATAN2F 1
55783 _ACEOF
55785 cat >>confdefs.h <<\_ACEOF
55786 #define HAVE_ATANF 1
55787 _ACEOF
55789 cat >>confdefs.h <<\_ACEOF
55790 #define HAVE_CEILF 1
55791 _ACEOF
55793 cat >>confdefs.h <<\_ACEOF
55794 #define HAVE_COPYSIGN 1
55795 _ACEOF
55797 cat >>confdefs.h <<\_ACEOF
55798 #define HAVE_COPYSIGNF 1
55799 _ACEOF
55801 cat >>confdefs.h <<\_ACEOF
55802 #define HAVE_COSF 1
55803 _ACEOF
55805 cat >>confdefs.h <<\_ACEOF
55806 #define HAVE_COSHF 1
55807 _ACEOF
55809 cat >>confdefs.h <<\_ACEOF
55810 #define HAVE_EXPF 1
55811 _ACEOF
55813 cat >>confdefs.h <<\_ACEOF
55814 #define HAVE_FABSF 1
55815 _ACEOF
55817 cat >>confdefs.h <<\_ACEOF
55818 #define HAVE_FLOORF 1
55819 _ACEOF
55821 cat >>confdefs.h <<\_ACEOF
55822 #define HAVE_FMODF 1
55823 _ACEOF
55825 cat >>confdefs.h <<\_ACEOF
55826 #define HAVE_FREXPF 1
55827 _ACEOF
55829 cat >>confdefs.h <<\_ACEOF
55830 #define HAVE_LDEXPF 1
55831 _ACEOF
55833 cat >>confdefs.h <<\_ACEOF
55834 #define HAVE_LOG10F 1
55835 _ACEOF
55837 cat >>confdefs.h <<\_ACEOF
55838 #define HAVE_LOGF 1
55839 _ACEOF
55841 cat >>confdefs.h <<\_ACEOF
55842 #define HAVE_MODFF 1
55843 _ACEOF
55845 cat >>confdefs.h <<\_ACEOF
55846 #define HAVE_POWF 1
55847 _ACEOF
55849 cat >>confdefs.h <<\_ACEOF
55850 #define HAVE_SINF 1
55851 _ACEOF
55853 cat >>confdefs.h <<\_ACEOF
55854 #define HAVE_SINHF 1
55855 _ACEOF
55857 cat >>confdefs.h <<\_ACEOF
55858 #define HAVE_SQRTF 1
55859 _ACEOF
55861 cat >>confdefs.h <<\_ACEOF
55862 #define HAVE_TANF 1
55863 _ACEOF
55865 cat >>confdefs.h <<\_ACEOF
55866 #define HAVE_TANHF 1
55867 _ACEOF
55869 if test x"long_double_math_on_this_cpu" = x"yes"; then
55870 cat >>confdefs.h <<\_ACEOF
55871 #define HAVE_FINITEL 1
55872 _ACEOF
55874 cat >>confdefs.h <<\_ACEOF
55875 #define HAVE_ISINFL 1
55876 _ACEOF
55878 cat >>confdefs.h <<\_ACEOF
55879 #define HAVE_ISNANL 1
55880 _ACEOF
55884 *-hpux*)
55897 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55898 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55899 fp.h locale.h float.h inttypes.h
55901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55903 echo "$as_me:$LINENO: checking for $ac_header" >&5
55904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55906 echo $ECHO_N "(cached) $ECHO_C" >&6
55908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55910 else
55911 # Is the header compilable?
55912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55914 cat >conftest.$ac_ext <<_ACEOF
55915 /* confdefs.h. */
55916 _ACEOF
55917 cat confdefs.h >>conftest.$ac_ext
55918 cat >>conftest.$ac_ext <<_ACEOF
55919 /* end confdefs.h. */
55920 $ac_includes_default
55921 #include <$ac_header>
55922 _ACEOF
55923 rm -f conftest.$ac_objext
55924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55925 (eval $ac_compile) 2>conftest.er1
55926 ac_status=$?
55927 grep -v '^ *+' conftest.er1 >conftest.err
55928 rm -f conftest.er1
55929 cat conftest.err >&5
55930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55931 (exit $ac_status); } &&
55932 { ac_try='test -z "$ac_c_werror_flag"
55933 || test ! -s conftest.err'
55934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55935 (eval $ac_try) 2>&5
55936 ac_status=$?
55937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55938 (exit $ac_status); }; } &&
55939 { ac_try='test -s conftest.$ac_objext'
55940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55941 (eval $ac_try) 2>&5
55942 ac_status=$?
55943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55944 (exit $ac_status); }; }; then
55945 ac_header_compiler=yes
55946 else
55947 echo "$as_me: failed program was:" >&5
55948 sed 's/^/| /' conftest.$ac_ext >&5
55950 ac_header_compiler=no
55952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55954 echo "${ECHO_T}$ac_header_compiler" >&6
55956 # Is the header present?
55957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55959 cat >conftest.$ac_ext <<_ACEOF
55960 /* confdefs.h. */
55961 _ACEOF
55962 cat confdefs.h >>conftest.$ac_ext
55963 cat >>conftest.$ac_ext <<_ACEOF
55964 /* end confdefs.h. */
55965 #include <$ac_header>
55966 _ACEOF
55967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55969 ac_status=$?
55970 grep -v '^ *+' conftest.er1 >conftest.err
55971 rm -f conftest.er1
55972 cat conftest.err >&5
55973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55974 (exit $ac_status); } >/dev/null; then
55975 if test -s conftest.err; then
55976 ac_cpp_err=$ac_c_preproc_warn_flag
55977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55978 else
55979 ac_cpp_err=
55981 else
55982 ac_cpp_err=yes
55984 if test -z "$ac_cpp_err"; then
55985 ac_header_preproc=yes
55986 else
55987 echo "$as_me: failed program was:" >&5
55988 sed 's/^/| /' conftest.$ac_ext >&5
55990 ac_header_preproc=no
55992 rm -f conftest.err conftest.$ac_ext
55993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55994 echo "${ECHO_T}$ac_header_preproc" >&6
55996 # So? What about this header?
55997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55998 yes:no: )
55999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56003 ac_header_preproc=yes
56005 no:yes:* )
56006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56019 cat <<\_ASBOX
56020 ## ----------------------------------------- ##
56021 ## Report this to the package-unused lists. ##
56022 ## ----------------------------------------- ##
56023 _ASBOX
56025 sed "s/^/$as_me: WARNING: /" >&2
56027 esac
56028 echo "$as_me:$LINENO: checking for $ac_header" >&5
56029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56031 echo $ECHO_N "(cached) $ECHO_C" >&6
56032 else
56033 eval "$as_ac_Header=\$ac_header_preproc"
56035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56040 cat >>confdefs.h <<_ACEOF
56041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56042 _ACEOF
56046 done
56048 SECTION_FLAGS='-ffunction-sections -fdata-sections'
56051 # If we're not using GNU ld, then there's no point in even trying these
56052 # tests. Check for that first. We should have already tested for gld
56053 # by now (in libtool), but require it now just to be safe...
56054 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
56055 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
56059 # The name set by libtool depends on the version of libtool. Shame on us
56060 # for depending on an impl detail, but c'est la vie. Older versions used
56061 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56062 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56063 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
56064 # set (hence we're using an older libtool), then set it.
56065 if test x${with_gnu_ld+set} != xset; then
56066 if test x${ac_cv_prog_gnu_ld+set} != xset; then
56067 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
56068 with_gnu_ld=no
56069 else
56070 with_gnu_ld=$ac_cv_prog_gnu_ld
56074 # Start by getting the version number. I think the libtool test already
56075 # does some of this, but throws away the result.
56077 ldver=`$LD --version 2>/dev/null | head -1 | \
56078 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56080 glibcxx_gnu_ld_version=`echo $ldver | \
56081 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56083 # Set --gc-sections.
56084 if test "$with_gnu_ld" = "notbroken"; then
56085 # GNU ld it is! Joy and bunny rabbits!
56087 # All these tests are for C++; save the language and the compiler flags.
56088 # Need to do this so that g++ won't try to link in libstdc++
56089 ac_test_CFLAGS="${CFLAGS+set}"
56090 ac_save_CFLAGS="$CFLAGS"
56091 CFLAGS='-x c++ -Wl,--gc-sections'
56093 # Check for -Wl,--gc-sections
56094 # XXX This test is broken at the moment, as symbols required for linking
56095 # are now in libsupc++ (not built yet). In addition, this test has
56096 # cored on solaris in the past. In addition, --gc-sections doesn't
56097 # really work at the moment (keeps on discarding used sections, first
56098 # .eh_frame and now some of the glibc sections for iconv).
56099 # Bzzzzt. Thanks for playing, maybe next time.
56100 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56101 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56102 if test "$cross_compiling" = yes; then
56103 ac_sectionLDflags=yes
56104 else
56105 cat >conftest.$ac_ext <<_ACEOF
56106 /* confdefs.h. */
56107 _ACEOF
56108 cat confdefs.h >>conftest.$ac_ext
56109 cat >>conftest.$ac_ext <<_ACEOF
56110 /* end confdefs.h. */
56112 int main(void)
56114 try { throw 1; }
56115 catch (...) { };
56116 return 0;
56119 _ACEOF
56120 rm -f conftest$ac_exeext
56121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56122 (eval $ac_link) 2>&5
56123 ac_status=$?
56124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56127 (eval $ac_try) 2>&5
56128 ac_status=$?
56129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56130 (exit $ac_status); }; }; then
56131 ac_sectionLDflags=yes
56132 else
56133 echo "$as_me: program exited with status $ac_status" >&5
56134 echo "$as_me: failed program was:" >&5
56135 sed 's/^/| /' conftest.$ac_ext >&5
56137 ( exit $ac_status )
56138 ac_sectionLDflags=no
56140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56142 if test "$ac_test_CFLAGS" = set; then
56143 CFLAGS="$ac_save_CFLAGS"
56144 else
56145 # this is the suspicious part
56146 CFLAGS=''
56148 if test "$ac_sectionLDflags" = "yes"; then
56149 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56151 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56152 echo "${ECHO_T}$ac_sectionLDflags" >&6
56155 # Set linker optimization flags.
56156 if test x"$with_gnu_ld" = x"yes"; then
56157 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56165 echo "$as_me:$LINENO: checking for main in -lm" >&5
56166 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56167 if test "${ac_cv_lib_m_main+set}" = set; then
56168 echo $ECHO_N "(cached) $ECHO_C" >&6
56169 else
56170 ac_check_lib_save_LIBS=$LIBS
56171 LIBS="-lm $LIBS"
56172 if test x$gcc_no_link = xyes; then
56173 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56175 { (exit 1); exit 1; }; }
56177 cat >conftest.$ac_ext <<_ACEOF
56178 /* confdefs.h. */
56179 _ACEOF
56180 cat confdefs.h >>conftest.$ac_ext
56181 cat >>conftest.$ac_ext <<_ACEOF
56182 /* end confdefs.h. */
56186 main ()
56188 main ();
56190 return 0;
56192 _ACEOF
56193 rm -f conftest.$ac_objext conftest$ac_exeext
56194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56195 (eval $ac_link) 2>conftest.er1
56196 ac_status=$?
56197 grep -v '^ *+' conftest.er1 >conftest.err
56198 rm -f conftest.er1
56199 cat conftest.err >&5
56200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56201 (exit $ac_status); } &&
56202 { ac_try='test -z "$ac_c_werror_flag"
56203 || test ! -s conftest.err'
56204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56205 (eval $ac_try) 2>&5
56206 ac_status=$?
56207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56208 (exit $ac_status); }; } &&
56209 { ac_try='test -s conftest$ac_exeext'
56210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56211 (eval $ac_try) 2>&5
56212 ac_status=$?
56213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56214 (exit $ac_status); }; }; then
56215 ac_cv_lib_m_main=yes
56216 else
56217 echo "$as_me: failed program was:" >&5
56218 sed 's/^/| /' conftest.$ac_ext >&5
56220 ac_cv_lib_m_main=no
56222 rm -f conftest.err conftest.$ac_objext \
56223 conftest$ac_exeext conftest.$ac_ext
56224 LIBS=$ac_check_lib_save_LIBS
56226 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56227 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56228 if test $ac_cv_lib_m_main = yes; then
56229 cat >>confdefs.h <<_ACEOF
56230 #define HAVE_LIBM 1
56231 _ACEOF
56233 LIBS="-lm $LIBS"
56238 for ac_func in copysignf
56240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56241 echo "$as_me:$LINENO: checking for $ac_func" >&5
56242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56243 if eval "test \"\${$as_ac_var+set}\" = set"; then
56244 echo $ECHO_N "(cached) $ECHO_C" >&6
56245 else
56246 if test x$gcc_no_link = xyes; then
56247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56249 { (exit 1); exit 1; }; }
56251 cat >conftest.$ac_ext <<_ACEOF
56252 /* confdefs.h. */
56253 _ACEOF
56254 cat confdefs.h >>conftest.$ac_ext
56255 cat >>conftest.$ac_ext <<_ACEOF
56256 /* end confdefs.h. */
56257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56259 #define $ac_func innocuous_$ac_func
56261 /* System header to define __stub macros and hopefully few prototypes,
56262 which can conflict with char $ac_func (); below.
56263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56264 <limits.h> exists even on freestanding compilers. */
56266 #ifdef __STDC__
56267 # include <limits.h>
56268 #else
56269 # include <assert.h>
56270 #endif
56272 #undef $ac_func
56274 /* Override any gcc2 internal prototype to avoid an error. */
56275 #ifdef __cplusplus
56276 extern "C"
56278 #endif
56279 /* We use char because int might match the return type of a gcc2
56280 builtin and then its argument prototype would still apply. */
56281 char $ac_func ();
56282 /* The GNU C library defines this for functions which it implements
56283 to always fail with ENOSYS. Some functions are actually named
56284 something starting with __ and the normal name is an alias. */
56285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56286 choke me
56287 #else
56288 char (*f) () = $ac_func;
56289 #endif
56290 #ifdef __cplusplus
56292 #endif
56295 main ()
56297 return f != $ac_func;
56299 return 0;
56301 _ACEOF
56302 rm -f conftest.$ac_objext conftest$ac_exeext
56303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56304 (eval $ac_link) 2>conftest.er1
56305 ac_status=$?
56306 grep -v '^ *+' conftest.er1 >conftest.err
56307 rm -f conftest.er1
56308 cat conftest.err >&5
56309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56310 (exit $ac_status); } &&
56311 { ac_try='test -z "$ac_c_werror_flag"
56312 || test ! -s conftest.err'
56313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56314 (eval $ac_try) 2>&5
56315 ac_status=$?
56316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56317 (exit $ac_status); }; } &&
56318 { ac_try='test -s conftest$ac_exeext'
56319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56320 (eval $ac_try) 2>&5
56321 ac_status=$?
56322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56323 (exit $ac_status); }; }; then
56324 eval "$as_ac_var=yes"
56325 else
56326 echo "$as_me: failed program was:" >&5
56327 sed 's/^/| /' conftest.$ac_ext >&5
56329 eval "$as_ac_var=no"
56331 rm -f conftest.err conftest.$ac_objext \
56332 conftest$ac_exeext conftest.$ac_ext
56334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56336 if test `eval echo '${'$as_ac_var'}'` = yes; then
56337 cat >>confdefs.h <<_ACEOF
56338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56339 _ACEOF
56341 else
56342 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56344 done
56348 for ac_func in __signbit
56350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56351 echo "$as_me:$LINENO: checking for $ac_func" >&5
56352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56353 if eval "test \"\${$as_ac_var+set}\" = set"; then
56354 echo $ECHO_N "(cached) $ECHO_C" >&6
56355 else
56356 if test x$gcc_no_link = xyes; then
56357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56359 { (exit 1); exit 1; }; }
56361 cat >conftest.$ac_ext <<_ACEOF
56362 /* confdefs.h. */
56363 _ACEOF
56364 cat confdefs.h >>conftest.$ac_ext
56365 cat >>conftest.$ac_ext <<_ACEOF
56366 /* end confdefs.h. */
56367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56369 #define $ac_func innocuous_$ac_func
56371 /* System header to define __stub macros and hopefully few prototypes,
56372 which can conflict with char $ac_func (); below.
56373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56374 <limits.h> exists even on freestanding compilers. */
56376 #ifdef __STDC__
56377 # include <limits.h>
56378 #else
56379 # include <assert.h>
56380 #endif
56382 #undef $ac_func
56384 /* Override any gcc2 internal prototype to avoid an error. */
56385 #ifdef __cplusplus
56386 extern "C"
56388 #endif
56389 /* We use char because int might match the return type of a gcc2
56390 builtin and then its argument prototype would still apply. */
56391 char $ac_func ();
56392 /* The GNU C library defines this for functions which it implements
56393 to always fail with ENOSYS. Some functions are actually named
56394 something starting with __ and the normal name is an alias. */
56395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56396 choke me
56397 #else
56398 char (*f) () = $ac_func;
56399 #endif
56400 #ifdef __cplusplus
56402 #endif
56405 main ()
56407 return f != $ac_func;
56409 return 0;
56411 _ACEOF
56412 rm -f conftest.$ac_objext conftest$ac_exeext
56413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56414 (eval $ac_link) 2>conftest.er1
56415 ac_status=$?
56416 grep -v '^ *+' conftest.er1 >conftest.err
56417 rm -f conftest.er1
56418 cat conftest.err >&5
56419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56420 (exit $ac_status); } &&
56421 { ac_try='test -z "$ac_c_werror_flag"
56422 || test ! -s conftest.err'
56423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56424 (eval $ac_try) 2>&5
56425 ac_status=$?
56426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56427 (exit $ac_status); }; } &&
56428 { ac_try='test -s conftest$ac_exeext'
56429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56430 (eval $ac_try) 2>&5
56431 ac_status=$?
56432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56433 (exit $ac_status); }; }; then
56434 eval "$as_ac_var=yes"
56435 else
56436 echo "$as_me: failed program was:" >&5
56437 sed 's/^/| /' conftest.$ac_ext >&5
56439 eval "$as_ac_var=no"
56441 rm -f conftest.err conftest.$ac_objext \
56442 conftest$ac_exeext conftest.$ac_ext
56444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56446 if test `eval echo '${'$as_ac_var'}'` = yes; then
56447 cat >>confdefs.h <<_ACEOF
56448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56449 _ACEOF
56451 else
56452 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56454 done
56458 for ac_func in __signbitf
56460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56461 echo "$as_me:$LINENO: checking for $ac_func" >&5
56462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56463 if eval "test \"\${$as_ac_var+set}\" = set"; then
56464 echo $ECHO_N "(cached) $ECHO_C" >&6
56465 else
56466 if test x$gcc_no_link = xyes; then
56467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56469 { (exit 1); exit 1; }; }
56471 cat >conftest.$ac_ext <<_ACEOF
56472 /* confdefs.h. */
56473 _ACEOF
56474 cat confdefs.h >>conftest.$ac_ext
56475 cat >>conftest.$ac_ext <<_ACEOF
56476 /* end confdefs.h. */
56477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56479 #define $ac_func innocuous_$ac_func
56481 /* System header to define __stub macros and hopefully few prototypes,
56482 which can conflict with char $ac_func (); below.
56483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56484 <limits.h> exists even on freestanding compilers. */
56486 #ifdef __STDC__
56487 # include <limits.h>
56488 #else
56489 # include <assert.h>
56490 #endif
56492 #undef $ac_func
56494 /* Override any gcc2 internal prototype to avoid an error. */
56495 #ifdef __cplusplus
56496 extern "C"
56498 #endif
56499 /* We use char because int might match the return type of a gcc2
56500 builtin and then its argument prototype would still apply. */
56501 char $ac_func ();
56502 /* The GNU C library defines this for functions which it implements
56503 to always fail with ENOSYS. Some functions are actually named
56504 something starting with __ and the normal name is an alias. */
56505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56506 choke me
56507 #else
56508 char (*f) () = $ac_func;
56509 #endif
56510 #ifdef __cplusplus
56512 #endif
56515 main ()
56517 return f != $ac_func;
56519 return 0;
56521 _ACEOF
56522 rm -f conftest.$ac_objext conftest$ac_exeext
56523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56524 (eval $ac_link) 2>conftest.er1
56525 ac_status=$?
56526 grep -v '^ *+' conftest.er1 >conftest.err
56527 rm -f conftest.er1
56528 cat conftest.err >&5
56529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56530 (exit $ac_status); } &&
56531 { ac_try='test -z "$ac_c_werror_flag"
56532 || test ! -s conftest.err'
56533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56534 (eval $ac_try) 2>&5
56535 ac_status=$?
56536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56537 (exit $ac_status); }; } &&
56538 { ac_try='test -s conftest$ac_exeext'
56539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56540 (eval $ac_try) 2>&5
56541 ac_status=$?
56542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56543 (exit $ac_status); }; }; then
56544 eval "$as_ac_var=yes"
56545 else
56546 echo "$as_me: failed program was:" >&5
56547 sed 's/^/| /' conftest.$ac_ext >&5
56549 eval "$as_ac_var=no"
56551 rm -f conftest.err conftest.$ac_objext \
56552 conftest$ac_exeext conftest.$ac_ext
56554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56556 if test `eval echo '${'$as_ac_var'}'` = yes; then
56557 cat >>confdefs.h <<_ACEOF
56558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56559 _ACEOF
56561 else
56562 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56564 done
56567 if test x$ac_cv_func_copysignl = x"yes"; then
56569 for ac_func in __signbitl
56571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56572 echo "$as_me:$LINENO: checking for $ac_func" >&5
56573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56574 if eval "test \"\${$as_ac_var+set}\" = set"; then
56575 echo $ECHO_N "(cached) $ECHO_C" >&6
56576 else
56577 if test x$gcc_no_link = xyes; then
56578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56580 { (exit 1); exit 1; }; }
56582 cat >conftest.$ac_ext <<_ACEOF
56583 /* confdefs.h. */
56584 _ACEOF
56585 cat confdefs.h >>conftest.$ac_ext
56586 cat >>conftest.$ac_ext <<_ACEOF
56587 /* end confdefs.h. */
56588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56590 #define $ac_func innocuous_$ac_func
56592 /* System header to define __stub macros and hopefully few prototypes,
56593 which can conflict with char $ac_func (); below.
56594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56595 <limits.h> exists even on freestanding compilers. */
56597 #ifdef __STDC__
56598 # include <limits.h>
56599 #else
56600 # include <assert.h>
56601 #endif
56603 #undef $ac_func
56605 /* Override any gcc2 internal prototype to avoid an error. */
56606 #ifdef __cplusplus
56607 extern "C"
56609 #endif
56610 /* We use char because int might match the return type of a gcc2
56611 builtin and then its argument prototype would still apply. */
56612 char $ac_func ();
56613 /* The GNU C library defines this for functions which it implements
56614 to always fail with ENOSYS. Some functions are actually named
56615 something starting with __ and the normal name is an alias. */
56616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56617 choke me
56618 #else
56619 char (*f) () = $ac_func;
56620 #endif
56621 #ifdef __cplusplus
56623 #endif
56626 main ()
56628 return f != $ac_func;
56630 return 0;
56632 _ACEOF
56633 rm -f conftest.$ac_objext conftest$ac_exeext
56634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56635 (eval $ac_link) 2>conftest.er1
56636 ac_status=$?
56637 grep -v '^ *+' conftest.er1 >conftest.err
56638 rm -f conftest.er1
56639 cat conftest.err >&5
56640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56641 (exit $ac_status); } &&
56642 { ac_try='test -z "$ac_c_werror_flag"
56643 || test ! -s conftest.err'
56644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56645 (eval $ac_try) 2>&5
56646 ac_status=$?
56647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56648 (exit $ac_status); }; } &&
56649 { ac_try='test -s conftest$ac_exeext'
56650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56651 (eval $ac_try) 2>&5
56652 ac_status=$?
56653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56654 (exit $ac_status); }; }; then
56655 eval "$as_ac_var=yes"
56656 else
56657 echo "$as_me: failed program was:" >&5
56658 sed 's/^/| /' conftest.$ac_ext >&5
56660 eval "$as_ac_var=no"
56662 rm -f conftest.err conftest.$ac_objext \
56663 conftest$ac_exeext conftest.$ac_ext
56665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56667 if test `eval echo '${'$as_ac_var'}'` = yes; then
56668 cat >>confdefs.h <<_ACEOF
56669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56670 _ACEOF
56672 else
56673 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56675 done
56679 # Used in libmath/Makefile.am.
56680 if test -n "$LIBMATHOBJS"; then
56681 need_libmath=yes
56686 # Test wchar.h for mbstate_t, which is needed for char_traits and
56687 # others even if wchar_t support is not on.
56688 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56689 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56690 cat >conftest.$ac_ext <<_ACEOF
56691 /* confdefs.h. */
56692 _ACEOF
56693 cat confdefs.h >>conftest.$ac_ext
56694 cat >>conftest.$ac_ext <<_ACEOF
56695 /* end confdefs.h. */
56696 #include <wchar.h>
56698 main ()
56700 mbstate_t teststate;
56702 return 0;
56704 _ACEOF
56705 rm -f conftest.$ac_objext
56706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56707 (eval $ac_compile) 2>conftest.er1
56708 ac_status=$?
56709 grep -v '^ *+' conftest.er1 >conftest.err
56710 rm -f conftest.er1
56711 cat conftest.err >&5
56712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56713 (exit $ac_status); } &&
56714 { ac_try='test -z "$ac_c_werror_flag"
56715 || test ! -s conftest.err'
56716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56717 (eval $ac_try) 2>&5
56718 ac_status=$?
56719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56720 (exit $ac_status); }; } &&
56721 { ac_try='test -s conftest.$ac_objext'
56722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56723 (eval $ac_try) 2>&5
56724 ac_status=$?
56725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56726 (exit $ac_status); }; }; then
56727 have_mbstate_t=yes
56728 else
56729 echo "$as_me: failed program was:" >&5
56730 sed 's/^/| /' conftest.$ac_ext >&5
56732 have_mbstate_t=no
56734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56735 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56736 echo "${ECHO_T}$have_mbstate_t" >&6
56737 if test x"$have_mbstate_t" = xyes; then
56738 cat >>confdefs.h <<\_ACEOF
56739 #define HAVE_MBSTATE_T 1
56740 _ACEOF
56744 # Sanity check for existence of ISO C99 headers for extended encoding.
56746 for ac_header in wchar.h
56748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56750 echo "$as_me:$LINENO: checking for $ac_header" >&5
56751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56753 echo $ECHO_N "(cached) $ECHO_C" >&6
56755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56757 else
56758 # Is the header compilable?
56759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56761 cat >conftest.$ac_ext <<_ACEOF
56762 /* confdefs.h. */
56763 _ACEOF
56764 cat confdefs.h >>conftest.$ac_ext
56765 cat >>conftest.$ac_ext <<_ACEOF
56766 /* end confdefs.h. */
56767 $ac_includes_default
56768 #include <$ac_header>
56769 _ACEOF
56770 rm -f conftest.$ac_objext
56771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56772 (eval $ac_compile) 2>conftest.er1
56773 ac_status=$?
56774 grep -v '^ *+' conftest.er1 >conftest.err
56775 rm -f conftest.er1
56776 cat conftest.err >&5
56777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56778 (exit $ac_status); } &&
56779 { ac_try='test -z "$ac_c_werror_flag"
56780 || test ! -s conftest.err'
56781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56782 (eval $ac_try) 2>&5
56783 ac_status=$?
56784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56785 (exit $ac_status); }; } &&
56786 { ac_try='test -s conftest.$ac_objext'
56787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56788 (eval $ac_try) 2>&5
56789 ac_status=$?
56790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56791 (exit $ac_status); }; }; then
56792 ac_header_compiler=yes
56793 else
56794 echo "$as_me: failed program was:" >&5
56795 sed 's/^/| /' conftest.$ac_ext >&5
56797 ac_header_compiler=no
56799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56801 echo "${ECHO_T}$ac_header_compiler" >&6
56803 # Is the header present?
56804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56806 cat >conftest.$ac_ext <<_ACEOF
56807 /* confdefs.h. */
56808 _ACEOF
56809 cat confdefs.h >>conftest.$ac_ext
56810 cat >>conftest.$ac_ext <<_ACEOF
56811 /* end confdefs.h. */
56812 #include <$ac_header>
56813 _ACEOF
56814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56816 ac_status=$?
56817 grep -v '^ *+' conftest.er1 >conftest.err
56818 rm -f conftest.er1
56819 cat conftest.err >&5
56820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56821 (exit $ac_status); } >/dev/null; then
56822 if test -s conftest.err; then
56823 ac_cpp_err=$ac_c_preproc_warn_flag
56824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56825 else
56826 ac_cpp_err=
56828 else
56829 ac_cpp_err=yes
56831 if test -z "$ac_cpp_err"; then
56832 ac_header_preproc=yes
56833 else
56834 echo "$as_me: failed program was:" >&5
56835 sed 's/^/| /' conftest.$ac_ext >&5
56837 ac_header_preproc=no
56839 rm -f conftest.err conftest.$ac_ext
56840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56841 echo "${ECHO_T}$ac_header_preproc" >&6
56843 # So? What about this header?
56844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56845 yes:no: )
56846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56850 ac_header_preproc=yes
56852 no:yes:* )
56853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56866 cat <<\_ASBOX
56867 ## ----------------------------------------- ##
56868 ## Report this to the package-unused lists. ##
56869 ## ----------------------------------------- ##
56870 _ASBOX
56872 sed "s/^/$as_me: WARNING: /" >&2
56874 esac
56875 echo "$as_me:$LINENO: checking for $ac_header" >&5
56876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56878 echo $ECHO_N "(cached) $ECHO_C" >&6
56879 else
56880 eval "$as_ac_Header=\$ac_header_preproc"
56882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56887 cat >>confdefs.h <<_ACEOF
56888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56889 _ACEOF
56890 ac_has_wchar_h=yes
56891 else
56892 ac_has_wchar_h=no
56895 done
56898 for ac_header in wctype.h
56900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56902 echo "$as_me:$LINENO: checking for $ac_header" >&5
56903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56905 echo $ECHO_N "(cached) $ECHO_C" >&6
56907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56909 else
56910 # Is the header compilable?
56911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56913 cat >conftest.$ac_ext <<_ACEOF
56914 /* confdefs.h. */
56915 _ACEOF
56916 cat confdefs.h >>conftest.$ac_ext
56917 cat >>conftest.$ac_ext <<_ACEOF
56918 /* end confdefs.h. */
56919 $ac_includes_default
56920 #include <$ac_header>
56921 _ACEOF
56922 rm -f conftest.$ac_objext
56923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56924 (eval $ac_compile) 2>conftest.er1
56925 ac_status=$?
56926 grep -v '^ *+' conftest.er1 >conftest.err
56927 rm -f conftest.er1
56928 cat conftest.err >&5
56929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56930 (exit $ac_status); } &&
56931 { ac_try='test -z "$ac_c_werror_flag"
56932 || test ! -s conftest.err'
56933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56934 (eval $ac_try) 2>&5
56935 ac_status=$?
56936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56937 (exit $ac_status); }; } &&
56938 { ac_try='test -s conftest.$ac_objext'
56939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56940 (eval $ac_try) 2>&5
56941 ac_status=$?
56942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56943 (exit $ac_status); }; }; then
56944 ac_header_compiler=yes
56945 else
56946 echo "$as_me: failed program was:" >&5
56947 sed 's/^/| /' conftest.$ac_ext >&5
56949 ac_header_compiler=no
56951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56953 echo "${ECHO_T}$ac_header_compiler" >&6
56955 # Is the header present?
56956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56958 cat >conftest.$ac_ext <<_ACEOF
56959 /* confdefs.h. */
56960 _ACEOF
56961 cat confdefs.h >>conftest.$ac_ext
56962 cat >>conftest.$ac_ext <<_ACEOF
56963 /* end confdefs.h. */
56964 #include <$ac_header>
56965 _ACEOF
56966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56968 ac_status=$?
56969 grep -v '^ *+' conftest.er1 >conftest.err
56970 rm -f conftest.er1
56971 cat conftest.err >&5
56972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56973 (exit $ac_status); } >/dev/null; then
56974 if test -s conftest.err; then
56975 ac_cpp_err=$ac_c_preproc_warn_flag
56976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56977 else
56978 ac_cpp_err=
56980 else
56981 ac_cpp_err=yes
56983 if test -z "$ac_cpp_err"; then
56984 ac_header_preproc=yes
56985 else
56986 echo "$as_me: failed program was:" >&5
56987 sed 's/^/| /' conftest.$ac_ext >&5
56989 ac_header_preproc=no
56991 rm -f conftest.err conftest.$ac_ext
56992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56993 echo "${ECHO_T}$ac_header_preproc" >&6
56995 # So? What about this header?
56996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56997 yes:no: )
56998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57002 ac_header_preproc=yes
57004 no:yes:* )
57005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57018 cat <<\_ASBOX
57019 ## ----------------------------------------- ##
57020 ## Report this to the package-unused lists. ##
57021 ## ----------------------------------------- ##
57022 _ASBOX
57024 sed "s/^/$as_me: WARNING: /" >&2
57026 esac
57027 echo "$as_me:$LINENO: checking for $ac_header" >&5
57028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57030 echo $ECHO_N "(cached) $ECHO_C" >&6
57031 else
57032 eval "$as_ac_Header=\$ac_header_preproc"
57034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57039 cat >>confdefs.h <<_ACEOF
57040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57041 _ACEOF
57042 ac_has_wctype_h=yes
57043 else
57044 ac_has_wctype_h=no
57047 done
57050 # Only continue checking if the ISO C99 headers exist and support is on.
57051 if test x"$ac_has_wchar_h" = xyes &&
57052 test x"$ac_has_wctype_h" = xyes &&
57053 test x"$enable_c_mbchar" != xno; then
57055 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
57056 # numeric_limits can instantiate type_traits<wchar_t>
57057 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
57058 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
57059 cat >conftest.$ac_ext <<_ACEOF
57060 /* confdefs.h. */
57061 _ACEOF
57062 cat confdefs.h >>conftest.$ac_ext
57063 cat >>conftest.$ac_ext <<_ACEOF
57064 /* end confdefs.h. */
57065 #include <wchar.h>
57067 main ()
57069 int i = WCHAR_MIN; int j = WCHAR_MAX;
57071 return 0;
57073 _ACEOF
57074 rm -f conftest.$ac_objext
57075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57076 (eval $ac_compile) 2>conftest.er1
57077 ac_status=$?
57078 grep -v '^ *+' conftest.er1 >conftest.err
57079 rm -f conftest.er1
57080 cat conftest.err >&5
57081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57082 (exit $ac_status); } &&
57083 { ac_try='test -z "$ac_c_werror_flag"
57084 || test ! -s conftest.err'
57085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57086 (eval $ac_try) 2>&5
57087 ac_status=$?
57088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57089 (exit $ac_status); }; } &&
57090 { ac_try='test -s conftest.$ac_objext'
57091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57092 (eval $ac_try) 2>&5
57093 ac_status=$?
57094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57095 (exit $ac_status); }; }; then
57096 has_wchar_minmax=yes
57097 else
57098 echo "$as_me: failed program was:" >&5
57099 sed 's/^/| /' conftest.$ac_ext >&5
57101 has_wchar_minmax=no
57103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57104 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57105 echo "${ECHO_T}$has_wchar_minmax" >&6
57107 # Test wchar.h for WEOF, which is what we use to determine whether
57108 # to specialize for char_traits<wchar_t> or not.
57109 echo "$as_me:$LINENO: checking for WEOF" >&5
57110 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57111 cat >conftest.$ac_ext <<_ACEOF
57112 /* confdefs.h. */
57113 _ACEOF
57114 cat confdefs.h >>conftest.$ac_ext
57115 cat >>conftest.$ac_ext <<_ACEOF
57116 /* end confdefs.h. */
57118 #include <wchar.h>
57119 #include <stddef.h>
57121 main ()
57123 wint_t i = WEOF;
57125 return 0;
57127 _ACEOF
57128 rm -f conftest.$ac_objext
57129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57130 (eval $ac_compile) 2>conftest.er1
57131 ac_status=$?
57132 grep -v '^ *+' conftest.er1 >conftest.err
57133 rm -f conftest.er1
57134 cat conftest.err >&5
57135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57136 (exit $ac_status); } &&
57137 { ac_try='test -z "$ac_c_werror_flag"
57138 || test ! -s conftest.err'
57139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57140 (eval $ac_try) 2>&5
57141 ac_status=$?
57142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57143 (exit $ac_status); }; } &&
57144 { ac_try='test -s conftest.$ac_objext'
57145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57146 (eval $ac_try) 2>&5
57147 ac_status=$?
57148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57149 (exit $ac_status); }; }; then
57150 has_weof=yes
57151 else
57152 echo "$as_me: failed program was:" >&5
57153 sed 's/^/| /' conftest.$ac_ext >&5
57155 has_weof=no
57157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57158 echo "$as_me:$LINENO: result: $has_weof" >&5
57159 echo "${ECHO_T}$has_weof" >&6
57161 # Tests for wide character functions used in char_traits<wchar_t>.
57162 ac_wfuncs=yes
57169 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57172 echo "$as_me:$LINENO: checking for $ac_func" >&5
57173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57174 if eval "test \"\${$as_ac_var+set}\" = set"; then
57175 echo $ECHO_N "(cached) $ECHO_C" >&6
57176 else
57177 if test x$gcc_no_link = xyes; then
57178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57180 { (exit 1); exit 1; }; }
57182 cat >conftest.$ac_ext <<_ACEOF
57183 /* confdefs.h. */
57184 _ACEOF
57185 cat confdefs.h >>conftest.$ac_ext
57186 cat >>conftest.$ac_ext <<_ACEOF
57187 /* end confdefs.h. */
57188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57190 #define $ac_func innocuous_$ac_func
57192 /* System header to define __stub macros and hopefully few prototypes,
57193 which can conflict with char $ac_func (); below.
57194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57195 <limits.h> exists even on freestanding compilers. */
57197 #ifdef __STDC__
57198 # include <limits.h>
57199 #else
57200 # include <assert.h>
57201 #endif
57203 #undef $ac_func
57205 /* Override any gcc2 internal prototype to avoid an error. */
57206 #ifdef __cplusplus
57207 extern "C"
57209 #endif
57210 /* We use char because int might match the return type of a gcc2
57211 builtin and then its argument prototype would still apply. */
57212 char $ac_func ();
57213 /* The GNU C library defines this for functions which it implements
57214 to always fail with ENOSYS. Some functions are actually named
57215 something starting with __ and the normal name is an alias. */
57216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57217 choke me
57218 #else
57219 char (*f) () = $ac_func;
57220 #endif
57221 #ifdef __cplusplus
57223 #endif
57226 main ()
57228 return f != $ac_func;
57230 return 0;
57232 _ACEOF
57233 rm -f conftest.$ac_objext conftest$ac_exeext
57234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57235 (eval $ac_link) 2>conftest.er1
57236 ac_status=$?
57237 grep -v '^ *+' conftest.er1 >conftest.err
57238 rm -f conftest.er1
57239 cat conftest.err >&5
57240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57241 (exit $ac_status); } &&
57242 { ac_try='test -z "$ac_c_werror_flag"
57243 || test ! -s conftest.err'
57244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57245 (eval $ac_try) 2>&5
57246 ac_status=$?
57247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57248 (exit $ac_status); }; } &&
57249 { ac_try='test -s conftest$ac_exeext'
57250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57251 (eval $ac_try) 2>&5
57252 ac_status=$?
57253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57254 (exit $ac_status); }; }; then
57255 eval "$as_ac_var=yes"
57256 else
57257 echo "$as_me: failed program was:" >&5
57258 sed 's/^/| /' conftest.$ac_ext >&5
57260 eval "$as_ac_var=no"
57262 rm -f conftest.err conftest.$ac_objext \
57263 conftest$ac_exeext conftest.$ac_ext
57265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57267 if test `eval echo '${'$as_ac_var'}'` = yes; then
57268 cat >>confdefs.h <<_ACEOF
57269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57270 _ACEOF
57272 else
57273 ac_wfuncs=no
57275 done
57278 # Checks for names injected into std:: by the c_std headers.
57325 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57326 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57327 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57328 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57329 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57330 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57333 echo "$as_me:$LINENO: checking for $ac_func" >&5
57334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57335 if eval "test \"\${$as_ac_var+set}\" = set"; then
57336 echo $ECHO_N "(cached) $ECHO_C" >&6
57337 else
57338 if test x$gcc_no_link = xyes; then
57339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57341 { (exit 1); exit 1; }; }
57343 cat >conftest.$ac_ext <<_ACEOF
57344 /* confdefs.h. */
57345 _ACEOF
57346 cat confdefs.h >>conftest.$ac_ext
57347 cat >>conftest.$ac_ext <<_ACEOF
57348 /* end confdefs.h. */
57349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57351 #define $ac_func innocuous_$ac_func
57353 /* System header to define __stub macros and hopefully few prototypes,
57354 which can conflict with char $ac_func (); below.
57355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57356 <limits.h> exists even on freestanding compilers. */
57358 #ifdef __STDC__
57359 # include <limits.h>
57360 #else
57361 # include <assert.h>
57362 #endif
57364 #undef $ac_func
57366 /* Override any gcc2 internal prototype to avoid an error. */
57367 #ifdef __cplusplus
57368 extern "C"
57370 #endif
57371 /* We use char because int might match the return type of a gcc2
57372 builtin and then its argument prototype would still apply. */
57373 char $ac_func ();
57374 /* The GNU C library defines this for functions which it implements
57375 to always fail with ENOSYS. Some functions are actually named
57376 something starting with __ and the normal name is an alias. */
57377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57378 choke me
57379 #else
57380 char (*f) () = $ac_func;
57381 #endif
57382 #ifdef __cplusplus
57384 #endif
57387 main ()
57389 return f != $ac_func;
57391 return 0;
57393 _ACEOF
57394 rm -f conftest.$ac_objext conftest$ac_exeext
57395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57396 (eval $ac_link) 2>conftest.er1
57397 ac_status=$?
57398 grep -v '^ *+' conftest.er1 >conftest.err
57399 rm -f conftest.er1
57400 cat conftest.err >&5
57401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57402 (exit $ac_status); } &&
57403 { ac_try='test -z "$ac_c_werror_flag"
57404 || test ! -s conftest.err'
57405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57406 (eval $ac_try) 2>&5
57407 ac_status=$?
57408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57409 (exit $ac_status); }; } &&
57410 { ac_try='test -s conftest$ac_exeext'
57411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57412 (eval $ac_try) 2>&5
57413 ac_status=$?
57414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57415 (exit $ac_status); }; }; then
57416 eval "$as_ac_var=yes"
57417 else
57418 echo "$as_me: failed program was:" >&5
57419 sed 's/^/| /' conftest.$ac_ext >&5
57421 eval "$as_ac_var=no"
57423 rm -f conftest.err conftest.$ac_objext \
57424 conftest$ac_exeext conftest.$ac_ext
57426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57428 if test `eval echo '${'$as_ac_var'}'` = yes; then
57429 cat >>confdefs.h <<_ACEOF
57430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57431 _ACEOF
57433 else
57434 ac_wfuncs=no
57436 done
57439 # Checks for wide character functions that are not required
57440 # for basic wchar_t support. Don't disable support if they are missing.
57441 # Injection of these is wrapped with guard macros.
57447 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57450 echo "$as_me:$LINENO: checking for $ac_func" >&5
57451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57452 if eval "test \"\${$as_ac_var+set}\" = set"; then
57453 echo $ECHO_N "(cached) $ECHO_C" >&6
57454 else
57455 if test x$gcc_no_link = xyes; then
57456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57458 { (exit 1); exit 1; }; }
57460 cat >conftest.$ac_ext <<_ACEOF
57461 /* confdefs.h. */
57462 _ACEOF
57463 cat confdefs.h >>conftest.$ac_ext
57464 cat >>conftest.$ac_ext <<_ACEOF
57465 /* end confdefs.h. */
57466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57468 #define $ac_func innocuous_$ac_func
57470 /* System header to define __stub macros and hopefully few prototypes,
57471 which can conflict with char $ac_func (); below.
57472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57473 <limits.h> exists even on freestanding compilers. */
57475 #ifdef __STDC__
57476 # include <limits.h>
57477 #else
57478 # include <assert.h>
57479 #endif
57481 #undef $ac_func
57483 /* Override any gcc2 internal prototype to avoid an error. */
57484 #ifdef __cplusplus
57485 extern "C"
57487 #endif
57488 /* We use char because int might match the return type of a gcc2
57489 builtin and then its argument prototype would still apply. */
57490 char $ac_func ();
57491 /* The GNU C library defines this for functions which it implements
57492 to always fail with ENOSYS. Some functions are actually named
57493 something starting with __ and the normal name is an alias. */
57494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57495 choke me
57496 #else
57497 char (*f) () = $ac_func;
57498 #endif
57499 #ifdef __cplusplus
57501 #endif
57504 main ()
57506 return f != $ac_func;
57508 return 0;
57510 _ACEOF
57511 rm -f conftest.$ac_objext conftest$ac_exeext
57512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57513 (eval $ac_link) 2>conftest.er1
57514 ac_status=$?
57515 grep -v '^ *+' conftest.er1 >conftest.err
57516 rm -f conftest.er1
57517 cat conftest.err >&5
57518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57519 (exit $ac_status); } &&
57520 { ac_try='test -z "$ac_c_werror_flag"
57521 || test ! -s conftest.err'
57522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57523 (eval $ac_try) 2>&5
57524 ac_status=$?
57525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57526 (exit $ac_status); }; } &&
57527 { ac_try='test -s conftest$ac_exeext'
57528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57529 (eval $ac_try) 2>&5
57530 ac_status=$?
57531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57532 (exit $ac_status); }; }; then
57533 eval "$as_ac_var=yes"
57534 else
57535 echo "$as_me: failed program was:" >&5
57536 sed 's/^/| /' conftest.$ac_ext >&5
57538 eval "$as_ac_var=no"
57540 rm -f conftest.err conftest.$ac_objext \
57541 conftest$ac_exeext conftest.$ac_ext
57543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57545 if test `eval echo '${'$as_ac_var'}'` = yes; then
57546 cat >>confdefs.h <<_ACEOF
57547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57548 _ACEOF
57551 done
57554 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57555 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57556 if test x"$has_weof" = xyes &&
57557 test x"$has_wchar_minmax" = xyes &&
57558 test x"$ac_wfuncs" = xyes;
57559 then
57560 ac_isoC99_wchar_t=yes
57561 else
57562 ac_isoC99_wchar_t=no
57564 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57565 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57567 # Use iconv for wchar_t to char conversions. As such, check for
57568 # X/Open Portability Guide, version 2 features (XPG2).
57569 if test "${ac_cv_header_iconv_h+set}" = set; then
57570 echo "$as_me:$LINENO: checking for iconv.h" >&5
57571 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57572 if test "${ac_cv_header_iconv_h+set}" = set; then
57573 echo $ECHO_N "(cached) $ECHO_C" >&6
57575 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57576 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57577 else
57578 # Is the header compilable?
57579 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57580 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57581 cat >conftest.$ac_ext <<_ACEOF
57582 /* confdefs.h. */
57583 _ACEOF
57584 cat confdefs.h >>conftest.$ac_ext
57585 cat >>conftest.$ac_ext <<_ACEOF
57586 /* end confdefs.h. */
57587 $ac_includes_default
57588 #include <iconv.h>
57589 _ACEOF
57590 rm -f conftest.$ac_objext
57591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57592 (eval $ac_compile) 2>conftest.er1
57593 ac_status=$?
57594 grep -v '^ *+' conftest.er1 >conftest.err
57595 rm -f conftest.er1
57596 cat conftest.err >&5
57597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57598 (exit $ac_status); } &&
57599 { ac_try='test -z "$ac_c_werror_flag"
57600 || test ! -s conftest.err'
57601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57602 (eval $ac_try) 2>&5
57603 ac_status=$?
57604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57605 (exit $ac_status); }; } &&
57606 { ac_try='test -s conftest.$ac_objext'
57607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57608 (eval $ac_try) 2>&5
57609 ac_status=$?
57610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57611 (exit $ac_status); }; }; then
57612 ac_header_compiler=yes
57613 else
57614 echo "$as_me: failed program was:" >&5
57615 sed 's/^/| /' conftest.$ac_ext >&5
57617 ac_header_compiler=no
57619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57621 echo "${ECHO_T}$ac_header_compiler" >&6
57623 # Is the header present?
57624 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57625 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57626 cat >conftest.$ac_ext <<_ACEOF
57627 /* confdefs.h. */
57628 _ACEOF
57629 cat confdefs.h >>conftest.$ac_ext
57630 cat >>conftest.$ac_ext <<_ACEOF
57631 /* end confdefs.h. */
57632 #include <iconv.h>
57633 _ACEOF
57634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57636 ac_status=$?
57637 grep -v '^ *+' conftest.er1 >conftest.err
57638 rm -f conftest.er1
57639 cat conftest.err >&5
57640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57641 (exit $ac_status); } >/dev/null; then
57642 if test -s conftest.err; then
57643 ac_cpp_err=$ac_c_preproc_warn_flag
57644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57645 else
57646 ac_cpp_err=
57648 else
57649 ac_cpp_err=yes
57651 if test -z "$ac_cpp_err"; then
57652 ac_header_preproc=yes
57653 else
57654 echo "$as_me: failed program was:" >&5
57655 sed 's/^/| /' conftest.$ac_ext >&5
57657 ac_header_preproc=no
57659 rm -f conftest.err conftest.$ac_ext
57660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57661 echo "${ECHO_T}$ac_header_preproc" >&6
57663 # So? What about this header?
57664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57665 yes:no: )
57666 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57667 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57668 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57669 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57670 ac_header_preproc=yes
57672 no:yes:* )
57673 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57674 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57675 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57676 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57677 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57678 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57679 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
57680 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
57681 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57682 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57683 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57684 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57686 cat <<\_ASBOX
57687 ## ----------------------------------------- ##
57688 ## Report this to the package-unused lists. ##
57689 ## ----------------------------------------- ##
57690 _ASBOX
57692 sed "s/^/$as_me: WARNING: /" >&2
57694 esac
57695 echo "$as_me:$LINENO: checking for iconv.h" >&5
57696 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57697 if test "${ac_cv_header_iconv_h+set}" = set; then
57698 echo $ECHO_N "(cached) $ECHO_C" >&6
57699 else
57700 ac_cv_header_iconv_h=$ac_header_preproc
57702 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57703 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57706 if test $ac_cv_header_iconv_h = yes; then
57707 ac_has_iconv_h=yes
57708 else
57709 ac_has_iconv_h=no
57713 if test "${ac_cv_header_langinfo_h+set}" = set; then
57714 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57715 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57716 if test "${ac_cv_header_langinfo_h+set}" = set; then
57717 echo $ECHO_N "(cached) $ECHO_C" >&6
57719 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57720 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57721 else
57722 # Is the header compilable?
57723 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57724 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57725 cat >conftest.$ac_ext <<_ACEOF
57726 /* confdefs.h. */
57727 _ACEOF
57728 cat confdefs.h >>conftest.$ac_ext
57729 cat >>conftest.$ac_ext <<_ACEOF
57730 /* end confdefs.h. */
57731 $ac_includes_default
57732 #include <langinfo.h>
57733 _ACEOF
57734 rm -f conftest.$ac_objext
57735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57736 (eval $ac_compile) 2>conftest.er1
57737 ac_status=$?
57738 grep -v '^ *+' conftest.er1 >conftest.err
57739 rm -f conftest.er1
57740 cat conftest.err >&5
57741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57742 (exit $ac_status); } &&
57743 { ac_try='test -z "$ac_c_werror_flag"
57744 || test ! -s conftest.err'
57745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57746 (eval $ac_try) 2>&5
57747 ac_status=$?
57748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57749 (exit $ac_status); }; } &&
57750 { ac_try='test -s conftest.$ac_objext'
57751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57752 (eval $ac_try) 2>&5
57753 ac_status=$?
57754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57755 (exit $ac_status); }; }; then
57756 ac_header_compiler=yes
57757 else
57758 echo "$as_me: failed program was:" >&5
57759 sed 's/^/| /' conftest.$ac_ext >&5
57761 ac_header_compiler=no
57763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57765 echo "${ECHO_T}$ac_header_compiler" >&6
57767 # Is the header present?
57768 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57769 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57770 cat >conftest.$ac_ext <<_ACEOF
57771 /* confdefs.h. */
57772 _ACEOF
57773 cat confdefs.h >>conftest.$ac_ext
57774 cat >>conftest.$ac_ext <<_ACEOF
57775 /* end confdefs.h. */
57776 #include <langinfo.h>
57777 _ACEOF
57778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57780 ac_status=$?
57781 grep -v '^ *+' conftest.er1 >conftest.err
57782 rm -f conftest.er1
57783 cat conftest.err >&5
57784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57785 (exit $ac_status); } >/dev/null; then
57786 if test -s conftest.err; then
57787 ac_cpp_err=$ac_c_preproc_warn_flag
57788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57789 else
57790 ac_cpp_err=
57792 else
57793 ac_cpp_err=yes
57795 if test -z "$ac_cpp_err"; then
57796 ac_header_preproc=yes
57797 else
57798 echo "$as_me: failed program was:" >&5
57799 sed 's/^/| /' conftest.$ac_ext >&5
57801 ac_header_preproc=no
57803 rm -f conftest.err conftest.$ac_ext
57804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57805 echo "${ECHO_T}$ac_header_preproc" >&6
57807 # So? What about this header?
57808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57809 yes:no: )
57810 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57811 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57812 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57813 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57814 ac_header_preproc=yes
57816 no:yes:* )
57817 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57818 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57819 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57820 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57821 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57822 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57823 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57824 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57825 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57826 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57827 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57828 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57830 cat <<\_ASBOX
57831 ## ----------------------------------------- ##
57832 ## Report this to the package-unused lists. ##
57833 ## ----------------------------------------- ##
57834 _ASBOX
57836 sed "s/^/$as_me: WARNING: /" >&2
57838 esac
57839 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57840 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57841 if test "${ac_cv_header_langinfo_h+set}" = set; then
57842 echo $ECHO_N "(cached) $ECHO_C" >&6
57843 else
57844 ac_cv_header_langinfo_h=$ac_header_preproc
57846 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57847 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57850 if test $ac_cv_header_langinfo_h = yes; then
57851 ac_has_langinfo_h=yes
57852 else
57853 ac_has_langinfo_h=no
57858 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57859 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57860 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57861 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57862 echo $ECHO_N "(cached) $ECHO_C" >&6
57863 else
57864 ac_check_lib_save_LIBS=$LIBS
57865 LIBS="-liconv $LIBS"
57866 if test x$gcc_no_link = xyes; then
57867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57869 { (exit 1); exit 1; }; }
57871 cat >conftest.$ac_ext <<_ACEOF
57872 /* confdefs.h. */
57873 _ACEOF
57874 cat confdefs.h >>conftest.$ac_ext
57875 cat >>conftest.$ac_ext <<_ACEOF
57876 /* end confdefs.h. */
57878 /* Override any gcc2 internal prototype to avoid an error. */
57879 #ifdef __cplusplus
57880 extern "C"
57881 #endif
57882 /* We use char because int might match the return type of a gcc2
57883 builtin and then its argument prototype would still apply. */
57884 char iconv ();
57886 main ()
57888 iconv ();
57890 return 0;
57892 _ACEOF
57893 rm -f conftest.$ac_objext conftest$ac_exeext
57894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57895 (eval $ac_link) 2>conftest.er1
57896 ac_status=$?
57897 grep -v '^ *+' conftest.er1 >conftest.err
57898 rm -f conftest.er1
57899 cat conftest.err >&5
57900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57901 (exit $ac_status); } &&
57902 { ac_try='test -z "$ac_c_werror_flag"
57903 || test ! -s conftest.err'
57904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57905 (eval $ac_try) 2>&5
57906 ac_status=$?
57907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57908 (exit $ac_status); }; } &&
57909 { ac_try='test -s conftest$ac_exeext'
57910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57911 (eval $ac_try) 2>&5
57912 ac_status=$?
57913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57914 (exit $ac_status); }; }; then
57915 ac_cv_lib_iconv_iconv=yes
57916 else
57917 echo "$as_me: failed program was:" >&5
57918 sed 's/^/| /' conftest.$ac_ext >&5
57920 ac_cv_lib_iconv_iconv=no
57922 rm -f conftest.err conftest.$ac_objext \
57923 conftest$ac_exeext conftest.$ac_ext
57924 LIBS=$ac_check_lib_save_LIBS
57926 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57927 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57928 if test $ac_cv_lib_iconv_iconv = yes; then
57929 LIBICONV="-liconv"
57932 ac_save_LIBS="$LIBS"
57933 LIBS="$LIBS $LIBICONV"
57940 for ac_func in iconv_open iconv_close iconv nl_langinfo
57942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57943 echo "$as_me:$LINENO: checking for $ac_func" >&5
57944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57945 if eval "test \"\${$as_ac_var+set}\" = set"; then
57946 echo $ECHO_N "(cached) $ECHO_C" >&6
57947 else
57948 if test x$gcc_no_link = xyes; then
57949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57951 { (exit 1); exit 1; }; }
57953 cat >conftest.$ac_ext <<_ACEOF
57954 /* confdefs.h. */
57955 _ACEOF
57956 cat confdefs.h >>conftest.$ac_ext
57957 cat >>conftest.$ac_ext <<_ACEOF
57958 /* end confdefs.h. */
57959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57961 #define $ac_func innocuous_$ac_func
57963 /* System header to define __stub macros and hopefully few prototypes,
57964 which can conflict with char $ac_func (); below.
57965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57966 <limits.h> exists even on freestanding compilers. */
57968 #ifdef __STDC__
57969 # include <limits.h>
57970 #else
57971 # include <assert.h>
57972 #endif
57974 #undef $ac_func
57976 /* Override any gcc2 internal prototype to avoid an error. */
57977 #ifdef __cplusplus
57978 extern "C"
57980 #endif
57981 /* We use char because int might match the return type of a gcc2
57982 builtin and then its argument prototype would still apply. */
57983 char $ac_func ();
57984 /* The GNU C library defines this for functions which it implements
57985 to always fail with ENOSYS. Some functions are actually named
57986 something starting with __ and the normal name is an alias. */
57987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57988 choke me
57989 #else
57990 char (*f) () = $ac_func;
57991 #endif
57992 #ifdef __cplusplus
57994 #endif
57997 main ()
57999 return f != $ac_func;
58001 return 0;
58003 _ACEOF
58004 rm -f conftest.$ac_objext conftest$ac_exeext
58005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58006 (eval $ac_link) 2>conftest.er1
58007 ac_status=$?
58008 grep -v '^ *+' conftest.er1 >conftest.err
58009 rm -f conftest.er1
58010 cat conftest.err >&5
58011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58012 (exit $ac_status); } &&
58013 { ac_try='test -z "$ac_c_werror_flag"
58014 || test ! -s conftest.err'
58015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58016 (eval $ac_try) 2>&5
58017 ac_status=$?
58018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58019 (exit $ac_status); }; } &&
58020 { ac_try='test -s conftest$ac_exeext'
58021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58022 (eval $ac_try) 2>&5
58023 ac_status=$?
58024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58025 (exit $ac_status); }; }; then
58026 eval "$as_ac_var=yes"
58027 else
58028 echo "$as_me: failed program was:" >&5
58029 sed 's/^/| /' conftest.$ac_ext >&5
58031 eval "$as_ac_var=no"
58033 rm -f conftest.err conftest.$ac_objext \
58034 conftest$ac_exeext conftest.$ac_ext
58036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58038 if test `eval echo '${'$as_ac_var'}'` = yes; then
58039 cat >>confdefs.h <<_ACEOF
58040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58041 _ACEOF
58042 ac_XPG2funcs=yes
58043 else
58044 ac_XPG2funcs=no
58046 done
58049 LIBS="$ac_save_LIBS"
58051 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
58052 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
58053 if test x"$ac_has_iconv_h" = xyes &&
58054 test x"$ac_has_langinfo_h" = xyes &&
58055 test x"$ac_XPG2funcs" = xyes;
58056 then
58057 ac_XPG2_wchar_t=yes
58058 else
58059 ac_XPG2_wchar_t=no
58061 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
58062 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
58064 # At the moment, only enable wchar_t specializations if all the
58065 # above support is present.
58066 if test x"$ac_isoC99_wchar_t" = xyes &&
58067 test x"$ac_XPG2_wchar_t" = xyes;
58068 then
58069 cat >>confdefs.h <<\_ACEOF
58070 #define _GLIBCXX_USE_WCHAR_T 1
58071 _ACEOF
58073 enable_wchar_t=yes
58076 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58077 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58078 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58079 echo "${ECHO_T}$enable_wchar_t" >&6
58081 cat >>confdefs.h <<\_ACEOF
58082 #define HAVE_COPYSIGN 1
58083 _ACEOF
58085 cat >>confdefs.h <<\_ACEOF
58086 #define HAVE_COPYSIGNF 1
58087 _ACEOF
58089 cat >>confdefs.h <<\_ACEOF
58090 #define HAVE_FREXPF 1
58091 _ACEOF
58093 cat >>confdefs.h <<\_ACEOF
58094 #define HAVE_HYPOT 1
58095 _ACEOF
58097 case "$target" in
58098 *-hpux10*)
58099 cat >>confdefs.h <<\_ACEOF
58100 #define HAVE_FINITE 1
58101 _ACEOF
58103 cat >>confdefs.h <<\_ACEOF
58104 #define HAVE_FINITEF 1
58105 _ACEOF
58107 cat >>confdefs.h <<\_ACEOF
58108 #define HAVE_ISINF 1
58109 _ACEOF
58111 cat >>confdefs.h <<\_ACEOF
58112 #define HAVE_ISINFF 1
58113 _ACEOF
58115 cat >>confdefs.h <<\_ACEOF
58116 #define HAVE_ISNAN 1
58117 _ACEOF
58119 cat >>confdefs.h <<\_ACEOF
58120 #define HAVE_ISNANF 1
58121 _ACEOF
58124 esac
58126 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58142 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58143 machine/endian.h machine/param.h sys/machine.h sys/types.h \
58144 fp.h float.h endian.h inttypes.h locale.h float.h stdint.h
58146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58148 echo "$as_me:$LINENO: checking for $ac_header" >&5
58149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58151 echo $ECHO_N "(cached) $ECHO_C" >&6
58153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58155 else
58156 # Is the header compilable?
58157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58159 cat >conftest.$ac_ext <<_ACEOF
58160 /* confdefs.h. */
58161 _ACEOF
58162 cat confdefs.h >>conftest.$ac_ext
58163 cat >>conftest.$ac_ext <<_ACEOF
58164 /* end confdefs.h. */
58165 $ac_includes_default
58166 #include <$ac_header>
58167 _ACEOF
58168 rm -f conftest.$ac_objext
58169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58170 (eval $ac_compile) 2>conftest.er1
58171 ac_status=$?
58172 grep -v '^ *+' conftest.er1 >conftest.err
58173 rm -f conftest.er1
58174 cat conftest.err >&5
58175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58176 (exit $ac_status); } &&
58177 { ac_try='test -z "$ac_c_werror_flag"
58178 || test ! -s conftest.err'
58179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58180 (eval $ac_try) 2>&5
58181 ac_status=$?
58182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58183 (exit $ac_status); }; } &&
58184 { ac_try='test -s conftest.$ac_objext'
58185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58186 (eval $ac_try) 2>&5
58187 ac_status=$?
58188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58189 (exit $ac_status); }; }; then
58190 ac_header_compiler=yes
58191 else
58192 echo "$as_me: failed program was:" >&5
58193 sed 's/^/| /' conftest.$ac_ext >&5
58195 ac_header_compiler=no
58197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58199 echo "${ECHO_T}$ac_header_compiler" >&6
58201 # Is the header present?
58202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58204 cat >conftest.$ac_ext <<_ACEOF
58205 /* confdefs.h. */
58206 _ACEOF
58207 cat confdefs.h >>conftest.$ac_ext
58208 cat >>conftest.$ac_ext <<_ACEOF
58209 /* end confdefs.h. */
58210 #include <$ac_header>
58211 _ACEOF
58212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58214 ac_status=$?
58215 grep -v '^ *+' conftest.er1 >conftest.err
58216 rm -f conftest.er1
58217 cat conftest.err >&5
58218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58219 (exit $ac_status); } >/dev/null; then
58220 if test -s conftest.err; then
58221 ac_cpp_err=$ac_c_preproc_warn_flag
58222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58223 else
58224 ac_cpp_err=
58226 else
58227 ac_cpp_err=yes
58229 if test -z "$ac_cpp_err"; then
58230 ac_header_preproc=yes
58231 else
58232 echo "$as_me: failed program was:" >&5
58233 sed 's/^/| /' conftest.$ac_ext >&5
58235 ac_header_preproc=no
58237 rm -f conftest.err conftest.$ac_ext
58238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58239 echo "${ECHO_T}$ac_header_preproc" >&6
58241 # So? What about this header?
58242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58243 yes:no: )
58244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58248 ac_header_preproc=yes
58250 no:yes:* )
58251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58264 cat <<\_ASBOX
58265 ## ----------------------------------------- ##
58266 ## Report this to the package-unused lists. ##
58267 ## ----------------------------------------- ##
58268 _ASBOX
58270 sed "s/^/$as_me: WARNING: /" >&2
58272 esac
58273 echo "$as_me:$LINENO: checking for $ac_header" >&5
58274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58276 echo $ECHO_N "(cached) $ECHO_C" >&6
58277 else
58278 eval "$as_ac_Header=\$ac_header_preproc"
58280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58285 cat >>confdefs.h <<_ACEOF
58286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58287 _ACEOF
58291 done
58293 SECTION_FLAGS='-ffunction-sections -fdata-sections'
58296 # If we're not using GNU ld, then there's no point in even trying these
58297 # tests. Check for that first. We should have already tested for gld
58298 # by now (in libtool), but require it now just to be safe...
58299 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58300 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58304 # The name set by libtool depends on the version of libtool. Shame on us
58305 # for depending on an impl detail, but c'est la vie. Older versions used
58306 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58307 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58308 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
58309 # set (hence we're using an older libtool), then set it.
58310 if test x${with_gnu_ld+set} != xset; then
58311 if test x${ac_cv_prog_gnu_ld+set} != xset; then
58312 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
58313 with_gnu_ld=no
58314 else
58315 with_gnu_ld=$ac_cv_prog_gnu_ld
58319 # Start by getting the version number. I think the libtool test already
58320 # does some of this, but throws away the result.
58322 ldver=`$LD --version 2>/dev/null | head -1 | \
58323 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58325 glibcxx_gnu_ld_version=`echo $ldver | \
58326 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58328 # Set --gc-sections.
58329 if test "$with_gnu_ld" = "notbroken"; then
58330 # GNU ld it is! Joy and bunny rabbits!
58332 # All these tests are for C++; save the language and the compiler flags.
58333 # Need to do this so that g++ won't try to link in libstdc++
58334 ac_test_CFLAGS="${CFLAGS+set}"
58335 ac_save_CFLAGS="$CFLAGS"
58336 CFLAGS='-x c++ -Wl,--gc-sections'
58338 # Check for -Wl,--gc-sections
58339 # XXX This test is broken at the moment, as symbols required for linking
58340 # are now in libsupc++ (not built yet). In addition, this test has
58341 # cored on solaris in the past. In addition, --gc-sections doesn't
58342 # really work at the moment (keeps on discarding used sections, first
58343 # .eh_frame and now some of the glibc sections for iconv).
58344 # Bzzzzt. Thanks for playing, maybe next time.
58345 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58346 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58347 if test "$cross_compiling" = yes; then
58348 ac_sectionLDflags=yes
58349 else
58350 cat >conftest.$ac_ext <<_ACEOF
58351 /* confdefs.h. */
58352 _ACEOF
58353 cat confdefs.h >>conftest.$ac_ext
58354 cat >>conftest.$ac_ext <<_ACEOF
58355 /* end confdefs.h. */
58357 int main(void)
58359 try { throw 1; }
58360 catch (...) { };
58361 return 0;
58364 _ACEOF
58365 rm -f conftest$ac_exeext
58366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58367 (eval $ac_link) 2>&5
58368 ac_status=$?
58369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58372 (eval $ac_try) 2>&5
58373 ac_status=$?
58374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58375 (exit $ac_status); }; }; then
58376 ac_sectionLDflags=yes
58377 else
58378 echo "$as_me: program exited with status $ac_status" >&5
58379 echo "$as_me: failed program was:" >&5
58380 sed 's/^/| /' conftest.$ac_ext >&5
58382 ( exit $ac_status )
58383 ac_sectionLDflags=no
58385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58387 if test "$ac_test_CFLAGS" = set; then
58388 CFLAGS="$ac_save_CFLAGS"
58389 else
58390 # this is the suspicious part
58391 CFLAGS=''
58393 if test "$ac_sectionLDflags" = "yes"; then
58394 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58396 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58397 echo "${ECHO_T}$ac_sectionLDflags" >&6
58400 # Set linker optimization flags.
58401 if test x"$with_gnu_ld" = x"yes"; then
58402 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58410 echo "$as_me:$LINENO: checking for main in -lm" >&5
58411 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58412 if test "${ac_cv_lib_m_main+set}" = set; then
58413 echo $ECHO_N "(cached) $ECHO_C" >&6
58414 else
58415 ac_check_lib_save_LIBS=$LIBS
58416 LIBS="-lm $LIBS"
58417 if test x$gcc_no_link = xyes; then
58418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58420 { (exit 1); exit 1; }; }
58422 cat >conftest.$ac_ext <<_ACEOF
58423 /* confdefs.h. */
58424 _ACEOF
58425 cat confdefs.h >>conftest.$ac_ext
58426 cat >>conftest.$ac_ext <<_ACEOF
58427 /* end confdefs.h. */
58431 main ()
58433 main ();
58435 return 0;
58437 _ACEOF
58438 rm -f conftest.$ac_objext conftest$ac_exeext
58439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58440 (eval $ac_link) 2>conftest.er1
58441 ac_status=$?
58442 grep -v '^ *+' conftest.er1 >conftest.err
58443 rm -f conftest.er1
58444 cat conftest.err >&5
58445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58446 (exit $ac_status); } &&
58447 { ac_try='test -z "$ac_c_werror_flag"
58448 || test ! -s conftest.err'
58449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58450 (eval $ac_try) 2>&5
58451 ac_status=$?
58452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58453 (exit $ac_status); }; } &&
58454 { ac_try='test -s conftest$ac_exeext'
58455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58456 (eval $ac_try) 2>&5
58457 ac_status=$?
58458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58459 (exit $ac_status); }; }; then
58460 ac_cv_lib_m_main=yes
58461 else
58462 echo "$as_me: failed program was:" >&5
58463 sed 's/^/| /' conftest.$ac_ext >&5
58465 ac_cv_lib_m_main=no
58467 rm -f conftest.err conftest.$ac_objext \
58468 conftest$ac_exeext conftest.$ac_ext
58469 LIBS=$ac_check_lib_save_LIBS
58471 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58472 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58473 if test $ac_cv_lib_m_main = yes; then
58474 cat >>confdefs.h <<_ACEOF
58475 #define HAVE_LIBM 1
58476 _ACEOF
58478 LIBS="-lm $LIBS"
58483 for ac_func in copysignf
58485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58486 echo "$as_me:$LINENO: checking for $ac_func" >&5
58487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58488 if eval "test \"\${$as_ac_var+set}\" = set"; then
58489 echo $ECHO_N "(cached) $ECHO_C" >&6
58490 else
58491 if test x$gcc_no_link = xyes; then
58492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58494 { (exit 1); exit 1; }; }
58496 cat >conftest.$ac_ext <<_ACEOF
58497 /* confdefs.h. */
58498 _ACEOF
58499 cat confdefs.h >>conftest.$ac_ext
58500 cat >>conftest.$ac_ext <<_ACEOF
58501 /* end confdefs.h. */
58502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58504 #define $ac_func innocuous_$ac_func
58506 /* System header to define __stub macros and hopefully few prototypes,
58507 which can conflict with char $ac_func (); below.
58508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58509 <limits.h> exists even on freestanding compilers. */
58511 #ifdef __STDC__
58512 # include <limits.h>
58513 #else
58514 # include <assert.h>
58515 #endif
58517 #undef $ac_func
58519 /* Override any gcc2 internal prototype to avoid an error. */
58520 #ifdef __cplusplus
58521 extern "C"
58523 #endif
58524 /* We use char because int might match the return type of a gcc2
58525 builtin and then its argument prototype would still apply. */
58526 char $ac_func ();
58527 /* The GNU C library defines this for functions which it implements
58528 to always fail with ENOSYS. Some functions are actually named
58529 something starting with __ and the normal name is an alias. */
58530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58531 choke me
58532 #else
58533 char (*f) () = $ac_func;
58534 #endif
58535 #ifdef __cplusplus
58537 #endif
58540 main ()
58542 return f != $ac_func;
58544 return 0;
58546 _ACEOF
58547 rm -f conftest.$ac_objext conftest$ac_exeext
58548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58549 (eval $ac_link) 2>conftest.er1
58550 ac_status=$?
58551 grep -v '^ *+' conftest.er1 >conftest.err
58552 rm -f conftest.er1
58553 cat conftest.err >&5
58554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58555 (exit $ac_status); } &&
58556 { ac_try='test -z "$ac_c_werror_flag"
58557 || test ! -s conftest.err'
58558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58559 (eval $ac_try) 2>&5
58560 ac_status=$?
58561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58562 (exit $ac_status); }; } &&
58563 { ac_try='test -s conftest$ac_exeext'
58564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58565 (eval $ac_try) 2>&5
58566 ac_status=$?
58567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58568 (exit $ac_status); }; }; then
58569 eval "$as_ac_var=yes"
58570 else
58571 echo "$as_me: failed program was:" >&5
58572 sed 's/^/| /' conftest.$ac_ext >&5
58574 eval "$as_ac_var=no"
58576 rm -f conftest.err conftest.$ac_objext \
58577 conftest$ac_exeext conftest.$ac_ext
58579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58581 if test `eval echo '${'$as_ac_var'}'` = yes; then
58582 cat >>confdefs.h <<_ACEOF
58583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58584 _ACEOF
58586 else
58587 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58589 done
58593 for ac_func in __signbit
58595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58596 echo "$as_me:$LINENO: checking for $ac_func" >&5
58597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58598 if eval "test \"\${$as_ac_var+set}\" = set"; then
58599 echo $ECHO_N "(cached) $ECHO_C" >&6
58600 else
58601 if test x$gcc_no_link = xyes; then
58602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58604 { (exit 1); exit 1; }; }
58606 cat >conftest.$ac_ext <<_ACEOF
58607 /* confdefs.h. */
58608 _ACEOF
58609 cat confdefs.h >>conftest.$ac_ext
58610 cat >>conftest.$ac_ext <<_ACEOF
58611 /* end confdefs.h. */
58612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58614 #define $ac_func innocuous_$ac_func
58616 /* System header to define __stub macros and hopefully few prototypes,
58617 which can conflict with char $ac_func (); below.
58618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58619 <limits.h> exists even on freestanding compilers. */
58621 #ifdef __STDC__
58622 # include <limits.h>
58623 #else
58624 # include <assert.h>
58625 #endif
58627 #undef $ac_func
58629 /* Override any gcc2 internal prototype to avoid an error. */
58630 #ifdef __cplusplus
58631 extern "C"
58633 #endif
58634 /* We use char because int might match the return type of a gcc2
58635 builtin and then its argument prototype would still apply. */
58636 char $ac_func ();
58637 /* The GNU C library defines this for functions which it implements
58638 to always fail with ENOSYS. Some functions are actually named
58639 something starting with __ and the normal name is an alias. */
58640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58641 choke me
58642 #else
58643 char (*f) () = $ac_func;
58644 #endif
58645 #ifdef __cplusplus
58647 #endif
58650 main ()
58652 return f != $ac_func;
58654 return 0;
58656 _ACEOF
58657 rm -f conftest.$ac_objext conftest$ac_exeext
58658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58659 (eval $ac_link) 2>conftest.er1
58660 ac_status=$?
58661 grep -v '^ *+' conftest.er1 >conftest.err
58662 rm -f conftest.er1
58663 cat conftest.err >&5
58664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58665 (exit $ac_status); } &&
58666 { ac_try='test -z "$ac_c_werror_flag"
58667 || test ! -s conftest.err'
58668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58669 (eval $ac_try) 2>&5
58670 ac_status=$?
58671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58672 (exit $ac_status); }; } &&
58673 { ac_try='test -s conftest$ac_exeext'
58674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58675 (eval $ac_try) 2>&5
58676 ac_status=$?
58677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58678 (exit $ac_status); }; }; then
58679 eval "$as_ac_var=yes"
58680 else
58681 echo "$as_me: failed program was:" >&5
58682 sed 's/^/| /' conftest.$ac_ext >&5
58684 eval "$as_ac_var=no"
58686 rm -f conftest.err conftest.$ac_objext \
58687 conftest$ac_exeext conftest.$ac_ext
58689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58691 if test `eval echo '${'$as_ac_var'}'` = yes; then
58692 cat >>confdefs.h <<_ACEOF
58693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58694 _ACEOF
58696 else
58697 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58699 done
58703 for ac_func in __signbitf
58705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58706 echo "$as_me:$LINENO: checking for $ac_func" >&5
58707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58708 if eval "test \"\${$as_ac_var+set}\" = set"; then
58709 echo $ECHO_N "(cached) $ECHO_C" >&6
58710 else
58711 if test x$gcc_no_link = xyes; then
58712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58714 { (exit 1); exit 1; }; }
58716 cat >conftest.$ac_ext <<_ACEOF
58717 /* confdefs.h. */
58718 _ACEOF
58719 cat confdefs.h >>conftest.$ac_ext
58720 cat >>conftest.$ac_ext <<_ACEOF
58721 /* end confdefs.h. */
58722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58724 #define $ac_func innocuous_$ac_func
58726 /* System header to define __stub macros and hopefully few prototypes,
58727 which can conflict with char $ac_func (); below.
58728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58729 <limits.h> exists even on freestanding compilers. */
58731 #ifdef __STDC__
58732 # include <limits.h>
58733 #else
58734 # include <assert.h>
58735 #endif
58737 #undef $ac_func
58739 /* Override any gcc2 internal prototype to avoid an error. */
58740 #ifdef __cplusplus
58741 extern "C"
58743 #endif
58744 /* We use char because int might match the return type of a gcc2
58745 builtin and then its argument prototype would still apply. */
58746 char $ac_func ();
58747 /* The GNU C library defines this for functions which it implements
58748 to always fail with ENOSYS. Some functions are actually named
58749 something starting with __ and the normal name is an alias. */
58750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58751 choke me
58752 #else
58753 char (*f) () = $ac_func;
58754 #endif
58755 #ifdef __cplusplus
58757 #endif
58760 main ()
58762 return f != $ac_func;
58764 return 0;
58766 _ACEOF
58767 rm -f conftest.$ac_objext conftest$ac_exeext
58768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58769 (eval $ac_link) 2>conftest.er1
58770 ac_status=$?
58771 grep -v '^ *+' conftest.er1 >conftest.err
58772 rm -f conftest.er1
58773 cat conftest.err >&5
58774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58775 (exit $ac_status); } &&
58776 { ac_try='test -z "$ac_c_werror_flag"
58777 || test ! -s conftest.err'
58778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58779 (eval $ac_try) 2>&5
58780 ac_status=$?
58781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58782 (exit $ac_status); }; } &&
58783 { ac_try='test -s conftest$ac_exeext'
58784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58785 (eval $ac_try) 2>&5
58786 ac_status=$?
58787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58788 (exit $ac_status); }; }; then
58789 eval "$as_ac_var=yes"
58790 else
58791 echo "$as_me: failed program was:" >&5
58792 sed 's/^/| /' conftest.$ac_ext >&5
58794 eval "$as_ac_var=no"
58796 rm -f conftest.err conftest.$ac_objext \
58797 conftest$ac_exeext conftest.$ac_ext
58799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58801 if test `eval echo '${'$as_ac_var'}'` = yes; then
58802 cat >>confdefs.h <<_ACEOF
58803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58804 _ACEOF
58806 else
58807 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58809 done
58812 if test x$ac_cv_func_copysignl = x"yes"; then
58814 for ac_func in __signbitl
58816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58817 echo "$as_me:$LINENO: checking for $ac_func" >&5
58818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58819 if eval "test \"\${$as_ac_var+set}\" = set"; then
58820 echo $ECHO_N "(cached) $ECHO_C" >&6
58821 else
58822 if test x$gcc_no_link = xyes; then
58823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58825 { (exit 1); exit 1; }; }
58827 cat >conftest.$ac_ext <<_ACEOF
58828 /* confdefs.h. */
58829 _ACEOF
58830 cat confdefs.h >>conftest.$ac_ext
58831 cat >>conftest.$ac_ext <<_ACEOF
58832 /* end confdefs.h. */
58833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58835 #define $ac_func innocuous_$ac_func
58837 /* System header to define __stub macros and hopefully few prototypes,
58838 which can conflict with char $ac_func (); below.
58839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58840 <limits.h> exists even on freestanding compilers. */
58842 #ifdef __STDC__
58843 # include <limits.h>
58844 #else
58845 # include <assert.h>
58846 #endif
58848 #undef $ac_func
58850 /* Override any gcc2 internal prototype to avoid an error. */
58851 #ifdef __cplusplus
58852 extern "C"
58854 #endif
58855 /* We use char because int might match the return type of a gcc2
58856 builtin and then its argument prototype would still apply. */
58857 char $ac_func ();
58858 /* The GNU C library defines this for functions which it implements
58859 to always fail with ENOSYS. Some functions are actually named
58860 something starting with __ and the normal name is an alias. */
58861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58862 choke me
58863 #else
58864 char (*f) () = $ac_func;
58865 #endif
58866 #ifdef __cplusplus
58868 #endif
58871 main ()
58873 return f != $ac_func;
58875 return 0;
58877 _ACEOF
58878 rm -f conftest.$ac_objext conftest$ac_exeext
58879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58880 (eval $ac_link) 2>conftest.er1
58881 ac_status=$?
58882 grep -v '^ *+' conftest.er1 >conftest.err
58883 rm -f conftest.er1
58884 cat conftest.err >&5
58885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58886 (exit $ac_status); } &&
58887 { ac_try='test -z "$ac_c_werror_flag"
58888 || test ! -s conftest.err'
58889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58890 (eval $ac_try) 2>&5
58891 ac_status=$?
58892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58893 (exit $ac_status); }; } &&
58894 { ac_try='test -s conftest$ac_exeext'
58895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58896 (eval $ac_try) 2>&5
58897 ac_status=$?
58898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58899 (exit $ac_status); }; }; then
58900 eval "$as_ac_var=yes"
58901 else
58902 echo "$as_me: failed program was:" >&5
58903 sed 's/^/| /' conftest.$ac_ext >&5
58905 eval "$as_ac_var=no"
58907 rm -f conftest.err conftest.$ac_objext \
58908 conftest$ac_exeext conftest.$ac_ext
58910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58912 if test `eval echo '${'$as_ac_var'}'` = yes; then
58913 cat >>confdefs.h <<_ACEOF
58914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58915 _ACEOF
58917 else
58918 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58920 done
58924 # Used in libmath/Makefile.am.
58925 if test -n "$LIBMATHOBJS"; then
58926 need_libmath=yes
58931 # Test wchar.h for mbstate_t, which is needed for char_traits and
58932 # others even if wchar_t support is not on.
58933 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58934 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58935 cat >conftest.$ac_ext <<_ACEOF
58936 /* confdefs.h. */
58937 _ACEOF
58938 cat confdefs.h >>conftest.$ac_ext
58939 cat >>conftest.$ac_ext <<_ACEOF
58940 /* end confdefs.h. */
58941 #include <wchar.h>
58943 main ()
58945 mbstate_t teststate;
58947 return 0;
58949 _ACEOF
58950 rm -f conftest.$ac_objext
58951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58952 (eval $ac_compile) 2>conftest.er1
58953 ac_status=$?
58954 grep -v '^ *+' conftest.er1 >conftest.err
58955 rm -f conftest.er1
58956 cat conftest.err >&5
58957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58958 (exit $ac_status); } &&
58959 { ac_try='test -z "$ac_c_werror_flag"
58960 || test ! -s conftest.err'
58961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58962 (eval $ac_try) 2>&5
58963 ac_status=$?
58964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58965 (exit $ac_status); }; } &&
58966 { ac_try='test -s conftest.$ac_objext'
58967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58968 (eval $ac_try) 2>&5
58969 ac_status=$?
58970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58971 (exit $ac_status); }; }; then
58972 have_mbstate_t=yes
58973 else
58974 echo "$as_me: failed program was:" >&5
58975 sed 's/^/| /' conftest.$ac_ext >&5
58977 have_mbstate_t=no
58979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58980 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58981 echo "${ECHO_T}$have_mbstate_t" >&6
58982 if test x"$have_mbstate_t" = xyes; then
58983 cat >>confdefs.h <<\_ACEOF
58984 #define HAVE_MBSTATE_T 1
58985 _ACEOF
58989 # Sanity check for existence of ISO C99 headers for extended encoding.
58991 for ac_header in wchar.h
58993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58995 echo "$as_me:$LINENO: checking for $ac_header" >&5
58996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58998 echo $ECHO_N "(cached) $ECHO_C" >&6
59000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59002 else
59003 # Is the header compilable?
59004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59006 cat >conftest.$ac_ext <<_ACEOF
59007 /* confdefs.h. */
59008 _ACEOF
59009 cat confdefs.h >>conftest.$ac_ext
59010 cat >>conftest.$ac_ext <<_ACEOF
59011 /* end confdefs.h. */
59012 $ac_includes_default
59013 #include <$ac_header>
59014 _ACEOF
59015 rm -f conftest.$ac_objext
59016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59017 (eval $ac_compile) 2>conftest.er1
59018 ac_status=$?
59019 grep -v '^ *+' conftest.er1 >conftest.err
59020 rm -f conftest.er1
59021 cat conftest.err >&5
59022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59023 (exit $ac_status); } &&
59024 { ac_try='test -z "$ac_c_werror_flag"
59025 || test ! -s conftest.err'
59026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59027 (eval $ac_try) 2>&5
59028 ac_status=$?
59029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59030 (exit $ac_status); }; } &&
59031 { ac_try='test -s conftest.$ac_objext'
59032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59033 (eval $ac_try) 2>&5
59034 ac_status=$?
59035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59036 (exit $ac_status); }; }; then
59037 ac_header_compiler=yes
59038 else
59039 echo "$as_me: failed program was:" >&5
59040 sed 's/^/| /' conftest.$ac_ext >&5
59042 ac_header_compiler=no
59044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59046 echo "${ECHO_T}$ac_header_compiler" >&6
59048 # Is the header present?
59049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59051 cat >conftest.$ac_ext <<_ACEOF
59052 /* confdefs.h. */
59053 _ACEOF
59054 cat confdefs.h >>conftest.$ac_ext
59055 cat >>conftest.$ac_ext <<_ACEOF
59056 /* end confdefs.h. */
59057 #include <$ac_header>
59058 _ACEOF
59059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59061 ac_status=$?
59062 grep -v '^ *+' conftest.er1 >conftest.err
59063 rm -f conftest.er1
59064 cat conftest.err >&5
59065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59066 (exit $ac_status); } >/dev/null; then
59067 if test -s conftest.err; then
59068 ac_cpp_err=$ac_c_preproc_warn_flag
59069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59070 else
59071 ac_cpp_err=
59073 else
59074 ac_cpp_err=yes
59076 if test -z "$ac_cpp_err"; then
59077 ac_header_preproc=yes
59078 else
59079 echo "$as_me: failed program was:" >&5
59080 sed 's/^/| /' conftest.$ac_ext >&5
59082 ac_header_preproc=no
59084 rm -f conftest.err conftest.$ac_ext
59085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59086 echo "${ECHO_T}$ac_header_preproc" >&6
59088 # So? What about this header?
59089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59090 yes:no: )
59091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59095 ac_header_preproc=yes
59097 no:yes:* )
59098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59111 cat <<\_ASBOX
59112 ## ----------------------------------------- ##
59113 ## Report this to the package-unused lists. ##
59114 ## ----------------------------------------- ##
59115 _ASBOX
59117 sed "s/^/$as_me: WARNING: /" >&2
59119 esac
59120 echo "$as_me:$LINENO: checking for $ac_header" >&5
59121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59123 echo $ECHO_N "(cached) $ECHO_C" >&6
59124 else
59125 eval "$as_ac_Header=\$ac_header_preproc"
59127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59132 cat >>confdefs.h <<_ACEOF
59133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59134 _ACEOF
59135 ac_has_wchar_h=yes
59136 else
59137 ac_has_wchar_h=no
59140 done
59143 for ac_header in wctype.h
59145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59147 echo "$as_me:$LINENO: checking for $ac_header" >&5
59148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59150 echo $ECHO_N "(cached) $ECHO_C" >&6
59152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59154 else
59155 # Is the header compilable?
59156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59158 cat >conftest.$ac_ext <<_ACEOF
59159 /* confdefs.h. */
59160 _ACEOF
59161 cat confdefs.h >>conftest.$ac_ext
59162 cat >>conftest.$ac_ext <<_ACEOF
59163 /* end confdefs.h. */
59164 $ac_includes_default
59165 #include <$ac_header>
59166 _ACEOF
59167 rm -f conftest.$ac_objext
59168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59169 (eval $ac_compile) 2>conftest.er1
59170 ac_status=$?
59171 grep -v '^ *+' conftest.er1 >conftest.err
59172 rm -f conftest.er1
59173 cat conftest.err >&5
59174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59175 (exit $ac_status); } &&
59176 { ac_try='test -z "$ac_c_werror_flag"
59177 || test ! -s conftest.err'
59178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59179 (eval $ac_try) 2>&5
59180 ac_status=$?
59181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59182 (exit $ac_status); }; } &&
59183 { ac_try='test -s conftest.$ac_objext'
59184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59185 (eval $ac_try) 2>&5
59186 ac_status=$?
59187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59188 (exit $ac_status); }; }; then
59189 ac_header_compiler=yes
59190 else
59191 echo "$as_me: failed program was:" >&5
59192 sed 's/^/| /' conftest.$ac_ext >&5
59194 ac_header_compiler=no
59196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59198 echo "${ECHO_T}$ac_header_compiler" >&6
59200 # Is the header present?
59201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59203 cat >conftest.$ac_ext <<_ACEOF
59204 /* confdefs.h. */
59205 _ACEOF
59206 cat confdefs.h >>conftest.$ac_ext
59207 cat >>conftest.$ac_ext <<_ACEOF
59208 /* end confdefs.h. */
59209 #include <$ac_header>
59210 _ACEOF
59211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59213 ac_status=$?
59214 grep -v '^ *+' conftest.er1 >conftest.err
59215 rm -f conftest.er1
59216 cat conftest.err >&5
59217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59218 (exit $ac_status); } >/dev/null; then
59219 if test -s conftest.err; then
59220 ac_cpp_err=$ac_c_preproc_warn_flag
59221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59222 else
59223 ac_cpp_err=
59225 else
59226 ac_cpp_err=yes
59228 if test -z "$ac_cpp_err"; then
59229 ac_header_preproc=yes
59230 else
59231 echo "$as_me: failed program was:" >&5
59232 sed 's/^/| /' conftest.$ac_ext >&5
59234 ac_header_preproc=no
59236 rm -f conftest.err conftest.$ac_ext
59237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59238 echo "${ECHO_T}$ac_header_preproc" >&6
59240 # So? What about this header?
59241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59242 yes:no: )
59243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59247 ac_header_preproc=yes
59249 no:yes:* )
59250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59263 cat <<\_ASBOX
59264 ## ----------------------------------------- ##
59265 ## Report this to the package-unused lists. ##
59266 ## ----------------------------------------- ##
59267 _ASBOX
59269 sed "s/^/$as_me: WARNING: /" >&2
59271 esac
59272 echo "$as_me:$LINENO: checking for $ac_header" >&5
59273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59275 echo $ECHO_N "(cached) $ECHO_C" >&6
59276 else
59277 eval "$as_ac_Header=\$ac_header_preproc"
59279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59284 cat >>confdefs.h <<_ACEOF
59285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59286 _ACEOF
59287 ac_has_wctype_h=yes
59288 else
59289 ac_has_wctype_h=no
59292 done
59295 # Only continue checking if the ISO C99 headers exist and support is on.
59296 if test x"$ac_has_wchar_h" = xyes &&
59297 test x"$ac_has_wctype_h" = xyes &&
59298 test x"$enable_c_mbchar" != xno; then
59300 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59301 # numeric_limits can instantiate type_traits<wchar_t>
59302 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59303 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59304 cat >conftest.$ac_ext <<_ACEOF
59305 /* confdefs.h. */
59306 _ACEOF
59307 cat confdefs.h >>conftest.$ac_ext
59308 cat >>conftest.$ac_ext <<_ACEOF
59309 /* end confdefs.h. */
59310 #include <wchar.h>
59312 main ()
59314 int i = WCHAR_MIN; int j = WCHAR_MAX;
59316 return 0;
59318 _ACEOF
59319 rm -f conftest.$ac_objext
59320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59321 (eval $ac_compile) 2>conftest.er1
59322 ac_status=$?
59323 grep -v '^ *+' conftest.er1 >conftest.err
59324 rm -f conftest.er1
59325 cat conftest.err >&5
59326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59327 (exit $ac_status); } &&
59328 { ac_try='test -z "$ac_c_werror_flag"
59329 || test ! -s conftest.err'
59330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59331 (eval $ac_try) 2>&5
59332 ac_status=$?
59333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59334 (exit $ac_status); }; } &&
59335 { ac_try='test -s conftest.$ac_objext'
59336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59337 (eval $ac_try) 2>&5
59338 ac_status=$?
59339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59340 (exit $ac_status); }; }; then
59341 has_wchar_minmax=yes
59342 else
59343 echo "$as_me: failed program was:" >&5
59344 sed 's/^/| /' conftest.$ac_ext >&5
59346 has_wchar_minmax=no
59348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59349 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59350 echo "${ECHO_T}$has_wchar_minmax" >&6
59352 # Test wchar.h for WEOF, which is what we use to determine whether
59353 # to specialize for char_traits<wchar_t> or not.
59354 echo "$as_me:$LINENO: checking for WEOF" >&5
59355 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59356 cat >conftest.$ac_ext <<_ACEOF
59357 /* confdefs.h. */
59358 _ACEOF
59359 cat confdefs.h >>conftest.$ac_ext
59360 cat >>conftest.$ac_ext <<_ACEOF
59361 /* end confdefs.h. */
59363 #include <wchar.h>
59364 #include <stddef.h>
59366 main ()
59368 wint_t i = WEOF;
59370 return 0;
59372 _ACEOF
59373 rm -f conftest.$ac_objext
59374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59375 (eval $ac_compile) 2>conftest.er1
59376 ac_status=$?
59377 grep -v '^ *+' conftest.er1 >conftest.err
59378 rm -f conftest.er1
59379 cat conftest.err >&5
59380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59381 (exit $ac_status); } &&
59382 { ac_try='test -z "$ac_c_werror_flag"
59383 || test ! -s conftest.err'
59384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59385 (eval $ac_try) 2>&5
59386 ac_status=$?
59387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59388 (exit $ac_status); }; } &&
59389 { ac_try='test -s conftest.$ac_objext'
59390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59391 (eval $ac_try) 2>&5
59392 ac_status=$?
59393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59394 (exit $ac_status); }; }; then
59395 has_weof=yes
59396 else
59397 echo "$as_me: failed program was:" >&5
59398 sed 's/^/| /' conftest.$ac_ext >&5
59400 has_weof=no
59402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59403 echo "$as_me:$LINENO: result: $has_weof" >&5
59404 echo "${ECHO_T}$has_weof" >&6
59406 # Tests for wide character functions used in char_traits<wchar_t>.
59407 ac_wfuncs=yes
59414 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59417 echo "$as_me:$LINENO: checking for $ac_func" >&5
59418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59419 if eval "test \"\${$as_ac_var+set}\" = set"; then
59420 echo $ECHO_N "(cached) $ECHO_C" >&6
59421 else
59422 if test x$gcc_no_link = xyes; then
59423 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59425 { (exit 1); exit 1; }; }
59427 cat >conftest.$ac_ext <<_ACEOF
59428 /* confdefs.h. */
59429 _ACEOF
59430 cat confdefs.h >>conftest.$ac_ext
59431 cat >>conftest.$ac_ext <<_ACEOF
59432 /* end confdefs.h. */
59433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59435 #define $ac_func innocuous_$ac_func
59437 /* System header to define __stub macros and hopefully few prototypes,
59438 which can conflict with char $ac_func (); below.
59439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59440 <limits.h> exists even on freestanding compilers. */
59442 #ifdef __STDC__
59443 # include <limits.h>
59444 #else
59445 # include <assert.h>
59446 #endif
59448 #undef $ac_func
59450 /* Override any gcc2 internal prototype to avoid an error. */
59451 #ifdef __cplusplus
59452 extern "C"
59454 #endif
59455 /* We use char because int might match the return type of a gcc2
59456 builtin and then its argument prototype would still apply. */
59457 char $ac_func ();
59458 /* The GNU C library defines this for functions which it implements
59459 to always fail with ENOSYS. Some functions are actually named
59460 something starting with __ and the normal name is an alias. */
59461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59462 choke me
59463 #else
59464 char (*f) () = $ac_func;
59465 #endif
59466 #ifdef __cplusplus
59468 #endif
59471 main ()
59473 return f != $ac_func;
59475 return 0;
59477 _ACEOF
59478 rm -f conftest.$ac_objext conftest$ac_exeext
59479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59480 (eval $ac_link) 2>conftest.er1
59481 ac_status=$?
59482 grep -v '^ *+' conftest.er1 >conftest.err
59483 rm -f conftest.er1
59484 cat conftest.err >&5
59485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59486 (exit $ac_status); } &&
59487 { ac_try='test -z "$ac_c_werror_flag"
59488 || test ! -s conftest.err'
59489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59490 (eval $ac_try) 2>&5
59491 ac_status=$?
59492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59493 (exit $ac_status); }; } &&
59494 { ac_try='test -s conftest$ac_exeext'
59495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59496 (eval $ac_try) 2>&5
59497 ac_status=$?
59498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59499 (exit $ac_status); }; }; then
59500 eval "$as_ac_var=yes"
59501 else
59502 echo "$as_me: failed program was:" >&5
59503 sed 's/^/| /' conftest.$ac_ext >&5
59505 eval "$as_ac_var=no"
59507 rm -f conftest.err conftest.$ac_objext \
59508 conftest$ac_exeext conftest.$ac_ext
59510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59512 if test `eval echo '${'$as_ac_var'}'` = yes; then
59513 cat >>confdefs.h <<_ACEOF
59514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59515 _ACEOF
59517 else
59518 ac_wfuncs=no
59520 done
59523 # Checks for names injected into std:: by the c_std headers.
59570 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59571 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59572 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59573 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59574 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59575 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59578 echo "$as_me:$LINENO: checking for $ac_func" >&5
59579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59580 if eval "test \"\${$as_ac_var+set}\" = set"; then
59581 echo $ECHO_N "(cached) $ECHO_C" >&6
59582 else
59583 if test x$gcc_no_link = xyes; then
59584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59586 { (exit 1); exit 1; }; }
59588 cat >conftest.$ac_ext <<_ACEOF
59589 /* confdefs.h. */
59590 _ACEOF
59591 cat confdefs.h >>conftest.$ac_ext
59592 cat >>conftest.$ac_ext <<_ACEOF
59593 /* end confdefs.h. */
59594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59596 #define $ac_func innocuous_$ac_func
59598 /* System header to define __stub macros and hopefully few prototypes,
59599 which can conflict with char $ac_func (); below.
59600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59601 <limits.h> exists even on freestanding compilers. */
59603 #ifdef __STDC__
59604 # include <limits.h>
59605 #else
59606 # include <assert.h>
59607 #endif
59609 #undef $ac_func
59611 /* Override any gcc2 internal prototype to avoid an error. */
59612 #ifdef __cplusplus
59613 extern "C"
59615 #endif
59616 /* We use char because int might match the return type of a gcc2
59617 builtin and then its argument prototype would still apply. */
59618 char $ac_func ();
59619 /* The GNU C library defines this for functions which it implements
59620 to always fail with ENOSYS. Some functions are actually named
59621 something starting with __ and the normal name is an alias. */
59622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59623 choke me
59624 #else
59625 char (*f) () = $ac_func;
59626 #endif
59627 #ifdef __cplusplus
59629 #endif
59632 main ()
59634 return f != $ac_func;
59636 return 0;
59638 _ACEOF
59639 rm -f conftest.$ac_objext conftest$ac_exeext
59640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59641 (eval $ac_link) 2>conftest.er1
59642 ac_status=$?
59643 grep -v '^ *+' conftest.er1 >conftest.err
59644 rm -f conftest.er1
59645 cat conftest.err >&5
59646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59647 (exit $ac_status); } &&
59648 { ac_try='test -z "$ac_c_werror_flag"
59649 || test ! -s conftest.err'
59650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59651 (eval $ac_try) 2>&5
59652 ac_status=$?
59653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59654 (exit $ac_status); }; } &&
59655 { ac_try='test -s conftest$ac_exeext'
59656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59657 (eval $ac_try) 2>&5
59658 ac_status=$?
59659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59660 (exit $ac_status); }; }; then
59661 eval "$as_ac_var=yes"
59662 else
59663 echo "$as_me: failed program was:" >&5
59664 sed 's/^/| /' conftest.$ac_ext >&5
59666 eval "$as_ac_var=no"
59668 rm -f conftest.err conftest.$ac_objext \
59669 conftest$ac_exeext conftest.$ac_ext
59671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59673 if test `eval echo '${'$as_ac_var'}'` = yes; then
59674 cat >>confdefs.h <<_ACEOF
59675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59676 _ACEOF
59678 else
59679 ac_wfuncs=no
59681 done
59684 # Checks for wide character functions that are not required
59685 # for basic wchar_t support. Don't disable support if they are missing.
59686 # Injection of these is wrapped with guard macros.
59692 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59695 echo "$as_me:$LINENO: checking for $ac_func" >&5
59696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59697 if eval "test \"\${$as_ac_var+set}\" = set"; then
59698 echo $ECHO_N "(cached) $ECHO_C" >&6
59699 else
59700 if test x$gcc_no_link = xyes; then
59701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59703 { (exit 1); exit 1; }; }
59705 cat >conftest.$ac_ext <<_ACEOF
59706 /* confdefs.h. */
59707 _ACEOF
59708 cat confdefs.h >>conftest.$ac_ext
59709 cat >>conftest.$ac_ext <<_ACEOF
59710 /* end confdefs.h. */
59711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59713 #define $ac_func innocuous_$ac_func
59715 /* System header to define __stub macros and hopefully few prototypes,
59716 which can conflict with char $ac_func (); below.
59717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59718 <limits.h> exists even on freestanding compilers. */
59720 #ifdef __STDC__
59721 # include <limits.h>
59722 #else
59723 # include <assert.h>
59724 #endif
59726 #undef $ac_func
59728 /* Override any gcc2 internal prototype to avoid an error. */
59729 #ifdef __cplusplus
59730 extern "C"
59732 #endif
59733 /* We use char because int might match the return type of a gcc2
59734 builtin and then its argument prototype would still apply. */
59735 char $ac_func ();
59736 /* The GNU C library defines this for functions which it implements
59737 to always fail with ENOSYS. Some functions are actually named
59738 something starting with __ and the normal name is an alias. */
59739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59740 choke me
59741 #else
59742 char (*f) () = $ac_func;
59743 #endif
59744 #ifdef __cplusplus
59746 #endif
59749 main ()
59751 return f != $ac_func;
59753 return 0;
59755 _ACEOF
59756 rm -f conftest.$ac_objext conftest$ac_exeext
59757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59758 (eval $ac_link) 2>conftest.er1
59759 ac_status=$?
59760 grep -v '^ *+' conftest.er1 >conftest.err
59761 rm -f conftest.er1
59762 cat conftest.err >&5
59763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59764 (exit $ac_status); } &&
59765 { ac_try='test -z "$ac_c_werror_flag"
59766 || test ! -s conftest.err'
59767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59768 (eval $ac_try) 2>&5
59769 ac_status=$?
59770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59771 (exit $ac_status); }; } &&
59772 { ac_try='test -s conftest$ac_exeext'
59773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59774 (eval $ac_try) 2>&5
59775 ac_status=$?
59776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59777 (exit $ac_status); }; }; then
59778 eval "$as_ac_var=yes"
59779 else
59780 echo "$as_me: failed program was:" >&5
59781 sed 's/^/| /' conftest.$ac_ext >&5
59783 eval "$as_ac_var=no"
59785 rm -f conftest.err conftest.$ac_objext \
59786 conftest$ac_exeext conftest.$ac_ext
59788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59790 if test `eval echo '${'$as_ac_var'}'` = yes; then
59791 cat >>confdefs.h <<_ACEOF
59792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59793 _ACEOF
59796 done
59799 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59800 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59801 if test x"$has_weof" = xyes &&
59802 test x"$has_wchar_minmax" = xyes &&
59803 test x"$ac_wfuncs" = xyes;
59804 then
59805 ac_isoC99_wchar_t=yes
59806 else
59807 ac_isoC99_wchar_t=no
59809 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59810 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59812 # Use iconv for wchar_t to char conversions. As such, check for
59813 # X/Open Portability Guide, version 2 features (XPG2).
59814 if test "${ac_cv_header_iconv_h+set}" = set; then
59815 echo "$as_me:$LINENO: checking for iconv.h" >&5
59816 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59817 if test "${ac_cv_header_iconv_h+set}" = set; then
59818 echo $ECHO_N "(cached) $ECHO_C" >&6
59820 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59821 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59822 else
59823 # Is the header compilable?
59824 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59825 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59826 cat >conftest.$ac_ext <<_ACEOF
59827 /* confdefs.h. */
59828 _ACEOF
59829 cat confdefs.h >>conftest.$ac_ext
59830 cat >>conftest.$ac_ext <<_ACEOF
59831 /* end confdefs.h. */
59832 $ac_includes_default
59833 #include <iconv.h>
59834 _ACEOF
59835 rm -f conftest.$ac_objext
59836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59837 (eval $ac_compile) 2>conftest.er1
59838 ac_status=$?
59839 grep -v '^ *+' conftest.er1 >conftest.err
59840 rm -f conftest.er1
59841 cat conftest.err >&5
59842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59843 (exit $ac_status); } &&
59844 { ac_try='test -z "$ac_c_werror_flag"
59845 || test ! -s conftest.err'
59846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59847 (eval $ac_try) 2>&5
59848 ac_status=$?
59849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59850 (exit $ac_status); }; } &&
59851 { ac_try='test -s conftest.$ac_objext'
59852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59853 (eval $ac_try) 2>&5
59854 ac_status=$?
59855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59856 (exit $ac_status); }; }; then
59857 ac_header_compiler=yes
59858 else
59859 echo "$as_me: failed program was:" >&5
59860 sed 's/^/| /' conftest.$ac_ext >&5
59862 ac_header_compiler=no
59864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59866 echo "${ECHO_T}$ac_header_compiler" >&6
59868 # Is the header present?
59869 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59870 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59871 cat >conftest.$ac_ext <<_ACEOF
59872 /* confdefs.h. */
59873 _ACEOF
59874 cat confdefs.h >>conftest.$ac_ext
59875 cat >>conftest.$ac_ext <<_ACEOF
59876 /* end confdefs.h. */
59877 #include <iconv.h>
59878 _ACEOF
59879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59881 ac_status=$?
59882 grep -v '^ *+' conftest.er1 >conftest.err
59883 rm -f conftest.er1
59884 cat conftest.err >&5
59885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59886 (exit $ac_status); } >/dev/null; then
59887 if test -s conftest.err; then
59888 ac_cpp_err=$ac_c_preproc_warn_flag
59889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59890 else
59891 ac_cpp_err=
59893 else
59894 ac_cpp_err=yes
59896 if test -z "$ac_cpp_err"; then
59897 ac_header_preproc=yes
59898 else
59899 echo "$as_me: failed program was:" >&5
59900 sed 's/^/| /' conftest.$ac_ext >&5
59902 ac_header_preproc=no
59904 rm -f conftest.err conftest.$ac_ext
59905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59906 echo "${ECHO_T}$ac_header_preproc" >&6
59908 # So? What about this header?
59909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59910 yes:no: )
59911 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59912 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59913 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59914 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59915 ac_header_preproc=yes
59917 no:yes:* )
59918 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59919 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59920 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59921 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59922 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59923 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59924 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59925 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59926 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59927 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59928 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59929 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59931 cat <<\_ASBOX
59932 ## ----------------------------------------- ##
59933 ## Report this to the package-unused lists. ##
59934 ## ----------------------------------------- ##
59935 _ASBOX
59937 sed "s/^/$as_me: WARNING: /" >&2
59939 esac
59940 echo "$as_me:$LINENO: checking for iconv.h" >&5
59941 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59942 if test "${ac_cv_header_iconv_h+set}" = set; then
59943 echo $ECHO_N "(cached) $ECHO_C" >&6
59944 else
59945 ac_cv_header_iconv_h=$ac_header_preproc
59947 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59948 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59951 if test $ac_cv_header_iconv_h = yes; then
59952 ac_has_iconv_h=yes
59953 else
59954 ac_has_iconv_h=no
59958 if test "${ac_cv_header_langinfo_h+set}" = set; then
59959 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59960 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59961 if test "${ac_cv_header_langinfo_h+set}" = set; then
59962 echo $ECHO_N "(cached) $ECHO_C" >&6
59964 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59965 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59966 else
59967 # Is the header compilable?
59968 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59969 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59970 cat >conftest.$ac_ext <<_ACEOF
59971 /* confdefs.h. */
59972 _ACEOF
59973 cat confdefs.h >>conftest.$ac_ext
59974 cat >>conftest.$ac_ext <<_ACEOF
59975 /* end confdefs.h. */
59976 $ac_includes_default
59977 #include <langinfo.h>
59978 _ACEOF
59979 rm -f conftest.$ac_objext
59980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59981 (eval $ac_compile) 2>conftest.er1
59982 ac_status=$?
59983 grep -v '^ *+' conftest.er1 >conftest.err
59984 rm -f conftest.er1
59985 cat conftest.err >&5
59986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59987 (exit $ac_status); } &&
59988 { ac_try='test -z "$ac_c_werror_flag"
59989 || test ! -s conftest.err'
59990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59991 (eval $ac_try) 2>&5
59992 ac_status=$?
59993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59994 (exit $ac_status); }; } &&
59995 { ac_try='test -s conftest.$ac_objext'
59996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59997 (eval $ac_try) 2>&5
59998 ac_status=$?
59999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60000 (exit $ac_status); }; }; then
60001 ac_header_compiler=yes
60002 else
60003 echo "$as_me: failed program was:" >&5
60004 sed 's/^/| /' conftest.$ac_ext >&5
60006 ac_header_compiler=no
60008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60010 echo "${ECHO_T}$ac_header_compiler" >&6
60012 # Is the header present?
60013 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
60014 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
60015 cat >conftest.$ac_ext <<_ACEOF
60016 /* confdefs.h. */
60017 _ACEOF
60018 cat confdefs.h >>conftest.$ac_ext
60019 cat >>conftest.$ac_ext <<_ACEOF
60020 /* end confdefs.h. */
60021 #include <langinfo.h>
60022 _ACEOF
60023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60025 ac_status=$?
60026 grep -v '^ *+' conftest.er1 >conftest.err
60027 rm -f conftest.er1
60028 cat conftest.err >&5
60029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60030 (exit $ac_status); } >/dev/null; then
60031 if test -s conftest.err; then
60032 ac_cpp_err=$ac_c_preproc_warn_flag
60033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60034 else
60035 ac_cpp_err=
60037 else
60038 ac_cpp_err=yes
60040 if test -z "$ac_cpp_err"; then
60041 ac_header_preproc=yes
60042 else
60043 echo "$as_me: failed program was:" >&5
60044 sed 's/^/| /' conftest.$ac_ext >&5
60046 ac_header_preproc=no
60048 rm -f conftest.err conftest.$ac_ext
60049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60050 echo "${ECHO_T}$ac_header_preproc" >&6
60052 # So? What about this header?
60053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60054 yes:no: )
60055 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
60056 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60057 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
60058 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
60059 ac_header_preproc=yes
60061 no:yes:* )
60062 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
60063 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
60064 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
60065 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
60066 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
60067 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
60068 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
60069 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
60070 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60071 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60072 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
60073 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
60075 cat <<\_ASBOX
60076 ## ----------------------------------------- ##
60077 ## Report this to the package-unused lists. ##
60078 ## ----------------------------------------- ##
60079 _ASBOX
60081 sed "s/^/$as_me: WARNING: /" >&2
60083 esac
60084 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60085 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60086 if test "${ac_cv_header_langinfo_h+set}" = set; then
60087 echo $ECHO_N "(cached) $ECHO_C" >&6
60088 else
60089 ac_cv_header_langinfo_h=$ac_header_preproc
60091 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60092 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60095 if test $ac_cv_header_langinfo_h = yes; then
60096 ac_has_langinfo_h=yes
60097 else
60098 ac_has_langinfo_h=no
60103 # Check for existence of libiconv.a providing XPG2 wchar_t support.
60104 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60105 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60106 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60107 echo $ECHO_N "(cached) $ECHO_C" >&6
60108 else
60109 ac_check_lib_save_LIBS=$LIBS
60110 LIBS="-liconv $LIBS"
60111 if test x$gcc_no_link = xyes; then
60112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60114 { (exit 1); exit 1; }; }
60116 cat >conftest.$ac_ext <<_ACEOF
60117 /* confdefs.h. */
60118 _ACEOF
60119 cat confdefs.h >>conftest.$ac_ext
60120 cat >>conftest.$ac_ext <<_ACEOF
60121 /* end confdefs.h. */
60123 /* Override any gcc2 internal prototype to avoid an error. */
60124 #ifdef __cplusplus
60125 extern "C"
60126 #endif
60127 /* We use char because int might match the return type of a gcc2
60128 builtin and then its argument prototype would still apply. */
60129 char iconv ();
60131 main ()
60133 iconv ();
60135 return 0;
60137 _ACEOF
60138 rm -f conftest.$ac_objext conftest$ac_exeext
60139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60140 (eval $ac_link) 2>conftest.er1
60141 ac_status=$?
60142 grep -v '^ *+' conftest.er1 >conftest.err
60143 rm -f conftest.er1
60144 cat conftest.err >&5
60145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60146 (exit $ac_status); } &&
60147 { ac_try='test -z "$ac_c_werror_flag"
60148 || test ! -s conftest.err'
60149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60150 (eval $ac_try) 2>&5
60151 ac_status=$?
60152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60153 (exit $ac_status); }; } &&
60154 { ac_try='test -s conftest$ac_exeext'
60155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60156 (eval $ac_try) 2>&5
60157 ac_status=$?
60158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60159 (exit $ac_status); }; }; then
60160 ac_cv_lib_iconv_iconv=yes
60161 else
60162 echo "$as_me: failed program was:" >&5
60163 sed 's/^/| /' conftest.$ac_ext >&5
60165 ac_cv_lib_iconv_iconv=no
60167 rm -f conftest.err conftest.$ac_objext \
60168 conftest$ac_exeext conftest.$ac_ext
60169 LIBS=$ac_check_lib_save_LIBS
60171 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60172 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60173 if test $ac_cv_lib_iconv_iconv = yes; then
60174 LIBICONV="-liconv"
60177 ac_save_LIBS="$LIBS"
60178 LIBS="$LIBS $LIBICONV"
60185 for ac_func in iconv_open iconv_close iconv nl_langinfo
60187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60188 echo "$as_me:$LINENO: checking for $ac_func" >&5
60189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60190 if eval "test \"\${$as_ac_var+set}\" = set"; then
60191 echo $ECHO_N "(cached) $ECHO_C" >&6
60192 else
60193 if test x$gcc_no_link = xyes; then
60194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60196 { (exit 1); exit 1; }; }
60198 cat >conftest.$ac_ext <<_ACEOF
60199 /* confdefs.h. */
60200 _ACEOF
60201 cat confdefs.h >>conftest.$ac_ext
60202 cat >>conftest.$ac_ext <<_ACEOF
60203 /* end confdefs.h. */
60204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60206 #define $ac_func innocuous_$ac_func
60208 /* System header to define __stub macros and hopefully few prototypes,
60209 which can conflict with char $ac_func (); below.
60210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60211 <limits.h> exists even on freestanding compilers. */
60213 #ifdef __STDC__
60214 # include <limits.h>
60215 #else
60216 # include <assert.h>
60217 #endif
60219 #undef $ac_func
60221 /* Override any gcc2 internal prototype to avoid an error. */
60222 #ifdef __cplusplus
60223 extern "C"
60225 #endif
60226 /* We use char because int might match the return type of a gcc2
60227 builtin and then its argument prototype would still apply. */
60228 char $ac_func ();
60229 /* The GNU C library defines this for functions which it implements
60230 to always fail with ENOSYS. Some functions are actually named
60231 something starting with __ and the normal name is an alias. */
60232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60233 choke me
60234 #else
60235 char (*f) () = $ac_func;
60236 #endif
60237 #ifdef __cplusplus
60239 #endif
60242 main ()
60244 return f != $ac_func;
60246 return 0;
60248 _ACEOF
60249 rm -f conftest.$ac_objext conftest$ac_exeext
60250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60251 (eval $ac_link) 2>conftest.er1
60252 ac_status=$?
60253 grep -v '^ *+' conftest.er1 >conftest.err
60254 rm -f conftest.er1
60255 cat conftest.err >&5
60256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60257 (exit $ac_status); } &&
60258 { ac_try='test -z "$ac_c_werror_flag"
60259 || test ! -s conftest.err'
60260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60261 (eval $ac_try) 2>&5
60262 ac_status=$?
60263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60264 (exit $ac_status); }; } &&
60265 { ac_try='test -s conftest$ac_exeext'
60266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60267 (eval $ac_try) 2>&5
60268 ac_status=$?
60269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60270 (exit $ac_status); }; }; then
60271 eval "$as_ac_var=yes"
60272 else
60273 echo "$as_me: failed program was:" >&5
60274 sed 's/^/| /' conftest.$ac_ext >&5
60276 eval "$as_ac_var=no"
60278 rm -f conftest.err conftest.$ac_objext \
60279 conftest$ac_exeext conftest.$ac_ext
60281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60283 if test `eval echo '${'$as_ac_var'}'` = yes; then
60284 cat >>confdefs.h <<_ACEOF
60285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60286 _ACEOF
60287 ac_XPG2funcs=yes
60288 else
60289 ac_XPG2funcs=no
60291 done
60294 LIBS="$ac_save_LIBS"
60296 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60297 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60298 if test x"$ac_has_iconv_h" = xyes &&
60299 test x"$ac_has_langinfo_h" = xyes &&
60300 test x"$ac_XPG2funcs" = xyes;
60301 then
60302 ac_XPG2_wchar_t=yes
60303 else
60304 ac_XPG2_wchar_t=no
60306 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60307 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60309 # At the moment, only enable wchar_t specializations if all the
60310 # above support is present.
60311 if test x"$ac_isoC99_wchar_t" = xyes &&
60312 test x"$ac_XPG2_wchar_t" = xyes;
60313 then
60314 cat >>confdefs.h <<\_ACEOF
60315 #define _GLIBCXX_USE_WCHAR_T 1
60316 _ACEOF
60318 enable_wchar_t=yes
60321 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60322 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60323 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60324 echo "${ECHO_T}$enable_wchar_t" >&6
60327 # For LFS.
60328 cat >>confdefs.h <<\_ACEOF
60329 #define HAVE_INT64_T 1
60330 _ACEOF
60332 case "$target" in
60333 *-uclinux*)
60334 # Don't enable LFS with uClibc
60337 cat >>confdefs.h <<\_ACEOF
60338 #define _GLIBCXX_USE_LFS 1
60339 _ACEOF
60341 esac
60343 # For showmanyc_helper().
60346 for ac_header in sys/ioctl.h sys/filio.h
60348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60350 echo "$as_me:$LINENO: checking for $ac_header" >&5
60351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60353 echo $ECHO_N "(cached) $ECHO_C" >&6
60355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60357 else
60358 # Is the header compilable?
60359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60361 cat >conftest.$ac_ext <<_ACEOF
60362 /* confdefs.h. */
60363 _ACEOF
60364 cat confdefs.h >>conftest.$ac_ext
60365 cat >>conftest.$ac_ext <<_ACEOF
60366 /* end confdefs.h. */
60367 $ac_includes_default
60368 #include <$ac_header>
60369 _ACEOF
60370 rm -f conftest.$ac_objext
60371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60372 (eval $ac_compile) 2>conftest.er1
60373 ac_status=$?
60374 grep -v '^ *+' conftest.er1 >conftest.err
60375 rm -f conftest.er1
60376 cat conftest.err >&5
60377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60378 (exit $ac_status); } &&
60379 { ac_try='test -z "$ac_c_werror_flag"
60380 || test ! -s conftest.err'
60381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60382 (eval $ac_try) 2>&5
60383 ac_status=$?
60384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60385 (exit $ac_status); }; } &&
60386 { ac_try='test -s conftest.$ac_objext'
60387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60388 (eval $ac_try) 2>&5
60389 ac_status=$?
60390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60391 (exit $ac_status); }; }; then
60392 ac_header_compiler=yes
60393 else
60394 echo "$as_me: failed program was:" >&5
60395 sed 's/^/| /' conftest.$ac_ext >&5
60397 ac_header_compiler=no
60399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60401 echo "${ECHO_T}$ac_header_compiler" >&6
60403 # Is the header present?
60404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60406 cat >conftest.$ac_ext <<_ACEOF
60407 /* confdefs.h. */
60408 _ACEOF
60409 cat confdefs.h >>conftest.$ac_ext
60410 cat >>conftest.$ac_ext <<_ACEOF
60411 /* end confdefs.h. */
60412 #include <$ac_header>
60413 _ACEOF
60414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60416 ac_status=$?
60417 grep -v '^ *+' conftest.er1 >conftest.err
60418 rm -f conftest.er1
60419 cat conftest.err >&5
60420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60421 (exit $ac_status); } >/dev/null; then
60422 if test -s conftest.err; then
60423 ac_cpp_err=$ac_c_preproc_warn_flag
60424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60425 else
60426 ac_cpp_err=
60428 else
60429 ac_cpp_err=yes
60431 if test -z "$ac_cpp_err"; then
60432 ac_header_preproc=yes
60433 else
60434 echo "$as_me: failed program was:" >&5
60435 sed 's/^/| /' conftest.$ac_ext >&5
60437 ac_header_preproc=no
60439 rm -f conftest.err conftest.$ac_ext
60440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60441 echo "${ECHO_T}$ac_header_preproc" >&6
60443 # So? What about this header?
60444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60445 yes:no: )
60446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60450 ac_header_preproc=yes
60452 no:yes:* )
60453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60466 cat <<\_ASBOX
60467 ## ----------------------------------------- ##
60468 ## Report this to the package-unused lists. ##
60469 ## ----------------------------------------- ##
60470 _ASBOX
60472 sed "s/^/$as_me: WARNING: /" >&2
60474 esac
60475 echo "$as_me:$LINENO: checking for $ac_header" >&5
60476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60478 echo $ECHO_N "(cached) $ECHO_C" >&6
60479 else
60480 eval "$as_ac_Header=\$ac_header_preproc"
60482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60487 cat >>confdefs.h <<_ACEOF
60488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60489 _ACEOF
60493 done
60496 if test "${glibcxx_cv_POLL+set}" = set; then
60497 echo $ECHO_N "(cached) $ECHO_C" >&6
60498 else
60500 if test x$gcc_no_link = xyes; then
60501 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60503 { (exit 1); exit 1; }; }
60505 cat >conftest.$ac_ext <<_ACEOF
60506 /* confdefs.h. */
60507 _ACEOF
60508 cat confdefs.h >>conftest.$ac_ext
60509 cat >>conftest.$ac_ext <<_ACEOF
60510 /* end confdefs.h. */
60511 #include <poll.h>
60513 main ()
60515 struct pollfd pfd[1];
60516 pfd[0].events = POLLIN;
60517 poll(pfd, 1, 0);
60519 return 0;
60521 _ACEOF
60522 rm -f conftest.$ac_objext conftest$ac_exeext
60523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60524 (eval $ac_link) 2>conftest.er1
60525 ac_status=$?
60526 grep -v '^ *+' conftest.er1 >conftest.err
60527 rm -f conftest.er1
60528 cat conftest.err >&5
60529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60530 (exit $ac_status); } &&
60531 { ac_try='test -z "$ac_c_werror_flag"
60532 || test ! -s conftest.err'
60533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60534 (eval $ac_try) 2>&5
60535 ac_status=$?
60536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60537 (exit $ac_status); }; } &&
60538 { ac_try='test -s conftest$ac_exeext'
60539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60540 (eval $ac_try) 2>&5
60541 ac_status=$?
60542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60543 (exit $ac_status); }; }; then
60544 glibcxx_cv_POLL=yes
60545 else
60546 echo "$as_me: failed program was:" >&5
60547 sed 's/^/| /' conftest.$ac_ext >&5
60549 glibcxx_cv_POLL=no
60551 rm -f conftest.err conftest.$ac_objext \
60552 conftest$ac_exeext conftest.$ac_ext
60556 if test $glibcxx_cv_POLL = yes; then
60557 cat >>confdefs.h <<\_ACEOF
60558 #define HAVE_POLL 1
60559 _ACEOF
60564 if test "${glibcxx_cv_S_ISREG+set}" = set; then
60565 echo $ECHO_N "(cached) $ECHO_C" >&6
60566 else
60568 if test x$gcc_no_link = xyes; then
60569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60571 { (exit 1); exit 1; }; }
60573 cat >conftest.$ac_ext <<_ACEOF
60574 /* confdefs.h. */
60575 _ACEOF
60576 cat confdefs.h >>conftest.$ac_ext
60577 cat >>conftest.$ac_ext <<_ACEOF
60578 /* end confdefs.h. */
60579 #include <sys/stat.h>
60581 main ()
60583 struct stat buffer;
60584 fstat(0, &buffer);
60585 S_ISREG(buffer.st_mode);
60587 return 0;
60589 _ACEOF
60590 rm -f conftest.$ac_objext conftest$ac_exeext
60591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60592 (eval $ac_link) 2>conftest.er1
60593 ac_status=$?
60594 grep -v '^ *+' conftest.er1 >conftest.err
60595 rm -f conftest.er1
60596 cat conftest.err >&5
60597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60598 (exit $ac_status); } &&
60599 { ac_try='test -z "$ac_c_werror_flag"
60600 || test ! -s conftest.err'
60601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60602 (eval $ac_try) 2>&5
60603 ac_status=$?
60604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60605 (exit $ac_status); }; } &&
60606 { ac_try='test -s conftest$ac_exeext'
60607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60608 (eval $ac_try) 2>&5
60609 ac_status=$?
60610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60611 (exit $ac_status); }; }; then
60612 glibcxx_cv_S_ISREG=yes
60613 else
60614 echo "$as_me: failed program was:" >&5
60615 sed 's/^/| /' conftest.$ac_ext >&5
60617 glibcxx_cv_S_ISREG=no
60619 rm -f conftest.err conftest.$ac_objext \
60620 conftest$ac_exeext conftest.$ac_ext
60624 if test "${glibcxx_cv_S_IFREG+set}" = set; then
60625 echo $ECHO_N "(cached) $ECHO_C" >&6
60626 else
60628 if test x$gcc_no_link = xyes; then
60629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60631 { (exit 1); exit 1; }; }
60633 cat >conftest.$ac_ext <<_ACEOF
60634 /* confdefs.h. */
60635 _ACEOF
60636 cat confdefs.h >>conftest.$ac_ext
60637 cat >>conftest.$ac_ext <<_ACEOF
60638 /* end confdefs.h. */
60639 #include <sys/stat.h>
60641 main ()
60643 struct stat buffer;
60644 fstat(0, &buffer);
60645 S_IFREG & buffer.st_mode;
60647 return 0;
60649 _ACEOF
60650 rm -f conftest.$ac_objext conftest$ac_exeext
60651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60652 (eval $ac_link) 2>conftest.er1
60653 ac_status=$?
60654 grep -v '^ *+' conftest.er1 >conftest.err
60655 rm -f conftest.er1
60656 cat conftest.err >&5
60657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60658 (exit $ac_status); } &&
60659 { ac_try='test -z "$ac_c_werror_flag"
60660 || test ! -s conftest.err'
60661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60662 (eval $ac_try) 2>&5
60663 ac_status=$?
60664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60665 (exit $ac_status); }; } &&
60666 { ac_try='test -s conftest$ac_exeext'
60667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60668 (eval $ac_try) 2>&5
60669 ac_status=$?
60670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60671 (exit $ac_status); }; }; then
60672 glibcxx_cv_S_IFREG=yes
60673 else
60674 echo "$as_me: failed program was:" >&5
60675 sed 's/^/| /' conftest.$ac_ext >&5
60677 glibcxx_cv_S_IFREG=no
60679 rm -f conftest.err conftest.$ac_objext \
60680 conftest$ac_exeext conftest.$ac_ext
60684 if test $glibcxx_cv_S_ISREG = yes; then
60685 cat >>confdefs.h <<\_ACEOF
60686 #define HAVE_S_ISREG 1
60687 _ACEOF
60689 elif test $glibcxx_cv_S_IFREG = yes; then
60690 cat >>confdefs.h <<\_ACEOF
60691 #define HAVE_S_IFREG 1
60692 _ACEOF
60697 # For xsputn_2().
60699 for ac_header in sys/uio.h
60701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60703 echo "$as_me:$LINENO: checking for $ac_header" >&5
60704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60706 echo $ECHO_N "(cached) $ECHO_C" >&6
60708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60710 else
60711 # Is the header compilable?
60712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60714 cat >conftest.$ac_ext <<_ACEOF
60715 /* confdefs.h. */
60716 _ACEOF
60717 cat confdefs.h >>conftest.$ac_ext
60718 cat >>conftest.$ac_ext <<_ACEOF
60719 /* end confdefs.h. */
60720 $ac_includes_default
60721 #include <$ac_header>
60722 _ACEOF
60723 rm -f conftest.$ac_objext
60724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60725 (eval $ac_compile) 2>conftest.er1
60726 ac_status=$?
60727 grep -v '^ *+' conftest.er1 >conftest.err
60728 rm -f conftest.er1
60729 cat conftest.err >&5
60730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60731 (exit $ac_status); } &&
60732 { ac_try='test -z "$ac_c_werror_flag"
60733 || test ! -s conftest.err'
60734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60735 (eval $ac_try) 2>&5
60736 ac_status=$?
60737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60738 (exit $ac_status); }; } &&
60739 { ac_try='test -s conftest.$ac_objext'
60740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60741 (eval $ac_try) 2>&5
60742 ac_status=$?
60743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60744 (exit $ac_status); }; }; then
60745 ac_header_compiler=yes
60746 else
60747 echo "$as_me: failed program was:" >&5
60748 sed 's/^/| /' conftest.$ac_ext >&5
60750 ac_header_compiler=no
60752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60754 echo "${ECHO_T}$ac_header_compiler" >&6
60756 # Is the header present?
60757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60759 cat >conftest.$ac_ext <<_ACEOF
60760 /* confdefs.h. */
60761 _ACEOF
60762 cat confdefs.h >>conftest.$ac_ext
60763 cat >>conftest.$ac_ext <<_ACEOF
60764 /* end confdefs.h. */
60765 #include <$ac_header>
60766 _ACEOF
60767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60769 ac_status=$?
60770 grep -v '^ *+' conftest.er1 >conftest.err
60771 rm -f conftest.er1
60772 cat conftest.err >&5
60773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60774 (exit $ac_status); } >/dev/null; then
60775 if test -s conftest.err; then
60776 ac_cpp_err=$ac_c_preproc_warn_flag
60777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60778 else
60779 ac_cpp_err=
60781 else
60782 ac_cpp_err=yes
60784 if test -z "$ac_cpp_err"; then
60785 ac_header_preproc=yes
60786 else
60787 echo "$as_me: failed program was:" >&5
60788 sed 's/^/| /' conftest.$ac_ext >&5
60790 ac_header_preproc=no
60792 rm -f conftest.err conftest.$ac_ext
60793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60794 echo "${ECHO_T}$ac_header_preproc" >&6
60796 # So? What about this header?
60797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60798 yes:no: )
60799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60803 ac_header_preproc=yes
60805 no:yes:* )
60806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60819 cat <<\_ASBOX
60820 ## ----------------------------------------- ##
60821 ## Report this to the package-unused lists. ##
60822 ## ----------------------------------------- ##
60823 _ASBOX
60825 sed "s/^/$as_me: WARNING: /" >&2
60827 esac
60828 echo "$as_me:$LINENO: checking for $ac_header" >&5
60829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60831 echo $ECHO_N "(cached) $ECHO_C" >&6
60832 else
60833 eval "$as_ac_Header=\$ac_header_preproc"
60835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60840 cat >>confdefs.h <<_ACEOF
60841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60842 _ACEOF
60846 done
60849 if test "${glibcxx_cv_WRITEV+set}" = set; then
60850 echo $ECHO_N "(cached) $ECHO_C" >&6
60851 else
60853 if test x$gcc_no_link = xyes; then
60854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60856 { (exit 1); exit 1; }; }
60858 cat >conftest.$ac_ext <<_ACEOF
60859 /* confdefs.h. */
60860 _ACEOF
60861 cat confdefs.h >>conftest.$ac_ext
60862 cat >>conftest.$ac_ext <<_ACEOF
60863 /* end confdefs.h. */
60864 #include <sys/uio.h>
60866 main ()
60868 struct iovec iov[2];
60869 writev(0, iov, 0);
60871 return 0;
60873 _ACEOF
60874 rm -f conftest.$ac_objext conftest$ac_exeext
60875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60876 (eval $ac_link) 2>conftest.er1
60877 ac_status=$?
60878 grep -v '^ *+' conftest.er1 >conftest.err
60879 rm -f conftest.er1
60880 cat conftest.err >&5
60881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60882 (exit $ac_status); } &&
60883 { ac_try='test -z "$ac_c_werror_flag"
60884 || test ! -s conftest.err'
60885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60886 (eval $ac_try) 2>&5
60887 ac_status=$?
60888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60889 (exit $ac_status); }; } &&
60890 { ac_try='test -s conftest$ac_exeext'
60891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60892 (eval $ac_try) 2>&5
60893 ac_status=$?
60894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60895 (exit $ac_status); }; }; then
60896 glibcxx_cv_WRITEV=yes
60897 else
60898 echo "$as_me: failed program was:" >&5
60899 sed 's/^/| /' conftest.$ac_ext >&5
60901 glibcxx_cv_WRITEV=no
60903 rm -f conftest.err conftest.$ac_objext \
60904 conftest$ac_exeext conftest.$ac_ext
60908 if test $glibcxx_cv_WRITEV = yes; then
60909 cat >>confdefs.h <<\_ACEOF
60910 #define HAVE_WRITEV 1
60911 _ACEOF
60916 cat >>confdefs.h <<\_ACEOF
60917 #define HAVE_ACOSF 1
60918 _ACEOF
60920 cat >>confdefs.h <<\_ACEOF
60921 #define HAVE_ASINF 1
60922 _ACEOF
60924 cat >>confdefs.h <<\_ACEOF
60925 #define HAVE_ATANF 1
60926 _ACEOF
60928 cat >>confdefs.h <<\_ACEOF
60929 #define HAVE_ATAN2F 1
60930 _ACEOF
60932 cat >>confdefs.h <<\_ACEOF
60933 #define HAVE_CEILF 1
60934 _ACEOF
60936 cat >>confdefs.h <<\_ACEOF
60937 #define HAVE_COPYSIGN 1
60938 _ACEOF
60940 cat >>confdefs.h <<\_ACEOF
60941 #define HAVE_COPYSIGNF 1
60942 _ACEOF
60944 cat >>confdefs.h <<\_ACEOF
60945 #define HAVE_COSF 1
60946 _ACEOF
60948 cat >>confdefs.h <<\_ACEOF
60949 #define HAVE_COSHF 1
60950 _ACEOF
60952 cat >>confdefs.h <<\_ACEOF
60953 #define HAVE_EXPF 1
60954 _ACEOF
60956 cat >>confdefs.h <<\_ACEOF
60957 #define HAVE_FABSF 1
60958 _ACEOF
60960 cat >>confdefs.h <<\_ACEOF
60961 #define HAVE_FINITE 1
60962 _ACEOF
60964 cat >>confdefs.h <<\_ACEOF
60965 #define HAVE_FINITEF 1
60966 _ACEOF
60968 cat >>confdefs.h <<\_ACEOF
60969 #define HAVE_FLOORF 1
60970 _ACEOF
60972 cat >>confdefs.h <<\_ACEOF
60973 #define HAVE_FMODF 1
60974 _ACEOF
60976 cat >>confdefs.h <<\_ACEOF
60977 #define HAVE_FREXPF 1
60978 _ACEOF
60980 cat >>confdefs.h <<\_ACEOF
60981 #define HAVE_HYPOT 1
60982 _ACEOF
60984 cat >>confdefs.h <<\_ACEOF
60985 #define HAVE_HYPOTF 1
60986 _ACEOF
60988 cat >>confdefs.h <<\_ACEOF
60989 #define HAVE_ISINF 1
60990 _ACEOF
60992 cat >>confdefs.h <<\_ACEOF
60993 #define HAVE_ISINFF 1
60994 _ACEOF
60996 cat >>confdefs.h <<\_ACEOF
60997 #define HAVE_ISNAN 1
60998 _ACEOF
61000 cat >>confdefs.h <<\_ACEOF
61001 #define HAVE_ISNANF 1
61002 _ACEOF
61004 cat >>confdefs.h <<\_ACEOF
61005 #define HAVE_LOGF 1
61006 _ACEOF
61008 cat >>confdefs.h <<\_ACEOF
61009 #define HAVE_LOG10F 1
61010 _ACEOF
61012 cat >>confdefs.h <<\_ACEOF
61013 #define HAVE_MODFF 1
61014 _ACEOF
61016 cat >>confdefs.h <<\_ACEOF
61017 #define HAVE_SINF 1
61018 _ACEOF
61020 cat >>confdefs.h <<\_ACEOF
61021 #define HAVE_SINHF 1
61022 _ACEOF
61024 cat >>confdefs.h <<\_ACEOF
61025 #define HAVE_SINCOS 1
61026 _ACEOF
61028 cat >>confdefs.h <<\_ACEOF
61029 #define HAVE_SINCOSF 1
61030 _ACEOF
61032 cat >>confdefs.h <<\_ACEOF
61033 #define HAVE_SQRTF 1
61034 _ACEOF
61036 cat >>confdefs.h <<\_ACEOF
61037 #define HAVE_TANF 1
61038 _ACEOF
61040 cat >>confdefs.h <<\_ACEOF
61041 #define HAVE_TANHF 1
61042 _ACEOF
61044 if test x"long_double_math_on_this_cpu" = x"yes"; then
61045 cat >>confdefs.h <<\_ACEOF
61046 #define HAVE_ACOSL 1
61047 _ACEOF
61049 cat >>confdefs.h <<\_ACEOF
61050 #define HAVE_ASINL 1
61051 _ACEOF
61053 cat >>confdefs.h <<\_ACEOF
61054 #define HAVE_ATANL 1
61055 _ACEOF
61057 cat >>confdefs.h <<\_ACEOF
61058 #define HAVE_ATAN2L 1
61059 _ACEOF
61061 cat >>confdefs.h <<\_ACEOF
61062 #define HAVE_CEILL 1
61063 _ACEOF
61065 cat >>confdefs.h <<\_ACEOF
61066 #define HAVE_COPYSIGNL 1
61067 _ACEOF
61069 cat >>confdefs.h <<\_ACEOF
61070 #define HAVE_COSL 1
61071 _ACEOF
61073 cat >>confdefs.h <<\_ACEOF
61074 #define HAVE_COSHL 1
61075 _ACEOF
61077 cat >>confdefs.h <<\_ACEOF
61078 #define HAVE_EXPL 1
61079 _ACEOF
61081 cat >>confdefs.h <<\_ACEOF
61082 #define HAVE_FABSL 1
61083 _ACEOF
61085 cat >>confdefs.h <<\_ACEOF
61086 #define HAVE_FINITEL 1
61087 _ACEOF
61089 cat >>confdefs.h <<\_ACEOF
61090 #define HAVE_FLOORL 1
61091 _ACEOF
61093 cat >>confdefs.h <<\_ACEOF
61094 #define HAVE_FMODL 1
61095 _ACEOF
61097 cat >>confdefs.h <<\_ACEOF
61098 #define HAVE_FREXPL 1
61099 _ACEOF
61101 cat >>confdefs.h <<\_ACEOF
61102 #define HAVE_HYPOTL 1
61103 _ACEOF
61105 cat >>confdefs.h <<\_ACEOF
61106 #define HAVE_ISINFL 1
61107 _ACEOF
61109 cat >>confdefs.h <<\_ACEOF
61110 #define HAVE_ISNANL 1
61111 _ACEOF
61113 cat >>confdefs.h <<\_ACEOF
61114 #define HAVE_LOGL 1
61115 _ACEOF
61117 cat >>confdefs.h <<\_ACEOF
61118 #define HAVE_LOG10L 1
61119 _ACEOF
61121 cat >>confdefs.h <<\_ACEOF
61122 #define HAVE_MODFL 1
61123 _ACEOF
61125 cat >>confdefs.h <<\_ACEOF
61126 #define HAVE_POWL 1
61127 _ACEOF
61129 cat >>confdefs.h <<\_ACEOF
61130 #define HAVE_SINL 1
61131 _ACEOF
61133 cat >>confdefs.h <<\_ACEOF
61134 #define HAVE_SINHL 1
61135 _ACEOF
61137 cat >>confdefs.h <<\_ACEOF
61138 #define HAVE_SINCOSL 1
61139 _ACEOF
61141 cat >>confdefs.h <<\_ACEOF
61142 #define HAVE_SQRTL 1
61143 _ACEOF
61145 cat >>confdefs.h <<\_ACEOF
61146 #define HAVE_TANL 1
61147 _ACEOF
61149 cat >>confdefs.h <<\_ACEOF
61150 #define HAVE_TANHL 1
61151 _ACEOF
61155 *-mingw32*)
61159 for ac_header in sys/types.h locale.h float.h
61161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61163 echo "$as_me:$LINENO: checking for $ac_header" >&5
61164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61166 echo $ECHO_N "(cached) $ECHO_C" >&6
61168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61170 else
61171 # Is the header compilable?
61172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61174 cat >conftest.$ac_ext <<_ACEOF
61175 /* confdefs.h. */
61176 _ACEOF
61177 cat confdefs.h >>conftest.$ac_ext
61178 cat >>conftest.$ac_ext <<_ACEOF
61179 /* end confdefs.h. */
61180 $ac_includes_default
61181 #include <$ac_header>
61182 _ACEOF
61183 rm -f conftest.$ac_objext
61184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61185 (eval $ac_compile) 2>conftest.er1
61186 ac_status=$?
61187 grep -v '^ *+' conftest.er1 >conftest.err
61188 rm -f conftest.er1
61189 cat conftest.err >&5
61190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61191 (exit $ac_status); } &&
61192 { ac_try='test -z "$ac_c_werror_flag"
61193 || test ! -s conftest.err'
61194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61195 (eval $ac_try) 2>&5
61196 ac_status=$?
61197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61198 (exit $ac_status); }; } &&
61199 { ac_try='test -s conftest.$ac_objext'
61200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61201 (eval $ac_try) 2>&5
61202 ac_status=$?
61203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61204 (exit $ac_status); }; }; then
61205 ac_header_compiler=yes
61206 else
61207 echo "$as_me: failed program was:" >&5
61208 sed 's/^/| /' conftest.$ac_ext >&5
61210 ac_header_compiler=no
61212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61214 echo "${ECHO_T}$ac_header_compiler" >&6
61216 # Is the header present?
61217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61219 cat >conftest.$ac_ext <<_ACEOF
61220 /* confdefs.h. */
61221 _ACEOF
61222 cat confdefs.h >>conftest.$ac_ext
61223 cat >>conftest.$ac_ext <<_ACEOF
61224 /* end confdefs.h. */
61225 #include <$ac_header>
61226 _ACEOF
61227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61229 ac_status=$?
61230 grep -v '^ *+' conftest.er1 >conftest.err
61231 rm -f conftest.er1
61232 cat conftest.err >&5
61233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61234 (exit $ac_status); } >/dev/null; then
61235 if test -s conftest.err; then
61236 ac_cpp_err=$ac_c_preproc_warn_flag
61237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61238 else
61239 ac_cpp_err=
61241 else
61242 ac_cpp_err=yes
61244 if test -z "$ac_cpp_err"; then
61245 ac_header_preproc=yes
61246 else
61247 echo "$as_me: failed program was:" >&5
61248 sed 's/^/| /' conftest.$ac_ext >&5
61250 ac_header_preproc=no
61252 rm -f conftest.err conftest.$ac_ext
61253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61254 echo "${ECHO_T}$ac_header_preproc" >&6
61256 # So? What about this header?
61257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61258 yes:no: )
61259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61263 ac_header_preproc=yes
61265 no:yes:* )
61266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61279 cat <<\_ASBOX
61280 ## ----------------------------------------- ##
61281 ## Report this to the package-unused lists. ##
61282 ## ----------------------------------------- ##
61283 _ASBOX
61285 sed "s/^/$as_me: WARNING: /" >&2
61287 esac
61288 echo "$as_me:$LINENO: checking for $ac_header" >&5
61289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61291 echo $ECHO_N "(cached) $ECHO_C" >&6
61292 else
61293 eval "$as_ac_Header=\$ac_header_preproc"
61295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61300 cat >>confdefs.h <<_ACEOF
61301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61302 _ACEOF
61306 done
61309 # If we're not using GNU ld, then there's no point in even trying these
61310 # tests. Check for that first. We should have already tested for gld
61311 # by now (in libtool), but require it now just to be safe...
61312 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61313 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61317 # The name set by libtool depends on the version of libtool. Shame on us
61318 # for depending on an impl detail, but c'est la vie. Older versions used
61319 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61320 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61321 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61322 # set (hence we're using an older libtool), then set it.
61323 if test x${with_gnu_ld+set} != xset; then
61324 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61325 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61326 with_gnu_ld=no
61327 else
61328 with_gnu_ld=$ac_cv_prog_gnu_ld
61332 # Start by getting the version number. I think the libtool test already
61333 # does some of this, but throws away the result.
61335 ldver=`$LD --version 2>/dev/null | head -1 | \
61336 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61338 glibcxx_gnu_ld_version=`echo $ldver | \
61339 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61341 # Set --gc-sections.
61342 if test "$with_gnu_ld" = "notbroken"; then
61343 # GNU ld it is! Joy and bunny rabbits!
61345 # All these tests are for C++; save the language and the compiler flags.
61346 # Need to do this so that g++ won't try to link in libstdc++
61347 ac_test_CFLAGS="${CFLAGS+set}"
61348 ac_save_CFLAGS="$CFLAGS"
61349 CFLAGS='-x c++ -Wl,--gc-sections'
61351 # Check for -Wl,--gc-sections
61352 # XXX This test is broken at the moment, as symbols required for linking
61353 # are now in libsupc++ (not built yet). In addition, this test has
61354 # cored on solaris in the past. In addition, --gc-sections doesn't
61355 # really work at the moment (keeps on discarding used sections, first
61356 # .eh_frame and now some of the glibc sections for iconv).
61357 # Bzzzzt. Thanks for playing, maybe next time.
61358 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61359 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61360 if test "$cross_compiling" = yes; then
61361 ac_sectionLDflags=yes
61362 else
61363 cat >conftest.$ac_ext <<_ACEOF
61364 /* confdefs.h. */
61365 _ACEOF
61366 cat confdefs.h >>conftest.$ac_ext
61367 cat >>conftest.$ac_ext <<_ACEOF
61368 /* end confdefs.h. */
61370 int main(void)
61372 try { throw 1; }
61373 catch (...) { };
61374 return 0;
61377 _ACEOF
61378 rm -f conftest$ac_exeext
61379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61380 (eval $ac_link) 2>&5
61381 ac_status=$?
61382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61385 (eval $ac_try) 2>&5
61386 ac_status=$?
61387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61388 (exit $ac_status); }; }; then
61389 ac_sectionLDflags=yes
61390 else
61391 echo "$as_me: program exited with status $ac_status" >&5
61392 echo "$as_me: failed program was:" >&5
61393 sed 's/^/| /' conftest.$ac_ext >&5
61395 ( exit $ac_status )
61396 ac_sectionLDflags=no
61398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61400 if test "$ac_test_CFLAGS" = set; then
61401 CFLAGS="$ac_save_CFLAGS"
61402 else
61403 # this is the suspicious part
61404 CFLAGS=''
61406 if test "$ac_sectionLDflags" = "yes"; then
61407 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61409 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61410 echo "${ECHO_T}$ac_sectionLDflags" >&6
61413 # Set linker optimization flags.
61414 if test x"$with_gnu_ld" = x"yes"; then
61415 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61423 echo "$as_me:$LINENO: checking for main in -lm" >&5
61424 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61425 if test "${ac_cv_lib_m_main+set}" = set; then
61426 echo $ECHO_N "(cached) $ECHO_C" >&6
61427 else
61428 ac_check_lib_save_LIBS=$LIBS
61429 LIBS="-lm $LIBS"
61430 if test x$gcc_no_link = xyes; then
61431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61433 { (exit 1); exit 1; }; }
61435 cat >conftest.$ac_ext <<_ACEOF
61436 /* confdefs.h. */
61437 _ACEOF
61438 cat confdefs.h >>conftest.$ac_ext
61439 cat >>conftest.$ac_ext <<_ACEOF
61440 /* end confdefs.h. */
61444 main ()
61446 main ();
61448 return 0;
61450 _ACEOF
61451 rm -f conftest.$ac_objext conftest$ac_exeext
61452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61453 (eval $ac_link) 2>conftest.er1
61454 ac_status=$?
61455 grep -v '^ *+' conftest.er1 >conftest.err
61456 rm -f conftest.er1
61457 cat conftest.err >&5
61458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61459 (exit $ac_status); } &&
61460 { ac_try='test -z "$ac_c_werror_flag"
61461 || test ! -s conftest.err'
61462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61463 (eval $ac_try) 2>&5
61464 ac_status=$?
61465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61466 (exit $ac_status); }; } &&
61467 { ac_try='test -s conftest$ac_exeext'
61468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61469 (eval $ac_try) 2>&5
61470 ac_status=$?
61471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61472 (exit $ac_status); }; }; then
61473 ac_cv_lib_m_main=yes
61474 else
61475 echo "$as_me: failed program was:" >&5
61476 sed 's/^/| /' conftest.$ac_ext >&5
61478 ac_cv_lib_m_main=no
61480 rm -f conftest.err conftest.$ac_objext \
61481 conftest$ac_exeext conftest.$ac_ext
61482 LIBS=$ac_check_lib_save_LIBS
61484 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61485 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61486 if test $ac_cv_lib_m_main = yes; then
61487 cat >>confdefs.h <<_ACEOF
61488 #define HAVE_LIBM 1
61489 _ACEOF
61491 LIBS="-lm $LIBS"
61496 for ac_func in copysignf
61498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61499 echo "$as_me:$LINENO: checking for $ac_func" >&5
61500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61501 if eval "test \"\${$as_ac_var+set}\" = set"; then
61502 echo $ECHO_N "(cached) $ECHO_C" >&6
61503 else
61504 if test x$gcc_no_link = xyes; then
61505 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61506 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61507 { (exit 1); exit 1; }; }
61509 cat >conftest.$ac_ext <<_ACEOF
61510 /* confdefs.h. */
61511 _ACEOF
61512 cat confdefs.h >>conftest.$ac_ext
61513 cat >>conftest.$ac_ext <<_ACEOF
61514 /* end confdefs.h. */
61515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61517 #define $ac_func innocuous_$ac_func
61519 /* System header to define __stub macros and hopefully few prototypes,
61520 which can conflict with char $ac_func (); below.
61521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61522 <limits.h> exists even on freestanding compilers. */
61524 #ifdef __STDC__
61525 # include <limits.h>
61526 #else
61527 # include <assert.h>
61528 #endif
61530 #undef $ac_func
61532 /* Override any gcc2 internal prototype to avoid an error. */
61533 #ifdef __cplusplus
61534 extern "C"
61536 #endif
61537 /* We use char because int might match the return type of a gcc2
61538 builtin and then its argument prototype would still apply. */
61539 char $ac_func ();
61540 /* The GNU C library defines this for functions which it implements
61541 to always fail with ENOSYS. Some functions are actually named
61542 something starting with __ and the normal name is an alias. */
61543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61544 choke me
61545 #else
61546 char (*f) () = $ac_func;
61547 #endif
61548 #ifdef __cplusplus
61550 #endif
61553 main ()
61555 return f != $ac_func;
61557 return 0;
61559 _ACEOF
61560 rm -f conftest.$ac_objext conftest$ac_exeext
61561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61562 (eval $ac_link) 2>conftest.er1
61563 ac_status=$?
61564 grep -v '^ *+' conftest.er1 >conftest.err
61565 rm -f conftest.er1
61566 cat conftest.err >&5
61567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61568 (exit $ac_status); } &&
61569 { ac_try='test -z "$ac_c_werror_flag"
61570 || test ! -s conftest.err'
61571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61572 (eval $ac_try) 2>&5
61573 ac_status=$?
61574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61575 (exit $ac_status); }; } &&
61576 { ac_try='test -s conftest$ac_exeext'
61577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61578 (eval $ac_try) 2>&5
61579 ac_status=$?
61580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61581 (exit $ac_status); }; }; then
61582 eval "$as_ac_var=yes"
61583 else
61584 echo "$as_me: failed program was:" >&5
61585 sed 's/^/| /' conftest.$ac_ext >&5
61587 eval "$as_ac_var=no"
61589 rm -f conftest.err conftest.$ac_objext \
61590 conftest$ac_exeext conftest.$ac_ext
61592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61594 if test `eval echo '${'$as_ac_var'}'` = yes; then
61595 cat >>confdefs.h <<_ACEOF
61596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61597 _ACEOF
61599 else
61600 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61602 done
61606 for ac_func in __signbit
61608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61609 echo "$as_me:$LINENO: checking for $ac_func" >&5
61610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61611 if eval "test \"\${$as_ac_var+set}\" = set"; then
61612 echo $ECHO_N "(cached) $ECHO_C" >&6
61613 else
61614 if test x$gcc_no_link = xyes; then
61615 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61617 { (exit 1); exit 1; }; }
61619 cat >conftest.$ac_ext <<_ACEOF
61620 /* confdefs.h. */
61621 _ACEOF
61622 cat confdefs.h >>conftest.$ac_ext
61623 cat >>conftest.$ac_ext <<_ACEOF
61624 /* end confdefs.h. */
61625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61627 #define $ac_func innocuous_$ac_func
61629 /* System header to define __stub macros and hopefully few prototypes,
61630 which can conflict with char $ac_func (); below.
61631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61632 <limits.h> exists even on freestanding compilers. */
61634 #ifdef __STDC__
61635 # include <limits.h>
61636 #else
61637 # include <assert.h>
61638 #endif
61640 #undef $ac_func
61642 /* Override any gcc2 internal prototype to avoid an error. */
61643 #ifdef __cplusplus
61644 extern "C"
61646 #endif
61647 /* We use char because int might match the return type of a gcc2
61648 builtin and then its argument prototype would still apply. */
61649 char $ac_func ();
61650 /* The GNU C library defines this for functions which it implements
61651 to always fail with ENOSYS. Some functions are actually named
61652 something starting with __ and the normal name is an alias. */
61653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61654 choke me
61655 #else
61656 char (*f) () = $ac_func;
61657 #endif
61658 #ifdef __cplusplus
61660 #endif
61663 main ()
61665 return f != $ac_func;
61667 return 0;
61669 _ACEOF
61670 rm -f conftest.$ac_objext conftest$ac_exeext
61671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61672 (eval $ac_link) 2>conftest.er1
61673 ac_status=$?
61674 grep -v '^ *+' conftest.er1 >conftest.err
61675 rm -f conftest.er1
61676 cat conftest.err >&5
61677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61678 (exit $ac_status); } &&
61679 { ac_try='test -z "$ac_c_werror_flag"
61680 || test ! -s conftest.err'
61681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61682 (eval $ac_try) 2>&5
61683 ac_status=$?
61684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61685 (exit $ac_status); }; } &&
61686 { ac_try='test -s conftest$ac_exeext'
61687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61688 (eval $ac_try) 2>&5
61689 ac_status=$?
61690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61691 (exit $ac_status); }; }; then
61692 eval "$as_ac_var=yes"
61693 else
61694 echo "$as_me: failed program was:" >&5
61695 sed 's/^/| /' conftest.$ac_ext >&5
61697 eval "$as_ac_var=no"
61699 rm -f conftest.err conftest.$ac_objext \
61700 conftest$ac_exeext conftest.$ac_ext
61702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61704 if test `eval echo '${'$as_ac_var'}'` = yes; then
61705 cat >>confdefs.h <<_ACEOF
61706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61707 _ACEOF
61709 else
61710 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61712 done
61716 for ac_func in __signbitf
61718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61719 echo "$as_me:$LINENO: checking for $ac_func" >&5
61720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61721 if eval "test \"\${$as_ac_var+set}\" = set"; then
61722 echo $ECHO_N "(cached) $ECHO_C" >&6
61723 else
61724 if test x$gcc_no_link = xyes; then
61725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61727 { (exit 1); exit 1; }; }
61729 cat >conftest.$ac_ext <<_ACEOF
61730 /* confdefs.h. */
61731 _ACEOF
61732 cat confdefs.h >>conftest.$ac_ext
61733 cat >>conftest.$ac_ext <<_ACEOF
61734 /* end confdefs.h. */
61735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61737 #define $ac_func innocuous_$ac_func
61739 /* System header to define __stub macros and hopefully few prototypes,
61740 which can conflict with char $ac_func (); below.
61741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61742 <limits.h> exists even on freestanding compilers. */
61744 #ifdef __STDC__
61745 # include <limits.h>
61746 #else
61747 # include <assert.h>
61748 #endif
61750 #undef $ac_func
61752 /* Override any gcc2 internal prototype to avoid an error. */
61753 #ifdef __cplusplus
61754 extern "C"
61756 #endif
61757 /* We use char because int might match the return type of a gcc2
61758 builtin and then its argument prototype would still apply. */
61759 char $ac_func ();
61760 /* The GNU C library defines this for functions which it implements
61761 to always fail with ENOSYS. Some functions are actually named
61762 something starting with __ and the normal name is an alias. */
61763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61764 choke me
61765 #else
61766 char (*f) () = $ac_func;
61767 #endif
61768 #ifdef __cplusplus
61770 #endif
61773 main ()
61775 return f != $ac_func;
61777 return 0;
61779 _ACEOF
61780 rm -f conftest.$ac_objext conftest$ac_exeext
61781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61782 (eval $ac_link) 2>conftest.er1
61783 ac_status=$?
61784 grep -v '^ *+' conftest.er1 >conftest.err
61785 rm -f conftest.er1
61786 cat conftest.err >&5
61787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61788 (exit $ac_status); } &&
61789 { ac_try='test -z "$ac_c_werror_flag"
61790 || test ! -s conftest.err'
61791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61792 (eval $ac_try) 2>&5
61793 ac_status=$?
61794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61795 (exit $ac_status); }; } &&
61796 { ac_try='test -s conftest$ac_exeext'
61797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61798 (eval $ac_try) 2>&5
61799 ac_status=$?
61800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61801 (exit $ac_status); }; }; then
61802 eval "$as_ac_var=yes"
61803 else
61804 echo "$as_me: failed program was:" >&5
61805 sed 's/^/| /' conftest.$ac_ext >&5
61807 eval "$as_ac_var=no"
61809 rm -f conftest.err conftest.$ac_objext \
61810 conftest$ac_exeext conftest.$ac_ext
61812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61814 if test `eval echo '${'$as_ac_var'}'` = yes; then
61815 cat >>confdefs.h <<_ACEOF
61816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61817 _ACEOF
61819 else
61820 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61822 done
61825 if test x$ac_cv_func_copysignl = x"yes"; then
61827 for ac_func in __signbitl
61829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61830 echo "$as_me:$LINENO: checking for $ac_func" >&5
61831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61832 if eval "test \"\${$as_ac_var+set}\" = set"; then
61833 echo $ECHO_N "(cached) $ECHO_C" >&6
61834 else
61835 if test x$gcc_no_link = xyes; then
61836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61838 { (exit 1); exit 1; }; }
61840 cat >conftest.$ac_ext <<_ACEOF
61841 /* confdefs.h. */
61842 _ACEOF
61843 cat confdefs.h >>conftest.$ac_ext
61844 cat >>conftest.$ac_ext <<_ACEOF
61845 /* end confdefs.h. */
61846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61848 #define $ac_func innocuous_$ac_func
61850 /* System header to define __stub macros and hopefully few prototypes,
61851 which can conflict with char $ac_func (); below.
61852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61853 <limits.h> exists even on freestanding compilers. */
61855 #ifdef __STDC__
61856 # include <limits.h>
61857 #else
61858 # include <assert.h>
61859 #endif
61861 #undef $ac_func
61863 /* Override any gcc2 internal prototype to avoid an error. */
61864 #ifdef __cplusplus
61865 extern "C"
61867 #endif
61868 /* We use char because int might match the return type of a gcc2
61869 builtin and then its argument prototype would still apply. */
61870 char $ac_func ();
61871 /* The GNU C library defines this for functions which it implements
61872 to always fail with ENOSYS. Some functions are actually named
61873 something starting with __ and the normal name is an alias. */
61874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61875 choke me
61876 #else
61877 char (*f) () = $ac_func;
61878 #endif
61879 #ifdef __cplusplus
61881 #endif
61884 main ()
61886 return f != $ac_func;
61888 return 0;
61890 _ACEOF
61891 rm -f conftest.$ac_objext conftest$ac_exeext
61892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61893 (eval $ac_link) 2>conftest.er1
61894 ac_status=$?
61895 grep -v '^ *+' conftest.er1 >conftest.err
61896 rm -f conftest.er1
61897 cat conftest.err >&5
61898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61899 (exit $ac_status); } &&
61900 { ac_try='test -z "$ac_c_werror_flag"
61901 || test ! -s conftest.err'
61902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61903 (eval $ac_try) 2>&5
61904 ac_status=$?
61905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61906 (exit $ac_status); }; } &&
61907 { ac_try='test -s conftest$ac_exeext'
61908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61909 (eval $ac_try) 2>&5
61910 ac_status=$?
61911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61912 (exit $ac_status); }; }; then
61913 eval "$as_ac_var=yes"
61914 else
61915 echo "$as_me: failed program was:" >&5
61916 sed 's/^/| /' conftest.$ac_ext >&5
61918 eval "$as_ac_var=no"
61920 rm -f conftest.err conftest.$ac_objext \
61921 conftest$ac_exeext conftest.$ac_ext
61923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61925 if test `eval echo '${'$as_ac_var'}'` = yes; then
61926 cat >>confdefs.h <<_ACEOF
61927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61928 _ACEOF
61930 else
61931 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61933 done
61937 # Used in libmath/Makefile.am.
61938 if test -n "$LIBMATHOBJS"; then
61939 need_libmath=yes
61944 # Test wchar.h for mbstate_t, which is needed for char_traits and
61945 # others even if wchar_t support is not on.
61946 echo "$as_me:$LINENO: checking for mbstate_t" >&5
61947 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61948 cat >conftest.$ac_ext <<_ACEOF
61949 /* confdefs.h. */
61950 _ACEOF
61951 cat confdefs.h >>conftest.$ac_ext
61952 cat >>conftest.$ac_ext <<_ACEOF
61953 /* end confdefs.h. */
61954 #include <wchar.h>
61956 main ()
61958 mbstate_t teststate;
61960 return 0;
61962 _ACEOF
61963 rm -f conftest.$ac_objext
61964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61965 (eval $ac_compile) 2>conftest.er1
61966 ac_status=$?
61967 grep -v '^ *+' conftest.er1 >conftest.err
61968 rm -f conftest.er1
61969 cat conftest.err >&5
61970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61971 (exit $ac_status); } &&
61972 { ac_try='test -z "$ac_c_werror_flag"
61973 || test ! -s conftest.err'
61974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61975 (eval $ac_try) 2>&5
61976 ac_status=$?
61977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61978 (exit $ac_status); }; } &&
61979 { ac_try='test -s conftest.$ac_objext'
61980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61981 (eval $ac_try) 2>&5
61982 ac_status=$?
61983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61984 (exit $ac_status); }; }; then
61985 have_mbstate_t=yes
61986 else
61987 echo "$as_me: failed program was:" >&5
61988 sed 's/^/| /' conftest.$ac_ext >&5
61990 have_mbstate_t=no
61992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61993 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61994 echo "${ECHO_T}$have_mbstate_t" >&6
61995 if test x"$have_mbstate_t" = xyes; then
61996 cat >>confdefs.h <<\_ACEOF
61997 #define HAVE_MBSTATE_T 1
61998 _ACEOF
62002 # Sanity check for existence of ISO C99 headers for extended encoding.
62004 for ac_header in wchar.h
62006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62008 echo "$as_me:$LINENO: checking for $ac_header" >&5
62009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62011 echo $ECHO_N "(cached) $ECHO_C" >&6
62013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62015 else
62016 # Is the header compilable?
62017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62019 cat >conftest.$ac_ext <<_ACEOF
62020 /* confdefs.h. */
62021 _ACEOF
62022 cat confdefs.h >>conftest.$ac_ext
62023 cat >>conftest.$ac_ext <<_ACEOF
62024 /* end confdefs.h. */
62025 $ac_includes_default
62026 #include <$ac_header>
62027 _ACEOF
62028 rm -f conftest.$ac_objext
62029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62030 (eval $ac_compile) 2>conftest.er1
62031 ac_status=$?
62032 grep -v '^ *+' conftest.er1 >conftest.err
62033 rm -f conftest.er1
62034 cat conftest.err >&5
62035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62036 (exit $ac_status); } &&
62037 { ac_try='test -z "$ac_c_werror_flag"
62038 || test ! -s conftest.err'
62039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62040 (eval $ac_try) 2>&5
62041 ac_status=$?
62042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62043 (exit $ac_status); }; } &&
62044 { ac_try='test -s conftest.$ac_objext'
62045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62046 (eval $ac_try) 2>&5
62047 ac_status=$?
62048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62049 (exit $ac_status); }; }; then
62050 ac_header_compiler=yes
62051 else
62052 echo "$as_me: failed program was:" >&5
62053 sed 's/^/| /' conftest.$ac_ext >&5
62055 ac_header_compiler=no
62057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62059 echo "${ECHO_T}$ac_header_compiler" >&6
62061 # Is the header present?
62062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62064 cat >conftest.$ac_ext <<_ACEOF
62065 /* confdefs.h. */
62066 _ACEOF
62067 cat confdefs.h >>conftest.$ac_ext
62068 cat >>conftest.$ac_ext <<_ACEOF
62069 /* end confdefs.h. */
62070 #include <$ac_header>
62071 _ACEOF
62072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62073 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
62080 if test -s conftest.err; then
62081 ac_cpp_err=$ac_c_preproc_warn_flag
62082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62083 else
62084 ac_cpp_err=
62086 else
62087 ac_cpp_err=yes
62089 if test -z "$ac_cpp_err"; then
62090 ac_header_preproc=yes
62091 else
62092 echo "$as_me: failed program was:" >&5
62093 sed 's/^/| /' conftest.$ac_ext >&5
62095 ac_header_preproc=no
62097 rm -f conftest.err conftest.$ac_ext
62098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62099 echo "${ECHO_T}$ac_header_preproc" >&6
62101 # So? What about this header?
62102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62103 yes:no: )
62104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62108 ac_header_preproc=yes
62110 no:yes:* )
62111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62124 cat <<\_ASBOX
62125 ## ----------------------------------------- ##
62126 ## Report this to the package-unused lists. ##
62127 ## ----------------------------------------- ##
62128 _ASBOX
62130 sed "s/^/$as_me: WARNING: /" >&2
62132 esac
62133 echo "$as_me:$LINENO: checking for $ac_header" >&5
62134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62136 echo $ECHO_N "(cached) $ECHO_C" >&6
62137 else
62138 eval "$as_ac_Header=\$ac_header_preproc"
62140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62145 cat >>confdefs.h <<_ACEOF
62146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62147 _ACEOF
62148 ac_has_wchar_h=yes
62149 else
62150 ac_has_wchar_h=no
62153 done
62156 for ac_header in wctype.h
62158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62160 echo "$as_me:$LINENO: checking for $ac_header" >&5
62161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62163 echo $ECHO_N "(cached) $ECHO_C" >&6
62165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62167 else
62168 # Is the header compilable?
62169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62171 cat >conftest.$ac_ext <<_ACEOF
62172 /* confdefs.h. */
62173 _ACEOF
62174 cat confdefs.h >>conftest.$ac_ext
62175 cat >>conftest.$ac_ext <<_ACEOF
62176 /* end confdefs.h. */
62177 $ac_includes_default
62178 #include <$ac_header>
62179 _ACEOF
62180 rm -f conftest.$ac_objext
62181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62182 (eval $ac_compile) 2>conftest.er1
62183 ac_status=$?
62184 grep -v '^ *+' conftest.er1 >conftest.err
62185 rm -f conftest.er1
62186 cat conftest.err >&5
62187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62188 (exit $ac_status); } &&
62189 { ac_try='test -z "$ac_c_werror_flag"
62190 || test ! -s conftest.err'
62191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62192 (eval $ac_try) 2>&5
62193 ac_status=$?
62194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62195 (exit $ac_status); }; } &&
62196 { ac_try='test -s conftest.$ac_objext'
62197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62198 (eval $ac_try) 2>&5
62199 ac_status=$?
62200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62201 (exit $ac_status); }; }; then
62202 ac_header_compiler=yes
62203 else
62204 echo "$as_me: failed program was:" >&5
62205 sed 's/^/| /' conftest.$ac_ext >&5
62207 ac_header_compiler=no
62209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62211 echo "${ECHO_T}$ac_header_compiler" >&6
62213 # Is the header present?
62214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62216 cat >conftest.$ac_ext <<_ACEOF
62217 /* confdefs.h. */
62218 _ACEOF
62219 cat confdefs.h >>conftest.$ac_ext
62220 cat >>conftest.$ac_ext <<_ACEOF
62221 /* end confdefs.h. */
62222 #include <$ac_header>
62223 _ACEOF
62224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62226 ac_status=$?
62227 grep -v '^ *+' conftest.er1 >conftest.err
62228 rm -f conftest.er1
62229 cat conftest.err >&5
62230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62231 (exit $ac_status); } >/dev/null; then
62232 if test -s conftest.err; then
62233 ac_cpp_err=$ac_c_preproc_warn_flag
62234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62235 else
62236 ac_cpp_err=
62238 else
62239 ac_cpp_err=yes
62241 if test -z "$ac_cpp_err"; then
62242 ac_header_preproc=yes
62243 else
62244 echo "$as_me: failed program was:" >&5
62245 sed 's/^/| /' conftest.$ac_ext >&5
62247 ac_header_preproc=no
62249 rm -f conftest.err conftest.$ac_ext
62250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62251 echo "${ECHO_T}$ac_header_preproc" >&6
62253 # So? What about this header?
62254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62255 yes:no: )
62256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62260 ac_header_preproc=yes
62262 no:yes:* )
62263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62276 cat <<\_ASBOX
62277 ## ----------------------------------------- ##
62278 ## Report this to the package-unused lists. ##
62279 ## ----------------------------------------- ##
62280 _ASBOX
62282 sed "s/^/$as_me: WARNING: /" >&2
62284 esac
62285 echo "$as_me:$LINENO: checking for $ac_header" >&5
62286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62288 echo $ECHO_N "(cached) $ECHO_C" >&6
62289 else
62290 eval "$as_ac_Header=\$ac_header_preproc"
62292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62297 cat >>confdefs.h <<_ACEOF
62298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62299 _ACEOF
62300 ac_has_wctype_h=yes
62301 else
62302 ac_has_wctype_h=no
62305 done
62308 # Only continue checking if the ISO C99 headers exist and support is on.
62309 if test x"$ac_has_wchar_h" = xyes &&
62310 test x"$ac_has_wctype_h" = xyes &&
62311 test x"$enable_c_mbchar" != xno; then
62313 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62314 # numeric_limits can instantiate type_traits<wchar_t>
62315 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62316 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62317 cat >conftest.$ac_ext <<_ACEOF
62318 /* confdefs.h. */
62319 _ACEOF
62320 cat confdefs.h >>conftest.$ac_ext
62321 cat >>conftest.$ac_ext <<_ACEOF
62322 /* end confdefs.h. */
62323 #include <wchar.h>
62325 main ()
62327 int i = WCHAR_MIN; int j = WCHAR_MAX;
62329 return 0;
62331 _ACEOF
62332 rm -f conftest.$ac_objext
62333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62334 (eval $ac_compile) 2>conftest.er1
62335 ac_status=$?
62336 grep -v '^ *+' conftest.er1 >conftest.err
62337 rm -f conftest.er1
62338 cat conftest.err >&5
62339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62340 (exit $ac_status); } &&
62341 { ac_try='test -z "$ac_c_werror_flag"
62342 || test ! -s conftest.err'
62343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62344 (eval $ac_try) 2>&5
62345 ac_status=$?
62346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62347 (exit $ac_status); }; } &&
62348 { ac_try='test -s conftest.$ac_objext'
62349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62350 (eval $ac_try) 2>&5
62351 ac_status=$?
62352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62353 (exit $ac_status); }; }; then
62354 has_wchar_minmax=yes
62355 else
62356 echo "$as_me: failed program was:" >&5
62357 sed 's/^/| /' conftest.$ac_ext >&5
62359 has_wchar_minmax=no
62361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62362 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62363 echo "${ECHO_T}$has_wchar_minmax" >&6
62365 # Test wchar.h for WEOF, which is what we use to determine whether
62366 # to specialize for char_traits<wchar_t> or not.
62367 echo "$as_me:$LINENO: checking for WEOF" >&5
62368 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62369 cat >conftest.$ac_ext <<_ACEOF
62370 /* confdefs.h. */
62371 _ACEOF
62372 cat confdefs.h >>conftest.$ac_ext
62373 cat >>conftest.$ac_ext <<_ACEOF
62374 /* end confdefs.h. */
62376 #include <wchar.h>
62377 #include <stddef.h>
62379 main ()
62381 wint_t i = WEOF;
62383 return 0;
62385 _ACEOF
62386 rm -f conftest.$ac_objext
62387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62388 (eval $ac_compile) 2>conftest.er1
62389 ac_status=$?
62390 grep -v '^ *+' conftest.er1 >conftest.err
62391 rm -f conftest.er1
62392 cat conftest.err >&5
62393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62394 (exit $ac_status); } &&
62395 { ac_try='test -z "$ac_c_werror_flag"
62396 || test ! -s conftest.err'
62397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62398 (eval $ac_try) 2>&5
62399 ac_status=$?
62400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62401 (exit $ac_status); }; } &&
62402 { ac_try='test -s conftest.$ac_objext'
62403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62404 (eval $ac_try) 2>&5
62405 ac_status=$?
62406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62407 (exit $ac_status); }; }; then
62408 has_weof=yes
62409 else
62410 echo "$as_me: failed program was:" >&5
62411 sed 's/^/| /' conftest.$ac_ext >&5
62413 has_weof=no
62415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62416 echo "$as_me:$LINENO: result: $has_weof" >&5
62417 echo "${ECHO_T}$has_weof" >&6
62419 # Tests for wide character functions used in char_traits<wchar_t>.
62420 ac_wfuncs=yes
62427 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62430 echo "$as_me:$LINENO: checking for $ac_func" >&5
62431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62432 if eval "test \"\${$as_ac_var+set}\" = set"; then
62433 echo $ECHO_N "(cached) $ECHO_C" >&6
62434 else
62435 if test x$gcc_no_link = xyes; then
62436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62438 { (exit 1); exit 1; }; }
62440 cat >conftest.$ac_ext <<_ACEOF
62441 /* confdefs.h. */
62442 _ACEOF
62443 cat confdefs.h >>conftest.$ac_ext
62444 cat >>conftest.$ac_ext <<_ACEOF
62445 /* end confdefs.h. */
62446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62448 #define $ac_func innocuous_$ac_func
62450 /* System header to define __stub macros and hopefully few prototypes,
62451 which can conflict with char $ac_func (); below.
62452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62453 <limits.h> exists even on freestanding compilers. */
62455 #ifdef __STDC__
62456 # include <limits.h>
62457 #else
62458 # include <assert.h>
62459 #endif
62461 #undef $ac_func
62463 /* Override any gcc2 internal prototype to avoid an error. */
62464 #ifdef __cplusplus
62465 extern "C"
62467 #endif
62468 /* We use char because int might match the return type of a gcc2
62469 builtin and then its argument prototype would still apply. */
62470 char $ac_func ();
62471 /* The GNU C library defines this for functions which it implements
62472 to always fail with ENOSYS. Some functions are actually named
62473 something starting with __ and the normal name is an alias. */
62474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62475 choke me
62476 #else
62477 char (*f) () = $ac_func;
62478 #endif
62479 #ifdef __cplusplus
62481 #endif
62484 main ()
62486 return f != $ac_func;
62488 return 0;
62490 _ACEOF
62491 rm -f conftest.$ac_objext conftest$ac_exeext
62492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62493 (eval $ac_link) 2>conftest.er1
62494 ac_status=$?
62495 grep -v '^ *+' conftest.er1 >conftest.err
62496 rm -f conftest.er1
62497 cat conftest.err >&5
62498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62499 (exit $ac_status); } &&
62500 { ac_try='test -z "$ac_c_werror_flag"
62501 || test ! -s conftest.err'
62502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62503 (eval $ac_try) 2>&5
62504 ac_status=$?
62505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62506 (exit $ac_status); }; } &&
62507 { ac_try='test -s conftest$ac_exeext'
62508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62509 (eval $ac_try) 2>&5
62510 ac_status=$?
62511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62512 (exit $ac_status); }; }; then
62513 eval "$as_ac_var=yes"
62514 else
62515 echo "$as_me: failed program was:" >&5
62516 sed 's/^/| /' conftest.$ac_ext >&5
62518 eval "$as_ac_var=no"
62520 rm -f conftest.err conftest.$ac_objext \
62521 conftest$ac_exeext conftest.$ac_ext
62523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62525 if test `eval echo '${'$as_ac_var'}'` = yes; then
62526 cat >>confdefs.h <<_ACEOF
62527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62528 _ACEOF
62530 else
62531 ac_wfuncs=no
62533 done
62536 # Checks for names injected into std:: by the c_std headers.
62583 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62584 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62585 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62586 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62587 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62588 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62591 echo "$as_me:$LINENO: checking for $ac_func" >&5
62592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62593 if eval "test \"\${$as_ac_var+set}\" = set"; then
62594 echo $ECHO_N "(cached) $ECHO_C" >&6
62595 else
62596 if test x$gcc_no_link = xyes; then
62597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62599 { (exit 1); exit 1; }; }
62601 cat >conftest.$ac_ext <<_ACEOF
62602 /* confdefs.h. */
62603 _ACEOF
62604 cat confdefs.h >>conftest.$ac_ext
62605 cat >>conftest.$ac_ext <<_ACEOF
62606 /* end confdefs.h. */
62607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62609 #define $ac_func innocuous_$ac_func
62611 /* System header to define __stub macros and hopefully few prototypes,
62612 which can conflict with char $ac_func (); below.
62613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62614 <limits.h> exists even on freestanding compilers. */
62616 #ifdef __STDC__
62617 # include <limits.h>
62618 #else
62619 # include <assert.h>
62620 #endif
62622 #undef $ac_func
62624 /* Override any gcc2 internal prototype to avoid an error. */
62625 #ifdef __cplusplus
62626 extern "C"
62628 #endif
62629 /* We use char because int might match the return type of a gcc2
62630 builtin and then its argument prototype would still apply. */
62631 char $ac_func ();
62632 /* The GNU C library defines this for functions which it implements
62633 to always fail with ENOSYS. Some functions are actually named
62634 something starting with __ and the normal name is an alias. */
62635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62636 choke me
62637 #else
62638 char (*f) () = $ac_func;
62639 #endif
62640 #ifdef __cplusplus
62642 #endif
62645 main ()
62647 return f != $ac_func;
62649 return 0;
62651 _ACEOF
62652 rm -f conftest.$ac_objext conftest$ac_exeext
62653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62654 (eval $ac_link) 2>conftest.er1
62655 ac_status=$?
62656 grep -v '^ *+' conftest.er1 >conftest.err
62657 rm -f conftest.er1
62658 cat conftest.err >&5
62659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62660 (exit $ac_status); } &&
62661 { ac_try='test -z "$ac_c_werror_flag"
62662 || test ! -s conftest.err'
62663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62664 (eval $ac_try) 2>&5
62665 ac_status=$?
62666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62667 (exit $ac_status); }; } &&
62668 { ac_try='test -s conftest$ac_exeext'
62669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62670 (eval $ac_try) 2>&5
62671 ac_status=$?
62672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62673 (exit $ac_status); }; }; then
62674 eval "$as_ac_var=yes"
62675 else
62676 echo "$as_me: failed program was:" >&5
62677 sed 's/^/| /' conftest.$ac_ext >&5
62679 eval "$as_ac_var=no"
62681 rm -f conftest.err conftest.$ac_objext \
62682 conftest$ac_exeext conftest.$ac_ext
62684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62686 if test `eval echo '${'$as_ac_var'}'` = yes; then
62687 cat >>confdefs.h <<_ACEOF
62688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62689 _ACEOF
62691 else
62692 ac_wfuncs=no
62694 done
62697 # Checks for wide character functions that are not required
62698 # for basic wchar_t support. Don't disable support if they are missing.
62699 # Injection of these is wrapped with guard macros.
62705 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62708 echo "$as_me:$LINENO: checking for $ac_func" >&5
62709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62710 if eval "test \"\${$as_ac_var+set}\" = set"; then
62711 echo $ECHO_N "(cached) $ECHO_C" >&6
62712 else
62713 if test x$gcc_no_link = xyes; then
62714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62716 { (exit 1); exit 1; }; }
62718 cat >conftest.$ac_ext <<_ACEOF
62719 /* confdefs.h. */
62720 _ACEOF
62721 cat confdefs.h >>conftest.$ac_ext
62722 cat >>conftest.$ac_ext <<_ACEOF
62723 /* end confdefs.h. */
62724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62726 #define $ac_func innocuous_$ac_func
62728 /* System header to define __stub macros and hopefully few prototypes,
62729 which can conflict with char $ac_func (); below.
62730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62731 <limits.h> exists even on freestanding compilers. */
62733 #ifdef __STDC__
62734 # include <limits.h>
62735 #else
62736 # include <assert.h>
62737 #endif
62739 #undef $ac_func
62741 /* Override any gcc2 internal prototype to avoid an error. */
62742 #ifdef __cplusplus
62743 extern "C"
62745 #endif
62746 /* We use char because int might match the return type of a gcc2
62747 builtin and then its argument prototype would still apply. */
62748 char $ac_func ();
62749 /* The GNU C library defines this for functions which it implements
62750 to always fail with ENOSYS. Some functions are actually named
62751 something starting with __ and the normal name is an alias. */
62752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62753 choke me
62754 #else
62755 char (*f) () = $ac_func;
62756 #endif
62757 #ifdef __cplusplus
62759 #endif
62762 main ()
62764 return f != $ac_func;
62766 return 0;
62768 _ACEOF
62769 rm -f conftest.$ac_objext conftest$ac_exeext
62770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62771 (eval $ac_link) 2>conftest.er1
62772 ac_status=$?
62773 grep -v '^ *+' conftest.er1 >conftest.err
62774 rm -f conftest.er1
62775 cat conftest.err >&5
62776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62777 (exit $ac_status); } &&
62778 { ac_try='test -z "$ac_c_werror_flag"
62779 || test ! -s conftest.err'
62780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62781 (eval $ac_try) 2>&5
62782 ac_status=$?
62783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62784 (exit $ac_status); }; } &&
62785 { ac_try='test -s conftest$ac_exeext'
62786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62787 (eval $ac_try) 2>&5
62788 ac_status=$?
62789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62790 (exit $ac_status); }; }; then
62791 eval "$as_ac_var=yes"
62792 else
62793 echo "$as_me: failed program was:" >&5
62794 sed 's/^/| /' conftest.$ac_ext >&5
62796 eval "$as_ac_var=no"
62798 rm -f conftest.err conftest.$ac_objext \
62799 conftest$ac_exeext conftest.$ac_ext
62801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62803 if test `eval echo '${'$as_ac_var'}'` = yes; then
62804 cat >>confdefs.h <<_ACEOF
62805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62806 _ACEOF
62809 done
62812 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62813 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62814 if test x"$has_weof" = xyes &&
62815 test x"$has_wchar_minmax" = xyes &&
62816 test x"$ac_wfuncs" = xyes;
62817 then
62818 ac_isoC99_wchar_t=yes
62819 else
62820 ac_isoC99_wchar_t=no
62822 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62823 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62825 # Use iconv for wchar_t to char conversions. As such, check for
62826 # X/Open Portability Guide, version 2 features (XPG2).
62827 if test "${ac_cv_header_iconv_h+set}" = set; then
62828 echo "$as_me:$LINENO: checking for iconv.h" >&5
62829 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62830 if test "${ac_cv_header_iconv_h+set}" = set; then
62831 echo $ECHO_N "(cached) $ECHO_C" >&6
62833 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62834 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62835 else
62836 # Is the header compilable?
62837 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62838 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62839 cat >conftest.$ac_ext <<_ACEOF
62840 /* confdefs.h. */
62841 _ACEOF
62842 cat confdefs.h >>conftest.$ac_ext
62843 cat >>conftest.$ac_ext <<_ACEOF
62844 /* end confdefs.h. */
62845 $ac_includes_default
62846 #include <iconv.h>
62847 _ACEOF
62848 rm -f conftest.$ac_objext
62849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62850 (eval $ac_compile) 2>conftest.er1
62851 ac_status=$?
62852 grep -v '^ *+' conftest.er1 >conftest.err
62853 rm -f conftest.er1
62854 cat conftest.err >&5
62855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62856 (exit $ac_status); } &&
62857 { ac_try='test -z "$ac_c_werror_flag"
62858 || test ! -s conftest.err'
62859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62860 (eval $ac_try) 2>&5
62861 ac_status=$?
62862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62863 (exit $ac_status); }; } &&
62864 { ac_try='test -s conftest.$ac_objext'
62865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62866 (eval $ac_try) 2>&5
62867 ac_status=$?
62868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62869 (exit $ac_status); }; }; then
62870 ac_header_compiler=yes
62871 else
62872 echo "$as_me: failed program was:" >&5
62873 sed 's/^/| /' conftest.$ac_ext >&5
62875 ac_header_compiler=no
62877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62879 echo "${ECHO_T}$ac_header_compiler" >&6
62881 # Is the header present?
62882 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62883 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62884 cat >conftest.$ac_ext <<_ACEOF
62885 /* confdefs.h. */
62886 _ACEOF
62887 cat confdefs.h >>conftest.$ac_ext
62888 cat >>conftest.$ac_ext <<_ACEOF
62889 /* end confdefs.h. */
62890 #include <iconv.h>
62891 _ACEOF
62892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62894 ac_status=$?
62895 grep -v '^ *+' conftest.er1 >conftest.err
62896 rm -f conftest.er1
62897 cat conftest.err >&5
62898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62899 (exit $ac_status); } >/dev/null; then
62900 if test -s conftest.err; then
62901 ac_cpp_err=$ac_c_preproc_warn_flag
62902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62903 else
62904 ac_cpp_err=
62906 else
62907 ac_cpp_err=yes
62909 if test -z "$ac_cpp_err"; then
62910 ac_header_preproc=yes
62911 else
62912 echo "$as_me: failed program was:" >&5
62913 sed 's/^/| /' conftest.$ac_ext >&5
62915 ac_header_preproc=no
62917 rm -f conftest.err conftest.$ac_ext
62918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62919 echo "${ECHO_T}$ac_header_preproc" >&6
62921 # So? What about this header?
62922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62923 yes:no: )
62924 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62925 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62926 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62927 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62928 ac_header_preproc=yes
62930 no:yes:* )
62931 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62932 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62933 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62934 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62935 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62936 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62937 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
62938 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
62939 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62940 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62941 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62942 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62944 cat <<\_ASBOX
62945 ## ----------------------------------------- ##
62946 ## Report this to the package-unused lists. ##
62947 ## ----------------------------------------- ##
62948 _ASBOX
62950 sed "s/^/$as_me: WARNING: /" >&2
62952 esac
62953 echo "$as_me:$LINENO: checking for iconv.h" >&5
62954 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62955 if test "${ac_cv_header_iconv_h+set}" = set; then
62956 echo $ECHO_N "(cached) $ECHO_C" >&6
62957 else
62958 ac_cv_header_iconv_h=$ac_header_preproc
62960 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62961 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62964 if test $ac_cv_header_iconv_h = yes; then
62965 ac_has_iconv_h=yes
62966 else
62967 ac_has_iconv_h=no
62971 if test "${ac_cv_header_langinfo_h+set}" = set; then
62972 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62973 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62974 if test "${ac_cv_header_langinfo_h+set}" = set; then
62975 echo $ECHO_N "(cached) $ECHO_C" >&6
62977 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62978 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62979 else
62980 # Is the header compilable?
62981 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62982 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62983 cat >conftest.$ac_ext <<_ACEOF
62984 /* confdefs.h. */
62985 _ACEOF
62986 cat confdefs.h >>conftest.$ac_ext
62987 cat >>conftest.$ac_ext <<_ACEOF
62988 /* end confdefs.h. */
62989 $ac_includes_default
62990 #include <langinfo.h>
62991 _ACEOF
62992 rm -f conftest.$ac_objext
62993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62994 (eval $ac_compile) 2>conftest.er1
62995 ac_status=$?
62996 grep -v '^ *+' conftest.er1 >conftest.err
62997 rm -f conftest.er1
62998 cat conftest.err >&5
62999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63000 (exit $ac_status); } &&
63001 { ac_try='test -z "$ac_c_werror_flag"
63002 || test ! -s conftest.err'
63003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63004 (eval $ac_try) 2>&5
63005 ac_status=$?
63006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63007 (exit $ac_status); }; } &&
63008 { ac_try='test -s conftest.$ac_objext'
63009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63010 (eval $ac_try) 2>&5
63011 ac_status=$?
63012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63013 (exit $ac_status); }; }; then
63014 ac_header_compiler=yes
63015 else
63016 echo "$as_me: failed program was:" >&5
63017 sed 's/^/| /' conftest.$ac_ext >&5
63019 ac_header_compiler=no
63021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63023 echo "${ECHO_T}$ac_header_compiler" >&6
63025 # Is the header present?
63026 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
63027 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
63028 cat >conftest.$ac_ext <<_ACEOF
63029 /* confdefs.h. */
63030 _ACEOF
63031 cat confdefs.h >>conftest.$ac_ext
63032 cat >>conftest.$ac_ext <<_ACEOF
63033 /* end confdefs.h. */
63034 #include <langinfo.h>
63035 _ACEOF
63036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63038 ac_status=$?
63039 grep -v '^ *+' conftest.er1 >conftest.err
63040 rm -f conftest.er1
63041 cat conftest.err >&5
63042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63043 (exit $ac_status); } >/dev/null; then
63044 if test -s conftest.err; then
63045 ac_cpp_err=$ac_c_preproc_warn_flag
63046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63047 else
63048 ac_cpp_err=
63050 else
63051 ac_cpp_err=yes
63053 if test -z "$ac_cpp_err"; then
63054 ac_header_preproc=yes
63055 else
63056 echo "$as_me: failed program was:" >&5
63057 sed 's/^/| /' conftest.$ac_ext >&5
63059 ac_header_preproc=no
63061 rm -f conftest.err conftest.$ac_ext
63062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63063 echo "${ECHO_T}$ac_header_preproc" >&6
63065 # So? What about this header?
63066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63067 yes:no: )
63068 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
63069 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
63070 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
63071 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
63072 ac_header_preproc=yes
63074 no:yes:* )
63075 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
63076 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
63077 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
63078 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
63079 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
63080 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
63081 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
63082 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
63083 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
63084 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
63085 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
63086 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
63088 cat <<\_ASBOX
63089 ## ----------------------------------------- ##
63090 ## Report this to the package-unused lists. ##
63091 ## ----------------------------------------- ##
63092 _ASBOX
63094 sed "s/^/$as_me: WARNING: /" >&2
63096 esac
63097 echo "$as_me:$LINENO: checking for langinfo.h" >&5
63098 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
63099 if test "${ac_cv_header_langinfo_h+set}" = set; then
63100 echo $ECHO_N "(cached) $ECHO_C" >&6
63101 else
63102 ac_cv_header_langinfo_h=$ac_header_preproc
63104 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
63105 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
63108 if test $ac_cv_header_langinfo_h = yes; then
63109 ac_has_langinfo_h=yes
63110 else
63111 ac_has_langinfo_h=no
63116 # Check for existence of libiconv.a providing XPG2 wchar_t support.
63117 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
63118 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
63119 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
63120 echo $ECHO_N "(cached) $ECHO_C" >&6
63121 else
63122 ac_check_lib_save_LIBS=$LIBS
63123 LIBS="-liconv $LIBS"
63124 if test x$gcc_no_link = xyes; then
63125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63127 { (exit 1); exit 1; }; }
63129 cat >conftest.$ac_ext <<_ACEOF
63130 /* confdefs.h. */
63131 _ACEOF
63132 cat confdefs.h >>conftest.$ac_ext
63133 cat >>conftest.$ac_ext <<_ACEOF
63134 /* end confdefs.h. */
63136 /* Override any gcc2 internal prototype to avoid an error. */
63137 #ifdef __cplusplus
63138 extern "C"
63139 #endif
63140 /* We use char because int might match the return type of a gcc2
63141 builtin and then its argument prototype would still apply. */
63142 char iconv ();
63144 main ()
63146 iconv ();
63148 return 0;
63150 _ACEOF
63151 rm -f conftest.$ac_objext conftest$ac_exeext
63152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63153 (eval $ac_link) 2>conftest.er1
63154 ac_status=$?
63155 grep -v '^ *+' conftest.er1 >conftest.err
63156 rm -f conftest.er1
63157 cat conftest.err >&5
63158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63159 (exit $ac_status); } &&
63160 { ac_try='test -z "$ac_c_werror_flag"
63161 || test ! -s conftest.err'
63162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63163 (eval $ac_try) 2>&5
63164 ac_status=$?
63165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63166 (exit $ac_status); }; } &&
63167 { ac_try='test -s conftest$ac_exeext'
63168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63169 (eval $ac_try) 2>&5
63170 ac_status=$?
63171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63172 (exit $ac_status); }; }; then
63173 ac_cv_lib_iconv_iconv=yes
63174 else
63175 echo "$as_me: failed program was:" >&5
63176 sed 's/^/| /' conftest.$ac_ext >&5
63178 ac_cv_lib_iconv_iconv=no
63180 rm -f conftest.err conftest.$ac_objext \
63181 conftest$ac_exeext conftest.$ac_ext
63182 LIBS=$ac_check_lib_save_LIBS
63184 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
63185 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
63186 if test $ac_cv_lib_iconv_iconv = yes; then
63187 LIBICONV="-liconv"
63190 ac_save_LIBS="$LIBS"
63191 LIBS="$LIBS $LIBICONV"
63198 for ac_func in iconv_open iconv_close iconv nl_langinfo
63200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63201 echo "$as_me:$LINENO: checking for $ac_func" >&5
63202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63203 if eval "test \"\${$as_ac_var+set}\" = set"; then
63204 echo $ECHO_N "(cached) $ECHO_C" >&6
63205 else
63206 if test x$gcc_no_link = xyes; then
63207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63209 { (exit 1); exit 1; }; }
63211 cat >conftest.$ac_ext <<_ACEOF
63212 /* confdefs.h. */
63213 _ACEOF
63214 cat confdefs.h >>conftest.$ac_ext
63215 cat >>conftest.$ac_ext <<_ACEOF
63216 /* end confdefs.h. */
63217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63219 #define $ac_func innocuous_$ac_func
63221 /* System header to define __stub macros and hopefully few prototypes,
63222 which can conflict with char $ac_func (); below.
63223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63224 <limits.h> exists even on freestanding compilers. */
63226 #ifdef __STDC__
63227 # include <limits.h>
63228 #else
63229 # include <assert.h>
63230 #endif
63232 #undef $ac_func
63234 /* Override any gcc2 internal prototype to avoid an error. */
63235 #ifdef __cplusplus
63236 extern "C"
63238 #endif
63239 /* We use char because int might match the return type of a gcc2
63240 builtin and then its argument prototype would still apply. */
63241 char $ac_func ();
63242 /* The GNU C library defines this for functions which it implements
63243 to always fail with ENOSYS. Some functions are actually named
63244 something starting with __ and the normal name is an alias. */
63245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63246 choke me
63247 #else
63248 char (*f) () = $ac_func;
63249 #endif
63250 #ifdef __cplusplus
63252 #endif
63255 main ()
63257 return f != $ac_func;
63259 return 0;
63261 _ACEOF
63262 rm -f conftest.$ac_objext conftest$ac_exeext
63263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63264 (eval $ac_link) 2>conftest.er1
63265 ac_status=$?
63266 grep -v '^ *+' conftest.er1 >conftest.err
63267 rm -f conftest.er1
63268 cat conftest.err >&5
63269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63270 (exit $ac_status); } &&
63271 { ac_try='test -z "$ac_c_werror_flag"
63272 || test ! -s conftest.err'
63273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63274 (eval $ac_try) 2>&5
63275 ac_status=$?
63276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63277 (exit $ac_status); }; } &&
63278 { ac_try='test -s conftest$ac_exeext'
63279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63280 (eval $ac_try) 2>&5
63281 ac_status=$?
63282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63283 (exit $ac_status); }; }; then
63284 eval "$as_ac_var=yes"
63285 else
63286 echo "$as_me: failed program was:" >&5
63287 sed 's/^/| /' conftest.$ac_ext >&5
63289 eval "$as_ac_var=no"
63291 rm -f conftest.err conftest.$ac_objext \
63292 conftest$ac_exeext conftest.$ac_ext
63294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63296 if test `eval echo '${'$as_ac_var'}'` = yes; then
63297 cat >>confdefs.h <<_ACEOF
63298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63299 _ACEOF
63300 ac_XPG2funcs=yes
63301 else
63302 ac_XPG2funcs=no
63304 done
63307 LIBS="$ac_save_LIBS"
63309 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63310 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63311 if test x"$ac_has_iconv_h" = xyes &&
63312 test x"$ac_has_langinfo_h" = xyes &&
63313 test x"$ac_XPG2funcs" = xyes;
63314 then
63315 ac_XPG2_wchar_t=yes
63316 else
63317 ac_XPG2_wchar_t=no
63319 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63320 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63322 # At the moment, only enable wchar_t specializations if all the
63323 # above support is present.
63324 if test x"$ac_isoC99_wchar_t" = xyes &&
63325 test x"$ac_XPG2_wchar_t" = xyes;
63326 then
63327 cat >>confdefs.h <<\_ACEOF
63328 #define _GLIBCXX_USE_WCHAR_T 1
63329 _ACEOF
63331 enable_wchar_t=yes
63334 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63335 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63336 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63337 echo "${ECHO_T}$enable_wchar_t" >&6
63340 *-netbsd*)
63353 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63354 machine/endian.h machine/param.h sys/machine.h sys/types.h \
63355 fp.h locale.h float.h inttypes.h
63357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63359 echo "$as_me:$LINENO: checking for $ac_header" >&5
63360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63362 echo $ECHO_N "(cached) $ECHO_C" >&6
63364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63366 else
63367 # Is the header compilable?
63368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63370 cat >conftest.$ac_ext <<_ACEOF
63371 /* confdefs.h. */
63372 _ACEOF
63373 cat confdefs.h >>conftest.$ac_ext
63374 cat >>conftest.$ac_ext <<_ACEOF
63375 /* end confdefs.h. */
63376 $ac_includes_default
63377 #include <$ac_header>
63378 _ACEOF
63379 rm -f conftest.$ac_objext
63380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63381 (eval $ac_compile) 2>conftest.er1
63382 ac_status=$?
63383 grep -v '^ *+' conftest.er1 >conftest.err
63384 rm -f conftest.er1
63385 cat conftest.err >&5
63386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63387 (exit $ac_status); } &&
63388 { ac_try='test -z "$ac_c_werror_flag"
63389 || test ! -s conftest.err'
63390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63391 (eval $ac_try) 2>&5
63392 ac_status=$?
63393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63394 (exit $ac_status); }; } &&
63395 { ac_try='test -s conftest.$ac_objext'
63396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63397 (eval $ac_try) 2>&5
63398 ac_status=$?
63399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63400 (exit $ac_status); }; }; then
63401 ac_header_compiler=yes
63402 else
63403 echo "$as_me: failed program was:" >&5
63404 sed 's/^/| /' conftest.$ac_ext >&5
63406 ac_header_compiler=no
63408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63410 echo "${ECHO_T}$ac_header_compiler" >&6
63412 # Is the header present?
63413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63415 cat >conftest.$ac_ext <<_ACEOF
63416 /* confdefs.h. */
63417 _ACEOF
63418 cat confdefs.h >>conftest.$ac_ext
63419 cat >>conftest.$ac_ext <<_ACEOF
63420 /* end confdefs.h. */
63421 #include <$ac_header>
63422 _ACEOF
63423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63425 ac_status=$?
63426 grep -v '^ *+' conftest.er1 >conftest.err
63427 rm -f conftest.er1
63428 cat conftest.err >&5
63429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63430 (exit $ac_status); } >/dev/null; then
63431 if test -s conftest.err; then
63432 ac_cpp_err=$ac_c_preproc_warn_flag
63433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63434 else
63435 ac_cpp_err=
63437 else
63438 ac_cpp_err=yes
63440 if test -z "$ac_cpp_err"; then
63441 ac_header_preproc=yes
63442 else
63443 echo "$as_me: failed program was:" >&5
63444 sed 's/^/| /' conftest.$ac_ext >&5
63446 ac_header_preproc=no
63448 rm -f conftest.err conftest.$ac_ext
63449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63450 echo "${ECHO_T}$ac_header_preproc" >&6
63452 # So? What about this header?
63453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63454 yes:no: )
63455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63459 ac_header_preproc=yes
63461 no:yes:* )
63462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
63470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63475 cat <<\_ASBOX
63476 ## ----------------------------------------- ##
63477 ## Report this to the package-unused lists. ##
63478 ## ----------------------------------------- ##
63479 _ASBOX
63481 sed "s/^/$as_me: WARNING: /" >&2
63483 esac
63484 echo "$as_me:$LINENO: checking for $ac_header" >&5
63485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63487 echo $ECHO_N "(cached) $ECHO_C" >&6
63488 else
63489 eval "$as_ac_Header=\$ac_header_preproc"
63491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63496 cat >>confdefs.h <<_ACEOF
63497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63498 _ACEOF
63502 done
63504 SECTION_FLAGS='-ffunction-sections -fdata-sections'
63507 # If we're not using GNU ld, then there's no point in even trying these
63508 # tests. Check for that first. We should have already tested for gld
63509 # by now (in libtool), but require it now just to be safe...
63510 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63511 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63515 # The name set by libtool depends on the version of libtool. Shame on us
63516 # for depending on an impl detail, but c'est la vie. Older versions used
63517 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63518 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63519 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
63520 # set (hence we're using an older libtool), then set it.
63521 if test x${with_gnu_ld+set} != xset; then
63522 if test x${ac_cv_prog_gnu_ld+set} != xset; then
63523 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
63524 with_gnu_ld=no
63525 else
63526 with_gnu_ld=$ac_cv_prog_gnu_ld
63530 # Start by getting the version number. I think the libtool test already
63531 # does some of this, but throws away the result.
63533 ldver=`$LD --version 2>/dev/null | head -1 | \
63534 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63536 glibcxx_gnu_ld_version=`echo $ldver | \
63537 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63539 # Set --gc-sections.
63540 if test "$with_gnu_ld" = "notbroken"; then
63541 # GNU ld it is! Joy and bunny rabbits!
63543 # All these tests are for C++; save the language and the compiler flags.
63544 # Need to do this so that g++ won't try to link in libstdc++
63545 ac_test_CFLAGS="${CFLAGS+set}"
63546 ac_save_CFLAGS="$CFLAGS"
63547 CFLAGS='-x c++ -Wl,--gc-sections'
63549 # Check for -Wl,--gc-sections
63550 # XXX This test is broken at the moment, as symbols required for linking
63551 # are now in libsupc++ (not built yet). In addition, this test has
63552 # cored on solaris in the past. In addition, --gc-sections doesn't
63553 # really work at the moment (keeps on discarding used sections, first
63554 # .eh_frame and now some of the glibc sections for iconv).
63555 # Bzzzzt. Thanks for playing, maybe next time.
63556 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63557 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63558 if test "$cross_compiling" = yes; then
63559 ac_sectionLDflags=yes
63560 else
63561 cat >conftest.$ac_ext <<_ACEOF
63562 /* confdefs.h. */
63563 _ACEOF
63564 cat confdefs.h >>conftest.$ac_ext
63565 cat >>conftest.$ac_ext <<_ACEOF
63566 /* end confdefs.h. */
63568 int main(void)
63570 try { throw 1; }
63571 catch (...) { };
63572 return 0;
63575 _ACEOF
63576 rm -f conftest$ac_exeext
63577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63578 (eval $ac_link) 2>&5
63579 ac_status=$?
63580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63583 (eval $ac_try) 2>&5
63584 ac_status=$?
63585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63586 (exit $ac_status); }; }; then
63587 ac_sectionLDflags=yes
63588 else
63589 echo "$as_me: program exited with status $ac_status" >&5
63590 echo "$as_me: failed program was:" >&5
63591 sed 's/^/| /' conftest.$ac_ext >&5
63593 ( exit $ac_status )
63594 ac_sectionLDflags=no
63596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63598 if test "$ac_test_CFLAGS" = set; then
63599 CFLAGS="$ac_save_CFLAGS"
63600 else
63601 # this is the suspicious part
63602 CFLAGS=''
63604 if test "$ac_sectionLDflags" = "yes"; then
63605 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63607 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63608 echo "${ECHO_T}$ac_sectionLDflags" >&6
63611 # Set linker optimization flags.
63612 if test x"$with_gnu_ld" = x"yes"; then
63613 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63621 echo "$as_me:$LINENO: checking for main in -lm" >&5
63622 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63623 if test "${ac_cv_lib_m_main+set}" = set; then
63624 echo $ECHO_N "(cached) $ECHO_C" >&6
63625 else
63626 ac_check_lib_save_LIBS=$LIBS
63627 LIBS="-lm $LIBS"
63628 if test x$gcc_no_link = xyes; then
63629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63631 { (exit 1); exit 1; }; }
63633 cat >conftest.$ac_ext <<_ACEOF
63634 /* confdefs.h. */
63635 _ACEOF
63636 cat confdefs.h >>conftest.$ac_ext
63637 cat >>conftest.$ac_ext <<_ACEOF
63638 /* end confdefs.h. */
63642 main ()
63644 main ();
63646 return 0;
63648 _ACEOF
63649 rm -f conftest.$ac_objext conftest$ac_exeext
63650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63651 (eval $ac_link) 2>conftest.er1
63652 ac_status=$?
63653 grep -v '^ *+' conftest.er1 >conftest.err
63654 rm -f conftest.er1
63655 cat conftest.err >&5
63656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63657 (exit $ac_status); } &&
63658 { ac_try='test -z "$ac_c_werror_flag"
63659 || test ! -s conftest.err'
63660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63661 (eval $ac_try) 2>&5
63662 ac_status=$?
63663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63664 (exit $ac_status); }; } &&
63665 { ac_try='test -s conftest$ac_exeext'
63666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63667 (eval $ac_try) 2>&5
63668 ac_status=$?
63669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63670 (exit $ac_status); }; }; then
63671 ac_cv_lib_m_main=yes
63672 else
63673 echo "$as_me: failed program was:" >&5
63674 sed 's/^/| /' conftest.$ac_ext >&5
63676 ac_cv_lib_m_main=no
63678 rm -f conftest.err conftest.$ac_objext \
63679 conftest$ac_exeext conftest.$ac_ext
63680 LIBS=$ac_check_lib_save_LIBS
63682 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63683 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63684 if test $ac_cv_lib_m_main = yes; then
63685 cat >>confdefs.h <<_ACEOF
63686 #define HAVE_LIBM 1
63687 _ACEOF
63689 LIBS="-lm $LIBS"
63694 for ac_func in copysignf
63696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63697 echo "$as_me:$LINENO: checking for $ac_func" >&5
63698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63699 if eval "test \"\${$as_ac_var+set}\" = set"; then
63700 echo $ECHO_N "(cached) $ECHO_C" >&6
63701 else
63702 if test x$gcc_no_link = xyes; then
63703 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63704 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63705 { (exit 1); exit 1; }; }
63707 cat >conftest.$ac_ext <<_ACEOF
63708 /* confdefs.h. */
63709 _ACEOF
63710 cat confdefs.h >>conftest.$ac_ext
63711 cat >>conftest.$ac_ext <<_ACEOF
63712 /* end confdefs.h. */
63713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63715 #define $ac_func innocuous_$ac_func
63717 /* System header to define __stub macros and hopefully few prototypes,
63718 which can conflict with char $ac_func (); below.
63719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63720 <limits.h> exists even on freestanding compilers. */
63722 #ifdef __STDC__
63723 # include <limits.h>
63724 #else
63725 # include <assert.h>
63726 #endif
63728 #undef $ac_func
63730 /* Override any gcc2 internal prototype to avoid an error. */
63731 #ifdef __cplusplus
63732 extern "C"
63734 #endif
63735 /* We use char because int might match the return type of a gcc2
63736 builtin and then its argument prototype would still apply. */
63737 char $ac_func ();
63738 /* The GNU C library defines this for functions which it implements
63739 to always fail with ENOSYS. Some functions are actually named
63740 something starting with __ and the normal name is an alias. */
63741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63742 choke me
63743 #else
63744 char (*f) () = $ac_func;
63745 #endif
63746 #ifdef __cplusplus
63748 #endif
63751 main ()
63753 return f != $ac_func;
63755 return 0;
63757 _ACEOF
63758 rm -f conftest.$ac_objext conftest$ac_exeext
63759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63760 (eval $ac_link) 2>conftest.er1
63761 ac_status=$?
63762 grep -v '^ *+' conftest.er1 >conftest.err
63763 rm -f conftest.er1
63764 cat conftest.err >&5
63765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63766 (exit $ac_status); } &&
63767 { ac_try='test -z "$ac_c_werror_flag"
63768 || test ! -s conftest.err'
63769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63770 (eval $ac_try) 2>&5
63771 ac_status=$?
63772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63773 (exit $ac_status); }; } &&
63774 { ac_try='test -s conftest$ac_exeext'
63775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63776 (eval $ac_try) 2>&5
63777 ac_status=$?
63778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63779 (exit $ac_status); }; }; then
63780 eval "$as_ac_var=yes"
63781 else
63782 echo "$as_me: failed program was:" >&5
63783 sed 's/^/| /' conftest.$ac_ext >&5
63785 eval "$as_ac_var=no"
63787 rm -f conftest.err conftest.$ac_objext \
63788 conftest$ac_exeext conftest.$ac_ext
63790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63792 if test `eval echo '${'$as_ac_var'}'` = yes; then
63793 cat >>confdefs.h <<_ACEOF
63794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63795 _ACEOF
63797 else
63798 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63800 done
63804 for ac_func in __signbit
63806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63807 echo "$as_me:$LINENO: checking for $ac_func" >&5
63808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63809 if eval "test \"\${$as_ac_var+set}\" = set"; then
63810 echo $ECHO_N "(cached) $ECHO_C" >&6
63811 else
63812 if test x$gcc_no_link = xyes; then
63813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63815 { (exit 1); exit 1; }; }
63817 cat >conftest.$ac_ext <<_ACEOF
63818 /* confdefs.h. */
63819 _ACEOF
63820 cat confdefs.h >>conftest.$ac_ext
63821 cat >>conftest.$ac_ext <<_ACEOF
63822 /* end confdefs.h. */
63823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63825 #define $ac_func innocuous_$ac_func
63827 /* System header to define __stub macros and hopefully few prototypes,
63828 which can conflict with char $ac_func (); below.
63829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63830 <limits.h> exists even on freestanding compilers. */
63832 #ifdef __STDC__
63833 # include <limits.h>
63834 #else
63835 # include <assert.h>
63836 #endif
63838 #undef $ac_func
63840 /* Override any gcc2 internal prototype to avoid an error. */
63841 #ifdef __cplusplus
63842 extern "C"
63844 #endif
63845 /* We use char because int might match the return type of a gcc2
63846 builtin and then its argument prototype would still apply. */
63847 char $ac_func ();
63848 /* The GNU C library defines this for functions which it implements
63849 to always fail with ENOSYS. Some functions are actually named
63850 something starting with __ and the normal name is an alias. */
63851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63852 choke me
63853 #else
63854 char (*f) () = $ac_func;
63855 #endif
63856 #ifdef __cplusplus
63858 #endif
63861 main ()
63863 return f != $ac_func;
63865 return 0;
63867 _ACEOF
63868 rm -f conftest.$ac_objext conftest$ac_exeext
63869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63870 (eval $ac_link) 2>conftest.er1
63871 ac_status=$?
63872 grep -v '^ *+' conftest.er1 >conftest.err
63873 rm -f conftest.er1
63874 cat conftest.err >&5
63875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63876 (exit $ac_status); } &&
63877 { ac_try='test -z "$ac_c_werror_flag"
63878 || test ! -s conftest.err'
63879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63880 (eval $ac_try) 2>&5
63881 ac_status=$?
63882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63883 (exit $ac_status); }; } &&
63884 { ac_try='test -s conftest$ac_exeext'
63885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63886 (eval $ac_try) 2>&5
63887 ac_status=$?
63888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63889 (exit $ac_status); }; }; then
63890 eval "$as_ac_var=yes"
63891 else
63892 echo "$as_me: failed program was:" >&5
63893 sed 's/^/| /' conftest.$ac_ext >&5
63895 eval "$as_ac_var=no"
63897 rm -f conftest.err conftest.$ac_objext \
63898 conftest$ac_exeext conftest.$ac_ext
63900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63902 if test `eval echo '${'$as_ac_var'}'` = yes; then
63903 cat >>confdefs.h <<_ACEOF
63904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63905 _ACEOF
63907 else
63908 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63910 done
63914 for ac_func in __signbitf
63916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63917 echo "$as_me:$LINENO: checking for $ac_func" >&5
63918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63919 if eval "test \"\${$as_ac_var+set}\" = set"; then
63920 echo $ECHO_N "(cached) $ECHO_C" >&6
63921 else
63922 if test x$gcc_no_link = xyes; then
63923 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63924 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63925 { (exit 1); exit 1; }; }
63927 cat >conftest.$ac_ext <<_ACEOF
63928 /* confdefs.h. */
63929 _ACEOF
63930 cat confdefs.h >>conftest.$ac_ext
63931 cat >>conftest.$ac_ext <<_ACEOF
63932 /* end confdefs.h. */
63933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63935 #define $ac_func innocuous_$ac_func
63937 /* System header to define __stub macros and hopefully few prototypes,
63938 which can conflict with char $ac_func (); below.
63939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63940 <limits.h> exists even on freestanding compilers. */
63942 #ifdef __STDC__
63943 # include <limits.h>
63944 #else
63945 # include <assert.h>
63946 #endif
63948 #undef $ac_func
63950 /* Override any gcc2 internal prototype to avoid an error. */
63951 #ifdef __cplusplus
63952 extern "C"
63954 #endif
63955 /* We use char because int might match the return type of a gcc2
63956 builtin and then its argument prototype would still apply. */
63957 char $ac_func ();
63958 /* The GNU C library defines this for functions which it implements
63959 to always fail with ENOSYS. Some functions are actually named
63960 something starting with __ and the normal name is an alias. */
63961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63962 choke me
63963 #else
63964 char (*f) () = $ac_func;
63965 #endif
63966 #ifdef __cplusplus
63968 #endif
63971 main ()
63973 return f != $ac_func;
63975 return 0;
63977 _ACEOF
63978 rm -f conftest.$ac_objext conftest$ac_exeext
63979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63980 (eval $ac_link) 2>conftest.er1
63981 ac_status=$?
63982 grep -v '^ *+' conftest.er1 >conftest.err
63983 rm -f conftest.er1
63984 cat conftest.err >&5
63985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63986 (exit $ac_status); } &&
63987 { ac_try='test -z "$ac_c_werror_flag"
63988 || test ! -s conftest.err'
63989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63990 (eval $ac_try) 2>&5
63991 ac_status=$?
63992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63993 (exit $ac_status); }; } &&
63994 { ac_try='test -s conftest$ac_exeext'
63995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63996 (eval $ac_try) 2>&5
63997 ac_status=$?
63998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63999 (exit $ac_status); }; }; then
64000 eval "$as_ac_var=yes"
64001 else
64002 echo "$as_me: failed program was:" >&5
64003 sed 's/^/| /' conftest.$ac_ext >&5
64005 eval "$as_ac_var=no"
64007 rm -f conftest.err conftest.$ac_objext \
64008 conftest$ac_exeext conftest.$ac_ext
64010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64012 if test `eval echo '${'$as_ac_var'}'` = yes; then
64013 cat >>confdefs.h <<_ACEOF
64014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64015 _ACEOF
64017 else
64018 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
64020 done
64023 if test x$ac_cv_func_copysignl = x"yes"; then
64025 for ac_func in __signbitl
64027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64028 echo "$as_me:$LINENO: checking for $ac_func" >&5
64029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64030 if eval "test \"\${$as_ac_var+set}\" = set"; then
64031 echo $ECHO_N "(cached) $ECHO_C" >&6
64032 else
64033 if test x$gcc_no_link = xyes; then
64034 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64035 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64036 { (exit 1); exit 1; }; }
64038 cat >conftest.$ac_ext <<_ACEOF
64039 /* confdefs.h. */
64040 _ACEOF
64041 cat confdefs.h >>conftest.$ac_ext
64042 cat >>conftest.$ac_ext <<_ACEOF
64043 /* end confdefs.h. */
64044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64046 #define $ac_func innocuous_$ac_func
64048 /* System header to define __stub macros and hopefully few prototypes,
64049 which can conflict with char $ac_func (); below.
64050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64051 <limits.h> exists even on freestanding compilers. */
64053 #ifdef __STDC__
64054 # include <limits.h>
64055 #else
64056 # include <assert.h>
64057 #endif
64059 #undef $ac_func
64061 /* Override any gcc2 internal prototype to avoid an error. */
64062 #ifdef __cplusplus
64063 extern "C"
64065 #endif
64066 /* We use char because int might match the return type of a gcc2
64067 builtin and then its argument prototype would still apply. */
64068 char $ac_func ();
64069 /* The GNU C library defines this for functions which it implements
64070 to always fail with ENOSYS. Some functions are actually named
64071 something starting with __ and the normal name is an alias. */
64072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64073 choke me
64074 #else
64075 char (*f) () = $ac_func;
64076 #endif
64077 #ifdef __cplusplus
64079 #endif
64082 main ()
64084 return f != $ac_func;
64086 return 0;
64088 _ACEOF
64089 rm -f conftest.$ac_objext conftest$ac_exeext
64090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64091 (eval $ac_link) 2>conftest.er1
64092 ac_status=$?
64093 grep -v '^ *+' conftest.er1 >conftest.err
64094 rm -f conftest.er1
64095 cat conftest.err >&5
64096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64097 (exit $ac_status); } &&
64098 { ac_try='test -z "$ac_c_werror_flag"
64099 || test ! -s conftest.err'
64100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64101 (eval $ac_try) 2>&5
64102 ac_status=$?
64103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64104 (exit $ac_status); }; } &&
64105 { ac_try='test -s conftest$ac_exeext'
64106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64107 (eval $ac_try) 2>&5
64108 ac_status=$?
64109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64110 (exit $ac_status); }; }; then
64111 eval "$as_ac_var=yes"
64112 else
64113 echo "$as_me: failed program was:" >&5
64114 sed 's/^/| /' conftest.$ac_ext >&5
64116 eval "$as_ac_var=no"
64118 rm -f conftest.err conftest.$ac_objext \
64119 conftest$ac_exeext conftest.$ac_ext
64121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64123 if test `eval echo '${'$as_ac_var'}'` = yes; then
64124 cat >>confdefs.h <<_ACEOF
64125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64126 _ACEOF
64128 else
64129 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
64131 done
64135 # Used in libmath/Makefile.am.
64136 if test -n "$LIBMATHOBJS"; then
64137 need_libmath=yes
64142 # Test wchar.h for mbstate_t, which is needed for char_traits and
64143 # others even if wchar_t support is not on.
64144 echo "$as_me:$LINENO: checking for mbstate_t" >&5
64145 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
64146 cat >conftest.$ac_ext <<_ACEOF
64147 /* confdefs.h. */
64148 _ACEOF
64149 cat confdefs.h >>conftest.$ac_ext
64150 cat >>conftest.$ac_ext <<_ACEOF
64151 /* end confdefs.h. */
64152 #include <wchar.h>
64154 main ()
64156 mbstate_t teststate;
64158 return 0;
64160 _ACEOF
64161 rm -f conftest.$ac_objext
64162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64163 (eval $ac_compile) 2>conftest.er1
64164 ac_status=$?
64165 grep -v '^ *+' conftest.er1 >conftest.err
64166 rm -f conftest.er1
64167 cat conftest.err >&5
64168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64169 (exit $ac_status); } &&
64170 { ac_try='test -z "$ac_c_werror_flag"
64171 || test ! -s conftest.err'
64172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64173 (eval $ac_try) 2>&5
64174 ac_status=$?
64175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64176 (exit $ac_status); }; } &&
64177 { ac_try='test -s conftest.$ac_objext'
64178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64179 (eval $ac_try) 2>&5
64180 ac_status=$?
64181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64182 (exit $ac_status); }; }; then
64183 have_mbstate_t=yes
64184 else
64185 echo "$as_me: failed program was:" >&5
64186 sed 's/^/| /' conftest.$ac_ext >&5
64188 have_mbstate_t=no
64190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64191 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
64192 echo "${ECHO_T}$have_mbstate_t" >&6
64193 if test x"$have_mbstate_t" = xyes; then
64194 cat >>confdefs.h <<\_ACEOF
64195 #define HAVE_MBSTATE_T 1
64196 _ACEOF
64200 # Sanity check for existence of ISO C99 headers for extended encoding.
64202 for ac_header in wchar.h
64204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64206 echo "$as_me:$LINENO: checking for $ac_header" >&5
64207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64209 echo $ECHO_N "(cached) $ECHO_C" >&6
64211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64213 else
64214 # Is the header compilable?
64215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64217 cat >conftest.$ac_ext <<_ACEOF
64218 /* confdefs.h. */
64219 _ACEOF
64220 cat confdefs.h >>conftest.$ac_ext
64221 cat >>conftest.$ac_ext <<_ACEOF
64222 /* end confdefs.h. */
64223 $ac_includes_default
64224 #include <$ac_header>
64225 _ACEOF
64226 rm -f conftest.$ac_objext
64227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64228 (eval $ac_compile) 2>conftest.er1
64229 ac_status=$?
64230 grep -v '^ *+' conftest.er1 >conftest.err
64231 rm -f conftest.er1
64232 cat conftest.err >&5
64233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64234 (exit $ac_status); } &&
64235 { ac_try='test -z "$ac_c_werror_flag"
64236 || test ! -s conftest.err'
64237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64238 (eval $ac_try) 2>&5
64239 ac_status=$?
64240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64241 (exit $ac_status); }; } &&
64242 { ac_try='test -s conftest.$ac_objext'
64243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64244 (eval $ac_try) 2>&5
64245 ac_status=$?
64246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64247 (exit $ac_status); }; }; then
64248 ac_header_compiler=yes
64249 else
64250 echo "$as_me: failed program was:" >&5
64251 sed 's/^/| /' conftest.$ac_ext >&5
64253 ac_header_compiler=no
64255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64257 echo "${ECHO_T}$ac_header_compiler" >&6
64259 # Is the header present?
64260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64262 cat >conftest.$ac_ext <<_ACEOF
64263 /* confdefs.h. */
64264 _ACEOF
64265 cat confdefs.h >>conftest.$ac_ext
64266 cat >>conftest.$ac_ext <<_ACEOF
64267 /* end confdefs.h. */
64268 #include <$ac_header>
64269 _ACEOF
64270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64272 ac_status=$?
64273 grep -v '^ *+' conftest.er1 >conftest.err
64274 rm -f conftest.er1
64275 cat conftest.err >&5
64276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64277 (exit $ac_status); } >/dev/null; then
64278 if test -s conftest.err; then
64279 ac_cpp_err=$ac_c_preproc_warn_flag
64280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64281 else
64282 ac_cpp_err=
64284 else
64285 ac_cpp_err=yes
64287 if test -z "$ac_cpp_err"; then
64288 ac_header_preproc=yes
64289 else
64290 echo "$as_me: failed program was:" >&5
64291 sed 's/^/| /' conftest.$ac_ext >&5
64293 ac_header_preproc=no
64295 rm -f conftest.err conftest.$ac_ext
64296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64297 echo "${ECHO_T}$ac_header_preproc" >&6
64299 # So? What about this header?
64300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64301 yes:no: )
64302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64306 ac_header_preproc=yes
64308 no:yes:* )
64309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64322 cat <<\_ASBOX
64323 ## ----------------------------------------- ##
64324 ## Report this to the package-unused lists. ##
64325 ## ----------------------------------------- ##
64326 _ASBOX
64328 sed "s/^/$as_me: WARNING: /" >&2
64330 esac
64331 echo "$as_me:$LINENO: checking for $ac_header" >&5
64332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64334 echo $ECHO_N "(cached) $ECHO_C" >&6
64335 else
64336 eval "$as_ac_Header=\$ac_header_preproc"
64338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64343 cat >>confdefs.h <<_ACEOF
64344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64345 _ACEOF
64346 ac_has_wchar_h=yes
64347 else
64348 ac_has_wchar_h=no
64351 done
64354 for ac_header in wctype.h
64356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64358 echo "$as_me:$LINENO: checking for $ac_header" >&5
64359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64361 echo $ECHO_N "(cached) $ECHO_C" >&6
64363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64365 else
64366 # Is the header compilable?
64367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64369 cat >conftest.$ac_ext <<_ACEOF
64370 /* confdefs.h. */
64371 _ACEOF
64372 cat confdefs.h >>conftest.$ac_ext
64373 cat >>conftest.$ac_ext <<_ACEOF
64374 /* end confdefs.h. */
64375 $ac_includes_default
64376 #include <$ac_header>
64377 _ACEOF
64378 rm -f conftest.$ac_objext
64379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64380 (eval $ac_compile) 2>conftest.er1
64381 ac_status=$?
64382 grep -v '^ *+' conftest.er1 >conftest.err
64383 rm -f conftest.er1
64384 cat conftest.err >&5
64385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64386 (exit $ac_status); } &&
64387 { ac_try='test -z "$ac_c_werror_flag"
64388 || test ! -s conftest.err'
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); }; } &&
64394 { ac_try='test -s conftest.$ac_objext'
64395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64396 (eval $ac_try) 2>&5
64397 ac_status=$?
64398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64399 (exit $ac_status); }; }; then
64400 ac_header_compiler=yes
64401 else
64402 echo "$as_me: failed program was:" >&5
64403 sed 's/^/| /' conftest.$ac_ext >&5
64405 ac_header_compiler=no
64407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64409 echo "${ECHO_T}$ac_header_compiler" >&6
64411 # Is the header present?
64412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64414 cat >conftest.$ac_ext <<_ACEOF
64415 /* confdefs.h. */
64416 _ACEOF
64417 cat confdefs.h >>conftest.$ac_ext
64418 cat >>conftest.$ac_ext <<_ACEOF
64419 /* end confdefs.h. */
64420 #include <$ac_header>
64421 _ACEOF
64422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64424 ac_status=$?
64425 grep -v '^ *+' conftest.er1 >conftest.err
64426 rm -f conftest.er1
64427 cat conftest.err >&5
64428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64429 (exit $ac_status); } >/dev/null; then
64430 if test -s conftest.err; then
64431 ac_cpp_err=$ac_c_preproc_warn_flag
64432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64433 else
64434 ac_cpp_err=
64436 else
64437 ac_cpp_err=yes
64439 if test -z "$ac_cpp_err"; then
64440 ac_header_preproc=yes
64441 else
64442 echo "$as_me: failed program was:" >&5
64443 sed 's/^/| /' conftest.$ac_ext >&5
64445 ac_header_preproc=no
64447 rm -f conftest.err conftest.$ac_ext
64448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64449 echo "${ECHO_T}$ac_header_preproc" >&6
64451 # So? What about this header?
64452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64453 yes:no: )
64454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64458 ac_header_preproc=yes
64460 no:yes:* )
64461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64474 cat <<\_ASBOX
64475 ## ----------------------------------------- ##
64476 ## Report this to the package-unused lists. ##
64477 ## ----------------------------------------- ##
64478 _ASBOX
64480 sed "s/^/$as_me: WARNING: /" >&2
64482 esac
64483 echo "$as_me:$LINENO: checking for $ac_header" >&5
64484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64486 echo $ECHO_N "(cached) $ECHO_C" >&6
64487 else
64488 eval "$as_ac_Header=\$ac_header_preproc"
64490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64495 cat >>confdefs.h <<_ACEOF
64496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64497 _ACEOF
64498 ac_has_wctype_h=yes
64499 else
64500 ac_has_wctype_h=no
64503 done
64506 # Only continue checking if the ISO C99 headers exist and support is on.
64507 if test x"$ac_has_wchar_h" = xyes &&
64508 test x"$ac_has_wctype_h" = xyes &&
64509 test x"$enable_c_mbchar" != xno; then
64511 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64512 # numeric_limits can instantiate type_traits<wchar_t>
64513 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64514 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64515 cat >conftest.$ac_ext <<_ACEOF
64516 /* confdefs.h. */
64517 _ACEOF
64518 cat confdefs.h >>conftest.$ac_ext
64519 cat >>conftest.$ac_ext <<_ACEOF
64520 /* end confdefs.h. */
64521 #include <wchar.h>
64523 main ()
64525 int i = WCHAR_MIN; int j = WCHAR_MAX;
64527 return 0;
64529 _ACEOF
64530 rm -f conftest.$ac_objext
64531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64532 (eval $ac_compile) 2>conftest.er1
64533 ac_status=$?
64534 grep -v '^ *+' conftest.er1 >conftest.err
64535 rm -f conftest.er1
64536 cat conftest.err >&5
64537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64538 (exit $ac_status); } &&
64539 { ac_try='test -z "$ac_c_werror_flag"
64540 || test ! -s conftest.err'
64541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64542 (eval $ac_try) 2>&5
64543 ac_status=$?
64544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64545 (exit $ac_status); }; } &&
64546 { ac_try='test -s conftest.$ac_objext'
64547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64548 (eval $ac_try) 2>&5
64549 ac_status=$?
64550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64551 (exit $ac_status); }; }; then
64552 has_wchar_minmax=yes
64553 else
64554 echo "$as_me: failed program was:" >&5
64555 sed 's/^/| /' conftest.$ac_ext >&5
64557 has_wchar_minmax=no
64559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64560 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64561 echo "${ECHO_T}$has_wchar_minmax" >&6
64563 # Test wchar.h for WEOF, which is what we use to determine whether
64564 # to specialize for char_traits<wchar_t> or not.
64565 echo "$as_me:$LINENO: checking for WEOF" >&5
64566 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64567 cat >conftest.$ac_ext <<_ACEOF
64568 /* confdefs.h. */
64569 _ACEOF
64570 cat confdefs.h >>conftest.$ac_ext
64571 cat >>conftest.$ac_ext <<_ACEOF
64572 /* end confdefs.h. */
64574 #include <wchar.h>
64575 #include <stddef.h>
64577 main ()
64579 wint_t i = WEOF;
64581 return 0;
64583 _ACEOF
64584 rm -f conftest.$ac_objext
64585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64586 (eval $ac_compile) 2>conftest.er1
64587 ac_status=$?
64588 grep -v '^ *+' conftest.er1 >conftest.err
64589 rm -f conftest.er1
64590 cat conftest.err >&5
64591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64592 (exit $ac_status); } &&
64593 { ac_try='test -z "$ac_c_werror_flag"
64594 || test ! -s conftest.err'
64595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64596 (eval $ac_try) 2>&5
64597 ac_status=$?
64598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64599 (exit $ac_status); }; } &&
64600 { ac_try='test -s conftest.$ac_objext'
64601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64602 (eval $ac_try) 2>&5
64603 ac_status=$?
64604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64605 (exit $ac_status); }; }; then
64606 has_weof=yes
64607 else
64608 echo "$as_me: failed program was:" >&5
64609 sed 's/^/| /' conftest.$ac_ext >&5
64611 has_weof=no
64613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64614 echo "$as_me:$LINENO: result: $has_weof" >&5
64615 echo "${ECHO_T}$has_weof" >&6
64617 # Tests for wide character functions used in char_traits<wchar_t>.
64618 ac_wfuncs=yes
64625 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64628 echo "$as_me:$LINENO: checking for $ac_func" >&5
64629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64630 if eval "test \"\${$as_ac_var+set}\" = set"; then
64631 echo $ECHO_N "(cached) $ECHO_C" >&6
64632 else
64633 if test x$gcc_no_link = xyes; then
64634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64636 { (exit 1); exit 1; }; }
64638 cat >conftest.$ac_ext <<_ACEOF
64639 /* confdefs.h. */
64640 _ACEOF
64641 cat confdefs.h >>conftest.$ac_ext
64642 cat >>conftest.$ac_ext <<_ACEOF
64643 /* end confdefs.h. */
64644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64646 #define $ac_func innocuous_$ac_func
64648 /* System header to define __stub macros and hopefully few prototypes,
64649 which can conflict with char $ac_func (); below.
64650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64651 <limits.h> exists even on freestanding compilers. */
64653 #ifdef __STDC__
64654 # include <limits.h>
64655 #else
64656 # include <assert.h>
64657 #endif
64659 #undef $ac_func
64661 /* Override any gcc2 internal prototype to avoid an error. */
64662 #ifdef __cplusplus
64663 extern "C"
64665 #endif
64666 /* We use char because int might match the return type of a gcc2
64667 builtin and then its argument prototype would still apply. */
64668 char $ac_func ();
64669 /* The GNU C library defines this for functions which it implements
64670 to always fail with ENOSYS. Some functions are actually named
64671 something starting with __ and the normal name is an alias. */
64672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64673 choke me
64674 #else
64675 char (*f) () = $ac_func;
64676 #endif
64677 #ifdef __cplusplus
64679 #endif
64682 main ()
64684 return f != $ac_func;
64686 return 0;
64688 _ACEOF
64689 rm -f conftest.$ac_objext conftest$ac_exeext
64690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64691 (eval $ac_link) 2>conftest.er1
64692 ac_status=$?
64693 grep -v '^ *+' conftest.er1 >conftest.err
64694 rm -f conftest.er1
64695 cat conftest.err >&5
64696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64697 (exit $ac_status); } &&
64698 { ac_try='test -z "$ac_c_werror_flag"
64699 || test ! -s conftest.err'
64700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64701 (eval $ac_try) 2>&5
64702 ac_status=$?
64703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64704 (exit $ac_status); }; } &&
64705 { ac_try='test -s conftest$ac_exeext'
64706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64707 (eval $ac_try) 2>&5
64708 ac_status=$?
64709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64710 (exit $ac_status); }; }; then
64711 eval "$as_ac_var=yes"
64712 else
64713 echo "$as_me: failed program was:" >&5
64714 sed 's/^/| /' conftest.$ac_ext >&5
64716 eval "$as_ac_var=no"
64718 rm -f conftest.err conftest.$ac_objext \
64719 conftest$ac_exeext conftest.$ac_ext
64721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64723 if test `eval echo '${'$as_ac_var'}'` = yes; then
64724 cat >>confdefs.h <<_ACEOF
64725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64726 _ACEOF
64728 else
64729 ac_wfuncs=no
64731 done
64734 # Checks for names injected into std:: by the c_std headers.
64781 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64782 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64783 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64784 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64785 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64786 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64789 echo "$as_me:$LINENO: checking for $ac_func" >&5
64790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64791 if eval "test \"\${$as_ac_var+set}\" = set"; then
64792 echo $ECHO_N "(cached) $ECHO_C" >&6
64793 else
64794 if test x$gcc_no_link = xyes; then
64795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64797 { (exit 1); exit 1; }; }
64799 cat >conftest.$ac_ext <<_ACEOF
64800 /* confdefs.h. */
64801 _ACEOF
64802 cat confdefs.h >>conftest.$ac_ext
64803 cat >>conftest.$ac_ext <<_ACEOF
64804 /* end confdefs.h. */
64805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64807 #define $ac_func innocuous_$ac_func
64809 /* System header to define __stub macros and hopefully few prototypes,
64810 which can conflict with char $ac_func (); below.
64811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64812 <limits.h> exists even on freestanding compilers. */
64814 #ifdef __STDC__
64815 # include <limits.h>
64816 #else
64817 # include <assert.h>
64818 #endif
64820 #undef $ac_func
64822 /* Override any gcc2 internal prototype to avoid an error. */
64823 #ifdef __cplusplus
64824 extern "C"
64826 #endif
64827 /* We use char because int might match the return type of a gcc2
64828 builtin and then its argument prototype would still apply. */
64829 char $ac_func ();
64830 /* The GNU C library defines this for functions which it implements
64831 to always fail with ENOSYS. Some functions are actually named
64832 something starting with __ and the normal name is an alias. */
64833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64834 choke me
64835 #else
64836 char (*f) () = $ac_func;
64837 #endif
64838 #ifdef __cplusplus
64840 #endif
64843 main ()
64845 return f != $ac_func;
64847 return 0;
64849 _ACEOF
64850 rm -f conftest.$ac_objext conftest$ac_exeext
64851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64852 (eval $ac_link) 2>conftest.er1
64853 ac_status=$?
64854 grep -v '^ *+' conftest.er1 >conftest.err
64855 rm -f conftest.er1
64856 cat conftest.err >&5
64857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64858 (exit $ac_status); } &&
64859 { ac_try='test -z "$ac_c_werror_flag"
64860 || test ! -s conftest.err'
64861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64862 (eval $ac_try) 2>&5
64863 ac_status=$?
64864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64865 (exit $ac_status); }; } &&
64866 { ac_try='test -s conftest$ac_exeext'
64867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64868 (eval $ac_try) 2>&5
64869 ac_status=$?
64870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64871 (exit $ac_status); }; }; then
64872 eval "$as_ac_var=yes"
64873 else
64874 echo "$as_me: failed program was:" >&5
64875 sed 's/^/| /' conftest.$ac_ext >&5
64877 eval "$as_ac_var=no"
64879 rm -f conftest.err conftest.$ac_objext \
64880 conftest$ac_exeext conftest.$ac_ext
64882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64884 if test `eval echo '${'$as_ac_var'}'` = yes; then
64885 cat >>confdefs.h <<_ACEOF
64886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64887 _ACEOF
64889 else
64890 ac_wfuncs=no
64892 done
64895 # Checks for wide character functions that are not required
64896 # for basic wchar_t support. Don't disable support if they are missing.
64897 # Injection of these is wrapped with guard macros.
64903 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64906 echo "$as_me:$LINENO: checking for $ac_func" >&5
64907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64908 if eval "test \"\${$as_ac_var+set}\" = set"; then
64909 echo $ECHO_N "(cached) $ECHO_C" >&6
64910 else
64911 if test x$gcc_no_link = xyes; then
64912 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64913 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64914 { (exit 1); exit 1; }; }
64916 cat >conftest.$ac_ext <<_ACEOF
64917 /* confdefs.h. */
64918 _ACEOF
64919 cat confdefs.h >>conftest.$ac_ext
64920 cat >>conftest.$ac_ext <<_ACEOF
64921 /* end confdefs.h. */
64922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64924 #define $ac_func innocuous_$ac_func
64926 /* System header to define __stub macros and hopefully few prototypes,
64927 which can conflict with char $ac_func (); below.
64928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64929 <limits.h> exists even on freestanding compilers. */
64931 #ifdef __STDC__
64932 # include <limits.h>
64933 #else
64934 # include <assert.h>
64935 #endif
64937 #undef $ac_func
64939 /* Override any gcc2 internal prototype to avoid an error. */
64940 #ifdef __cplusplus
64941 extern "C"
64943 #endif
64944 /* We use char because int might match the return type of a gcc2
64945 builtin and then its argument prototype would still apply. */
64946 char $ac_func ();
64947 /* The GNU C library defines this for functions which it implements
64948 to always fail with ENOSYS. Some functions are actually named
64949 something starting with __ and the normal name is an alias. */
64950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64951 choke me
64952 #else
64953 char (*f) () = $ac_func;
64954 #endif
64955 #ifdef __cplusplus
64957 #endif
64960 main ()
64962 return f != $ac_func;
64964 return 0;
64966 _ACEOF
64967 rm -f conftest.$ac_objext conftest$ac_exeext
64968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64969 (eval $ac_link) 2>conftest.er1
64970 ac_status=$?
64971 grep -v '^ *+' conftest.er1 >conftest.err
64972 rm -f conftest.er1
64973 cat conftest.err >&5
64974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64975 (exit $ac_status); } &&
64976 { ac_try='test -z "$ac_c_werror_flag"
64977 || test ! -s conftest.err'
64978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64979 (eval $ac_try) 2>&5
64980 ac_status=$?
64981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64982 (exit $ac_status); }; } &&
64983 { ac_try='test -s conftest$ac_exeext'
64984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64985 (eval $ac_try) 2>&5
64986 ac_status=$?
64987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64988 (exit $ac_status); }; }; then
64989 eval "$as_ac_var=yes"
64990 else
64991 echo "$as_me: failed program was:" >&5
64992 sed 's/^/| /' conftest.$ac_ext >&5
64994 eval "$as_ac_var=no"
64996 rm -f conftest.err conftest.$ac_objext \
64997 conftest$ac_exeext conftest.$ac_ext
64999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65001 if test `eval echo '${'$as_ac_var'}'` = yes; then
65002 cat >>confdefs.h <<_ACEOF
65003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65004 _ACEOF
65007 done
65010 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
65011 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
65012 if test x"$has_weof" = xyes &&
65013 test x"$has_wchar_minmax" = xyes &&
65014 test x"$ac_wfuncs" = xyes;
65015 then
65016 ac_isoC99_wchar_t=yes
65017 else
65018 ac_isoC99_wchar_t=no
65020 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
65021 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
65023 # Use iconv for wchar_t to char conversions. As such, check for
65024 # X/Open Portability Guide, version 2 features (XPG2).
65025 if test "${ac_cv_header_iconv_h+set}" = set; then
65026 echo "$as_me:$LINENO: checking for iconv.h" >&5
65027 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65028 if test "${ac_cv_header_iconv_h+set}" = set; then
65029 echo $ECHO_N "(cached) $ECHO_C" >&6
65031 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65032 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65033 else
65034 # Is the header compilable?
65035 echo "$as_me:$LINENO: checking iconv.h usability" >&5
65036 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
65037 cat >conftest.$ac_ext <<_ACEOF
65038 /* confdefs.h. */
65039 _ACEOF
65040 cat confdefs.h >>conftest.$ac_ext
65041 cat >>conftest.$ac_ext <<_ACEOF
65042 /* end confdefs.h. */
65043 $ac_includes_default
65044 #include <iconv.h>
65045 _ACEOF
65046 rm -f conftest.$ac_objext
65047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65048 (eval $ac_compile) 2>conftest.er1
65049 ac_status=$?
65050 grep -v '^ *+' conftest.er1 >conftest.err
65051 rm -f conftest.er1
65052 cat conftest.err >&5
65053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65054 (exit $ac_status); } &&
65055 { ac_try='test -z "$ac_c_werror_flag"
65056 || test ! -s conftest.err'
65057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65058 (eval $ac_try) 2>&5
65059 ac_status=$?
65060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65061 (exit $ac_status); }; } &&
65062 { ac_try='test -s conftest.$ac_objext'
65063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65064 (eval $ac_try) 2>&5
65065 ac_status=$?
65066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65067 (exit $ac_status); }; }; then
65068 ac_header_compiler=yes
65069 else
65070 echo "$as_me: failed program was:" >&5
65071 sed 's/^/| /' conftest.$ac_ext >&5
65073 ac_header_compiler=no
65075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65077 echo "${ECHO_T}$ac_header_compiler" >&6
65079 # Is the header present?
65080 echo "$as_me:$LINENO: checking iconv.h presence" >&5
65081 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
65082 cat >conftest.$ac_ext <<_ACEOF
65083 /* confdefs.h. */
65084 _ACEOF
65085 cat confdefs.h >>conftest.$ac_ext
65086 cat >>conftest.$ac_ext <<_ACEOF
65087 /* end confdefs.h. */
65088 #include <iconv.h>
65089 _ACEOF
65090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65092 ac_status=$?
65093 grep -v '^ *+' conftest.er1 >conftest.err
65094 rm -f conftest.er1
65095 cat conftest.err >&5
65096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65097 (exit $ac_status); } >/dev/null; then
65098 if test -s conftest.err; then
65099 ac_cpp_err=$ac_c_preproc_warn_flag
65100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65101 else
65102 ac_cpp_err=
65104 else
65105 ac_cpp_err=yes
65107 if test -z "$ac_cpp_err"; then
65108 ac_header_preproc=yes
65109 else
65110 echo "$as_me: failed program was:" >&5
65111 sed 's/^/| /' conftest.$ac_ext >&5
65113 ac_header_preproc=no
65115 rm -f conftest.err conftest.$ac_ext
65116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65117 echo "${ECHO_T}$ac_header_preproc" >&6
65119 # So? What about this header?
65120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65121 yes:no: )
65122 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
65123 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65124 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
65125 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
65126 ac_header_preproc=yes
65128 no:yes:* )
65129 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
65130 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
65131 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
65132 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
65133 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
65134 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
65135 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
65136 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
65137 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
65138 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
65139 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
65140 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
65142 cat <<\_ASBOX
65143 ## ----------------------------------------- ##
65144 ## Report this to the package-unused lists. ##
65145 ## ----------------------------------------- ##
65146 _ASBOX
65148 sed "s/^/$as_me: WARNING: /" >&2
65150 esac
65151 echo "$as_me:$LINENO: checking for iconv.h" >&5
65152 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65153 if test "${ac_cv_header_iconv_h+set}" = set; then
65154 echo $ECHO_N "(cached) $ECHO_C" >&6
65155 else
65156 ac_cv_header_iconv_h=$ac_header_preproc
65158 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65159 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65162 if test $ac_cv_header_iconv_h = yes; then
65163 ac_has_iconv_h=yes
65164 else
65165 ac_has_iconv_h=no
65169 if test "${ac_cv_header_langinfo_h+set}" = set; then
65170 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65171 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65172 if test "${ac_cv_header_langinfo_h+set}" = set; then
65173 echo $ECHO_N "(cached) $ECHO_C" >&6
65175 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65176 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65177 else
65178 # Is the header compilable?
65179 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
65180 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
65181 cat >conftest.$ac_ext <<_ACEOF
65182 /* confdefs.h. */
65183 _ACEOF
65184 cat confdefs.h >>conftest.$ac_ext
65185 cat >>conftest.$ac_ext <<_ACEOF
65186 /* end confdefs.h. */
65187 $ac_includes_default
65188 #include <langinfo.h>
65189 _ACEOF
65190 rm -f conftest.$ac_objext
65191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65192 (eval $ac_compile) 2>conftest.er1
65193 ac_status=$?
65194 grep -v '^ *+' conftest.er1 >conftest.err
65195 rm -f conftest.er1
65196 cat conftest.err >&5
65197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65198 (exit $ac_status); } &&
65199 { ac_try='test -z "$ac_c_werror_flag"
65200 || test ! -s conftest.err'
65201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65202 (eval $ac_try) 2>&5
65203 ac_status=$?
65204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65205 (exit $ac_status); }; } &&
65206 { ac_try='test -s conftest.$ac_objext'
65207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65208 (eval $ac_try) 2>&5
65209 ac_status=$?
65210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65211 (exit $ac_status); }; }; then
65212 ac_header_compiler=yes
65213 else
65214 echo "$as_me: failed program was:" >&5
65215 sed 's/^/| /' conftest.$ac_ext >&5
65217 ac_header_compiler=no
65219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65221 echo "${ECHO_T}$ac_header_compiler" >&6
65223 # Is the header present?
65224 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
65225 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
65226 cat >conftest.$ac_ext <<_ACEOF
65227 /* confdefs.h. */
65228 _ACEOF
65229 cat confdefs.h >>conftest.$ac_ext
65230 cat >>conftest.$ac_ext <<_ACEOF
65231 /* end confdefs.h. */
65232 #include <langinfo.h>
65233 _ACEOF
65234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65236 ac_status=$?
65237 grep -v '^ *+' conftest.er1 >conftest.err
65238 rm -f conftest.er1
65239 cat conftest.err >&5
65240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65241 (exit $ac_status); } >/dev/null; then
65242 if test -s conftest.err; then
65243 ac_cpp_err=$ac_c_preproc_warn_flag
65244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65245 else
65246 ac_cpp_err=
65248 else
65249 ac_cpp_err=yes
65251 if test -z "$ac_cpp_err"; then
65252 ac_header_preproc=yes
65253 else
65254 echo "$as_me: failed program was:" >&5
65255 sed 's/^/| /' conftest.$ac_ext >&5
65257 ac_header_preproc=no
65259 rm -f conftest.err conftest.$ac_ext
65260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65261 echo "${ECHO_T}$ac_header_preproc" >&6
65263 # So? What about this header?
65264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65265 yes:no: )
65266 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65267 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65268 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65269 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65270 ac_header_preproc=yes
65272 no:yes:* )
65273 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65274 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65275 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
65276 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
65277 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65278 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65279 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
65280 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
65281 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65282 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65283 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65284 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65286 cat <<\_ASBOX
65287 ## ----------------------------------------- ##
65288 ## Report this to the package-unused lists. ##
65289 ## ----------------------------------------- ##
65290 _ASBOX
65292 sed "s/^/$as_me: WARNING: /" >&2
65294 esac
65295 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65296 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65297 if test "${ac_cv_header_langinfo_h+set}" = set; then
65298 echo $ECHO_N "(cached) $ECHO_C" >&6
65299 else
65300 ac_cv_header_langinfo_h=$ac_header_preproc
65302 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65303 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65306 if test $ac_cv_header_langinfo_h = yes; then
65307 ac_has_langinfo_h=yes
65308 else
65309 ac_has_langinfo_h=no
65314 # Check for existence of libiconv.a providing XPG2 wchar_t support.
65315 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65316 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65317 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65318 echo $ECHO_N "(cached) $ECHO_C" >&6
65319 else
65320 ac_check_lib_save_LIBS=$LIBS
65321 LIBS="-liconv $LIBS"
65322 if test x$gcc_no_link = xyes; then
65323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65325 { (exit 1); exit 1; }; }
65327 cat >conftest.$ac_ext <<_ACEOF
65328 /* confdefs.h. */
65329 _ACEOF
65330 cat confdefs.h >>conftest.$ac_ext
65331 cat >>conftest.$ac_ext <<_ACEOF
65332 /* end confdefs.h. */
65334 /* Override any gcc2 internal prototype to avoid an error. */
65335 #ifdef __cplusplus
65336 extern "C"
65337 #endif
65338 /* We use char because int might match the return type of a gcc2
65339 builtin and then its argument prototype would still apply. */
65340 char iconv ();
65342 main ()
65344 iconv ();
65346 return 0;
65348 _ACEOF
65349 rm -f conftest.$ac_objext conftest$ac_exeext
65350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65351 (eval $ac_link) 2>conftest.er1
65352 ac_status=$?
65353 grep -v '^ *+' conftest.er1 >conftest.err
65354 rm -f conftest.er1
65355 cat conftest.err >&5
65356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65357 (exit $ac_status); } &&
65358 { ac_try='test -z "$ac_c_werror_flag"
65359 || test ! -s conftest.err'
65360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65361 (eval $ac_try) 2>&5
65362 ac_status=$?
65363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65364 (exit $ac_status); }; } &&
65365 { ac_try='test -s conftest$ac_exeext'
65366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65367 (eval $ac_try) 2>&5
65368 ac_status=$?
65369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65370 (exit $ac_status); }; }; then
65371 ac_cv_lib_iconv_iconv=yes
65372 else
65373 echo "$as_me: failed program was:" >&5
65374 sed 's/^/| /' conftest.$ac_ext >&5
65376 ac_cv_lib_iconv_iconv=no
65378 rm -f conftest.err conftest.$ac_objext \
65379 conftest$ac_exeext conftest.$ac_ext
65380 LIBS=$ac_check_lib_save_LIBS
65382 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65383 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65384 if test $ac_cv_lib_iconv_iconv = yes; then
65385 LIBICONV="-liconv"
65388 ac_save_LIBS="$LIBS"
65389 LIBS="$LIBS $LIBICONV"
65396 for ac_func in iconv_open iconv_close iconv nl_langinfo
65398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65399 echo "$as_me:$LINENO: checking for $ac_func" >&5
65400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65401 if eval "test \"\${$as_ac_var+set}\" = set"; then
65402 echo $ECHO_N "(cached) $ECHO_C" >&6
65403 else
65404 if test x$gcc_no_link = xyes; then
65405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65407 { (exit 1); exit 1; }; }
65409 cat >conftest.$ac_ext <<_ACEOF
65410 /* confdefs.h. */
65411 _ACEOF
65412 cat confdefs.h >>conftest.$ac_ext
65413 cat >>conftest.$ac_ext <<_ACEOF
65414 /* end confdefs.h. */
65415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65417 #define $ac_func innocuous_$ac_func
65419 /* System header to define __stub macros and hopefully few prototypes,
65420 which can conflict with char $ac_func (); below.
65421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65422 <limits.h> exists even on freestanding compilers. */
65424 #ifdef __STDC__
65425 # include <limits.h>
65426 #else
65427 # include <assert.h>
65428 #endif
65430 #undef $ac_func
65432 /* Override any gcc2 internal prototype to avoid an error. */
65433 #ifdef __cplusplus
65434 extern "C"
65436 #endif
65437 /* We use char because int might match the return type of a gcc2
65438 builtin and then its argument prototype would still apply. */
65439 char $ac_func ();
65440 /* The GNU C library defines this for functions which it implements
65441 to always fail with ENOSYS. Some functions are actually named
65442 something starting with __ and the normal name is an alias. */
65443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65444 choke me
65445 #else
65446 char (*f) () = $ac_func;
65447 #endif
65448 #ifdef __cplusplus
65450 #endif
65453 main ()
65455 return f != $ac_func;
65457 return 0;
65459 _ACEOF
65460 rm -f conftest.$ac_objext conftest$ac_exeext
65461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65462 (eval $ac_link) 2>conftest.er1
65463 ac_status=$?
65464 grep -v '^ *+' conftest.er1 >conftest.err
65465 rm -f conftest.er1
65466 cat conftest.err >&5
65467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65468 (exit $ac_status); } &&
65469 { ac_try='test -z "$ac_c_werror_flag"
65470 || test ! -s conftest.err'
65471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65472 (eval $ac_try) 2>&5
65473 ac_status=$?
65474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65475 (exit $ac_status); }; } &&
65476 { ac_try='test -s conftest$ac_exeext'
65477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65478 (eval $ac_try) 2>&5
65479 ac_status=$?
65480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65481 (exit $ac_status); }; }; then
65482 eval "$as_ac_var=yes"
65483 else
65484 echo "$as_me: failed program was:" >&5
65485 sed 's/^/| /' conftest.$ac_ext >&5
65487 eval "$as_ac_var=no"
65489 rm -f conftest.err conftest.$ac_objext \
65490 conftest$ac_exeext conftest.$ac_ext
65492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65494 if test `eval echo '${'$as_ac_var'}'` = yes; then
65495 cat >>confdefs.h <<_ACEOF
65496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65497 _ACEOF
65498 ac_XPG2funcs=yes
65499 else
65500 ac_XPG2funcs=no
65502 done
65505 LIBS="$ac_save_LIBS"
65507 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65508 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65509 if test x"$ac_has_iconv_h" = xyes &&
65510 test x"$ac_has_langinfo_h" = xyes &&
65511 test x"$ac_XPG2funcs" = xyes;
65512 then
65513 ac_XPG2_wchar_t=yes
65514 else
65515 ac_XPG2_wchar_t=no
65517 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65518 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65520 # At the moment, only enable wchar_t specializations if all the
65521 # above support is present.
65522 if test x"$ac_isoC99_wchar_t" = xyes &&
65523 test x"$ac_XPG2_wchar_t" = xyes;
65524 then
65525 cat >>confdefs.h <<\_ACEOF
65526 #define _GLIBCXX_USE_WCHAR_T 1
65527 _ACEOF
65529 enable_wchar_t=yes
65532 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65533 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65534 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65535 echo "${ECHO_T}$enable_wchar_t" >&6
65537 cat >>confdefs.h <<\_ACEOF
65538 #define HAVE_COPYSIGN 1
65539 _ACEOF
65541 cat >>confdefs.h <<\_ACEOF
65542 #define HAVE_COPYSIGNF 1
65543 _ACEOF
65545 cat >>confdefs.h <<\_ACEOF
65546 #define HAVE_FINITEF 1
65547 _ACEOF
65549 cat >>confdefs.h <<\_ACEOF
65550 #define HAVE_FINITE 1
65551 _ACEOF
65553 cat >>confdefs.h <<\_ACEOF
65554 #define HAVE_FREXPF 1
65555 _ACEOF
65557 cat >>confdefs.h <<\_ACEOF
65558 #define HAVE_HYPOTF 1
65559 _ACEOF
65561 cat >>confdefs.h <<\_ACEOF
65562 #define HAVE_ISINF 1
65563 _ACEOF
65565 cat >>confdefs.h <<\_ACEOF
65566 #define HAVE_ISINFF 1
65567 _ACEOF
65569 cat >>confdefs.h <<\_ACEOF
65570 #define HAVE_ISNAN 1
65571 _ACEOF
65573 cat >>confdefs.h <<\_ACEOF
65574 #define HAVE_ISNANF 1
65575 _ACEOF
65577 if test x"long_double_math_on_this_cpu" = x"yes"; then
65578 cat >>confdefs.h <<\_ACEOF
65579 #define HAVE_FINITEL 1
65580 _ACEOF
65582 cat >>confdefs.h <<\_ACEOF
65583 #define HAVE_ISINFL 1
65584 _ACEOF
65586 cat >>confdefs.h <<\_ACEOF
65587 #define HAVE_ISNANL 1
65588 _ACEOF
65592 *-qnx6.1* | *-qnx6.2*)
65593 SECTION_FLAGS='-ffunction-sections -fdata-sections'
65596 # If we're not using GNU ld, then there's no point in even trying these
65597 # tests. Check for that first. We should have already tested for gld
65598 # by now (in libtool), but require it now just to be safe...
65599 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65600 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65604 # The name set by libtool depends on the version of libtool. Shame on us
65605 # for depending on an impl detail, but c'est la vie. Older versions used
65606 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65607 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65608 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
65609 # set (hence we're using an older libtool), then set it.
65610 if test x${with_gnu_ld+set} != xset; then
65611 if test x${ac_cv_prog_gnu_ld+set} != xset; then
65612 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
65613 with_gnu_ld=no
65614 else
65615 with_gnu_ld=$ac_cv_prog_gnu_ld
65619 # Start by getting the version number. I think the libtool test already
65620 # does some of this, but throws away the result.
65622 ldver=`$LD --version 2>/dev/null | head -1 | \
65623 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65625 glibcxx_gnu_ld_version=`echo $ldver | \
65626 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65628 # Set --gc-sections.
65629 if test "$with_gnu_ld" = "notbroken"; then
65630 # GNU ld it is! Joy and bunny rabbits!
65632 # All these tests are for C++; save the language and the compiler flags.
65633 # Need to do this so that g++ won't try to link in libstdc++
65634 ac_test_CFLAGS="${CFLAGS+set}"
65635 ac_save_CFLAGS="$CFLAGS"
65636 CFLAGS='-x c++ -Wl,--gc-sections'
65638 # Check for -Wl,--gc-sections
65639 # XXX This test is broken at the moment, as symbols required for linking
65640 # are now in libsupc++ (not built yet). In addition, this test has
65641 # cored on solaris in the past. In addition, --gc-sections doesn't
65642 # really work at the moment (keeps on discarding used sections, first
65643 # .eh_frame and now some of the glibc sections for iconv).
65644 # Bzzzzt. Thanks for playing, maybe next time.
65645 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65646 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65647 if test "$cross_compiling" = yes; then
65648 ac_sectionLDflags=yes
65649 else
65650 cat >conftest.$ac_ext <<_ACEOF
65651 /* confdefs.h. */
65652 _ACEOF
65653 cat confdefs.h >>conftest.$ac_ext
65654 cat >>conftest.$ac_ext <<_ACEOF
65655 /* end confdefs.h. */
65657 int main(void)
65659 try { throw 1; }
65660 catch (...) { };
65661 return 0;
65664 _ACEOF
65665 rm -f conftest$ac_exeext
65666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65667 (eval $ac_link) 2>&5
65668 ac_status=$?
65669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65672 (eval $ac_try) 2>&5
65673 ac_status=$?
65674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65675 (exit $ac_status); }; }; then
65676 ac_sectionLDflags=yes
65677 else
65678 echo "$as_me: program exited with status $ac_status" >&5
65679 echo "$as_me: failed program was:" >&5
65680 sed 's/^/| /' conftest.$ac_ext >&5
65682 ( exit $ac_status )
65683 ac_sectionLDflags=no
65685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65687 if test "$ac_test_CFLAGS" = set; then
65688 CFLAGS="$ac_save_CFLAGS"
65689 else
65690 # this is the suspicious part
65691 CFLAGS=''
65693 if test "$ac_sectionLDflags" = "yes"; then
65694 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65696 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65697 echo "${ECHO_T}$ac_sectionLDflags" >&6
65700 # Set linker optimization flags.
65701 if test x"$with_gnu_ld" = x"yes"; then
65702 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65710 echo "$as_me:$LINENO: checking for main in -lm" >&5
65711 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65712 if test "${ac_cv_lib_m_main+set}" = set; then
65713 echo $ECHO_N "(cached) $ECHO_C" >&6
65714 else
65715 ac_check_lib_save_LIBS=$LIBS
65716 LIBS="-lm $LIBS"
65717 if test x$gcc_no_link = xyes; then
65718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65720 { (exit 1); exit 1; }; }
65722 cat >conftest.$ac_ext <<_ACEOF
65723 /* confdefs.h. */
65724 _ACEOF
65725 cat confdefs.h >>conftest.$ac_ext
65726 cat >>conftest.$ac_ext <<_ACEOF
65727 /* end confdefs.h. */
65731 main ()
65733 main ();
65735 return 0;
65737 _ACEOF
65738 rm -f conftest.$ac_objext conftest$ac_exeext
65739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65740 (eval $ac_link) 2>conftest.er1
65741 ac_status=$?
65742 grep -v '^ *+' conftest.er1 >conftest.err
65743 rm -f conftest.er1
65744 cat conftest.err >&5
65745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65746 (exit $ac_status); } &&
65747 { ac_try='test -z "$ac_c_werror_flag"
65748 || test ! -s conftest.err'
65749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65750 (eval $ac_try) 2>&5
65751 ac_status=$?
65752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65753 (exit $ac_status); }; } &&
65754 { ac_try='test -s conftest$ac_exeext'
65755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65756 (eval $ac_try) 2>&5
65757 ac_status=$?
65758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65759 (exit $ac_status); }; }; then
65760 ac_cv_lib_m_main=yes
65761 else
65762 echo "$as_me: failed program was:" >&5
65763 sed 's/^/| /' conftest.$ac_ext >&5
65765 ac_cv_lib_m_main=no
65767 rm -f conftest.err conftest.$ac_objext \
65768 conftest$ac_exeext conftest.$ac_ext
65769 LIBS=$ac_check_lib_save_LIBS
65771 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65772 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65773 if test $ac_cv_lib_m_main = yes; then
65774 cat >>confdefs.h <<_ACEOF
65775 #define HAVE_LIBM 1
65776 _ACEOF
65778 LIBS="-lm $LIBS"
65783 for ac_func in copysignf
65785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65786 echo "$as_me:$LINENO: checking for $ac_func" >&5
65787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65788 if eval "test \"\${$as_ac_var+set}\" = set"; then
65789 echo $ECHO_N "(cached) $ECHO_C" >&6
65790 else
65791 if test x$gcc_no_link = xyes; then
65792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65794 { (exit 1); exit 1; }; }
65796 cat >conftest.$ac_ext <<_ACEOF
65797 /* confdefs.h. */
65798 _ACEOF
65799 cat confdefs.h >>conftest.$ac_ext
65800 cat >>conftest.$ac_ext <<_ACEOF
65801 /* end confdefs.h. */
65802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65804 #define $ac_func innocuous_$ac_func
65806 /* System header to define __stub macros and hopefully few prototypes,
65807 which can conflict with char $ac_func (); below.
65808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65809 <limits.h> exists even on freestanding compilers. */
65811 #ifdef __STDC__
65812 # include <limits.h>
65813 #else
65814 # include <assert.h>
65815 #endif
65817 #undef $ac_func
65819 /* Override any gcc2 internal prototype to avoid an error. */
65820 #ifdef __cplusplus
65821 extern "C"
65823 #endif
65824 /* We use char because int might match the return type of a gcc2
65825 builtin and then its argument prototype would still apply. */
65826 char $ac_func ();
65827 /* The GNU C library defines this for functions which it implements
65828 to always fail with ENOSYS. Some functions are actually named
65829 something starting with __ and the normal name is an alias. */
65830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65831 choke me
65832 #else
65833 char (*f) () = $ac_func;
65834 #endif
65835 #ifdef __cplusplus
65837 #endif
65840 main ()
65842 return f != $ac_func;
65844 return 0;
65846 _ACEOF
65847 rm -f conftest.$ac_objext conftest$ac_exeext
65848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65849 (eval $ac_link) 2>conftest.er1
65850 ac_status=$?
65851 grep -v '^ *+' conftest.er1 >conftest.err
65852 rm -f conftest.er1
65853 cat conftest.err >&5
65854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65855 (exit $ac_status); } &&
65856 { ac_try='test -z "$ac_c_werror_flag"
65857 || test ! -s conftest.err'
65858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65859 (eval $ac_try) 2>&5
65860 ac_status=$?
65861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65862 (exit $ac_status); }; } &&
65863 { ac_try='test -s conftest$ac_exeext'
65864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65865 (eval $ac_try) 2>&5
65866 ac_status=$?
65867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65868 (exit $ac_status); }; }; then
65869 eval "$as_ac_var=yes"
65870 else
65871 echo "$as_me: failed program was:" >&5
65872 sed 's/^/| /' conftest.$ac_ext >&5
65874 eval "$as_ac_var=no"
65876 rm -f conftest.err conftest.$ac_objext \
65877 conftest$ac_exeext conftest.$ac_ext
65879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65881 if test `eval echo '${'$as_ac_var'}'` = yes; then
65882 cat >>confdefs.h <<_ACEOF
65883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65884 _ACEOF
65886 else
65887 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65889 done
65893 for ac_func in __signbit
65895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65896 echo "$as_me:$LINENO: checking for $ac_func" >&5
65897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65898 if eval "test \"\${$as_ac_var+set}\" = set"; then
65899 echo $ECHO_N "(cached) $ECHO_C" >&6
65900 else
65901 if test x$gcc_no_link = xyes; then
65902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65904 { (exit 1); exit 1; }; }
65906 cat >conftest.$ac_ext <<_ACEOF
65907 /* confdefs.h. */
65908 _ACEOF
65909 cat confdefs.h >>conftest.$ac_ext
65910 cat >>conftest.$ac_ext <<_ACEOF
65911 /* end confdefs.h. */
65912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65914 #define $ac_func innocuous_$ac_func
65916 /* System header to define __stub macros and hopefully few prototypes,
65917 which can conflict with char $ac_func (); below.
65918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65919 <limits.h> exists even on freestanding compilers. */
65921 #ifdef __STDC__
65922 # include <limits.h>
65923 #else
65924 # include <assert.h>
65925 #endif
65927 #undef $ac_func
65929 /* Override any gcc2 internal prototype to avoid an error. */
65930 #ifdef __cplusplus
65931 extern "C"
65933 #endif
65934 /* We use char because int might match the return type of a gcc2
65935 builtin and then its argument prototype would still apply. */
65936 char $ac_func ();
65937 /* The GNU C library defines this for functions which it implements
65938 to always fail with ENOSYS. Some functions are actually named
65939 something starting with __ and the normal name is an alias. */
65940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65941 choke me
65942 #else
65943 char (*f) () = $ac_func;
65944 #endif
65945 #ifdef __cplusplus
65947 #endif
65950 main ()
65952 return f != $ac_func;
65954 return 0;
65956 _ACEOF
65957 rm -f conftest.$ac_objext conftest$ac_exeext
65958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65959 (eval $ac_link) 2>conftest.er1
65960 ac_status=$?
65961 grep -v '^ *+' conftest.er1 >conftest.err
65962 rm -f conftest.er1
65963 cat conftest.err >&5
65964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65965 (exit $ac_status); } &&
65966 { ac_try='test -z "$ac_c_werror_flag"
65967 || test ! -s conftest.err'
65968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65969 (eval $ac_try) 2>&5
65970 ac_status=$?
65971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65972 (exit $ac_status); }; } &&
65973 { ac_try='test -s conftest$ac_exeext'
65974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65975 (eval $ac_try) 2>&5
65976 ac_status=$?
65977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65978 (exit $ac_status); }; }; then
65979 eval "$as_ac_var=yes"
65980 else
65981 echo "$as_me: failed program was:" >&5
65982 sed 's/^/| /' conftest.$ac_ext >&5
65984 eval "$as_ac_var=no"
65986 rm -f conftest.err conftest.$ac_objext \
65987 conftest$ac_exeext conftest.$ac_ext
65989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65991 if test `eval echo '${'$as_ac_var'}'` = yes; then
65992 cat >>confdefs.h <<_ACEOF
65993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65994 _ACEOF
65996 else
65997 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65999 done
66003 for ac_func in __signbitf
66005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66006 echo "$as_me:$LINENO: checking for $ac_func" >&5
66007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66008 if eval "test \"\${$as_ac_var+set}\" = set"; then
66009 echo $ECHO_N "(cached) $ECHO_C" >&6
66010 else
66011 if test x$gcc_no_link = xyes; then
66012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66014 { (exit 1); exit 1; }; }
66016 cat >conftest.$ac_ext <<_ACEOF
66017 /* confdefs.h. */
66018 _ACEOF
66019 cat confdefs.h >>conftest.$ac_ext
66020 cat >>conftest.$ac_ext <<_ACEOF
66021 /* end confdefs.h. */
66022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66024 #define $ac_func innocuous_$ac_func
66026 /* System header to define __stub macros and hopefully few prototypes,
66027 which can conflict with char $ac_func (); below.
66028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66029 <limits.h> exists even on freestanding compilers. */
66031 #ifdef __STDC__
66032 # include <limits.h>
66033 #else
66034 # include <assert.h>
66035 #endif
66037 #undef $ac_func
66039 /* Override any gcc2 internal prototype to avoid an error. */
66040 #ifdef __cplusplus
66041 extern "C"
66043 #endif
66044 /* We use char because int might match the return type of a gcc2
66045 builtin and then its argument prototype would still apply. */
66046 char $ac_func ();
66047 /* The GNU C library defines this for functions which it implements
66048 to always fail with ENOSYS. Some functions are actually named
66049 something starting with __ and the normal name is an alias. */
66050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66051 choke me
66052 #else
66053 char (*f) () = $ac_func;
66054 #endif
66055 #ifdef __cplusplus
66057 #endif
66060 main ()
66062 return f != $ac_func;
66064 return 0;
66066 _ACEOF
66067 rm -f conftest.$ac_objext conftest$ac_exeext
66068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66069 (eval $ac_link) 2>conftest.er1
66070 ac_status=$?
66071 grep -v '^ *+' conftest.er1 >conftest.err
66072 rm -f conftest.er1
66073 cat conftest.err >&5
66074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66075 (exit $ac_status); } &&
66076 { ac_try='test -z "$ac_c_werror_flag"
66077 || test ! -s conftest.err'
66078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66079 (eval $ac_try) 2>&5
66080 ac_status=$?
66081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66082 (exit $ac_status); }; } &&
66083 { ac_try='test -s conftest$ac_exeext'
66084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66085 (eval $ac_try) 2>&5
66086 ac_status=$?
66087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66088 (exit $ac_status); }; }; then
66089 eval "$as_ac_var=yes"
66090 else
66091 echo "$as_me: failed program was:" >&5
66092 sed 's/^/| /' conftest.$ac_ext >&5
66094 eval "$as_ac_var=no"
66096 rm -f conftest.err conftest.$ac_objext \
66097 conftest$ac_exeext conftest.$ac_ext
66099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66101 if test `eval echo '${'$as_ac_var'}'` = yes; then
66102 cat >>confdefs.h <<_ACEOF
66103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66104 _ACEOF
66106 else
66107 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
66109 done
66112 if test x$ac_cv_func_copysignl = x"yes"; then
66114 for ac_func in __signbitl
66116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66117 echo "$as_me:$LINENO: checking for $ac_func" >&5
66118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66119 if eval "test \"\${$as_ac_var+set}\" = set"; then
66120 echo $ECHO_N "(cached) $ECHO_C" >&6
66121 else
66122 if test x$gcc_no_link = xyes; then
66123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66125 { (exit 1); exit 1; }; }
66127 cat >conftest.$ac_ext <<_ACEOF
66128 /* confdefs.h. */
66129 _ACEOF
66130 cat confdefs.h >>conftest.$ac_ext
66131 cat >>conftest.$ac_ext <<_ACEOF
66132 /* end confdefs.h. */
66133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66135 #define $ac_func innocuous_$ac_func
66137 /* System header to define __stub macros and hopefully few prototypes,
66138 which can conflict with char $ac_func (); below.
66139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66140 <limits.h> exists even on freestanding compilers. */
66142 #ifdef __STDC__
66143 # include <limits.h>
66144 #else
66145 # include <assert.h>
66146 #endif
66148 #undef $ac_func
66150 /* Override any gcc2 internal prototype to avoid an error. */
66151 #ifdef __cplusplus
66152 extern "C"
66154 #endif
66155 /* We use char because int might match the return type of a gcc2
66156 builtin and then its argument prototype would still apply. */
66157 char $ac_func ();
66158 /* The GNU C library defines this for functions which it implements
66159 to always fail with ENOSYS. Some functions are actually named
66160 something starting with __ and the normal name is an alias. */
66161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66162 choke me
66163 #else
66164 char (*f) () = $ac_func;
66165 #endif
66166 #ifdef __cplusplus
66168 #endif
66171 main ()
66173 return f != $ac_func;
66175 return 0;
66177 _ACEOF
66178 rm -f conftest.$ac_objext conftest$ac_exeext
66179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66180 (eval $ac_link) 2>conftest.er1
66181 ac_status=$?
66182 grep -v '^ *+' conftest.er1 >conftest.err
66183 rm -f conftest.er1
66184 cat conftest.err >&5
66185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66186 (exit $ac_status); } &&
66187 { ac_try='test -z "$ac_c_werror_flag"
66188 || test ! -s conftest.err'
66189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66190 (eval $ac_try) 2>&5
66191 ac_status=$?
66192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66193 (exit $ac_status); }; } &&
66194 { ac_try='test -s conftest$ac_exeext'
66195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66196 (eval $ac_try) 2>&5
66197 ac_status=$?
66198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66199 (exit $ac_status); }; }; then
66200 eval "$as_ac_var=yes"
66201 else
66202 echo "$as_me: failed program was:" >&5
66203 sed 's/^/| /' conftest.$ac_ext >&5
66205 eval "$as_ac_var=no"
66207 rm -f conftest.err conftest.$ac_objext \
66208 conftest$ac_exeext conftest.$ac_ext
66210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66212 if test `eval echo '${'$as_ac_var'}'` = yes; then
66213 cat >>confdefs.h <<_ACEOF
66214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66215 _ACEOF
66217 else
66218 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
66220 done
66224 # Used in libmath/Makefile.am.
66225 if test -n "$LIBMATHOBJS"; then
66226 need_libmath=yes
66231 # Test wchar.h for mbstate_t, which is needed for char_traits and
66232 # others even if wchar_t support is not on.
66233 echo "$as_me:$LINENO: checking for mbstate_t" >&5
66234 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
66235 cat >conftest.$ac_ext <<_ACEOF
66236 /* confdefs.h. */
66237 _ACEOF
66238 cat confdefs.h >>conftest.$ac_ext
66239 cat >>conftest.$ac_ext <<_ACEOF
66240 /* end confdefs.h. */
66241 #include <wchar.h>
66243 main ()
66245 mbstate_t teststate;
66247 return 0;
66249 _ACEOF
66250 rm -f conftest.$ac_objext
66251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66252 (eval $ac_compile) 2>conftest.er1
66253 ac_status=$?
66254 grep -v '^ *+' conftest.er1 >conftest.err
66255 rm -f conftest.er1
66256 cat conftest.err >&5
66257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66258 (exit $ac_status); } &&
66259 { ac_try='test -z "$ac_c_werror_flag"
66260 || test ! -s conftest.err'
66261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66262 (eval $ac_try) 2>&5
66263 ac_status=$?
66264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66265 (exit $ac_status); }; } &&
66266 { ac_try='test -s conftest.$ac_objext'
66267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66268 (eval $ac_try) 2>&5
66269 ac_status=$?
66270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66271 (exit $ac_status); }; }; then
66272 have_mbstate_t=yes
66273 else
66274 echo "$as_me: failed program was:" >&5
66275 sed 's/^/| /' conftest.$ac_ext >&5
66277 have_mbstate_t=no
66279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66280 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66281 echo "${ECHO_T}$have_mbstate_t" >&6
66282 if test x"$have_mbstate_t" = xyes; then
66283 cat >>confdefs.h <<\_ACEOF
66284 #define HAVE_MBSTATE_T 1
66285 _ACEOF
66289 # Sanity check for existence of ISO C99 headers for extended encoding.
66291 for ac_header in wchar.h
66293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66295 echo "$as_me:$LINENO: checking for $ac_header" >&5
66296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66298 echo $ECHO_N "(cached) $ECHO_C" >&6
66300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66302 else
66303 # Is the header compilable?
66304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66306 cat >conftest.$ac_ext <<_ACEOF
66307 /* confdefs.h. */
66308 _ACEOF
66309 cat confdefs.h >>conftest.$ac_ext
66310 cat >>conftest.$ac_ext <<_ACEOF
66311 /* end confdefs.h. */
66312 $ac_includes_default
66313 #include <$ac_header>
66314 _ACEOF
66315 rm -f conftest.$ac_objext
66316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66317 (eval $ac_compile) 2>conftest.er1
66318 ac_status=$?
66319 grep -v '^ *+' conftest.er1 >conftest.err
66320 rm -f conftest.er1
66321 cat conftest.err >&5
66322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66323 (exit $ac_status); } &&
66324 { ac_try='test -z "$ac_c_werror_flag"
66325 || test ! -s conftest.err'
66326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66327 (eval $ac_try) 2>&5
66328 ac_status=$?
66329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66330 (exit $ac_status); }; } &&
66331 { ac_try='test -s conftest.$ac_objext'
66332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66333 (eval $ac_try) 2>&5
66334 ac_status=$?
66335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66336 (exit $ac_status); }; }; then
66337 ac_header_compiler=yes
66338 else
66339 echo "$as_me: failed program was:" >&5
66340 sed 's/^/| /' conftest.$ac_ext >&5
66342 ac_header_compiler=no
66344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66346 echo "${ECHO_T}$ac_header_compiler" >&6
66348 # Is the header present?
66349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66351 cat >conftest.$ac_ext <<_ACEOF
66352 /* confdefs.h. */
66353 _ACEOF
66354 cat confdefs.h >>conftest.$ac_ext
66355 cat >>conftest.$ac_ext <<_ACEOF
66356 /* end confdefs.h. */
66357 #include <$ac_header>
66358 _ACEOF
66359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66361 ac_status=$?
66362 grep -v '^ *+' conftest.er1 >conftest.err
66363 rm -f conftest.er1
66364 cat conftest.err >&5
66365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66366 (exit $ac_status); } >/dev/null; then
66367 if test -s conftest.err; then
66368 ac_cpp_err=$ac_c_preproc_warn_flag
66369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66370 else
66371 ac_cpp_err=
66373 else
66374 ac_cpp_err=yes
66376 if test -z "$ac_cpp_err"; then
66377 ac_header_preproc=yes
66378 else
66379 echo "$as_me: failed program was:" >&5
66380 sed 's/^/| /' conftest.$ac_ext >&5
66382 ac_header_preproc=no
66384 rm -f conftest.err conftest.$ac_ext
66385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66386 echo "${ECHO_T}$ac_header_preproc" >&6
66388 # So? What about this header?
66389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66390 yes:no: )
66391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66395 ac_header_preproc=yes
66397 no:yes:* )
66398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66411 cat <<\_ASBOX
66412 ## ----------------------------------------- ##
66413 ## Report this to the package-unused lists. ##
66414 ## ----------------------------------------- ##
66415 _ASBOX
66417 sed "s/^/$as_me: WARNING: /" >&2
66419 esac
66420 echo "$as_me:$LINENO: checking for $ac_header" >&5
66421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66423 echo $ECHO_N "(cached) $ECHO_C" >&6
66424 else
66425 eval "$as_ac_Header=\$ac_header_preproc"
66427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66432 cat >>confdefs.h <<_ACEOF
66433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66434 _ACEOF
66435 ac_has_wchar_h=yes
66436 else
66437 ac_has_wchar_h=no
66440 done
66443 for ac_header in wctype.h
66445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66447 echo "$as_me:$LINENO: checking for $ac_header" >&5
66448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66450 echo $ECHO_N "(cached) $ECHO_C" >&6
66452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66454 else
66455 # Is the header compilable?
66456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66458 cat >conftest.$ac_ext <<_ACEOF
66459 /* confdefs.h. */
66460 _ACEOF
66461 cat confdefs.h >>conftest.$ac_ext
66462 cat >>conftest.$ac_ext <<_ACEOF
66463 /* end confdefs.h. */
66464 $ac_includes_default
66465 #include <$ac_header>
66466 _ACEOF
66467 rm -f conftest.$ac_objext
66468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66469 (eval $ac_compile) 2>conftest.er1
66470 ac_status=$?
66471 grep -v '^ *+' conftest.er1 >conftest.err
66472 rm -f conftest.er1
66473 cat conftest.err >&5
66474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66475 (exit $ac_status); } &&
66476 { ac_try='test -z "$ac_c_werror_flag"
66477 || test ! -s conftest.err'
66478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66479 (eval $ac_try) 2>&5
66480 ac_status=$?
66481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66482 (exit $ac_status); }; } &&
66483 { ac_try='test -s conftest.$ac_objext'
66484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66485 (eval $ac_try) 2>&5
66486 ac_status=$?
66487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66488 (exit $ac_status); }; }; then
66489 ac_header_compiler=yes
66490 else
66491 echo "$as_me: failed program was:" >&5
66492 sed 's/^/| /' conftest.$ac_ext >&5
66494 ac_header_compiler=no
66496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66498 echo "${ECHO_T}$ac_header_compiler" >&6
66500 # Is the header present?
66501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66503 cat >conftest.$ac_ext <<_ACEOF
66504 /* confdefs.h. */
66505 _ACEOF
66506 cat confdefs.h >>conftest.$ac_ext
66507 cat >>conftest.$ac_ext <<_ACEOF
66508 /* end confdefs.h. */
66509 #include <$ac_header>
66510 _ACEOF
66511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66513 ac_status=$?
66514 grep -v '^ *+' conftest.er1 >conftest.err
66515 rm -f conftest.er1
66516 cat conftest.err >&5
66517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66518 (exit $ac_status); } >/dev/null; then
66519 if test -s conftest.err; then
66520 ac_cpp_err=$ac_c_preproc_warn_flag
66521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66522 else
66523 ac_cpp_err=
66525 else
66526 ac_cpp_err=yes
66528 if test -z "$ac_cpp_err"; then
66529 ac_header_preproc=yes
66530 else
66531 echo "$as_me: failed program was:" >&5
66532 sed 's/^/| /' conftest.$ac_ext >&5
66534 ac_header_preproc=no
66536 rm -f conftest.err conftest.$ac_ext
66537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66538 echo "${ECHO_T}$ac_header_preproc" >&6
66540 # So? What about this header?
66541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66542 yes:no: )
66543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66547 ac_header_preproc=yes
66549 no:yes:* )
66550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66563 cat <<\_ASBOX
66564 ## ----------------------------------------- ##
66565 ## Report this to the package-unused lists. ##
66566 ## ----------------------------------------- ##
66567 _ASBOX
66569 sed "s/^/$as_me: WARNING: /" >&2
66571 esac
66572 echo "$as_me:$LINENO: checking for $ac_header" >&5
66573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66575 echo $ECHO_N "(cached) $ECHO_C" >&6
66576 else
66577 eval "$as_ac_Header=\$ac_header_preproc"
66579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66584 cat >>confdefs.h <<_ACEOF
66585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66586 _ACEOF
66587 ac_has_wctype_h=yes
66588 else
66589 ac_has_wctype_h=no
66592 done
66595 # Only continue checking if the ISO C99 headers exist and support is on.
66596 if test x"$ac_has_wchar_h" = xyes &&
66597 test x"$ac_has_wctype_h" = xyes &&
66598 test x"$enable_c_mbchar" != xno; then
66600 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66601 # numeric_limits can instantiate type_traits<wchar_t>
66602 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66603 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66604 cat >conftest.$ac_ext <<_ACEOF
66605 /* confdefs.h. */
66606 _ACEOF
66607 cat confdefs.h >>conftest.$ac_ext
66608 cat >>conftest.$ac_ext <<_ACEOF
66609 /* end confdefs.h. */
66610 #include <wchar.h>
66612 main ()
66614 int i = WCHAR_MIN; int j = WCHAR_MAX;
66616 return 0;
66618 _ACEOF
66619 rm -f conftest.$ac_objext
66620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66621 (eval $ac_compile) 2>conftest.er1
66622 ac_status=$?
66623 grep -v '^ *+' conftest.er1 >conftest.err
66624 rm -f conftest.er1
66625 cat conftest.err >&5
66626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66627 (exit $ac_status); } &&
66628 { ac_try='test -z "$ac_c_werror_flag"
66629 || test ! -s conftest.err'
66630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66631 (eval $ac_try) 2>&5
66632 ac_status=$?
66633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66634 (exit $ac_status); }; } &&
66635 { ac_try='test -s conftest.$ac_objext'
66636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66637 (eval $ac_try) 2>&5
66638 ac_status=$?
66639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66640 (exit $ac_status); }; }; then
66641 has_wchar_minmax=yes
66642 else
66643 echo "$as_me: failed program was:" >&5
66644 sed 's/^/| /' conftest.$ac_ext >&5
66646 has_wchar_minmax=no
66648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66649 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66650 echo "${ECHO_T}$has_wchar_minmax" >&6
66652 # Test wchar.h for WEOF, which is what we use to determine whether
66653 # to specialize for char_traits<wchar_t> or not.
66654 echo "$as_me:$LINENO: checking for WEOF" >&5
66655 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66656 cat >conftest.$ac_ext <<_ACEOF
66657 /* confdefs.h. */
66658 _ACEOF
66659 cat confdefs.h >>conftest.$ac_ext
66660 cat >>conftest.$ac_ext <<_ACEOF
66661 /* end confdefs.h. */
66663 #include <wchar.h>
66664 #include <stddef.h>
66666 main ()
66668 wint_t i = WEOF;
66670 return 0;
66672 _ACEOF
66673 rm -f conftest.$ac_objext
66674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66675 (eval $ac_compile) 2>conftest.er1
66676 ac_status=$?
66677 grep -v '^ *+' conftest.er1 >conftest.err
66678 rm -f conftest.er1
66679 cat conftest.err >&5
66680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66681 (exit $ac_status); } &&
66682 { ac_try='test -z "$ac_c_werror_flag"
66683 || test ! -s conftest.err'
66684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66685 (eval $ac_try) 2>&5
66686 ac_status=$?
66687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66688 (exit $ac_status); }; } &&
66689 { ac_try='test -s conftest.$ac_objext'
66690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66691 (eval $ac_try) 2>&5
66692 ac_status=$?
66693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66694 (exit $ac_status); }; }; then
66695 has_weof=yes
66696 else
66697 echo "$as_me: failed program was:" >&5
66698 sed 's/^/| /' conftest.$ac_ext >&5
66700 has_weof=no
66702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66703 echo "$as_me:$LINENO: result: $has_weof" >&5
66704 echo "${ECHO_T}$has_weof" >&6
66706 # Tests for wide character functions used in char_traits<wchar_t>.
66707 ac_wfuncs=yes
66714 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66717 echo "$as_me:$LINENO: checking for $ac_func" >&5
66718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66719 if eval "test \"\${$as_ac_var+set}\" = set"; then
66720 echo $ECHO_N "(cached) $ECHO_C" >&6
66721 else
66722 if test x$gcc_no_link = xyes; then
66723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66725 { (exit 1); exit 1; }; }
66727 cat >conftest.$ac_ext <<_ACEOF
66728 /* confdefs.h. */
66729 _ACEOF
66730 cat confdefs.h >>conftest.$ac_ext
66731 cat >>conftest.$ac_ext <<_ACEOF
66732 /* end confdefs.h. */
66733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66735 #define $ac_func innocuous_$ac_func
66737 /* System header to define __stub macros and hopefully few prototypes,
66738 which can conflict with char $ac_func (); below.
66739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66740 <limits.h> exists even on freestanding compilers. */
66742 #ifdef __STDC__
66743 # include <limits.h>
66744 #else
66745 # include <assert.h>
66746 #endif
66748 #undef $ac_func
66750 /* Override any gcc2 internal prototype to avoid an error. */
66751 #ifdef __cplusplus
66752 extern "C"
66754 #endif
66755 /* We use char because int might match the return type of a gcc2
66756 builtin and then its argument prototype would still apply. */
66757 char $ac_func ();
66758 /* The GNU C library defines this for functions which it implements
66759 to always fail with ENOSYS. Some functions are actually named
66760 something starting with __ and the normal name is an alias. */
66761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66762 choke me
66763 #else
66764 char (*f) () = $ac_func;
66765 #endif
66766 #ifdef __cplusplus
66768 #endif
66771 main ()
66773 return f != $ac_func;
66775 return 0;
66777 _ACEOF
66778 rm -f conftest.$ac_objext conftest$ac_exeext
66779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66780 (eval $ac_link) 2>conftest.er1
66781 ac_status=$?
66782 grep -v '^ *+' conftest.er1 >conftest.err
66783 rm -f conftest.er1
66784 cat conftest.err >&5
66785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66786 (exit $ac_status); } &&
66787 { ac_try='test -z "$ac_c_werror_flag"
66788 || test ! -s conftest.err'
66789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66790 (eval $ac_try) 2>&5
66791 ac_status=$?
66792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66793 (exit $ac_status); }; } &&
66794 { ac_try='test -s conftest$ac_exeext'
66795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66796 (eval $ac_try) 2>&5
66797 ac_status=$?
66798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66799 (exit $ac_status); }; }; then
66800 eval "$as_ac_var=yes"
66801 else
66802 echo "$as_me: failed program was:" >&5
66803 sed 's/^/| /' conftest.$ac_ext >&5
66805 eval "$as_ac_var=no"
66807 rm -f conftest.err conftest.$ac_objext \
66808 conftest$ac_exeext conftest.$ac_ext
66810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66812 if test `eval echo '${'$as_ac_var'}'` = yes; then
66813 cat >>confdefs.h <<_ACEOF
66814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66815 _ACEOF
66817 else
66818 ac_wfuncs=no
66820 done
66823 # Checks for names injected into std:: by the c_std headers.
66870 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66871 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66872 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66873 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66874 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66875 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66878 echo "$as_me:$LINENO: checking for $ac_func" >&5
66879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66880 if eval "test \"\${$as_ac_var+set}\" = set"; then
66881 echo $ECHO_N "(cached) $ECHO_C" >&6
66882 else
66883 if test x$gcc_no_link = xyes; then
66884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66886 { (exit 1); exit 1; }; }
66888 cat >conftest.$ac_ext <<_ACEOF
66889 /* confdefs.h. */
66890 _ACEOF
66891 cat confdefs.h >>conftest.$ac_ext
66892 cat >>conftest.$ac_ext <<_ACEOF
66893 /* end confdefs.h. */
66894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66896 #define $ac_func innocuous_$ac_func
66898 /* System header to define __stub macros and hopefully few prototypes,
66899 which can conflict with char $ac_func (); below.
66900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66901 <limits.h> exists even on freestanding compilers. */
66903 #ifdef __STDC__
66904 # include <limits.h>
66905 #else
66906 # include <assert.h>
66907 #endif
66909 #undef $ac_func
66911 /* Override any gcc2 internal prototype to avoid an error. */
66912 #ifdef __cplusplus
66913 extern "C"
66915 #endif
66916 /* We use char because int might match the return type of a gcc2
66917 builtin and then its argument prototype would still apply. */
66918 char $ac_func ();
66919 /* The GNU C library defines this for functions which it implements
66920 to always fail with ENOSYS. Some functions are actually named
66921 something starting with __ and the normal name is an alias. */
66922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66923 choke me
66924 #else
66925 char (*f) () = $ac_func;
66926 #endif
66927 #ifdef __cplusplus
66929 #endif
66932 main ()
66934 return f != $ac_func;
66936 return 0;
66938 _ACEOF
66939 rm -f conftest.$ac_objext conftest$ac_exeext
66940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66941 (eval $ac_link) 2>conftest.er1
66942 ac_status=$?
66943 grep -v '^ *+' conftest.er1 >conftest.err
66944 rm -f conftest.er1
66945 cat conftest.err >&5
66946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66947 (exit $ac_status); } &&
66948 { ac_try='test -z "$ac_c_werror_flag"
66949 || test ! -s conftest.err'
66950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66951 (eval $ac_try) 2>&5
66952 ac_status=$?
66953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66954 (exit $ac_status); }; } &&
66955 { ac_try='test -s conftest$ac_exeext'
66956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66957 (eval $ac_try) 2>&5
66958 ac_status=$?
66959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66960 (exit $ac_status); }; }; then
66961 eval "$as_ac_var=yes"
66962 else
66963 echo "$as_me: failed program was:" >&5
66964 sed 's/^/| /' conftest.$ac_ext >&5
66966 eval "$as_ac_var=no"
66968 rm -f conftest.err conftest.$ac_objext \
66969 conftest$ac_exeext conftest.$ac_ext
66971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66973 if test `eval echo '${'$as_ac_var'}'` = yes; then
66974 cat >>confdefs.h <<_ACEOF
66975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66976 _ACEOF
66978 else
66979 ac_wfuncs=no
66981 done
66984 # Checks for wide character functions that are not required
66985 # for basic wchar_t support. Don't disable support if they are missing.
66986 # Injection of these is wrapped with guard macros.
66992 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66995 echo "$as_me:$LINENO: checking for $ac_func" >&5
66996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66997 if eval "test \"\${$as_ac_var+set}\" = set"; then
66998 echo $ECHO_N "(cached) $ECHO_C" >&6
66999 else
67000 if test x$gcc_no_link = xyes; then
67001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67003 { (exit 1); exit 1; }; }
67005 cat >conftest.$ac_ext <<_ACEOF
67006 /* confdefs.h. */
67007 _ACEOF
67008 cat confdefs.h >>conftest.$ac_ext
67009 cat >>conftest.$ac_ext <<_ACEOF
67010 /* end confdefs.h. */
67011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67013 #define $ac_func innocuous_$ac_func
67015 /* System header to define __stub macros and hopefully few prototypes,
67016 which can conflict with char $ac_func (); below.
67017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67018 <limits.h> exists even on freestanding compilers. */
67020 #ifdef __STDC__
67021 # include <limits.h>
67022 #else
67023 # include <assert.h>
67024 #endif
67026 #undef $ac_func
67028 /* Override any gcc2 internal prototype to avoid an error. */
67029 #ifdef __cplusplus
67030 extern "C"
67032 #endif
67033 /* We use char because int might match the return type of a gcc2
67034 builtin and then its argument prototype would still apply. */
67035 char $ac_func ();
67036 /* The GNU C library defines this for functions which it implements
67037 to always fail with ENOSYS. Some functions are actually named
67038 something starting with __ and the normal name is an alias. */
67039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67040 choke me
67041 #else
67042 char (*f) () = $ac_func;
67043 #endif
67044 #ifdef __cplusplus
67046 #endif
67049 main ()
67051 return f != $ac_func;
67053 return 0;
67055 _ACEOF
67056 rm -f conftest.$ac_objext conftest$ac_exeext
67057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67058 (eval $ac_link) 2>conftest.er1
67059 ac_status=$?
67060 grep -v '^ *+' conftest.er1 >conftest.err
67061 rm -f conftest.er1
67062 cat conftest.err >&5
67063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67064 (exit $ac_status); } &&
67065 { ac_try='test -z "$ac_c_werror_flag"
67066 || test ! -s conftest.err'
67067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67068 (eval $ac_try) 2>&5
67069 ac_status=$?
67070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67071 (exit $ac_status); }; } &&
67072 { ac_try='test -s conftest$ac_exeext'
67073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67074 (eval $ac_try) 2>&5
67075 ac_status=$?
67076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67077 (exit $ac_status); }; }; then
67078 eval "$as_ac_var=yes"
67079 else
67080 echo "$as_me: failed program was:" >&5
67081 sed 's/^/| /' conftest.$ac_ext >&5
67083 eval "$as_ac_var=no"
67085 rm -f conftest.err conftest.$ac_objext \
67086 conftest$ac_exeext conftest.$ac_ext
67088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67090 if test `eval echo '${'$as_ac_var'}'` = yes; then
67091 cat >>confdefs.h <<_ACEOF
67092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67093 _ACEOF
67096 done
67099 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
67100 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
67101 if test x"$has_weof" = xyes &&
67102 test x"$has_wchar_minmax" = xyes &&
67103 test x"$ac_wfuncs" = xyes;
67104 then
67105 ac_isoC99_wchar_t=yes
67106 else
67107 ac_isoC99_wchar_t=no
67109 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
67110 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
67112 # Use iconv for wchar_t to char conversions. As such, check for
67113 # X/Open Portability Guide, version 2 features (XPG2).
67114 if test "${ac_cv_header_iconv_h+set}" = set; then
67115 echo "$as_me:$LINENO: checking for iconv.h" >&5
67116 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67117 if test "${ac_cv_header_iconv_h+set}" = set; then
67118 echo $ECHO_N "(cached) $ECHO_C" >&6
67120 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67121 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67122 else
67123 # Is the header compilable?
67124 echo "$as_me:$LINENO: checking iconv.h usability" >&5
67125 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
67126 cat >conftest.$ac_ext <<_ACEOF
67127 /* confdefs.h. */
67128 _ACEOF
67129 cat confdefs.h >>conftest.$ac_ext
67130 cat >>conftest.$ac_ext <<_ACEOF
67131 /* end confdefs.h. */
67132 $ac_includes_default
67133 #include <iconv.h>
67134 _ACEOF
67135 rm -f conftest.$ac_objext
67136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67137 (eval $ac_compile) 2>conftest.er1
67138 ac_status=$?
67139 grep -v '^ *+' conftest.er1 >conftest.err
67140 rm -f conftest.er1
67141 cat conftest.err >&5
67142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67143 (exit $ac_status); } &&
67144 { ac_try='test -z "$ac_c_werror_flag"
67145 || test ! -s conftest.err'
67146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67147 (eval $ac_try) 2>&5
67148 ac_status=$?
67149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67150 (exit $ac_status); }; } &&
67151 { ac_try='test -s conftest.$ac_objext'
67152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67153 (eval $ac_try) 2>&5
67154 ac_status=$?
67155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67156 (exit $ac_status); }; }; then
67157 ac_header_compiler=yes
67158 else
67159 echo "$as_me: failed program was:" >&5
67160 sed 's/^/| /' conftest.$ac_ext >&5
67162 ac_header_compiler=no
67164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67166 echo "${ECHO_T}$ac_header_compiler" >&6
67168 # Is the header present?
67169 echo "$as_me:$LINENO: checking iconv.h presence" >&5
67170 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
67171 cat >conftest.$ac_ext <<_ACEOF
67172 /* confdefs.h. */
67173 _ACEOF
67174 cat confdefs.h >>conftest.$ac_ext
67175 cat >>conftest.$ac_ext <<_ACEOF
67176 /* end confdefs.h. */
67177 #include <iconv.h>
67178 _ACEOF
67179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67181 ac_status=$?
67182 grep -v '^ *+' conftest.er1 >conftest.err
67183 rm -f conftest.er1
67184 cat conftest.err >&5
67185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67186 (exit $ac_status); } >/dev/null; then
67187 if test -s conftest.err; then
67188 ac_cpp_err=$ac_c_preproc_warn_flag
67189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67190 else
67191 ac_cpp_err=
67193 else
67194 ac_cpp_err=yes
67196 if test -z "$ac_cpp_err"; then
67197 ac_header_preproc=yes
67198 else
67199 echo "$as_me: failed program was:" >&5
67200 sed 's/^/| /' conftest.$ac_ext >&5
67202 ac_header_preproc=no
67204 rm -f conftest.err conftest.$ac_ext
67205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67206 echo "${ECHO_T}$ac_header_preproc" >&6
67208 # So? What about this header?
67209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67210 yes:no: )
67211 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
67212 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67213 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
67214 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
67215 ac_header_preproc=yes
67217 no:yes:* )
67218 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
67219 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
67220 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
67221 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
67222 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
67223 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
67224 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
67225 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
67226 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
67227 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
67228 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
67229 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
67231 cat <<\_ASBOX
67232 ## ----------------------------------------- ##
67233 ## Report this to the package-unused lists. ##
67234 ## ----------------------------------------- ##
67235 _ASBOX
67237 sed "s/^/$as_me: WARNING: /" >&2
67239 esac
67240 echo "$as_me:$LINENO: checking for iconv.h" >&5
67241 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67242 if test "${ac_cv_header_iconv_h+set}" = set; then
67243 echo $ECHO_N "(cached) $ECHO_C" >&6
67244 else
67245 ac_cv_header_iconv_h=$ac_header_preproc
67247 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67248 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67251 if test $ac_cv_header_iconv_h = yes; then
67252 ac_has_iconv_h=yes
67253 else
67254 ac_has_iconv_h=no
67258 if test "${ac_cv_header_langinfo_h+set}" = set; then
67259 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67260 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67261 if test "${ac_cv_header_langinfo_h+set}" = set; then
67262 echo $ECHO_N "(cached) $ECHO_C" >&6
67264 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67265 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67266 else
67267 # Is the header compilable?
67268 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67269 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67270 cat >conftest.$ac_ext <<_ACEOF
67271 /* confdefs.h. */
67272 _ACEOF
67273 cat confdefs.h >>conftest.$ac_ext
67274 cat >>conftest.$ac_ext <<_ACEOF
67275 /* end confdefs.h. */
67276 $ac_includes_default
67277 #include <langinfo.h>
67278 _ACEOF
67279 rm -f conftest.$ac_objext
67280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67281 (eval $ac_compile) 2>conftest.er1
67282 ac_status=$?
67283 grep -v '^ *+' conftest.er1 >conftest.err
67284 rm -f conftest.er1
67285 cat conftest.err >&5
67286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67287 (exit $ac_status); } &&
67288 { ac_try='test -z "$ac_c_werror_flag"
67289 || test ! -s conftest.err'
67290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67291 (eval $ac_try) 2>&5
67292 ac_status=$?
67293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67294 (exit $ac_status); }; } &&
67295 { ac_try='test -s conftest.$ac_objext'
67296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67297 (eval $ac_try) 2>&5
67298 ac_status=$?
67299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67300 (exit $ac_status); }; }; then
67301 ac_header_compiler=yes
67302 else
67303 echo "$as_me: failed program was:" >&5
67304 sed 's/^/| /' conftest.$ac_ext >&5
67306 ac_header_compiler=no
67308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67310 echo "${ECHO_T}$ac_header_compiler" >&6
67312 # Is the header present?
67313 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67314 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67315 cat >conftest.$ac_ext <<_ACEOF
67316 /* confdefs.h. */
67317 _ACEOF
67318 cat confdefs.h >>conftest.$ac_ext
67319 cat >>conftest.$ac_ext <<_ACEOF
67320 /* end confdefs.h. */
67321 #include <langinfo.h>
67322 _ACEOF
67323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67325 ac_status=$?
67326 grep -v '^ *+' conftest.er1 >conftest.err
67327 rm -f conftest.er1
67328 cat conftest.err >&5
67329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67330 (exit $ac_status); } >/dev/null; then
67331 if test -s conftest.err; then
67332 ac_cpp_err=$ac_c_preproc_warn_flag
67333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67334 else
67335 ac_cpp_err=
67337 else
67338 ac_cpp_err=yes
67340 if test -z "$ac_cpp_err"; then
67341 ac_header_preproc=yes
67342 else
67343 echo "$as_me: failed program was:" >&5
67344 sed 's/^/| /' conftest.$ac_ext >&5
67346 ac_header_preproc=no
67348 rm -f conftest.err conftest.$ac_ext
67349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67350 echo "${ECHO_T}$ac_header_preproc" >&6
67352 # So? What about this header?
67353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67354 yes:no: )
67355 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67356 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67357 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67358 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67359 ac_header_preproc=yes
67361 no:yes:* )
67362 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67363 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67364 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67365 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67366 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67367 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67368 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67369 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67370 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67371 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67372 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67373 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67375 cat <<\_ASBOX
67376 ## ----------------------------------------- ##
67377 ## Report this to the package-unused lists. ##
67378 ## ----------------------------------------- ##
67379 _ASBOX
67381 sed "s/^/$as_me: WARNING: /" >&2
67383 esac
67384 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67385 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67386 if test "${ac_cv_header_langinfo_h+set}" = set; then
67387 echo $ECHO_N "(cached) $ECHO_C" >&6
67388 else
67389 ac_cv_header_langinfo_h=$ac_header_preproc
67391 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67392 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67395 if test $ac_cv_header_langinfo_h = yes; then
67396 ac_has_langinfo_h=yes
67397 else
67398 ac_has_langinfo_h=no
67403 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67404 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67405 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67406 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67407 echo $ECHO_N "(cached) $ECHO_C" >&6
67408 else
67409 ac_check_lib_save_LIBS=$LIBS
67410 LIBS="-liconv $LIBS"
67411 if test x$gcc_no_link = xyes; then
67412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67414 { (exit 1); exit 1; }; }
67416 cat >conftest.$ac_ext <<_ACEOF
67417 /* confdefs.h. */
67418 _ACEOF
67419 cat confdefs.h >>conftest.$ac_ext
67420 cat >>conftest.$ac_ext <<_ACEOF
67421 /* end confdefs.h. */
67423 /* Override any gcc2 internal prototype to avoid an error. */
67424 #ifdef __cplusplus
67425 extern "C"
67426 #endif
67427 /* We use char because int might match the return type of a gcc2
67428 builtin and then its argument prototype would still apply. */
67429 char iconv ();
67431 main ()
67433 iconv ();
67435 return 0;
67437 _ACEOF
67438 rm -f conftest.$ac_objext conftest$ac_exeext
67439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67440 (eval $ac_link) 2>conftest.er1
67441 ac_status=$?
67442 grep -v '^ *+' conftest.er1 >conftest.err
67443 rm -f conftest.er1
67444 cat conftest.err >&5
67445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67446 (exit $ac_status); } &&
67447 { ac_try='test -z "$ac_c_werror_flag"
67448 || test ! -s conftest.err'
67449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67450 (eval $ac_try) 2>&5
67451 ac_status=$?
67452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67453 (exit $ac_status); }; } &&
67454 { ac_try='test -s conftest$ac_exeext'
67455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67456 (eval $ac_try) 2>&5
67457 ac_status=$?
67458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67459 (exit $ac_status); }; }; then
67460 ac_cv_lib_iconv_iconv=yes
67461 else
67462 echo "$as_me: failed program was:" >&5
67463 sed 's/^/| /' conftest.$ac_ext >&5
67465 ac_cv_lib_iconv_iconv=no
67467 rm -f conftest.err conftest.$ac_objext \
67468 conftest$ac_exeext conftest.$ac_ext
67469 LIBS=$ac_check_lib_save_LIBS
67471 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67472 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67473 if test $ac_cv_lib_iconv_iconv = yes; then
67474 LIBICONV="-liconv"
67477 ac_save_LIBS="$LIBS"
67478 LIBS="$LIBS $LIBICONV"
67485 for ac_func in iconv_open iconv_close iconv nl_langinfo
67487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67488 echo "$as_me:$LINENO: checking for $ac_func" >&5
67489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67490 if eval "test \"\${$as_ac_var+set}\" = set"; then
67491 echo $ECHO_N "(cached) $ECHO_C" >&6
67492 else
67493 if test x$gcc_no_link = xyes; then
67494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67496 { (exit 1); exit 1; }; }
67498 cat >conftest.$ac_ext <<_ACEOF
67499 /* confdefs.h. */
67500 _ACEOF
67501 cat confdefs.h >>conftest.$ac_ext
67502 cat >>conftest.$ac_ext <<_ACEOF
67503 /* end confdefs.h. */
67504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67506 #define $ac_func innocuous_$ac_func
67508 /* System header to define __stub macros and hopefully few prototypes,
67509 which can conflict with char $ac_func (); below.
67510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67511 <limits.h> exists even on freestanding compilers. */
67513 #ifdef __STDC__
67514 # include <limits.h>
67515 #else
67516 # include <assert.h>
67517 #endif
67519 #undef $ac_func
67521 /* Override any gcc2 internal prototype to avoid an error. */
67522 #ifdef __cplusplus
67523 extern "C"
67525 #endif
67526 /* We use char because int might match the return type of a gcc2
67527 builtin and then its argument prototype would still apply. */
67528 char $ac_func ();
67529 /* The GNU C library defines this for functions which it implements
67530 to always fail with ENOSYS. Some functions are actually named
67531 something starting with __ and the normal name is an alias. */
67532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67533 choke me
67534 #else
67535 char (*f) () = $ac_func;
67536 #endif
67537 #ifdef __cplusplus
67539 #endif
67542 main ()
67544 return f != $ac_func;
67546 return 0;
67548 _ACEOF
67549 rm -f conftest.$ac_objext conftest$ac_exeext
67550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67551 (eval $ac_link) 2>conftest.er1
67552 ac_status=$?
67553 grep -v '^ *+' conftest.er1 >conftest.err
67554 rm -f conftest.er1
67555 cat conftest.err >&5
67556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67557 (exit $ac_status); } &&
67558 { ac_try='test -z "$ac_c_werror_flag"
67559 || test ! -s conftest.err'
67560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67561 (eval $ac_try) 2>&5
67562 ac_status=$?
67563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67564 (exit $ac_status); }; } &&
67565 { ac_try='test -s conftest$ac_exeext'
67566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67567 (eval $ac_try) 2>&5
67568 ac_status=$?
67569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67570 (exit $ac_status); }; }; then
67571 eval "$as_ac_var=yes"
67572 else
67573 echo "$as_me: failed program was:" >&5
67574 sed 's/^/| /' conftest.$ac_ext >&5
67576 eval "$as_ac_var=no"
67578 rm -f conftest.err conftest.$ac_objext \
67579 conftest$ac_exeext conftest.$ac_ext
67581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67583 if test `eval echo '${'$as_ac_var'}'` = yes; then
67584 cat >>confdefs.h <<_ACEOF
67585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67586 _ACEOF
67587 ac_XPG2funcs=yes
67588 else
67589 ac_XPG2funcs=no
67591 done
67594 LIBS="$ac_save_LIBS"
67596 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67597 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67598 if test x"$ac_has_iconv_h" = xyes &&
67599 test x"$ac_has_langinfo_h" = xyes &&
67600 test x"$ac_XPG2funcs" = xyes;
67601 then
67602 ac_XPG2_wchar_t=yes
67603 else
67604 ac_XPG2_wchar_t=no
67606 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67607 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67609 # At the moment, only enable wchar_t specializations if all the
67610 # above support is present.
67611 if test x"$ac_isoC99_wchar_t" = xyes &&
67612 test x"$ac_XPG2_wchar_t" = xyes;
67613 then
67614 cat >>confdefs.h <<\_ACEOF
67615 #define _GLIBCXX_USE_WCHAR_T 1
67616 _ACEOF
67618 enable_wchar_t=yes
67621 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67622 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67623 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67624 echo "${ECHO_T}$enable_wchar_t" >&6
67626 cat >>confdefs.h <<\_ACEOF
67627 #define HAVE_COSF 1
67628 _ACEOF
67630 cat >>confdefs.h <<\_ACEOF
67631 #define HAVE_COSL 1
67632 _ACEOF
67634 cat >>confdefs.h <<\_ACEOF
67635 #define HAVE_COSHF 1
67636 _ACEOF
67638 cat >>confdefs.h <<\_ACEOF
67639 #define HAVE_COSHL 1
67640 _ACEOF
67642 cat >>confdefs.h <<\_ACEOF
67643 #define HAVE_LOGF 1
67644 _ACEOF
67646 cat >>confdefs.h <<\_ACEOF
67647 #define HAVE_LOGL 1
67648 _ACEOF
67650 cat >>confdefs.h <<\_ACEOF
67651 #define HAVE_LOG10F 1
67652 _ACEOF
67654 cat >>confdefs.h <<\_ACEOF
67655 #define HAVE_LOG10L 1
67656 _ACEOF
67658 cat >>confdefs.h <<\_ACEOF
67659 #define HAVE_SINF 1
67660 _ACEOF
67662 cat >>confdefs.h <<\_ACEOF
67663 #define HAVE_SINL 1
67664 _ACEOF
67666 cat >>confdefs.h <<\_ACEOF
67667 #define HAVE_SINHF 1
67668 _ACEOF
67670 cat >>confdefs.h <<\_ACEOF
67671 #define HAVE_SINHL 1
67672 _ACEOF
67675 *-solaris*)
67676 case "$target" in
67677 # *-solaris2.5)
67678 # os_include_dir="os/solaris/solaris2.5"
67679 # ;;
67680 # *-solaris2.6)
67681 # os_include_dir="os/solaris/solaris2.6"
67682 # ;;
67683 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67684 cat >>confdefs.h <<\_ACEOF
67685 #define HAVE_GETPAGESIZE 1
67686 _ACEOF
67688 cat >>confdefs.h <<\_ACEOF
67689 #define HAVE_SIGSETJMP 1
67690 _ACEOF
67692 cat >>confdefs.h <<\_ACEOF
67693 #define HAVE_MBSTATE_T 1
67694 _ACEOF
67696 cat >>confdefs.h <<\_ACEOF
67697 #define HAVE_POLL 1
67698 _ACEOF
67700 cat >>confdefs.h <<\_ACEOF
67701 #define HAVE_S_ISREG 1
67702 _ACEOF
67704 cat >>confdefs.h <<\_ACEOF
67705 #define HAVE_LC_MESSAGES 1
67706 _ACEOF
67708 cat >>confdefs.h <<\_ACEOF
67709 #define HAVE_BTOWC 1
67710 _ACEOF
67712 cat >>confdefs.h <<\_ACEOF
67713 #define HAVE_FGETWC 1
67714 _ACEOF
67716 cat >>confdefs.h <<\_ACEOF
67717 #define HAVE_FGETWS 1
67718 _ACEOF
67720 cat >>confdefs.h <<\_ACEOF
67721 #define HAVE_FINITE 1
67722 _ACEOF
67724 cat >>confdefs.h <<\_ACEOF
67725 #define HAVE_FPCLASS 1
67726 _ACEOF
67728 cat >>confdefs.h <<\_ACEOF
67729 #define HAVE_FPUTWC 1
67730 _ACEOF
67732 cat >>confdefs.h <<\_ACEOF
67733 #define HAVE_FPUTWS 1
67734 _ACEOF
67736 cat >>confdefs.h <<\_ACEOF
67737 #define HAVE_FWIDE 1
67738 _ACEOF
67740 cat >>confdefs.h <<\_ACEOF
67741 #define HAVE_FWPRINTF 1
67742 _ACEOF
67744 cat >>confdefs.h <<\_ACEOF
67745 #define HAVE_FWSCANF 1
67746 _ACEOF
67748 cat >>confdefs.h <<\_ACEOF
67749 #define HAVE_GETPAGESIZE 1
67750 _ACEOF
67752 cat >>confdefs.h <<\_ACEOF
67753 #define HAVE_GETWC 1
67754 _ACEOF
67756 cat >>confdefs.h <<\_ACEOF
67757 #define HAVE_GETWCHAR 1
67758 _ACEOF
67760 cat >>confdefs.h <<\_ACEOF
67761 #define HAVE_MBRLEN 1
67762 _ACEOF
67764 cat >>confdefs.h <<\_ACEOF
67765 #define HAVE_MBRTOWC 1
67766 _ACEOF
67768 cat >>confdefs.h <<\_ACEOF
67769 #define HAVE_MBSINIT 1
67770 _ACEOF
67772 cat >>confdefs.h <<\_ACEOF
67773 #define HAVE_MBSRTOWCS 1
67774 _ACEOF
67776 cat >>confdefs.h <<\_ACEOF
67777 #define HAVE_NL_LANGINFO 1
67778 _ACEOF
67780 cat >>confdefs.h <<\_ACEOF
67781 #define HAVE_PUTWC 1
67782 _ACEOF
67784 cat >>confdefs.h <<\_ACEOF
67785 #define HAVE_PUTWCHAR 1
67786 _ACEOF
67788 cat >>confdefs.h <<\_ACEOF
67789 #define HAVE_SWPRINTF 1
67790 _ACEOF
67792 cat >>confdefs.h <<\_ACEOF
67793 #define HAVE_SWSCANF 1
67794 _ACEOF
67796 cat >>confdefs.h <<\_ACEOF
67797 #define HAVE_UNGETWC 1
67798 _ACEOF
67800 cat >>confdefs.h <<\_ACEOF
67801 #define HAVE_VFWPRINTF 1
67802 _ACEOF
67804 cat >>confdefs.h <<\_ACEOF
67805 #define HAVE_VSWPRINTF 1
67806 _ACEOF
67808 cat >>confdefs.h <<\_ACEOF
67809 #define HAVE_VWPRINTF 1
67810 _ACEOF
67812 cat >>confdefs.h <<\_ACEOF
67813 #define HAVE_WCRTOMB 1
67814 _ACEOF
67816 cat >>confdefs.h <<\_ACEOF
67817 #define HAVE_WCSCAT 1
67818 _ACEOF
67820 cat >>confdefs.h <<\_ACEOF
67821 #define HAVE_WCSCHR 1
67822 _ACEOF
67824 cat >>confdefs.h <<\_ACEOF
67825 #define HAVE_WCSCMP 1
67826 _ACEOF
67828 cat >>confdefs.h <<\_ACEOF
67829 #define HAVE_WCSCOLL 1
67830 _ACEOF
67832 cat >>confdefs.h <<\_ACEOF
67833 #define HAVE_WCSCPY 1
67834 _ACEOF
67836 cat >>confdefs.h <<\_ACEOF
67837 #define HAVE_WCSCSPN 1
67838 _ACEOF
67840 cat >>confdefs.h <<\_ACEOF
67841 #define HAVE_WCSFTIME 1
67842 _ACEOF
67844 cat >>confdefs.h <<\_ACEOF
67845 #define HAVE_WCSLEN 1
67846 _ACEOF
67848 cat >>confdefs.h <<\_ACEOF
67849 #define HAVE_WCSNCAT 1
67850 _ACEOF
67852 cat >>confdefs.h <<\_ACEOF
67853 #define HAVE_WCSNCMP 1
67854 _ACEOF
67856 cat >>confdefs.h <<\_ACEOF
67857 #define HAVE_WCSNCPY 1
67858 _ACEOF
67860 cat >>confdefs.h <<\_ACEOF
67861 #define HAVE_WCSPBRK 1
67862 _ACEOF
67864 cat >>confdefs.h <<\_ACEOF
67865 #define HAVE_WCSRCHR 1
67866 _ACEOF
67868 cat >>confdefs.h <<\_ACEOF
67869 #define HAVE_WCSRTOMBS 1
67870 _ACEOF
67872 cat >>confdefs.h <<\_ACEOF
67873 #define HAVE_WCSSPN 1
67874 _ACEOF
67876 cat >>confdefs.h <<\_ACEOF
67877 #define HAVE_WCSSTR 1
67878 _ACEOF
67880 cat >>confdefs.h <<\_ACEOF
67881 #define HAVE_WCSTOD 1
67882 _ACEOF
67884 cat >>confdefs.h <<\_ACEOF
67885 #define HAVE_WCSTOK 1
67886 _ACEOF
67888 cat >>confdefs.h <<\_ACEOF
67889 #define HAVE_WCSTOL 1
67890 _ACEOF
67892 cat >>confdefs.h <<\_ACEOF
67893 #define HAVE_WCSTOUL 1
67894 _ACEOF
67896 cat >>confdefs.h <<\_ACEOF
67897 #define HAVE_WCSXFRM 1
67898 _ACEOF
67900 cat >>confdefs.h <<\_ACEOF
67901 #define HAVE_WCTOB 1
67902 _ACEOF
67904 cat >>confdefs.h <<\_ACEOF
67905 #define HAVE_WMEMCHR 1
67906 _ACEOF
67908 cat >>confdefs.h <<\_ACEOF
67909 #define HAVE_WMEMCMP 1
67910 _ACEOF
67912 cat >>confdefs.h <<\_ACEOF
67913 #define HAVE_WMEMCPY 1
67914 _ACEOF
67916 cat >>confdefs.h <<\_ACEOF
67917 #define HAVE_WMEMMOVE 1
67918 _ACEOF
67920 cat >>confdefs.h <<\_ACEOF
67921 #define HAVE_WMEMSET 1
67922 _ACEOF
67924 cat >>confdefs.h <<\_ACEOF
67925 #define HAVE_WPRINTF 1
67926 _ACEOF
67928 cat >>confdefs.h <<\_ACEOF
67929 #define HAVE_WSCANF 1
67930 _ACEOF
67932 cat >>confdefs.h <<\_ACEOF
67933 #define HAVE_ICONV 1
67934 _ACEOF
67936 cat >>confdefs.h <<\_ACEOF
67937 #define HAVE_ICONV_CLOSE 1
67938 _ACEOF
67940 cat >>confdefs.h <<\_ACEOF
67941 #define HAVE_ICONV_OPEN 1
67942 _ACEOF
67944 # Look for the pieces required for wchar_t support in order to
67945 # get all the right HAVE_* macros defined.
67947 # Test wchar.h for mbstate_t, which is needed for char_traits and
67948 # others even if wchar_t support is not on.
67949 echo "$as_me:$LINENO: checking for mbstate_t" >&5
67950 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67951 cat >conftest.$ac_ext <<_ACEOF
67952 /* confdefs.h. */
67953 _ACEOF
67954 cat confdefs.h >>conftest.$ac_ext
67955 cat >>conftest.$ac_ext <<_ACEOF
67956 /* end confdefs.h. */
67957 #include <wchar.h>
67959 main ()
67961 mbstate_t teststate;
67963 return 0;
67965 _ACEOF
67966 rm -f conftest.$ac_objext
67967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67968 (eval $ac_compile) 2>conftest.er1
67969 ac_status=$?
67970 grep -v '^ *+' conftest.er1 >conftest.err
67971 rm -f conftest.er1
67972 cat conftest.err >&5
67973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67974 (exit $ac_status); } &&
67975 { ac_try='test -z "$ac_c_werror_flag"
67976 || test ! -s conftest.err'
67977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67978 (eval $ac_try) 2>&5
67979 ac_status=$?
67980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67981 (exit $ac_status); }; } &&
67982 { ac_try='test -s conftest.$ac_objext'
67983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67984 (eval $ac_try) 2>&5
67985 ac_status=$?
67986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67987 (exit $ac_status); }; }; then
67988 have_mbstate_t=yes
67989 else
67990 echo "$as_me: failed program was:" >&5
67991 sed 's/^/| /' conftest.$ac_ext >&5
67993 have_mbstate_t=no
67995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67996 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67997 echo "${ECHO_T}$have_mbstate_t" >&6
67998 if test x"$have_mbstate_t" = xyes; then
67999 cat >>confdefs.h <<\_ACEOF
68000 #define HAVE_MBSTATE_T 1
68001 _ACEOF
68005 # Sanity check for existence of ISO C99 headers for extended encoding.
68007 for ac_header in wchar.h
68009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
68010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68011 echo "$as_me:$LINENO: checking for $ac_header" >&5
68012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68014 echo $ECHO_N "(cached) $ECHO_C" >&6
68016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68018 else
68019 # Is the header compilable?
68020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
68021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
68022 cat >conftest.$ac_ext <<_ACEOF
68023 /* confdefs.h. */
68024 _ACEOF
68025 cat confdefs.h >>conftest.$ac_ext
68026 cat >>conftest.$ac_ext <<_ACEOF
68027 /* end confdefs.h. */
68028 $ac_includes_default
68029 #include <$ac_header>
68030 _ACEOF
68031 rm -f conftest.$ac_objext
68032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68033 (eval $ac_compile) 2>conftest.er1
68034 ac_status=$?
68035 grep -v '^ *+' conftest.er1 >conftest.err
68036 rm -f conftest.er1
68037 cat conftest.err >&5
68038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68039 (exit $ac_status); } &&
68040 { ac_try='test -z "$ac_c_werror_flag"
68041 || test ! -s conftest.err'
68042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68043 (eval $ac_try) 2>&5
68044 ac_status=$?
68045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68046 (exit $ac_status); }; } &&
68047 { ac_try='test -s conftest.$ac_objext'
68048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68049 (eval $ac_try) 2>&5
68050 ac_status=$?
68051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68052 (exit $ac_status); }; }; then
68053 ac_header_compiler=yes
68054 else
68055 echo "$as_me: failed program was:" >&5
68056 sed 's/^/| /' conftest.$ac_ext >&5
68058 ac_header_compiler=no
68060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68062 echo "${ECHO_T}$ac_header_compiler" >&6
68064 # Is the header present?
68065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
68066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
68067 cat >conftest.$ac_ext <<_ACEOF
68068 /* confdefs.h. */
68069 _ACEOF
68070 cat confdefs.h >>conftest.$ac_ext
68071 cat >>conftest.$ac_ext <<_ACEOF
68072 /* end confdefs.h. */
68073 #include <$ac_header>
68074 _ACEOF
68075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68077 ac_status=$?
68078 grep -v '^ *+' conftest.er1 >conftest.err
68079 rm -f conftest.er1
68080 cat conftest.err >&5
68081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68082 (exit $ac_status); } >/dev/null; then
68083 if test -s conftest.err; then
68084 ac_cpp_err=$ac_c_preproc_warn_flag
68085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68086 else
68087 ac_cpp_err=
68089 else
68090 ac_cpp_err=yes
68092 if test -z "$ac_cpp_err"; then
68093 ac_header_preproc=yes
68094 else
68095 echo "$as_me: failed program was:" >&5
68096 sed 's/^/| /' conftest.$ac_ext >&5
68098 ac_header_preproc=no
68100 rm -f conftest.err conftest.$ac_ext
68101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68102 echo "${ECHO_T}$ac_header_preproc" >&6
68104 # So? What about this header?
68105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68106 yes:no: )
68107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68111 ac_header_preproc=yes
68113 no:yes:* )
68114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68127 cat <<\_ASBOX
68128 ## ----------------------------------------- ##
68129 ## Report this to the package-unused lists. ##
68130 ## ----------------------------------------- ##
68131 _ASBOX
68133 sed "s/^/$as_me: WARNING: /" >&2
68135 esac
68136 echo "$as_me:$LINENO: checking for $ac_header" >&5
68137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68139 echo $ECHO_N "(cached) $ECHO_C" >&6
68140 else
68141 eval "$as_ac_Header=\$ac_header_preproc"
68143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68148 cat >>confdefs.h <<_ACEOF
68149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68150 _ACEOF
68151 ac_has_wchar_h=yes
68152 else
68153 ac_has_wchar_h=no
68156 done
68159 for ac_header in wctype.h
68161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
68162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68163 echo "$as_me:$LINENO: checking for $ac_header" >&5
68164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68166 echo $ECHO_N "(cached) $ECHO_C" >&6
68168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68170 else
68171 # Is the header compilable?
68172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
68173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
68174 cat >conftest.$ac_ext <<_ACEOF
68175 /* confdefs.h. */
68176 _ACEOF
68177 cat confdefs.h >>conftest.$ac_ext
68178 cat >>conftest.$ac_ext <<_ACEOF
68179 /* end confdefs.h. */
68180 $ac_includes_default
68181 #include <$ac_header>
68182 _ACEOF
68183 rm -f conftest.$ac_objext
68184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68185 (eval $ac_compile) 2>conftest.er1
68186 ac_status=$?
68187 grep -v '^ *+' conftest.er1 >conftest.err
68188 rm -f conftest.er1
68189 cat conftest.err >&5
68190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68191 (exit $ac_status); } &&
68192 { ac_try='test -z "$ac_c_werror_flag"
68193 || test ! -s conftest.err'
68194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68195 (eval $ac_try) 2>&5
68196 ac_status=$?
68197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68198 (exit $ac_status); }; } &&
68199 { ac_try='test -s conftest.$ac_objext'
68200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68201 (eval $ac_try) 2>&5
68202 ac_status=$?
68203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68204 (exit $ac_status); }; }; then
68205 ac_header_compiler=yes
68206 else
68207 echo "$as_me: failed program was:" >&5
68208 sed 's/^/| /' conftest.$ac_ext >&5
68210 ac_header_compiler=no
68212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68214 echo "${ECHO_T}$ac_header_compiler" >&6
68216 # Is the header present?
68217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
68218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
68219 cat >conftest.$ac_ext <<_ACEOF
68220 /* confdefs.h. */
68221 _ACEOF
68222 cat confdefs.h >>conftest.$ac_ext
68223 cat >>conftest.$ac_ext <<_ACEOF
68224 /* end confdefs.h. */
68225 #include <$ac_header>
68226 _ACEOF
68227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68229 ac_status=$?
68230 grep -v '^ *+' conftest.er1 >conftest.err
68231 rm -f conftest.er1
68232 cat conftest.err >&5
68233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68234 (exit $ac_status); } >/dev/null; then
68235 if test -s conftest.err; then
68236 ac_cpp_err=$ac_c_preproc_warn_flag
68237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68238 else
68239 ac_cpp_err=
68241 else
68242 ac_cpp_err=yes
68244 if test -z "$ac_cpp_err"; then
68245 ac_header_preproc=yes
68246 else
68247 echo "$as_me: failed program was:" >&5
68248 sed 's/^/| /' conftest.$ac_ext >&5
68250 ac_header_preproc=no
68252 rm -f conftest.err conftest.$ac_ext
68253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68254 echo "${ECHO_T}$ac_header_preproc" >&6
68256 # So? What about this header?
68257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68258 yes:no: )
68259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68263 ac_header_preproc=yes
68265 no:yes:* )
68266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68279 cat <<\_ASBOX
68280 ## ----------------------------------------- ##
68281 ## Report this to the package-unused lists. ##
68282 ## ----------------------------------------- ##
68283 _ASBOX
68285 sed "s/^/$as_me: WARNING: /" >&2
68287 esac
68288 echo "$as_me:$LINENO: checking for $ac_header" >&5
68289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68291 echo $ECHO_N "(cached) $ECHO_C" >&6
68292 else
68293 eval "$as_ac_Header=\$ac_header_preproc"
68295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68300 cat >>confdefs.h <<_ACEOF
68301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68302 _ACEOF
68303 ac_has_wctype_h=yes
68304 else
68305 ac_has_wctype_h=no
68308 done
68311 # Only continue checking if the ISO C99 headers exist and support is on.
68312 if test x"$ac_has_wchar_h" = xyes &&
68313 test x"$ac_has_wctype_h" = xyes &&
68314 test x"$enable_c_mbchar" != xno; then
68316 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68317 # numeric_limits can instantiate type_traits<wchar_t>
68318 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68319 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68320 cat >conftest.$ac_ext <<_ACEOF
68321 /* confdefs.h. */
68322 _ACEOF
68323 cat confdefs.h >>conftest.$ac_ext
68324 cat >>conftest.$ac_ext <<_ACEOF
68325 /* end confdefs.h. */
68326 #include <wchar.h>
68328 main ()
68330 int i = WCHAR_MIN; int j = WCHAR_MAX;
68332 return 0;
68334 _ACEOF
68335 rm -f conftest.$ac_objext
68336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68337 (eval $ac_compile) 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_objext'
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 has_wchar_minmax=yes
68358 else
68359 echo "$as_me: failed program was:" >&5
68360 sed 's/^/| /' conftest.$ac_ext >&5
68362 has_wchar_minmax=no
68364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68365 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68366 echo "${ECHO_T}$has_wchar_minmax" >&6
68368 # Test wchar.h for WEOF, which is what we use to determine whether
68369 # to specialize for char_traits<wchar_t> or not.
68370 echo "$as_me:$LINENO: checking for WEOF" >&5
68371 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68372 cat >conftest.$ac_ext <<_ACEOF
68373 /* confdefs.h. */
68374 _ACEOF
68375 cat confdefs.h >>conftest.$ac_ext
68376 cat >>conftest.$ac_ext <<_ACEOF
68377 /* end confdefs.h. */
68379 #include <wchar.h>
68380 #include <stddef.h>
68382 main ()
68384 wint_t i = WEOF;
68386 return 0;
68388 _ACEOF
68389 rm -f conftest.$ac_objext
68390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68391 (eval $ac_compile) 2>conftest.er1
68392 ac_status=$?
68393 grep -v '^ *+' conftest.er1 >conftest.err
68394 rm -f conftest.er1
68395 cat conftest.err >&5
68396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68397 (exit $ac_status); } &&
68398 { ac_try='test -z "$ac_c_werror_flag"
68399 || test ! -s conftest.err'
68400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68401 (eval $ac_try) 2>&5
68402 ac_status=$?
68403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68404 (exit $ac_status); }; } &&
68405 { ac_try='test -s conftest.$ac_objext'
68406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68407 (eval $ac_try) 2>&5
68408 ac_status=$?
68409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68410 (exit $ac_status); }; }; then
68411 has_weof=yes
68412 else
68413 echo "$as_me: failed program was:" >&5
68414 sed 's/^/| /' conftest.$ac_ext >&5
68416 has_weof=no
68418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68419 echo "$as_me:$LINENO: result: $has_weof" >&5
68420 echo "${ECHO_T}$has_weof" >&6
68422 # Tests for wide character functions used in char_traits<wchar_t>.
68423 ac_wfuncs=yes
68430 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68433 echo "$as_me:$LINENO: checking for $ac_func" >&5
68434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68435 if eval "test \"\${$as_ac_var+set}\" = set"; then
68436 echo $ECHO_N "(cached) $ECHO_C" >&6
68437 else
68438 if test x$gcc_no_link = xyes; then
68439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68441 { (exit 1); exit 1; }; }
68443 cat >conftest.$ac_ext <<_ACEOF
68444 /* confdefs.h. */
68445 _ACEOF
68446 cat confdefs.h >>conftest.$ac_ext
68447 cat >>conftest.$ac_ext <<_ACEOF
68448 /* end confdefs.h. */
68449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68451 #define $ac_func innocuous_$ac_func
68453 /* System header to define __stub macros and hopefully few prototypes,
68454 which can conflict with char $ac_func (); below.
68455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68456 <limits.h> exists even on freestanding compilers. */
68458 #ifdef __STDC__
68459 # include <limits.h>
68460 #else
68461 # include <assert.h>
68462 #endif
68464 #undef $ac_func
68466 /* Override any gcc2 internal prototype to avoid an error. */
68467 #ifdef __cplusplus
68468 extern "C"
68470 #endif
68471 /* We use char because int might match the return type of a gcc2
68472 builtin and then its argument prototype would still apply. */
68473 char $ac_func ();
68474 /* The GNU C library defines this for functions which it implements
68475 to always fail with ENOSYS. Some functions are actually named
68476 something starting with __ and the normal name is an alias. */
68477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68478 choke me
68479 #else
68480 char (*f) () = $ac_func;
68481 #endif
68482 #ifdef __cplusplus
68484 #endif
68487 main ()
68489 return f != $ac_func;
68491 return 0;
68493 _ACEOF
68494 rm -f conftest.$ac_objext conftest$ac_exeext
68495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68496 (eval $ac_link) 2>conftest.er1
68497 ac_status=$?
68498 grep -v '^ *+' conftest.er1 >conftest.err
68499 rm -f conftest.er1
68500 cat conftest.err >&5
68501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68502 (exit $ac_status); } &&
68503 { ac_try='test -z "$ac_c_werror_flag"
68504 || test ! -s conftest.err'
68505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68506 (eval $ac_try) 2>&5
68507 ac_status=$?
68508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68509 (exit $ac_status); }; } &&
68510 { ac_try='test -s conftest$ac_exeext'
68511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68512 (eval $ac_try) 2>&5
68513 ac_status=$?
68514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68515 (exit $ac_status); }; }; then
68516 eval "$as_ac_var=yes"
68517 else
68518 echo "$as_me: failed program was:" >&5
68519 sed 's/^/| /' conftest.$ac_ext >&5
68521 eval "$as_ac_var=no"
68523 rm -f conftest.err conftest.$ac_objext \
68524 conftest$ac_exeext conftest.$ac_ext
68526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68528 if test `eval echo '${'$as_ac_var'}'` = yes; then
68529 cat >>confdefs.h <<_ACEOF
68530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68531 _ACEOF
68533 else
68534 ac_wfuncs=no
68536 done
68539 # Checks for names injected into std:: by the c_std headers.
68586 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68587 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68588 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68589 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68590 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68591 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68594 echo "$as_me:$LINENO: checking for $ac_func" >&5
68595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68596 if eval "test \"\${$as_ac_var+set}\" = set"; then
68597 echo $ECHO_N "(cached) $ECHO_C" >&6
68598 else
68599 if test x$gcc_no_link = xyes; then
68600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68601 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68602 { (exit 1); exit 1; }; }
68604 cat >conftest.$ac_ext <<_ACEOF
68605 /* confdefs.h. */
68606 _ACEOF
68607 cat confdefs.h >>conftest.$ac_ext
68608 cat >>conftest.$ac_ext <<_ACEOF
68609 /* end confdefs.h. */
68610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68612 #define $ac_func innocuous_$ac_func
68614 /* System header to define __stub macros and hopefully few prototypes,
68615 which can conflict with char $ac_func (); below.
68616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68617 <limits.h> exists even on freestanding compilers. */
68619 #ifdef __STDC__
68620 # include <limits.h>
68621 #else
68622 # include <assert.h>
68623 #endif
68625 #undef $ac_func
68627 /* Override any gcc2 internal prototype to avoid an error. */
68628 #ifdef __cplusplus
68629 extern "C"
68631 #endif
68632 /* We use char because int might match the return type of a gcc2
68633 builtin and then its argument prototype would still apply. */
68634 char $ac_func ();
68635 /* The GNU C library defines this for functions which it implements
68636 to always fail with ENOSYS. Some functions are actually named
68637 something starting with __ and the normal name is an alias. */
68638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68639 choke me
68640 #else
68641 char (*f) () = $ac_func;
68642 #endif
68643 #ifdef __cplusplus
68645 #endif
68648 main ()
68650 return f != $ac_func;
68652 return 0;
68654 _ACEOF
68655 rm -f conftest.$ac_objext conftest$ac_exeext
68656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68657 (eval $ac_link) 2>conftest.er1
68658 ac_status=$?
68659 grep -v '^ *+' conftest.er1 >conftest.err
68660 rm -f conftest.er1
68661 cat conftest.err >&5
68662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68663 (exit $ac_status); } &&
68664 { ac_try='test -z "$ac_c_werror_flag"
68665 || test ! -s conftest.err'
68666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68667 (eval $ac_try) 2>&5
68668 ac_status=$?
68669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68670 (exit $ac_status); }; } &&
68671 { ac_try='test -s conftest$ac_exeext'
68672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68673 (eval $ac_try) 2>&5
68674 ac_status=$?
68675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68676 (exit $ac_status); }; }; then
68677 eval "$as_ac_var=yes"
68678 else
68679 echo "$as_me: failed program was:" >&5
68680 sed 's/^/| /' conftest.$ac_ext >&5
68682 eval "$as_ac_var=no"
68684 rm -f conftest.err conftest.$ac_objext \
68685 conftest$ac_exeext conftest.$ac_ext
68687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68689 if test `eval echo '${'$as_ac_var'}'` = yes; then
68690 cat >>confdefs.h <<_ACEOF
68691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68692 _ACEOF
68694 else
68695 ac_wfuncs=no
68697 done
68700 # Checks for wide character functions that are not required
68701 # for basic wchar_t support. Don't disable support if they are missing.
68702 # Injection of these is wrapped with guard macros.
68708 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68711 echo "$as_me:$LINENO: checking for $ac_func" >&5
68712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68713 if eval "test \"\${$as_ac_var+set}\" = set"; then
68714 echo $ECHO_N "(cached) $ECHO_C" >&6
68715 else
68716 if test x$gcc_no_link = xyes; then
68717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68719 { (exit 1); exit 1; }; }
68721 cat >conftest.$ac_ext <<_ACEOF
68722 /* confdefs.h. */
68723 _ACEOF
68724 cat confdefs.h >>conftest.$ac_ext
68725 cat >>conftest.$ac_ext <<_ACEOF
68726 /* end confdefs.h. */
68727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68729 #define $ac_func innocuous_$ac_func
68731 /* System header to define __stub macros and hopefully few prototypes,
68732 which can conflict with char $ac_func (); below.
68733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68734 <limits.h> exists even on freestanding compilers. */
68736 #ifdef __STDC__
68737 # include <limits.h>
68738 #else
68739 # include <assert.h>
68740 #endif
68742 #undef $ac_func
68744 /* Override any gcc2 internal prototype to avoid an error. */
68745 #ifdef __cplusplus
68746 extern "C"
68748 #endif
68749 /* We use char because int might match the return type of a gcc2
68750 builtin and then its argument prototype would still apply. */
68751 char $ac_func ();
68752 /* The GNU C library defines this for functions which it implements
68753 to always fail with ENOSYS. Some functions are actually named
68754 something starting with __ and the normal name is an alias. */
68755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68756 choke me
68757 #else
68758 char (*f) () = $ac_func;
68759 #endif
68760 #ifdef __cplusplus
68762 #endif
68765 main ()
68767 return f != $ac_func;
68769 return 0;
68771 _ACEOF
68772 rm -f conftest.$ac_objext conftest$ac_exeext
68773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68774 (eval $ac_link) 2>conftest.er1
68775 ac_status=$?
68776 grep -v '^ *+' conftest.er1 >conftest.err
68777 rm -f conftest.er1
68778 cat conftest.err >&5
68779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68780 (exit $ac_status); } &&
68781 { ac_try='test -z "$ac_c_werror_flag"
68782 || test ! -s conftest.err'
68783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68784 (eval $ac_try) 2>&5
68785 ac_status=$?
68786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68787 (exit $ac_status); }; } &&
68788 { ac_try='test -s conftest$ac_exeext'
68789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68790 (eval $ac_try) 2>&5
68791 ac_status=$?
68792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68793 (exit $ac_status); }; }; then
68794 eval "$as_ac_var=yes"
68795 else
68796 echo "$as_me: failed program was:" >&5
68797 sed 's/^/| /' conftest.$ac_ext >&5
68799 eval "$as_ac_var=no"
68801 rm -f conftest.err conftest.$ac_objext \
68802 conftest$ac_exeext conftest.$ac_ext
68804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68806 if test `eval echo '${'$as_ac_var'}'` = yes; then
68807 cat >>confdefs.h <<_ACEOF
68808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68809 _ACEOF
68812 done
68815 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68816 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68817 if test x"$has_weof" = xyes &&
68818 test x"$has_wchar_minmax" = xyes &&
68819 test x"$ac_wfuncs" = xyes;
68820 then
68821 ac_isoC99_wchar_t=yes
68822 else
68823 ac_isoC99_wchar_t=no
68825 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68826 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68828 # Use iconv for wchar_t to char conversions. As such, check for
68829 # X/Open Portability Guide, version 2 features (XPG2).
68830 if test "${ac_cv_header_iconv_h+set}" = set; then
68831 echo "$as_me:$LINENO: checking for iconv.h" >&5
68832 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68833 if test "${ac_cv_header_iconv_h+set}" = set; then
68834 echo $ECHO_N "(cached) $ECHO_C" >&6
68836 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68837 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68838 else
68839 # Is the header compilable?
68840 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68841 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68842 cat >conftest.$ac_ext <<_ACEOF
68843 /* confdefs.h. */
68844 _ACEOF
68845 cat confdefs.h >>conftest.$ac_ext
68846 cat >>conftest.$ac_ext <<_ACEOF
68847 /* end confdefs.h. */
68848 $ac_includes_default
68849 #include <iconv.h>
68850 _ACEOF
68851 rm -f conftest.$ac_objext
68852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68853 (eval $ac_compile) 2>conftest.er1
68854 ac_status=$?
68855 grep -v '^ *+' conftest.er1 >conftest.err
68856 rm -f conftest.er1
68857 cat conftest.err >&5
68858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68859 (exit $ac_status); } &&
68860 { ac_try='test -z "$ac_c_werror_flag"
68861 || test ! -s conftest.err'
68862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68863 (eval $ac_try) 2>&5
68864 ac_status=$?
68865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68866 (exit $ac_status); }; } &&
68867 { ac_try='test -s conftest.$ac_objext'
68868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68869 (eval $ac_try) 2>&5
68870 ac_status=$?
68871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68872 (exit $ac_status); }; }; then
68873 ac_header_compiler=yes
68874 else
68875 echo "$as_me: failed program was:" >&5
68876 sed 's/^/| /' conftest.$ac_ext >&5
68878 ac_header_compiler=no
68880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68882 echo "${ECHO_T}$ac_header_compiler" >&6
68884 # Is the header present?
68885 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68886 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68887 cat >conftest.$ac_ext <<_ACEOF
68888 /* confdefs.h. */
68889 _ACEOF
68890 cat confdefs.h >>conftest.$ac_ext
68891 cat >>conftest.$ac_ext <<_ACEOF
68892 /* end confdefs.h. */
68893 #include <iconv.h>
68894 _ACEOF
68895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68897 ac_status=$?
68898 grep -v '^ *+' conftest.er1 >conftest.err
68899 rm -f conftest.er1
68900 cat conftest.err >&5
68901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68902 (exit $ac_status); } >/dev/null; then
68903 if test -s conftest.err; then
68904 ac_cpp_err=$ac_c_preproc_warn_flag
68905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68906 else
68907 ac_cpp_err=
68909 else
68910 ac_cpp_err=yes
68912 if test -z "$ac_cpp_err"; then
68913 ac_header_preproc=yes
68914 else
68915 echo "$as_me: failed program was:" >&5
68916 sed 's/^/| /' conftest.$ac_ext >&5
68918 ac_header_preproc=no
68920 rm -f conftest.err conftest.$ac_ext
68921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68922 echo "${ECHO_T}$ac_header_preproc" >&6
68924 # So? What about this header?
68925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68926 yes:no: )
68927 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68928 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68929 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68930 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68931 ac_header_preproc=yes
68933 no:yes:* )
68934 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68935 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68936 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
68937 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
68938 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68939 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68940 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
68941 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
68942 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68943 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68944 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68945 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68947 cat <<\_ASBOX
68948 ## ----------------------------------------- ##
68949 ## Report this to the package-unused lists. ##
68950 ## ----------------------------------------- ##
68951 _ASBOX
68953 sed "s/^/$as_me: WARNING: /" >&2
68955 esac
68956 echo "$as_me:$LINENO: checking for iconv.h" >&5
68957 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68958 if test "${ac_cv_header_iconv_h+set}" = set; then
68959 echo $ECHO_N "(cached) $ECHO_C" >&6
68960 else
68961 ac_cv_header_iconv_h=$ac_header_preproc
68963 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68964 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68967 if test $ac_cv_header_iconv_h = yes; then
68968 ac_has_iconv_h=yes
68969 else
68970 ac_has_iconv_h=no
68974 if test "${ac_cv_header_langinfo_h+set}" = set; then
68975 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68976 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68977 if test "${ac_cv_header_langinfo_h+set}" = set; then
68978 echo $ECHO_N "(cached) $ECHO_C" >&6
68980 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68981 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68982 else
68983 # Is the header compilable?
68984 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68985 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68986 cat >conftest.$ac_ext <<_ACEOF
68987 /* confdefs.h. */
68988 _ACEOF
68989 cat confdefs.h >>conftest.$ac_ext
68990 cat >>conftest.$ac_ext <<_ACEOF
68991 /* end confdefs.h. */
68992 $ac_includes_default
68993 #include <langinfo.h>
68994 _ACEOF
68995 rm -f conftest.$ac_objext
68996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68997 (eval $ac_compile) 2>conftest.er1
68998 ac_status=$?
68999 grep -v '^ *+' conftest.er1 >conftest.err
69000 rm -f conftest.er1
69001 cat conftest.err >&5
69002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69003 (exit $ac_status); } &&
69004 { ac_try='test -z "$ac_c_werror_flag"
69005 || test ! -s conftest.err'
69006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69007 (eval $ac_try) 2>&5
69008 ac_status=$?
69009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69010 (exit $ac_status); }; } &&
69011 { ac_try='test -s conftest.$ac_objext'
69012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69013 (eval $ac_try) 2>&5
69014 ac_status=$?
69015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69016 (exit $ac_status); }; }; then
69017 ac_header_compiler=yes
69018 else
69019 echo "$as_me: failed program was:" >&5
69020 sed 's/^/| /' conftest.$ac_ext >&5
69022 ac_header_compiler=no
69024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69026 echo "${ECHO_T}$ac_header_compiler" >&6
69028 # Is the header present?
69029 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
69030 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
69031 cat >conftest.$ac_ext <<_ACEOF
69032 /* confdefs.h. */
69033 _ACEOF
69034 cat confdefs.h >>conftest.$ac_ext
69035 cat >>conftest.$ac_ext <<_ACEOF
69036 /* end confdefs.h. */
69037 #include <langinfo.h>
69038 _ACEOF
69039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69041 ac_status=$?
69042 grep -v '^ *+' conftest.er1 >conftest.err
69043 rm -f conftest.er1
69044 cat conftest.err >&5
69045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69046 (exit $ac_status); } >/dev/null; then
69047 if test -s conftest.err; then
69048 ac_cpp_err=$ac_c_preproc_warn_flag
69049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69050 else
69051 ac_cpp_err=
69053 else
69054 ac_cpp_err=yes
69056 if test -z "$ac_cpp_err"; then
69057 ac_header_preproc=yes
69058 else
69059 echo "$as_me: failed program was:" >&5
69060 sed 's/^/| /' conftest.$ac_ext >&5
69062 ac_header_preproc=no
69064 rm -f conftest.err conftest.$ac_ext
69065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69066 echo "${ECHO_T}$ac_header_preproc" >&6
69068 # So? What about this header?
69069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69070 yes:no: )
69071 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
69072 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
69073 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
69074 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
69075 ac_header_preproc=yes
69077 no:yes:* )
69078 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
69079 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
69080 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
69081 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
69082 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
69083 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
69084 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
69085 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
69086 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
69087 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
69088 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
69089 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
69091 cat <<\_ASBOX
69092 ## ----------------------------------------- ##
69093 ## Report this to the package-unused lists. ##
69094 ## ----------------------------------------- ##
69095 _ASBOX
69097 sed "s/^/$as_me: WARNING: /" >&2
69099 esac
69100 echo "$as_me:$LINENO: checking for langinfo.h" >&5
69101 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
69102 if test "${ac_cv_header_langinfo_h+set}" = set; then
69103 echo $ECHO_N "(cached) $ECHO_C" >&6
69104 else
69105 ac_cv_header_langinfo_h=$ac_header_preproc
69107 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
69108 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
69111 if test $ac_cv_header_langinfo_h = yes; then
69112 ac_has_langinfo_h=yes
69113 else
69114 ac_has_langinfo_h=no
69119 # Check for existence of libiconv.a providing XPG2 wchar_t support.
69120 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
69121 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
69122 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
69123 echo $ECHO_N "(cached) $ECHO_C" >&6
69124 else
69125 ac_check_lib_save_LIBS=$LIBS
69126 LIBS="-liconv $LIBS"
69127 if test x$gcc_no_link = xyes; then
69128 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69129 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69130 { (exit 1); exit 1; }; }
69132 cat >conftest.$ac_ext <<_ACEOF
69133 /* confdefs.h. */
69134 _ACEOF
69135 cat confdefs.h >>conftest.$ac_ext
69136 cat >>conftest.$ac_ext <<_ACEOF
69137 /* end confdefs.h. */
69139 /* Override any gcc2 internal prototype to avoid an error. */
69140 #ifdef __cplusplus
69141 extern "C"
69142 #endif
69143 /* We use char because int might match the return type of a gcc2
69144 builtin and then its argument prototype would still apply. */
69145 char iconv ();
69147 main ()
69149 iconv ();
69151 return 0;
69153 _ACEOF
69154 rm -f conftest.$ac_objext conftest$ac_exeext
69155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69156 (eval $ac_link) 2>conftest.er1
69157 ac_status=$?
69158 grep -v '^ *+' conftest.er1 >conftest.err
69159 rm -f conftest.er1
69160 cat conftest.err >&5
69161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69162 (exit $ac_status); } &&
69163 { ac_try='test -z "$ac_c_werror_flag"
69164 || test ! -s conftest.err'
69165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69166 (eval $ac_try) 2>&5
69167 ac_status=$?
69168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69169 (exit $ac_status); }; } &&
69170 { ac_try='test -s conftest$ac_exeext'
69171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69172 (eval $ac_try) 2>&5
69173 ac_status=$?
69174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69175 (exit $ac_status); }; }; then
69176 ac_cv_lib_iconv_iconv=yes
69177 else
69178 echo "$as_me: failed program was:" >&5
69179 sed 's/^/| /' conftest.$ac_ext >&5
69181 ac_cv_lib_iconv_iconv=no
69183 rm -f conftest.err conftest.$ac_objext \
69184 conftest$ac_exeext conftest.$ac_ext
69185 LIBS=$ac_check_lib_save_LIBS
69187 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
69188 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
69189 if test $ac_cv_lib_iconv_iconv = yes; then
69190 LIBICONV="-liconv"
69193 ac_save_LIBS="$LIBS"
69194 LIBS="$LIBS $LIBICONV"
69201 for ac_func in iconv_open iconv_close iconv nl_langinfo
69203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69204 echo "$as_me:$LINENO: checking for $ac_func" >&5
69205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69206 if eval "test \"\${$as_ac_var+set}\" = set"; then
69207 echo $ECHO_N "(cached) $ECHO_C" >&6
69208 else
69209 if test x$gcc_no_link = xyes; then
69210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69212 { (exit 1); exit 1; }; }
69214 cat >conftest.$ac_ext <<_ACEOF
69215 /* confdefs.h. */
69216 _ACEOF
69217 cat confdefs.h >>conftest.$ac_ext
69218 cat >>conftest.$ac_ext <<_ACEOF
69219 /* end confdefs.h. */
69220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69222 #define $ac_func innocuous_$ac_func
69224 /* System header to define __stub macros and hopefully few prototypes,
69225 which can conflict with char $ac_func (); below.
69226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69227 <limits.h> exists even on freestanding compilers. */
69229 #ifdef __STDC__
69230 # include <limits.h>
69231 #else
69232 # include <assert.h>
69233 #endif
69235 #undef $ac_func
69237 /* Override any gcc2 internal prototype to avoid an error. */
69238 #ifdef __cplusplus
69239 extern "C"
69241 #endif
69242 /* We use char because int might match the return type of a gcc2
69243 builtin and then its argument prototype would still apply. */
69244 char $ac_func ();
69245 /* The GNU C library defines this for functions which it implements
69246 to always fail with ENOSYS. Some functions are actually named
69247 something starting with __ and the normal name is an alias. */
69248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69249 choke me
69250 #else
69251 char (*f) () = $ac_func;
69252 #endif
69253 #ifdef __cplusplus
69255 #endif
69258 main ()
69260 return f != $ac_func;
69262 return 0;
69264 _ACEOF
69265 rm -f conftest.$ac_objext conftest$ac_exeext
69266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69267 (eval $ac_link) 2>conftest.er1
69268 ac_status=$?
69269 grep -v '^ *+' conftest.er1 >conftest.err
69270 rm -f conftest.er1
69271 cat conftest.err >&5
69272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69273 (exit $ac_status); } &&
69274 { ac_try='test -z "$ac_c_werror_flag"
69275 || test ! -s conftest.err'
69276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69277 (eval $ac_try) 2>&5
69278 ac_status=$?
69279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69280 (exit $ac_status); }; } &&
69281 { ac_try='test -s conftest$ac_exeext'
69282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69283 (eval $ac_try) 2>&5
69284 ac_status=$?
69285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69286 (exit $ac_status); }; }; then
69287 eval "$as_ac_var=yes"
69288 else
69289 echo "$as_me: failed program was:" >&5
69290 sed 's/^/| /' conftest.$ac_ext >&5
69292 eval "$as_ac_var=no"
69294 rm -f conftest.err conftest.$ac_objext \
69295 conftest$ac_exeext conftest.$ac_ext
69297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69299 if test `eval echo '${'$as_ac_var'}'` = yes; then
69300 cat >>confdefs.h <<_ACEOF
69301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69302 _ACEOF
69303 ac_XPG2funcs=yes
69304 else
69305 ac_XPG2funcs=no
69307 done
69310 LIBS="$ac_save_LIBS"
69312 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69313 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69314 if test x"$ac_has_iconv_h" = xyes &&
69315 test x"$ac_has_langinfo_h" = xyes &&
69316 test x"$ac_XPG2funcs" = xyes;
69317 then
69318 ac_XPG2_wchar_t=yes
69319 else
69320 ac_XPG2_wchar_t=no
69322 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69323 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69325 # At the moment, only enable wchar_t specializations if all the
69326 # above support is present.
69327 if test x"$ac_isoC99_wchar_t" = xyes &&
69328 test x"$ac_XPG2_wchar_t" = xyes;
69329 then
69330 cat >>confdefs.h <<\_ACEOF
69331 #define _GLIBCXX_USE_WCHAR_T 1
69332 _ACEOF
69334 enable_wchar_t=yes
69337 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69338 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69339 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69340 echo "${ECHO_T}$enable_wchar_t" >&6
69342 # All of the dependencies for wide character support are here, so
69343 # turn it on. This requires some syncronization with the
69344 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69345 cat >>confdefs.h <<\_ACEOF
69346 #define _GLIBCXX_USE_WCHAR_T 1
69347 _ACEOF
69349 # Are these tested for even when cross?
69350 cat >>confdefs.h <<\_ACEOF
69351 #define HAVE_FLOAT_H 1
69352 _ACEOF
69354 cat >>confdefs.h <<\_ACEOF
69355 #define HAVE_IEEEFP_H 1
69356 _ACEOF
69358 cat >>confdefs.h <<\_ACEOF
69359 #define HAVE_INTTYPES_H 1
69360 _ACEOF
69362 cat >>confdefs.h <<\_ACEOF
69363 #define HAVE_LOCALE_H 1
69364 _ACEOF
69366 cat >>confdefs.h <<\_ACEOF
69367 #define HAVE_NAN_H 1
69368 _ACEOF
69370 cat >>confdefs.h <<\_ACEOF
69371 #define HAVE_SYS_FILIO_H 1
69372 _ACEOF
69374 cat >>confdefs.h <<\_ACEOF
69375 #define HAVE_SYS_IOCTL_H 1
69376 _ACEOF
69378 cat >>confdefs.h <<\_ACEOF
69379 #define HAVE_SYS_ISA_DEFS_H 1
69380 _ACEOF
69382 cat >>confdefs.h <<\_ACEOF
69383 #define HAVE_SYS_RESOURCE_H 1
69384 _ACEOF
69386 cat >>confdefs.h <<\_ACEOF
69387 #define HAVE_SYS_TIME_H 1
69388 _ACEOF
69390 cat >>confdefs.h <<\_ACEOF
69391 #define HAVE_SYS_TYPES_H 1
69392 _ACEOF
69394 cat >>confdefs.h <<\_ACEOF
69395 #define HAVE_UNISTD_H 1
69396 _ACEOF
69398 cat >>confdefs.h <<\_ACEOF
69399 #define HAVE_WCHAR_H 1
69400 _ACEOF
69402 cat >>confdefs.h <<\_ACEOF
69403 #define HAVE_WCTYPE_H 1
69404 _ACEOF
69406 cat >>confdefs.h <<\_ACEOF
69407 #define HAVE_LIBM 1
69408 _ACEOF
69411 esac
69412 case "$target" in
69413 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69414 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69415 cat >>confdefs.h <<\_ACEOF
69416 #define HAVE___BUILTIN_ABS 1
69417 _ACEOF
69419 cat >>confdefs.h <<\_ACEOF
69420 #define HAVE___BUILTIN_LABS 1
69421 _ACEOF
69423 cat >>confdefs.h <<\_ACEOF
69424 #define HAVE___BUILTIN_FABS 1
69425 _ACEOF
69427 cat >>confdefs.h <<\_ACEOF
69428 #define HAVE___BUILTIN_FABSF 1
69429 _ACEOF
69431 cat >>confdefs.h <<\_ACEOF
69432 #define HAVE___BUILTIN_FABSL 1
69433 _ACEOF
69435 cat >>confdefs.h <<\_ACEOF
69436 #define HAVE___BUILTIN_COS 1
69437 _ACEOF
69439 cat >>confdefs.h <<\_ACEOF
69440 #define HAVE___BUILTIN_COSF 1
69441 _ACEOF
69443 cat >>confdefs.h <<\_ACEOF
69444 #define HAVE___BUILTIN_SIN 1
69445 _ACEOF
69447 cat >>confdefs.h <<\_ACEOF
69448 #define HAVE___BUILTIN_SINF 1
69449 _ACEOF
69452 esac
69453 cat >>confdefs.h <<\_ACEOF
69454 #define HAVE_STRTOF 1
69455 _ACEOF
69457 cat >>confdefs.h <<\_ACEOF
69458 #define HAVE_STRTOLD 1
69459 _ACEOF
69461 cat >>confdefs.h <<\_ACEOF
69462 #define HAVE_MMAP 1
69463 _ACEOF
69465 cat >>confdefs.h <<\_ACEOF
69466 #define HAVE_COPYSIGN 1
69467 _ACEOF
69469 cat >>confdefs.h <<\_ACEOF
69470 #define HAVE_ISNAN 1
69471 _ACEOF
69473 cat >>confdefs.h <<\_ACEOF
69474 #define HAVE_ISNANF 1
69475 _ACEOF
69477 cat >>confdefs.h <<\_ACEOF
69478 #define HAVE_MODFF 1
69479 _ACEOF
69481 cat >>confdefs.h <<\_ACEOF
69482 #define HAVE_HYPOT 1
69483 _ACEOF
69486 *-tpf)
69495 for ac_header in nan.h endian.h machine/endian.h \
69496 sys/param.h sys/types.h locale.h float.h inttypes.h
69498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69500 echo "$as_me:$LINENO: checking for $ac_header" >&5
69501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69503 echo $ECHO_N "(cached) $ECHO_C" >&6
69505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69507 else
69508 # Is the header compilable?
69509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69511 cat >conftest.$ac_ext <<_ACEOF
69512 /* confdefs.h. */
69513 _ACEOF
69514 cat confdefs.h >>conftest.$ac_ext
69515 cat >>conftest.$ac_ext <<_ACEOF
69516 /* end confdefs.h. */
69517 $ac_includes_default
69518 #include <$ac_header>
69519 _ACEOF
69520 rm -f conftest.$ac_objext
69521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69522 (eval $ac_compile) 2>conftest.er1
69523 ac_status=$?
69524 grep -v '^ *+' conftest.er1 >conftest.err
69525 rm -f conftest.er1
69526 cat conftest.err >&5
69527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69528 (exit $ac_status); } &&
69529 { ac_try='test -z "$ac_c_werror_flag"
69530 || test ! -s conftest.err'
69531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69532 (eval $ac_try) 2>&5
69533 ac_status=$?
69534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69535 (exit $ac_status); }; } &&
69536 { ac_try='test -s conftest.$ac_objext'
69537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69538 (eval $ac_try) 2>&5
69539 ac_status=$?
69540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69541 (exit $ac_status); }; }; then
69542 ac_header_compiler=yes
69543 else
69544 echo "$as_me: failed program was:" >&5
69545 sed 's/^/| /' conftest.$ac_ext >&5
69547 ac_header_compiler=no
69549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69551 echo "${ECHO_T}$ac_header_compiler" >&6
69553 # Is the header present?
69554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69556 cat >conftest.$ac_ext <<_ACEOF
69557 /* confdefs.h. */
69558 _ACEOF
69559 cat confdefs.h >>conftest.$ac_ext
69560 cat >>conftest.$ac_ext <<_ACEOF
69561 /* end confdefs.h. */
69562 #include <$ac_header>
69563 _ACEOF
69564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69566 ac_status=$?
69567 grep -v '^ *+' conftest.er1 >conftest.err
69568 rm -f conftest.er1
69569 cat conftest.err >&5
69570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69571 (exit $ac_status); } >/dev/null; then
69572 if test -s conftest.err; then
69573 ac_cpp_err=$ac_c_preproc_warn_flag
69574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69575 else
69576 ac_cpp_err=
69578 else
69579 ac_cpp_err=yes
69581 if test -z "$ac_cpp_err"; then
69582 ac_header_preproc=yes
69583 else
69584 echo "$as_me: failed program was:" >&5
69585 sed 's/^/| /' conftest.$ac_ext >&5
69587 ac_header_preproc=no
69589 rm -f conftest.err conftest.$ac_ext
69590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69591 echo "${ECHO_T}$ac_header_preproc" >&6
69593 # So? What about this header?
69594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69595 yes:no: )
69596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69600 ac_header_preproc=yes
69602 no:yes:* )
69603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
69606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
69607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
69610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
69611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69616 cat <<\_ASBOX
69617 ## ----------------------------------------- ##
69618 ## Report this to the package-unused lists. ##
69619 ## ----------------------------------------- ##
69620 _ASBOX
69622 sed "s/^/$as_me: WARNING: /" >&2
69624 esac
69625 echo "$as_me:$LINENO: checking for $ac_header" >&5
69626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69628 echo $ECHO_N "(cached) $ECHO_C" >&6
69629 else
69630 eval "$as_ac_Header=\$ac_header_preproc"
69632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69637 cat >>confdefs.h <<_ACEOF
69638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69639 _ACEOF
69643 done
69645 SECTION_FLAGS='-ffunction-sections -fdata-sections'
69648 # If we're not using GNU ld, then there's no point in even trying these
69649 # tests. Check for that first. We should have already tested for gld
69650 # by now (in libtool), but require it now just to be safe...
69651 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69652 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69656 # The name set by libtool depends on the version of libtool. Shame on us
69657 # for depending on an impl detail, but c'est la vie. Older versions used
69658 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69659 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69660 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
69661 # set (hence we're using an older libtool), then set it.
69662 if test x${with_gnu_ld+set} != xset; then
69663 if test x${ac_cv_prog_gnu_ld+set} != xset; then
69664 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
69665 with_gnu_ld=no
69666 else
69667 with_gnu_ld=$ac_cv_prog_gnu_ld
69671 # Start by getting the version number. I think the libtool test already
69672 # does some of this, but throws away the result.
69674 ldver=`$LD --version 2>/dev/null | head -1 | \
69675 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69677 glibcxx_gnu_ld_version=`echo $ldver | \
69678 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69680 # Set --gc-sections.
69681 if test "$with_gnu_ld" = "notbroken"; then
69682 # GNU ld it is! Joy and bunny rabbits!
69684 # All these tests are for C++; save the language and the compiler flags.
69685 # Need to do this so that g++ won't try to link in libstdc++
69686 ac_test_CFLAGS="${CFLAGS+set}"
69687 ac_save_CFLAGS="$CFLAGS"
69688 CFLAGS='-x c++ -Wl,--gc-sections'
69690 # Check for -Wl,--gc-sections
69691 # XXX This test is broken at the moment, as symbols required for linking
69692 # are now in libsupc++ (not built yet). In addition, this test has
69693 # cored on solaris in the past. In addition, --gc-sections doesn't
69694 # really work at the moment (keeps on discarding used sections, first
69695 # .eh_frame and now some of the glibc sections for iconv).
69696 # Bzzzzt. Thanks for playing, maybe next time.
69697 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69698 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69699 if test "$cross_compiling" = yes; then
69700 ac_sectionLDflags=yes
69701 else
69702 cat >conftest.$ac_ext <<_ACEOF
69703 /* confdefs.h. */
69704 _ACEOF
69705 cat confdefs.h >>conftest.$ac_ext
69706 cat >>conftest.$ac_ext <<_ACEOF
69707 /* end confdefs.h. */
69709 int main(void)
69711 try { throw 1; }
69712 catch (...) { };
69713 return 0;
69716 _ACEOF
69717 rm -f conftest$ac_exeext
69718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69719 (eval $ac_link) 2>&5
69720 ac_status=$?
69721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69724 (eval $ac_try) 2>&5
69725 ac_status=$?
69726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69727 (exit $ac_status); }; }; then
69728 ac_sectionLDflags=yes
69729 else
69730 echo "$as_me: program exited with status $ac_status" >&5
69731 echo "$as_me: failed program was:" >&5
69732 sed 's/^/| /' conftest.$ac_ext >&5
69734 ( exit $ac_status )
69735 ac_sectionLDflags=no
69737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69739 if test "$ac_test_CFLAGS" = set; then
69740 CFLAGS="$ac_save_CFLAGS"
69741 else
69742 # this is the suspicious part
69743 CFLAGS=''
69745 if test "$ac_sectionLDflags" = "yes"; then
69746 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69748 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69749 echo "${ECHO_T}$ac_sectionLDflags" >&6
69752 # Set linker optimization flags.
69753 if test x"$with_gnu_ld" = x"yes"; then
69754 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69762 echo "$as_me:$LINENO: checking for main in -lm" >&5
69763 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69764 if test "${ac_cv_lib_m_main+set}" = set; then
69765 echo $ECHO_N "(cached) $ECHO_C" >&6
69766 else
69767 ac_check_lib_save_LIBS=$LIBS
69768 LIBS="-lm $LIBS"
69769 if test x$gcc_no_link = xyes; then
69770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69772 { (exit 1); exit 1; }; }
69774 cat >conftest.$ac_ext <<_ACEOF
69775 /* confdefs.h. */
69776 _ACEOF
69777 cat confdefs.h >>conftest.$ac_ext
69778 cat >>conftest.$ac_ext <<_ACEOF
69779 /* end confdefs.h. */
69783 main ()
69785 main ();
69787 return 0;
69789 _ACEOF
69790 rm -f conftest.$ac_objext conftest$ac_exeext
69791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69792 (eval $ac_link) 2>conftest.er1
69793 ac_status=$?
69794 grep -v '^ *+' conftest.er1 >conftest.err
69795 rm -f conftest.er1
69796 cat conftest.err >&5
69797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69798 (exit $ac_status); } &&
69799 { ac_try='test -z "$ac_c_werror_flag"
69800 || test ! -s conftest.err'
69801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69802 (eval $ac_try) 2>&5
69803 ac_status=$?
69804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69805 (exit $ac_status); }; } &&
69806 { ac_try='test -s conftest$ac_exeext'
69807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69808 (eval $ac_try) 2>&5
69809 ac_status=$?
69810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69811 (exit $ac_status); }; }; then
69812 ac_cv_lib_m_main=yes
69813 else
69814 echo "$as_me: failed program was:" >&5
69815 sed 's/^/| /' conftest.$ac_ext >&5
69817 ac_cv_lib_m_main=no
69819 rm -f conftest.err conftest.$ac_objext \
69820 conftest$ac_exeext conftest.$ac_ext
69821 LIBS=$ac_check_lib_save_LIBS
69823 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69824 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69825 if test $ac_cv_lib_m_main = yes; then
69826 cat >>confdefs.h <<_ACEOF
69827 #define HAVE_LIBM 1
69828 _ACEOF
69830 LIBS="-lm $LIBS"
69835 for ac_func in copysignf
69837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69838 echo "$as_me:$LINENO: checking for $ac_func" >&5
69839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69840 if eval "test \"\${$as_ac_var+set}\" = set"; then
69841 echo $ECHO_N "(cached) $ECHO_C" >&6
69842 else
69843 if test x$gcc_no_link = xyes; then
69844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69846 { (exit 1); exit 1; }; }
69848 cat >conftest.$ac_ext <<_ACEOF
69849 /* confdefs.h. */
69850 _ACEOF
69851 cat confdefs.h >>conftest.$ac_ext
69852 cat >>conftest.$ac_ext <<_ACEOF
69853 /* end confdefs.h. */
69854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69856 #define $ac_func innocuous_$ac_func
69858 /* System header to define __stub macros and hopefully few prototypes,
69859 which can conflict with char $ac_func (); below.
69860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69861 <limits.h> exists even on freestanding compilers. */
69863 #ifdef __STDC__
69864 # include <limits.h>
69865 #else
69866 # include <assert.h>
69867 #endif
69869 #undef $ac_func
69871 /* Override any gcc2 internal prototype to avoid an error. */
69872 #ifdef __cplusplus
69873 extern "C"
69875 #endif
69876 /* We use char because int might match the return type of a gcc2
69877 builtin and then its argument prototype would still apply. */
69878 char $ac_func ();
69879 /* The GNU C library defines this for functions which it implements
69880 to always fail with ENOSYS. Some functions are actually named
69881 something starting with __ and the normal name is an alias. */
69882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69883 choke me
69884 #else
69885 char (*f) () = $ac_func;
69886 #endif
69887 #ifdef __cplusplus
69889 #endif
69892 main ()
69894 return f != $ac_func;
69896 return 0;
69898 _ACEOF
69899 rm -f conftest.$ac_objext conftest$ac_exeext
69900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69901 (eval $ac_link) 2>conftest.er1
69902 ac_status=$?
69903 grep -v '^ *+' conftest.er1 >conftest.err
69904 rm -f conftest.er1
69905 cat conftest.err >&5
69906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69907 (exit $ac_status); } &&
69908 { ac_try='test -z "$ac_c_werror_flag"
69909 || test ! -s conftest.err'
69910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69911 (eval $ac_try) 2>&5
69912 ac_status=$?
69913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69914 (exit $ac_status); }; } &&
69915 { ac_try='test -s conftest$ac_exeext'
69916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69917 (eval $ac_try) 2>&5
69918 ac_status=$?
69919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69920 (exit $ac_status); }; }; then
69921 eval "$as_ac_var=yes"
69922 else
69923 echo "$as_me: failed program was:" >&5
69924 sed 's/^/| /' conftest.$ac_ext >&5
69926 eval "$as_ac_var=no"
69928 rm -f conftest.err conftest.$ac_objext \
69929 conftest$ac_exeext conftest.$ac_ext
69931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69933 if test `eval echo '${'$as_ac_var'}'` = yes; then
69934 cat >>confdefs.h <<_ACEOF
69935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69936 _ACEOF
69938 else
69939 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69941 done
69945 for ac_func in __signbit
69947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69948 echo "$as_me:$LINENO: checking for $ac_func" >&5
69949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69950 if eval "test \"\${$as_ac_var+set}\" = set"; then
69951 echo $ECHO_N "(cached) $ECHO_C" >&6
69952 else
69953 if test x$gcc_no_link = xyes; then
69954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69956 { (exit 1); exit 1; }; }
69958 cat >conftest.$ac_ext <<_ACEOF
69959 /* confdefs.h. */
69960 _ACEOF
69961 cat confdefs.h >>conftest.$ac_ext
69962 cat >>conftest.$ac_ext <<_ACEOF
69963 /* end confdefs.h. */
69964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69966 #define $ac_func innocuous_$ac_func
69968 /* System header to define __stub macros and hopefully few prototypes,
69969 which can conflict with char $ac_func (); below.
69970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69971 <limits.h> exists even on freestanding compilers. */
69973 #ifdef __STDC__
69974 # include <limits.h>
69975 #else
69976 # include <assert.h>
69977 #endif
69979 #undef $ac_func
69981 /* Override any gcc2 internal prototype to avoid an error. */
69982 #ifdef __cplusplus
69983 extern "C"
69985 #endif
69986 /* We use char because int might match the return type of a gcc2
69987 builtin and then its argument prototype would still apply. */
69988 char $ac_func ();
69989 /* The GNU C library defines this for functions which it implements
69990 to always fail with ENOSYS. Some functions are actually named
69991 something starting with __ and the normal name is an alias. */
69992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69993 choke me
69994 #else
69995 char (*f) () = $ac_func;
69996 #endif
69997 #ifdef __cplusplus
69999 #endif
70002 main ()
70004 return f != $ac_func;
70006 return 0;
70008 _ACEOF
70009 rm -f conftest.$ac_objext conftest$ac_exeext
70010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70011 (eval $ac_link) 2>conftest.er1
70012 ac_status=$?
70013 grep -v '^ *+' conftest.er1 >conftest.err
70014 rm -f conftest.er1
70015 cat conftest.err >&5
70016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70017 (exit $ac_status); } &&
70018 { ac_try='test -z "$ac_c_werror_flag"
70019 || test ! -s conftest.err'
70020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70021 (eval $ac_try) 2>&5
70022 ac_status=$?
70023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70024 (exit $ac_status); }; } &&
70025 { ac_try='test -s conftest$ac_exeext'
70026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70027 (eval $ac_try) 2>&5
70028 ac_status=$?
70029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70030 (exit $ac_status); }; }; then
70031 eval "$as_ac_var=yes"
70032 else
70033 echo "$as_me: failed program was:" >&5
70034 sed 's/^/| /' conftest.$ac_ext >&5
70036 eval "$as_ac_var=no"
70038 rm -f conftest.err conftest.$ac_objext \
70039 conftest$ac_exeext conftest.$ac_ext
70041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70043 if test `eval echo '${'$as_ac_var'}'` = yes; then
70044 cat >>confdefs.h <<_ACEOF
70045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70046 _ACEOF
70048 else
70049 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
70051 done
70055 for ac_func in __signbitf
70057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70058 echo "$as_me:$LINENO: checking for $ac_func" >&5
70059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70060 if eval "test \"\${$as_ac_var+set}\" = set"; then
70061 echo $ECHO_N "(cached) $ECHO_C" >&6
70062 else
70063 if test x$gcc_no_link = xyes; then
70064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70066 { (exit 1); exit 1; }; }
70068 cat >conftest.$ac_ext <<_ACEOF
70069 /* confdefs.h. */
70070 _ACEOF
70071 cat confdefs.h >>conftest.$ac_ext
70072 cat >>conftest.$ac_ext <<_ACEOF
70073 /* end confdefs.h. */
70074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70076 #define $ac_func innocuous_$ac_func
70078 /* System header to define __stub macros and hopefully few prototypes,
70079 which can conflict with char $ac_func (); below.
70080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70081 <limits.h> exists even on freestanding compilers. */
70083 #ifdef __STDC__
70084 # include <limits.h>
70085 #else
70086 # include <assert.h>
70087 #endif
70089 #undef $ac_func
70091 /* Override any gcc2 internal prototype to avoid an error. */
70092 #ifdef __cplusplus
70093 extern "C"
70095 #endif
70096 /* We use char because int might match the return type of a gcc2
70097 builtin and then its argument prototype would still apply. */
70098 char $ac_func ();
70099 /* The GNU C library defines this for functions which it implements
70100 to always fail with ENOSYS. Some functions are actually named
70101 something starting with __ and the normal name is an alias. */
70102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70103 choke me
70104 #else
70105 char (*f) () = $ac_func;
70106 #endif
70107 #ifdef __cplusplus
70109 #endif
70112 main ()
70114 return f != $ac_func;
70116 return 0;
70118 _ACEOF
70119 rm -f conftest.$ac_objext conftest$ac_exeext
70120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70121 (eval $ac_link) 2>conftest.er1
70122 ac_status=$?
70123 grep -v '^ *+' conftest.er1 >conftest.err
70124 rm -f conftest.er1
70125 cat conftest.err >&5
70126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70127 (exit $ac_status); } &&
70128 { ac_try='test -z "$ac_c_werror_flag"
70129 || test ! -s conftest.err'
70130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70131 (eval $ac_try) 2>&5
70132 ac_status=$?
70133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70134 (exit $ac_status); }; } &&
70135 { ac_try='test -s conftest$ac_exeext'
70136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70137 (eval $ac_try) 2>&5
70138 ac_status=$?
70139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70140 (exit $ac_status); }; }; then
70141 eval "$as_ac_var=yes"
70142 else
70143 echo "$as_me: failed program was:" >&5
70144 sed 's/^/| /' conftest.$ac_ext >&5
70146 eval "$as_ac_var=no"
70148 rm -f conftest.err conftest.$ac_objext \
70149 conftest$ac_exeext conftest.$ac_ext
70151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70153 if test `eval echo '${'$as_ac_var'}'` = yes; then
70154 cat >>confdefs.h <<_ACEOF
70155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70156 _ACEOF
70158 else
70159 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
70161 done
70164 if test x$ac_cv_func_copysignl = x"yes"; then
70166 for ac_func in __signbitl
70168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70169 echo "$as_me:$LINENO: checking for $ac_func" >&5
70170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70171 if eval "test \"\${$as_ac_var+set}\" = set"; then
70172 echo $ECHO_N "(cached) $ECHO_C" >&6
70173 else
70174 if test x$gcc_no_link = xyes; then
70175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70177 { (exit 1); exit 1; }; }
70179 cat >conftest.$ac_ext <<_ACEOF
70180 /* confdefs.h. */
70181 _ACEOF
70182 cat confdefs.h >>conftest.$ac_ext
70183 cat >>conftest.$ac_ext <<_ACEOF
70184 /* end confdefs.h. */
70185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70187 #define $ac_func innocuous_$ac_func
70189 /* System header to define __stub macros and hopefully few prototypes,
70190 which can conflict with char $ac_func (); below.
70191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70192 <limits.h> exists even on freestanding compilers. */
70194 #ifdef __STDC__
70195 # include <limits.h>
70196 #else
70197 # include <assert.h>
70198 #endif
70200 #undef $ac_func
70202 /* Override any gcc2 internal prototype to avoid an error. */
70203 #ifdef __cplusplus
70204 extern "C"
70206 #endif
70207 /* We use char because int might match the return type of a gcc2
70208 builtin and then its argument prototype would still apply. */
70209 char $ac_func ();
70210 /* The GNU C library defines this for functions which it implements
70211 to always fail with ENOSYS. Some functions are actually named
70212 something starting with __ and the normal name is an alias. */
70213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70214 choke me
70215 #else
70216 char (*f) () = $ac_func;
70217 #endif
70218 #ifdef __cplusplus
70220 #endif
70223 main ()
70225 return f != $ac_func;
70227 return 0;
70229 _ACEOF
70230 rm -f conftest.$ac_objext conftest$ac_exeext
70231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70232 (eval $ac_link) 2>conftest.er1
70233 ac_status=$?
70234 grep -v '^ *+' conftest.er1 >conftest.err
70235 rm -f conftest.er1
70236 cat conftest.err >&5
70237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70238 (exit $ac_status); } &&
70239 { ac_try='test -z "$ac_c_werror_flag"
70240 || test ! -s conftest.err'
70241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70242 (eval $ac_try) 2>&5
70243 ac_status=$?
70244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70245 (exit $ac_status); }; } &&
70246 { ac_try='test -s conftest$ac_exeext'
70247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70248 (eval $ac_try) 2>&5
70249 ac_status=$?
70250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70251 (exit $ac_status); }; }; then
70252 eval "$as_ac_var=yes"
70253 else
70254 echo "$as_me: failed program was:" >&5
70255 sed 's/^/| /' conftest.$ac_ext >&5
70257 eval "$as_ac_var=no"
70259 rm -f conftest.err conftest.$ac_objext \
70260 conftest$ac_exeext conftest.$ac_ext
70262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70264 if test `eval echo '${'$as_ac_var'}'` = yes; then
70265 cat >>confdefs.h <<_ACEOF
70266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70267 _ACEOF
70269 else
70270 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
70272 done
70276 # Used in libmath/Makefile.am.
70277 if test -n "$LIBMATHOBJS"; then
70278 need_libmath=yes
70283 # Test wchar.h for mbstate_t, which is needed for char_traits and
70284 # others even if wchar_t support is not on.
70285 echo "$as_me:$LINENO: checking for mbstate_t" >&5
70286 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
70287 cat >conftest.$ac_ext <<_ACEOF
70288 /* confdefs.h. */
70289 _ACEOF
70290 cat confdefs.h >>conftest.$ac_ext
70291 cat >>conftest.$ac_ext <<_ACEOF
70292 /* end confdefs.h. */
70293 #include <wchar.h>
70295 main ()
70297 mbstate_t teststate;
70299 return 0;
70301 _ACEOF
70302 rm -f conftest.$ac_objext
70303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70304 (eval $ac_compile) 2>conftest.er1
70305 ac_status=$?
70306 grep -v '^ *+' conftest.er1 >conftest.err
70307 rm -f conftest.er1
70308 cat conftest.err >&5
70309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70310 (exit $ac_status); } &&
70311 { ac_try='test -z "$ac_c_werror_flag"
70312 || test ! -s conftest.err'
70313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70314 (eval $ac_try) 2>&5
70315 ac_status=$?
70316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70317 (exit $ac_status); }; } &&
70318 { ac_try='test -s conftest.$ac_objext'
70319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70320 (eval $ac_try) 2>&5
70321 ac_status=$?
70322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70323 (exit $ac_status); }; }; then
70324 have_mbstate_t=yes
70325 else
70326 echo "$as_me: failed program was:" >&5
70327 sed 's/^/| /' conftest.$ac_ext >&5
70329 have_mbstate_t=no
70331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70332 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70333 echo "${ECHO_T}$have_mbstate_t" >&6
70334 if test x"$have_mbstate_t" = xyes; then
70335 cat >>confdefs.h <<\_ACEOF
70336 #define HAVE_MBSTATE_T 1
70337 _ACEOF
70341 # Sanity check for existence of ISO C99 headers for extended encoding.
70343 for ac_header in wchar.h
70345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70347 echo "$as_me:$LINENO: checking for $ac_header" >&5
70348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70350 echo $ECHO_N "(cached) $ECHO_C" >&6
70352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70354 else
70355 # Is the header compilable?
70356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70358 cat >conftest.$ac_ext <<_ACEOF
70359 /* confdefs.h. */
70360 _ACEOF
70361 cat confdefs.h >>conftest.$ac_ext
70362 cat >>conftest.$ac_ext <<_ACEOF
70363 /* end confdefs.h. */
70364 $ac_includes_default
70365 #include <$ac_header>
70366 _ACEOF
70367 rm -f conftest.$ac_objext
70368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70369 (eval $ac_compile) 2>conftest.er1
70370 ac_status=$?
70371 grep -v '^ *+' conftest.er1 >conftest.err
70372 rm -f conftest.er1
70373 cat conftest.err >&5
70374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70375 (exit $ac_status); } &&
70376 { ac_try='test -z "$ac_c_werror_flag"
70377 || test ! -s conftest.err'
70378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70379 (eval $ac_try) 2>&5
70380 ac_status=$?
70381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70382 (exit $ac_status); }; } &&
70383 { ac_try='test -s conftest.$ac_objext'
70384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70385 (eval $ac_try) 2>&5
70386 ac_status=$?
70387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70388 (exit $ac_status); }; }; then
70389 ac_header_compiler=yes
70390 else
70391 echo "$as_me: failed program was:" >&5
70392 sed 's/^/| /' conftest.$ac_ext >&5
70394 ac_header_compiler=no
70396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70398 echo "${ECHO_T}$ac_header_compiler" >&6
70400 # Is the header present?
70401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70403 cat >conftest.$ac_ext <<_ACEOF
70404 /* confdefs.h. */
70405 _ACEOF
70406 cat confdefs.h >>conftest.$ac_ext
70407 cat >>conftest.$ac_ext <<_ACEOF
70408 /* end confdefs.h. */
70409 #include <$ac_header>
70410 _ACEOF
70411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70413 ac_status=$?
70414 grep -v '^ *+' conftest.er1 >conftest.err
70415 rm -f conftest.er1
70416 cat conftest.err >&5
70417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70418 (exit $ac_status); } >/dev/null; then
70419 if test -s conftest.err; then
70420 ac_cpp_err=$ac_c_preproc_warn_flag
70421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70422 else
70423 ac_cpp_err=
70425 else
70426 ac_cpp_err=yes
70428 if test -z "$ac_cpp_err"; then
70429 ac_header_preproc=yes
70430 else
70431 echo "$as_me: failed program was:" >&5
70432 sed 's/^/| /' conftest.$ac_ext >&5
70434 ac_header_preproc=no
70436 rm -f conftest.err conftest.$ac_ext
70437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70438 echo "${ECHO_T}$ac_header_preproc" >&6
70440 # So? What about this header?
70441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70442 yes:no: )
70443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70447 ac_header_preproc=yes
70449 no:yes:* )
70450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70463 cat <<\_ASBOX
70464 ## ----------------------------------------- ##
70465 ## Report this to the package-unused lists. ##
70466 ## ----------------------------------------- ##
70467 _ASBOX
70469 sed "s/^/$as_me: WARNING: /" >&2
70471 esac
70472 echo "$as_me:$LINENO: checking for $ac_header" >&5
70473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70475 echo $ECHO_N "(cached) $ECHO_C" >&6
70476 else
70477 eval "$as_ac_Header=\$ac_header_preproc"
70479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70484 cat >>confdefs.h <<_ACEOF
70485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70486 _ACEOF
70487 ac_has_wchar_h=yes
70488 else
70489 ac_has_wchar_h=no
70492 done
70495 for ac_header in wctype.h
70497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70499 echo "$as_me:$LINENO: checking for $ac_header" >&5
70500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70502 echo $ECHO_N "(cached) $ECHO_C" >&6
70504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70506 else
70507 # Is the header compilable?
70508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70510 cat >conftest.$ac_ext <<_ACEOF
70511 /* confdefs.h. */
70512 _ACEOF
70513 cat confdefs.h >>conftest.$ac_ext
70514 cat >>conftest.$ac_ext <<_ACEOF
70515 /* end confdefs.h. */
70516 $ac_includes_default
70517 #include <$ac_header>
70518 _ACEOF
70519 rm -f conftest.$ac_objext
70520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70521 (eval $ac_compile) 2>conftest.er1
70522 ac_status=$?
70523 grep -v '^ *+' conftest.er1 >conftest.err
70524 rm -f conftest.er1
70525 cat conftest.err >&5
70526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70527 (exit $ac_status); } &&
70528 { ac_try='test -z "$ac_c_werror_flag"
70529 || test ! -s conftest.err'
70530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70531 (eval $ac_try) 2>&5
70532 ac_status=$?
70533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70534 (exit $ac_status); }; } &&
70535 { ac_try='test -s conftest.$ac_objext'
70536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70537 (eval $ac_try) 2>&5
70538 ac_status=$?
70539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70540 (exit $ac_status); }; }; then
70541 ac_header_compiler=yes
70542 else
70543 echo "$as_me: failed program was:" >&5
70544 sed 's/^/| /' conftest.$ac_ext >&5
70546 ac_header_compiler=no
70548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70550 echo "${ECHO_T}$ac_header_compiler" >&6
70552 # Is the header present?
70553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70555 cat >conftest.$ac_ext <<_ACEOF
70556 /* confdefs.h. */
70557 _ACEOF
70558 cat confdefs.h >>conftest.$ac_ext
70559 cat >>conftest.$ac_ext <<_ACEOF
70560 /* end confdefs.h. */
70561 #include <$ac_header>
70562 _ACEOF
70563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70565 ac_status=$?
70566 grep -v '^ *+' conftest.er1 >conftest.err
70567 rm -f conftest.er1
70568 cat conftest.err >&5
70569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70570 (exit $ac_status); } >/dev/null; then
70571 if test -s conftest.err; then
70572 ac_cpp_err=$ac_c_preproc_warn_flag
70573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70574 else
70575 ac_cpp_err=
70577 else
70578 ac_cpp_err=yes
70580 if test -z "$ac_cpp_err"; then
70581 ac_header_preproc=yes
70582 else
70583 echo "$as_me: failed program was:" >&5
70584 sed 's/^/| /' conftest.$ac_ext >&5
70586 ac_header_preproc=no
70588 rm -f conftest.err conftest.$ac_ext
70589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70590 echo "${ECHO_T}$ac_header_preproc" >&6
70592 # So? What about this header?
70593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70594 yes:no: )
70595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70599 ac_header_preproc=yes
70601 no:yes:* )
70602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70615 cat <<\_ASBOX
70616 ## ----------------------------------------- ##
70617 ## Report this to the package-unused lists. ##
70618 ## ----------------------------------------- ##
70619 _ASBOX
70621 sed "s/^/$as_me: WARNING: /" >&2
70623 esac
70624 echo "$as_me:$LINENO: checking for $ac_header" >&5
70625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70627 echo $ECHO_N "(cached) $ECHO_C" >&6
70628 else
70629 eval "$as_ac_Header=\$ac_header_preproc"
70631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70636 cat >>confdefs.h <<_ACEOF
70637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70638 _ACEOF
70639 ac_has_wctype_h=yes
70640 else
70641 ac_has_wctype_h=no
70644 done
70647 # Only continue checking if the ISO C99 headers exist and support is on.
70648 if test x"$ac_has_wchar_h" = xyes &&
70649 test x"$ac_has_wctype_h" = xyes &&
70650 test x"$enable_c_mbchar" != xno; then
70652 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70653 # numeric_limits can instantiate type_traits<wchar_t>
70654 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70655 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70656 cat >conftest.$ac_ext <<_ACEOF
70657 /* confdefs.h. */
70658 _ACEOF
70659 cat confdefs.h >>conftest.$ac_ext
70660 cat >>conftest.$ac_ext <<_ACEOF
70661 /* end confdefs.h. */
70662 #include <wchar.h>
70664 main ()
70666 int i = WCHAR_MIN; int j = WCHAR_MAX;
70668 return 0;
70670 _ACEOF
70671 rm -f conftest.$ac_objext
70672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70673 (eval $ac_compile) 2>conftest.er1
70674 ac_status=$?
70675 grep -v '^ *+' conftest.er1 >conftest.err
70676 rm -f conftest.er1
70677 cat conftest.err >&5
70678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70679 (exit $ac_status); } &&
70680 { ac_try='test -z "$ac_c_werror_flag"
70681 || test ! -s conftest.err'
70682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70683 (eval $ac_try) 2>&5
70684 ac_status=$?
70685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70686 (exit $ac_status); }; } &&
70687 { ac_try='test -s conftest.$ac_objext'
70688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70689 (eval $ac_try) 2>&5
70690 ac_status=$?
70691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70692 (exit $ac_status); }; }; then
70693 has_wchar_minmax=yes
70694 else
70695 echo "$as_me: failed program was:" >&5
70696 sed 's/^/| /' conftest.$ac_ext >&5
70698 has_wchar_minmax=no
70700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70701 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70702 echo "${ECHO_T}$has_wchar_minmax" >&6
70704 # Test wchar.h for WEOF, which is what we use to determine whether
70705 # to specialize for char_traits<wchar_t> or not.
70706 echo "$as_me:$LINENO: checking for WEOF" >&5
70707 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70708 cat >conftest.$ac_ext <<_ACEOF
70709 /* confdefs.h. */
70710 _ACEOF
70711 cat confdefs.h >>conftest.$ac_ext
70712 cat >>conftest.$ac_ext <<_ACEOF
70713 /* end confdefs.h. */
70715 #include <wchar.h>
70716 #include <stddef.h>
70718 main ()
70720 wint_t i = WEOF;
70722 return 0;
70724 _ACEOF
70725 rm -f conftest.$ac_objext
70726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70727 (eval $ac_compile) 2>conftest.er1
70728 ac_status=$?
70729 grep -v '^ *+' conftest.er1 >conftest.err
70730 rm -f conftest.er1
70731 cat conftest.err >&5
70732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70733 (exit $ac_status); } &&
70734 { ac_try='test -z "$ac_c_werror_flag"
70735 || test ! -s conftest.err'
70736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70737 (eval $ac_try) 2>&5
70738 ac_status=$?
70739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70740 (exit $ac_status); }; } &&
70741 { ac_try='test -s conftest.$ac_objext'
70742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70743 (eval $ac_try) 2>&5
70744 ac_status=$?
70745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70746 (exit $ac_status); }; }; then
70747 has_weof=yes
70748 else
70749 echo "$as_me: failed program was:" >&5
70750 sed 's/^/| /' conftest.$ac_ext >&5
70752 has_weof=no
70754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70755 echo "$as_me:$LINENO: result: $has_weof" >&5
70756 echo "${ECHO_T}$has_weof" >&6
70758 # Tests for wide character functions used in char_traits<wchar_t>.
70759 ac_wfuncs=yes
70766 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70769 echo "$as_me:$LINENO: checking for $ac_func" >&5
70770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70771 if eval "test \"\${$as_ac_var+set}\" = set"; then
70772 echo $ECHO_N "(cached) $ECHO_C" >&6
70773 else
70774 if test x$gcc_no_link = xyes; then
70775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70777 { (exit 1); exit 1; }; }
70779 cat >conftest.$ac_ext <<_ACEOF
70780 /* confdefs.h. */
70781 _ACEOF
70782 cat confdefs.h >>conftest.$ac_ext
70783 cat >>conftest.$ac_ext <<_ACEOF
70784 /* end confdefs.h. */
70785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70787 #define $ac_func innocuous_$ac_func
70789 /* System header to define __stub macros and hopefully few prototypes,
70790 which can conflict with char $ac_func (); below.
70791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70792 <limits.h> exists even on freestanding compilers. */
70794 #ifdef __STDC__
70795 # include <limits.h>
70796 #else
70797 # include <assert.h>
70798 #endif
70800 #undef $ac_func
70802 /* Override any gcc2 internal prototype to avoid an error. */
70803 #ifdef __cplusplus
70804 extern "C"
70806 #endif
70807 /* We use char because int might match the return type of a gcc2
70808 builtin and then its argument prototype would still apply. */
70809 char $ac_func ();
70810 /* The GNU C library defines this for functions which it implements
70811 to always fail with ENOSYS. Some functions are actually named
70812 something starting with __ and the normal name is an alias. */
70813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70814 choke me
70815 #else
70816 char (*f) () = $ac_func;
70817 #endif
70818 #ifdef __cplusplus
70820 #endif
70823 main ()
70825 return f != $ac_func;
70827 return 0;
70829 _ACEOF
70830 rm -f conftest.$ac_objext conftest$ac_exeext
70831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70832 (eval $ac_link) 2>conftest.er1
70833 ac_status=$?
70834 grep -v '^ *+' conftest.er1 >conftest.err
70835 rm -f conftest.er1
70836 cat conftest.err >&5
70837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70838 (exit $ac_status); } &&
70839 { ac_try='test -z "$ac_c_werror_flag"
70840 || test ! -s conftest.err'
70841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70842 (eval $ac_try) 2>&5
70843 ac_status=$?
70844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70845 (exit $ac_status); }; } &&
70846 { ac_try='test -s conftest$ac_exeext'
70847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70848 (eval $ac_try) 2>&5
70849 ac_status=$?
70850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70851 (exit $ac_status); }; }; then
70852 eval "$as_ac_var=yes"
70853 else
70854 echo "$as_me: failed program was:" >&5
70855 sed 's/^/| /' conftest.$ac_ext >&5
70857 eval "$as_ac_var=no"
70859 rm -f conftest.err conftest.$ac_objext \
70860 conftest$ac_exeext conftest.$ac_ext
70862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70864 if test `eval echo '${'$as_ac_var'}'` = yes; then
70865 cat >>confdefs.h <<_ACEOF
70866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70867 _ACEOF
70869 else
70870 ac_wfuncs=no
70872 done
70875 # Checks for names injected into std:: by the c_std headers.
70922 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70923 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70924 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70925 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70926 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70927 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70930 echo "$as_me:$LINENO: checking for $ac_func" >&5
70931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70932 if eval "test \"\${$as_ac_var+set}\" = set"; then
70933 echo $ECHO_N "(cached) $ECHO_C" >&6
70934 else
70935 if test x$gcc_no_link = xyes; then
70936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70938 { (exit 1); exit 1; }; }
70940 cat >conftest.$ac_ext <<_ACEOF
70941 /* confdefs.h. */
70942 _ACEOF
70943 cat confdefs.h >>conftest.$ac_ext
70944 cat >>conftest.$ac_ext <<_ACEOF
70945 /* end confdefs.h. */
70946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70948 #define $ac_func innocuous_$ac_func
70950 /* System header to define __stub macros and hopefully few prototypes,
70951 which can conflict with char $ac_func (); below.
70952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70953 <limits.h> exists even on freestanding compilers. */
70955 #ifdef __STDC__
70956 # include <limits.h>
70957 #else
70958 # include <assert.h>
70959 #endif
70961 #undef $ac_func
70963 /* Override any gcc2 internal prototype to avoid an error. */
70964 #ifdef __cplusplus
70965 extern "C"
70967 #endif
70968 /* We use char because int might match the return type of a gcc2
70969 builtin and then its argument prototype would still apply. */
70970 char $ac_func ();
70971 /* The GNU C library defines this for functions which it implements
70972 to always fail with ENOSYS. Some functions are actually named
70973 something starting with __ and the normal name is an alias. */
70974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70975 choke me
70976 #else
70977 char (*f) () = $ac_func;
70978 #endif
70979 #ifdef __cplusplus
70981 #endif
70984 main ()
70986 return f != $ac_func;
70988 return 0;
70990 _ACEOF
70991 rm -f conftest.$ac_objext conftest$ac_exeext
70992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70993 (eval $ac_link) 2>conftest.er1
70994 ac_status=$?
70995 grep -v '^ *+' conftest.er1 >conftest.err
70996 rm -f conftest.er1
70997 cat conftest.err >&5
70998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70999 (exit $ac_status); } &&
71000 { ac_try='test -z "$ac_c_werror_flag"
71001 || test ! -s conftest.err'
71002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71003 (eval $ac_try) 2>&5
71004 ac_status=$?
71005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71006 (exit $ac_status); }; } &&
71007 { ac_try='test -s conftest$ac_exeext'
71008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71009 (eval $ac_try) 2>&5
71010 ac_status=$?
71011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71012 (exit $ac_status); }; }; then
71013 eval "$as_ac_var=yes"
71014 else
71015 echo "$as_me: failed program was:" >&5
71016 sed 's/^/| /' conftest.$ac_ext >&5
71018 eval "$as_ac_var=no"
71020 rm -f conftest.err conftest.$ac_objext \
71021 conftest$ac_exeext conftest.$ac_ext
71023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71025 if test `eval echo '${'$as_ac_var'}'` = yes; then
71026 cat >>confdefs.h <<_ACEOF
71027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71028 _ACEOF
71030 else
71031 ac_wfuncs=no
71033 done
71036 # Checks for wide character functions that are not required
71037 # for basic wchar_t support. Don't disable support if they are missing.
71038 # Injection of these is wrapped with guard macros.
71044 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
71046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71047 echo "$as_me:$LINENO: checking for $ac_func" >&5
71048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71049 if eval "test \"\${$as_ac_var+set}\" = set"; then
71050 echo $ECHO_N "(cached) $ECHO_C" >&6
71051 else
71052 if test x$gcc_no_link = xyes; then
71053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71055 { (exit 1); exit 1; }; }
71057 cat >conftest.$ac_ext <<_ACEOF
71058 /* confdefs.h. */
71059 _ACEOF
71060 cat confdefs.h >>conftest.$ac_ext
71061 cat >>conftest.$ac_ext <<_ACEOF
71062 /* end confdefs.h. */
71063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71065 #define $ac_func innocuous_$ac_func
71067 /* System header to define __stub macros and hopefully few prototypes,
71068 which can conflict with char $ac_func (); below.
71069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71070 <limits.h> exists even on freestanding compilers. */
71072 #ifdef __STDC__
71073 # include <limits.h>
71074 #else
71075 # include <assert.h>
71076 #endif
71078 #undef $ac_func
71080 /* Override any gcc2 internal prototype to avoid an error. */
71081 #ifdef __cplusplus
71082 extern "C"
71084 #endif
71085 /* We use char because int might match the return type of a gcc2
71086 builtin and then its argument prototype would still apply. */
71087 char $ac_func ();
71088 /* The GNU C library defines this for functions which it implements
71089 to always fail with ENOSYS. Some functions are actually named
71090 something starting with __ and the normal name is an alias. */
71091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71092 choke me
71093 #else
71094 char (*f) () = $ac_func;
71095 #endif
71096 #ifdef __cplusplus
71098 #endif
71101 main ()
71103 return f != $ac_func;
71105 return 0;
71107 _ACEOF
71108 rm -f conftest.$ac_objext conftest$ac_exeext
71109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71110 (eval $ac_link) 2>conftest.er1
71111 ac_status=$?
71112 grep -v '^ *+' conftest.er1 >conftest.err
71113 rm -f conftest.er1
71114 cat conftest.err >&5
71115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71116 (exit $ac_status); } &&
71117 { ac_try='test -z "$ac_c_werror_flag"
71118 || test ! -s conftest.err'
71119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71120 (eval $ac_try) 2>&5
71121 ac_status=$?
71122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71123 (exit $ac_status); }; } &&
71124 { ac_try='test -s conftest$ac_exeext'
71125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71126 (eval $ac_try) 2>&5
71127 ac_status=$?
71128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71129 (exit $ac_status); }; }; then
71130 eval "$as_ac_var=yes"
71131 else
71132 echo "$as_me: failed program was:" >&5
71133 sed 's/^/| /' conftest.$ac_ext >&5
71135 eval "$as_ac_var=no"
71137 rm -f conftest.err conftest.$ac_objext \
71138 conftest$ac_exeext conftest.$ac_ext
71140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71142 if test `eval echo '${'$as_ac_var'}'` = yes; then
71143 cat >>confdefs.h <<_ACEOF
71144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71145 _ACEOF
71148 done
71151 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
71152 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
71153 if test x"$has_weof" = xyes &&
71154 test x"$has_wchar_minmax" = xyes &&
71155 test x"$ac_wfuncs" = xyes;
71156 then
71157 ac_isoC99_wchar_t=yes
71158 else
71159 ac_isoC99_wchar_t=no
71161 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
71162 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
71164 # Use iconv for wchar_t to char conversions. As such, check for
71165 # X/Open Portability Guide, version 2 features (XPG2).
71166 if test "${ac_cv_header_iconv_h+set}" = set; then
71167 echo "$as_me:$LINENO: checking for iconv.h" >&5
71168 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71169 if test "${ac_cv_header_iconv_h+set}" = set; then
71170 echo $ECHO_N "(cached) $ECHO_C" >&6
71172 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71173 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71174 else
71175 # Is the header compilable?
71176 echo "$as_me:$LINENO: checking iconv.h usability" >&5
71177 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
71178 cat >conftest.$ac_ext <<_ACEOF
71179 /* confdefs.h. */
71180 _ACEOF
71181 cat confdefs.h >>conftest.$ac_ext
71182 cat >>conftest.$ac_ext <<_ACEOF
71183 /* end confdefs.h. */
71184 $ac_includes_default
71185 #include <iconv.h>
71186 _ACEOF
71187 rm -f conftest.$ac_objext
71188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71189 (eval $ac_compile) 2>conftest.er1
71190 ac_status=$?
71191 grep -v '^ *+' conftest.er1 >conftest.err
71192 rm -f conftest.er1
71193 cat conftest.err >&5
71194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71195 (exit $ac_status); } &&
71196 { ac_try='test -z "$ac_c_werror_flag"
71197 || test ! -s conftest.err'
71198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71199 (eval $ac_try) 2>&5
71200 ac_status=$?
71201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71202 (exit $ac_status); }; } &&
71203 { ac_try='test -s conftest.$ac_objext'
71204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71205 (eval $ac_try) 2>&5
71206 ac_status=$?
71207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71208 (exit $ac_status); }; }; then
71209 ac_header_compiler=yes
71210 else
71211 echo "$as_me: failed program was:" >&5
71212 sed 's/^/| /' conftest.$ac_ext >&5
71214 ac_header_compiler=no
71216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71218 echo "${ECHO_T}$ac_header_compiler" >&6
71220 # Is the header present?
71221 echo "$as_me:$LINENO: checking iconv.h presence" >&5
71222 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
71223 cat >conftest.$ac_ext <<_ACEOF
71224 /* confdefs.h. */
71225 _ACEOF
71226 cat confdefs.h >>conftest.$ac_ext
71227 cat >>conftest.$ac_ext <<_ACEOF
71228 /* end confdefs.h. */
71229 #include <iconv.h>
71230 _ACEOF
71231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71233 ac_status=$?
71234 grep -v '^ *+' conftest.er1 >conftest.err
71235 rm -f conftest.er1
71236 cat conftest.err >&5
71237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71238 (exit $ac_status); } >/dev/null; then
71239 if test -s conftest.err; then
71240 ac_cpp_err=$ac_c_preproc_warn_flag
71241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71242 else
71243 ac_cpp_err=
71245 else
71246 ac_cpp_err=yes
71248 if test -z "$ac_cpp_err"; then
71249 ac_header_preproc=yes
71250 else
71251 echo "$as_me: failed program was:" >&5
71252 sed 's/^/| /' conftest.$ac_ext >&5
71254 ac_header_preproc=no
71256 rm -f conftest.err conftest.$ac_ext
71257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71258 echo "${ECHO_T}$ac_header_preproc" >&6
71260 # So? What about this header?
71261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71262 yes:no: )
71263 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
71264 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71265 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
71266 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
71267 ac_header_preproc=yes
71269 no:yes:* )
71270 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
71271 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
71272 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
71273 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
71274 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
71275 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
71276 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
71277 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
71278 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
71279 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
71280 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
71281 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
71283 cat <<\_ASBOX
71284 ## ----------------------------------------- ##
71285 ## Report this to the package-unused lists. ##
71286 ## ----------------------------------------- ##
71287 _ASBOX
71289 sed "s/^/$as_me: WARNING: /" >&2
71291 esac
71292 echo "$as_me:$LINENO: checking for iconv.h" >&5
71293 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71294 if test "${ac_cv_header_iconv_h+set}" = set; then
71295 echo $ECHO_N "(cached) $ECHO_C" >&6
71296 else
71297 ac_cv_header_iconv_h=$ac_header_preproc
71299 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71300 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71303 if test $ac_cv_header_iconv_h = yes; then
71304 ac_has_iconv_h=yes
71305 else
71306 ac_has_iconv_h=no
71310 if test "${ac_cv_header_langinfo_h+set}" = set; then
71311 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71312 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71313 if test "${ac_cv_header_langinfo_h+set}" = set; then
71314 echo $ECHO_N "(cached) $ECHO_C" >&6
71316 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71317 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71318 else
71319 # Is the header compilable?
71320 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71321 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71322 cat >conftest.$ac_ext <<_ACEOF
71323 /* confdefs.h. */
71324 _ACEOF
71325 cat confdefs.h >>conftest.$ac_ext
71326 cat >>conftest.$ac_ext <<_ACEOF
71327 /* end confdefs.h. */
71328 $ac_includes_default
71329 #include <langinfo.h>
71330 _ACEOF
71331 rm -f conftest.$ac_objext
71332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71333 (eval $ac_compile) 2>conftest.er1
71334 ac_status=$?
71335 grep -v '^ *+' conftest.er1 >conftest.err
71336 rm -f conftest.er1
71337 cat conftest.err >&5
71338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71339 (exit $ac_status); } &&
71340 { ac_try='test -z "$ac_c_werror_flag"
71341 || test ! -s conftest.err'
71342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71343 (eval $ac_try) 2>&5
71344 ac_status=$?
71345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71346 (exit $ac_status); }; } &&
71347 { ac_try='test -s conftest.$ac_objext'
71348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71349 (eval $ac_try) 2>&5
71350 ac_status=$?
71351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71352 (exit $ac_status); }; }; then
71353 ac_header_compiler=yes
71354 else
71355 echo "$as_me: failed program was:" >&5
71356 sed 's/^/| /' conftest.$ac_ext >&5
71358 ac_header_compiler=no
71360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71362 echo "${ECHO_T}$ac_header_compiler" >&6
71364 # Is the header present?
71365 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71366 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71367 cat >conftest.$ac_ext <<_ACEOF
71368 /* confdefs.h. */
71369 _ACEOF
71370 cat confdefs.h >>conftest.$ac_ext
71371 cat >>conftest.$ac_ext <<_ACEOF
71372 /* end confdefs.h. */
71373 #include <langinfo.h>
71374 _ACEOF
71375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71377 ac_status=$?
71378 grep -v '^ *+' conftest.er1 >conftest.err
71379 rm -f conftest.er1
71380 cat conftest.err >&5
71381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71382 (exit $ac_status); } >/dev/null; then
71383 if test -s conftest.err; then
71384 ac_cpp_err=$ac_c_preproc_warn_flag
71385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71386 else
71387 ac_cpp_err=
71389 else
71390 ac_cpp_err=yes
71392 if test -z "$ac_cpp_err"; then
71393 ac_header_preproc=yes
71394 else
71395 echo "$as_me: failed program was:" >&5
71396 sed 's/^/| /' conftest.$ac_ext >&5
71398 ac_header_preproc=no
71400 rm -f conftest.err conftest.$ac_ext
71401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71402 echo "${ECHO_T}$ac_header_preproc" >&6
71404 # So? What about this header?
71405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71406 yes:no: )
71407 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71408 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71409 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71410 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71411 ac_header_preproc=yes
71413 no:yes:* )
71414 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71415 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71416 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
71417 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
71418 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71419 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71420 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
71421 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
71422 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71423 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71424 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71425 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71427 cat <<\_ASBOX
71428 ## ----------------------------------------- ##
71429 ## Report this to the package-unused lists. ##
71430 ## ----------------------------------------- ##
71431 _ASBOX
71433 sed "s/^/$as_me: WARNING: /" >&2
71435 esac
71436 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71437 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71438 if test "${ac_cv_header_langinfo_h+set}" = set; then
71439 echo $ECHO_N "(cached) $ECHO_C" >&6
71440 else
71441 ac_cv_header_langinfo_h=$ac_header_preproc
71443 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71444 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71447 if test $ac_cv_header_langinfo_h = yes; then
71448 ac_has_langinfo_h=yes
71449 else
71450 ac_has_langinfo_h=no
71455 # Check for existence of libiconv.a providing XPG2 wchar_t support.
71456 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71457 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71458 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71459 echo $ECHO_N "(cached) $ECHO_C" >&6
71460 else
71461 ac_check_lib_save_LIBS=$LIBS
71462 LIBS="-liconv $LIBS"
71463 if test x$gcc_no_link = xyes; then
71464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71466 { (exit 1); exit 1; }; }
71468 cat >conftest.$ac_ext <<_ACEOF
71469 /* confdefs.h. */
71470 _ACEOF
71471 cat confdefs.h >>conftest.$ac_ext
71472 cat >>conftest.$ac_ext <<_ACEOF
71473 /* end confdefs.h. */
71475 /* Override any gcc2 internal prototype to avoid an error. */
71476 #ifdef __cplusplus
71477 extern "C"
71478 #endif
71479 /* We use char because int might match the return type of a gcc2
71480 builtin and then its argument prototype would still apply. */
71481 char iconv ();
71483 main ()
71485 iconv ();
71487 return 0;
71489 _ACEOF
71490 rm -f conftest.$ac_objext conftest$ac_exeext
71491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71492 (eval $ac_link) 2>conftest.er1
71493 ac_status=$?
71494 grep -v '^ *+' conftest.er1 >conftest.err
71495 rm -f conftest.er1
71496 cat conftest.err >&5
71497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71498 (exit $ac_status); } &&
71499 { ac_try='test -z "$ac_c_werror_flag"
71500 || test ! -s conftest.err'
71501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71502 (eval $ac_try) 2>&5
71503 ac_status=$?
71504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71505 (exit $ac_status); }; } &&
71506 { ac_try='test -s conftest$ac_exeext'
71507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71508 (eval $ac_try) 2>&5
71509 ac_status=$?
71510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71511 (exit $ac_status); }; }; then
71512 ac_cv_lib_iconv_iconv=yes
71513 else
71514 echo "$as_me: failed program was:" >&5
71515 sed 's/^/| /' conftest.$ac_ext >&5
71517 ac_cv_lib_iconv_iconv=no
71519 rm -f conftest.err conftest.$ac_objext \
71520 conftest$ac_exeext conftest.$ac_ext
71521 LIBS=$ac_check_lib_save_LIBS
71523 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71524 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71525 if test $ac_cv_lib_iconv_iconv = yes; then
71526 LIBICONV="-liconv"
71529 ac_save_LIBS="$LIBS"
71530 LIBS="$LIBS $LIBICONV"
71537 for ac_func in iconv_open iconv_close iconv nl_langinfo
71539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71540 echo "$as_me:$LINENO: checking for $ac_func" >&5
71541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71542 if eval "test \"\${$as_ac_var+set}\" = set"; then
71543 echo $ECHO_N "(cached) $ECHO_C" >&6
71544 else
71545 if test x$gcc_no_link = xyes; then
71546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71548 { (exit 1); exit 1; }; }
71550 cat >conftest.$ac_ext <<_ACEOF
71551 /* confdefs.h. */
71552 _ACEOF
71553 cat confdefs.h >>conftest.$ac_ext
71554 cat >>conftest.$ac_ext <<_ACEOF
71555 /* end confdefs.h. */
71556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71558 #define $ac_func innocuous_$ac_func
71560 /* System header to define __stub macros and hopefully few prototypes,
71561 which can conflict with char $ac_func (); below.
71562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71563 <limits.h> exists even on freestanding compilers. */
71565 #ifdef __STDC__
71566 # include <limits.h>
71567 #else
71568 # include <assert.h>
71569 #endif
71571 #undef $ac_func
71573 /* Override any gcc2 internal prototype to avoid an error. */
71574 #ifdef __cplusplus
71575 extern "C"
71577 #endif
71578 /* We use char because int might match the return type of a gcc2
71579 builtin and then its argument prototype would still apply. */
71580 char $ac_func ();
71581 /* The GNU C library defines this for functions which it implements
71582 to always fail with ENOSYS. Some functions are actually named
71583 something starting with __ and the normal name is an alias. */
71584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71585 choke me
71586 #else
71587 char (*f) () = $ac_func;
71588 #endif
71589 #ifdef __cplusplus
71591 #endif
71594 main ()
71596 return f != $ac_func;
71598 return 0;
71600 _ACEOF
71601 rm -f conftest.$ac_objext conftest$ac_exeext
71602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71603 (eval $ac_link) 2>conftest.er1
71604 ac_status=$?
71605 grep -v '^ *+' conftest.er1 >conftest.err
71606 rm -f conftest.er1
71607 cat conftest.err >&5
71608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71609 (exit $ac_status); } &&
71610 { ac_try='test -z "$ac_c_werror_flag"
71611 || test ! -s conftest.err'
71612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71613 (eval $ac_try) 2>&5
71614 ac_status=$?
71615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71616 (exit $ac_status); }; } &&
71617 { ac_try='test -s conftest$ac_exeext'
71618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71619 (eval $ac_try) 2>&5
71620 ac_status=$?
71621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71622 (exit $ac_status); }; }; then
71623 eval "$as_ac_var=yes"
71624 else
71625 echo "$as_me: failed program was:" >&5
71626 sed 's/^/| /' conftest.$ac_ext >&5
71628 eval "$as_ac_var=no"
71630 rm -f conftest.err conftest.$ac_objext \
71631 conftest$ac_exeext conftest.$ac_ext
71633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71635 if test `eval echo '${'$as_ac_var'}'` = yes; then
71636 cat >>confdefs.h <<_ACEOF
71637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71638 _ACEOF
71639 ac_XPG2funcs=yes
71640 else
71641 ac_XPG2funcs=no
71643 done
71646 LIBS="$ac_save_LIBS"
71648 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71649 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71650 if test x"$ac_has_iconv_h" = xyes &&
71651 test x"$ac_has_langinfo_h" = xyes &&
71652 test x"$ac_XPG2funcs" = xyes;
71653 then
71654 ac_XPG2_wchar_t=yes
71655 else
71656 ac_XPG2_wchar_t=no
71658 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71659 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71661 # At the moment, only enable wchar_t specializations if all the
71662 # above support is present.
71663 if test x"$ac_isoC99_wchar_t" = xyes &&
71664 test x"$ac_XPG2_wchar_t" = xyes;
71665 then
71666 cat >>confdefs.h <<\_ACEOF
71667 #define _GLIBCXX_USE_WCHAR_T 1
71668 _ACEOF
71670 enable_wchar_t=yes
71673 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71674 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71675 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71676 echo "${ECHO_T}$enable_wchar_t" >&6
71678 cat >>confdefs.h <<\_ACEOF
71679 #define HAVE_COPYSIGN 1
71680 _ACEOF
71682 cat >>confdefs.h <<\_ACEOF
71683 #define HAVE_COPYSIGNF 1
71684 _ACEOF
71686 cat >>confdefs.h <<\_ACEOF
71687 #define HAVE_FINITE 1
71688 _ACEOF
71690 cat >>confdefs.h <<\_ACEOF
71691 #define HAVE_FINITEF 1
71692 _ACEOF
71694 cat >>confdefs.h <<\_ACEOF
71695 #define HAVE_FREXPF 1
71696 _ACEOF
71698 cat >>confdefs.h <<\_ACEOF
71699 #define HAVE_HYPOTF 1
71700 _ACEOF
71702 cat >>confdefs.h <<\_ACEOF
71703 #define HAVE_ISINF 1
71704 _ACEOF
71706 cat >>confdefs.h <<\_ACEOF
71707 #define HAVE_ISINFF 1
71708 _ACEOF
71710 cat >>confdefs.h <<\_ACEOF
71711 #define HAVE_ISNAN 1
71712 _ACEOF
71714 cat >>confdefs.h <<\_ACEOF
71715 #define HAVE_ISNANF 1
71716 _ACEOF
71718 cat >>confdefs.h <<\_ACEOF
71719 #define HAVE_SINCOS 1
71720 _ACEOF
71722 cat >>confdefs.h <<\_ACEOF
71723 #define HAVE_SINCOSF 1
71724 _ACEOF
71726 if test x"long_double_math_on_this_cpu" = x"yes"; then
71727 cat >>confdefs.h <<\_ACEOF
71728 #define HAVE_FINITEL 1
71729 _ACEOF
71731 cat >>confdefs.h <<\_ACEOF
71732 #define HAVE_HYPOTL 1
71733 _ACEOF
71735 cat >>confdefs.h <<\_ACEOF
71736 #define HAVE_ISINFL 1
71737 _ACEOF
71739 cat >>confdefs.h <<\_ACEOF
71740 #define HAVE_ISNANL 1
71741 _ACEOF
71745 *-vxworks)
71746 cat >>confdefs.h <<\_ACEOF
71747 #define HAVE_MMAP 1
71748 _ACEOF
71750 cat >>confdefs.h <<\_ACEOF
71751 #define HAVE_ACOSF 1
71752 _ACEOF
71754 cat >>confdefs.h <<\_ACEOF
71755 #define HAVE_ASINF 1
71756 _ACEOF
71758 cat >>confdefs.h <<\_ACEOF
71759 #define HAVE_ATAN2F 1
71760 _ACEOF
71762 cat >>confdefs.h <<\_ACEOF
71763 #define HAVE_ATANF 1
71764 _ACEOF
71766 cat >>confdefs.h <<\_ACEOF
71767 #define HAVE_CEILF 1
71768 _ACEOF
71770 cat >>confdefs.h <<\_ACEOF
71771 #define HAVE_COSF 1
71772 _ACEOF
71774 cat >>confdefs.h <<\_ACEOF
71775 #define HAVE_COSHF 1
71776 _ACEOF
71778 cat >>confdefs.h <<\_ACEOF
71779 #define HAVE_EXPF 1
71780 _ACEOF
71782 cat >>confdefs.h <<\_ACEOF
71783 #define HAVE_FABSF 1
71784 _ACEOF
71786 cat >>confdefs.h <<\_ACEOF
71787 #define HAVE_FLOORF 1
71788 _ACEOF
71790 cat >>confdefs.h <<\_ACEOF
71791 #define HAVE_FMODF 1
71792 _ACEOF
71794 cat >>confdefs.h <<\_ACEOF
71795 #define HAVE_HYPOT 1
71796 _ACEOF
71798 cat >>confdefs.h <<\_ACEOF
71799 #define HAVE_LOG10F 1
71800 _ACEOF
71802 cat >>confdefs.h <<\_ACEOF
71803 #define HAVE_LOGF 1
71804 _ACEOF
71806 cat >>confdefs.h <<\_ACEOF
71807 #define HAVE_POWF 1
71808 _ACEOF
71810 cat >>confdefs.h <<\_ACEOF
71811 #define HAVE_SINF 1
71812 _ACEOF
71814 cat >>confdefs.h <<\_ACEOF
71815 #define HAVE_SINHF 1
71816 _ACEOF
71818 cat >>confdefs.h <<\_ACEOF
71819 #define HAVE_SQRTF 1
71820 _ACEOF
71822 cat >>confdefs.h <<\_ACEOF
71823 #define HAVE_TANF 1
71824 _ACEOF
71826 cat >>confdefs.h <<\_ACEOF
71827 #define HAVE_TANHF 1
71828 _ACEOF
71831 *-windiss*)
71832 cat >>confdefs.h <<\_ACEOF
71833 #define HAVE_ACOSF 1
71834 _ACEOF
71836 cat >>confdefs.h <<\_ACEOF
71837 #define HAVE_ACOSL 1
71838 _ACEOF
71840 cat >>confdefs.h <<\_ACEOF
71841 #define HAVE_ASINF 1
71842 _ACEOF
71844 cat >>confdefs.h <<\_ACEOF
71845 #define HAVE_ASINL 1
71846 _ACEOF
71848 cat >>confdefs.h <<\_ACEOF
71849 #define HAVE_ATAN2F 1
71850 _ACEOF
71852 cat >>confdefs.h <<\_ACEOF
71853 #define HAVE_ATAN2L 1
71854 _ACEOF
71856 cat >>confdefs.h <<\_ACEOF
71857 #define HAVE_ATANF 1
71858 _ACEOF
71860 cat >>confdefs.h <<\_ACEOF
71861 #define HAVE_ATANL 1
71862 _ACEOF
71864 cat >>confdefs.h <<\_ACEOF
71865 #define HAVE_CEILF 1
71866 _ACEOF
71868 cat >>confdefs.h <<\_ACEOF
71869 #define HAVE_CEILL 1
71870 _ACEOF
71872 cat >>confdefs.h <<\_ACEOF
71873 #define HAVE_COPYSIGN 1
71874 _ACEOF
71876 cat >>confdefs.h <<\_ACEOF
71877 #define HAVE_COPYSIGNF 1
71878 _ACEOF
71880 cat >>confdefs.h <<\_ACEOF
71881 #define HAVE_COSF 1
71882 _ACEOF
71884 cat >>confdefs.h <<\_ACEOF
71885 #define HAVE_COSL 1
71886 _ACEOF
71888 cat >>confdefs.h <<\_ACEOF
71889 #define HAVE_COSHF 1
71890 _ACEOF
71892 cat >>confdefs.h <<\_ACEOF
71893 #define HAVE_COSHL 1
71894 _ACEOF
71896 cat >>confdefs.h <<\_ACEOF
71897 #define HAVE_EXPF 1
71898 _ACEOF
71900 cat >>confdefs.h <<\_ACEOF
71901 #define HAVE_EXPL 1
71902 _ACEOF
71904 cat >>confdefs.h <<\_ACEOF
71905 #define HAVE_FABSF 1
71906 _ACEOF
71908 cat >>confdefs.h <<\_ACEOF
71909 #define HAVE_FABSL 1
71910 _ACEOF
71912 cat >>confdefs.h <<\_ACEOF
71913 #define HAVE_FLOORF 1
71914 _ACEOF
71916 cat >>confdefs.h <<\_ACEOF
71917 #define HAVE_FLOORL 1
71918 _ACEOF
71920 cat >>confdefs.h <<\_ACEOF
71921 #define HAVE_FMODF 1
71922 _ACEOF
71924 cat >>confdefs.h <<\_ACEOF
71925 #define HAVE_FMODL 1
71926 _ACEOF
71928 cat >>confdefs.h <<\_ACEOF
71929 #define HAVE_FREXPF 1
71930 _ACEOF
71932 cat >>confdefs.h <<\_ACEOF
71933 #define HAVE_FREXPL 1
71934 _ACEOF
71936 cat >>confdefs.h <<\_ACEOF
71937 #define HAVE_LDEXPF 1
71938 _ACEOF
71940 cat >>confdefs.h <<\_ACEOF
71941 #define HAVE_LDEXPL 1
71942 _ACEOF
71944 cat >>confdefs.h <<\_ACEOF
71945 #define HAVE_LOG10F 1
71946 _ACEOF
71948 cat >>confdefs.h <<\_ACEOF
71949 #define HAVE_LOG10L 1
71950 _ACEOF
71952 cat >>confdefs.h <<\_ACEOF
71953 #define HAVE_LOGF 1
71954 _ACEOF
71956 cat >>confdefs.h <<\_ACEOF
71957 #define HAVE_MODFF 1
71958 _ACEOF
71960 cat >>confdefs.h <<\_ACEOF
71961 #define HAVE_MODFL 1
71962 _ACEOF
71964 cat >>confdefs.h <<\_ACEOF
71965 #define HAVE_POWF 1
71966 _ACEOF
71968 cat >>confdefs.h <<\_ACEOF
71969 #define HAVE_POWL 1
71970 _ACEOF
71972 cat >>confdefs.h <<\_ACEOF
71973 #define HAVE_SINF 1
71974 _ACEOF
71976 cat >>confdefs.h <<\_ACEOF
71977 #define HAVE_SINL 1
71978 _ACEOF
71980 cat >>confdefs.h <<\_ACEOF
71981 #define HAVE_SINHF 1
71982 _ACEOF
71984 cat >>confdefs.h <<\_ACEOF
71985 #define HAVE_SINHL 1
71986 _ACEOF
71988 cat >>confdefs.h <<\_ACEOF
71989 #define HAVE_SQRTF 1
71990 _ACEOF
71992 cat >>confdefs.h <<\_ACEOF
71993 #define HAVE_SQRTL 1
71994 _ACEOF
71996 cat >>confdefs.h <<\_ACEOF
71997 #define HAVE_TANF 1
71998 _ACEOF
72000 cat >>confdefs.h <<\_ACEOF
72001 #define HAVE_TANL 1
72002 _ACEOF
72004 cat >>confdefs.h <<\_ACEOF
72005 #define HAVE_TANHF 1
72006 _ACEOF
72008 cat >>confdefs.h <<\_ACEOF
72009 #define HAVE_TANHL 1
72010 _ACEOF
72014 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
72015 echo "$as_me: error: No support for this host/target combination." >&2;}
72016 { (exit 1); exit 1; }; }
72018 esac
72023 # At some point, we should differentiate between architectures
72024 # like x86, which have long double versions, and alpha/powerpc/etc.,
72025 # which don't. For the time being, punt.
72026 if test x"long_double_math_on_this_cpu" = x"yes"; then
72027 cat >>confdefs.h <<\_ACEOF
72028 #define HAVE_ACOSL 1
72029 _ACEOF
72031 cat >>confdefs.h <<\_ACEOF
72032 #define HAVE_ASINL 1
72033 _ACEOF
72035 cat >>confdefs.h <<\_ACEOF
72036 #define HAVE_ATAN2L 1
72037 _ACEOF
72039 cat >>confdefs.h <<\_ACEOF
72040 #define HAVE_ATANL 1
72041 _ACEOF
72043 cat >>confdefs.h <<\_ACEOF
72044 #define HAVE_CEILL 1
72045 _ACEOF
72047 cat >>confdefs.h <<\_ACEOF
72048 #define HAVE_COPYSIGNL 1
72049 _ACEOF
72051 cat >>confdefs.h <<\_ACEOF
72052 #define HAVE_COSL 1
72053 _ACEOF
72055 cat >>confdefs.h <<\_ACEOF
72056 #define HAVE_COSHL 1
72057 _ACEOF
72059 cat >>confdefs.h <<\_ACEOF
72060 #define HAVE_EXPL 1
72061 _ACEOF
72063 cat >>confdefs.h <<\_ACEOF
72064 #define HAVE_FABSL 1
72065 _ACEOF
72067 cat >>confdefs.h <<\_ACEOF
72068 #define HAVE_FLOORL 1
72069 _ACEOF
72071 cat >>confdefs.h <<\_ACEOF
72072 #define HAVE_FMODL 1
72073 _ACEOF
72075 cat >>confdefs.h <<\_ACEOF
72076 #define HAVE_FREXPL 1
72077 _ACEOF
72079 cat >>confdefs.h <<\_ACEOF
72080 #define HAVE_LDEXPL 1
72081 _ACEOF
72083 cat >>confdefs.h <<\_ACEOF
72084 #define HAVE_LOG10L 1
72085 _ACEOF
72087 cat >>confdefs.h <<\_ACEOF
72088 #define HAVE_LOGL 1
72089 _ACEOF
72091 cat >>confdefs.h <<\_ACEOF
72092 #define HAVE_MODFL 1
72093 _ACEOF
72095 cat >>confdefs.h <<\_ACEOF
72096 #define HAVE_POWL 1
72097 _ACEOF
72099 cat >>confdefs.h <<\_ACEOF
72100 #define HAVE_SINCOSL 1
72101 _ACEOF
72103 cat >>confdefs.h <<\_ACEOF
72104 #define HAVE_SINL 1
72105 _ACEOF
72107 cat >>confdefs.h <<\_ACEOF
72108 #define HAVE_SINHL 1
72109 _ACEOF
72111 cat >>confdefs.h <<\_ACEOF
72112 #define HAVE_SQRTL 1
72113 _ACEOF
72115 cat >>confdefs.h <<\_ACEOF
72116 #define HAVE_TANL 1
72117 _ACEOF
72119 cat >>confdefs.h <<\_ACEOF
72120 #define HAVE_TANHL 1
72121 _ACEOF
72127 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
72130 # Check whether --enable-symvers or --disable-symvers was given.
72131 if test "${enable_symvers+set}" = set; then
72132 enableval="$enable_symvers"
72134 case "$enableval" in
72135 yes|no|gnu) ;;
72136 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
72137 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
72138 { (exit 1); exit 1; }; } ;;
72139 esac
72141 else
72142 enable_symvers=yes
72146 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
72147 # don't know enough about $LD to do tricks...
72149 # FIXME The following test is too strict, in theory.
72150 if test $enable_shared = no ||
72151 test "x$LD" = x ||
72152 test x$glibcxx_gnu_ld_version = x; then
72153 enable_symvers=no
72156 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
72157 if test $enable_symvers != no; then
72158 echo "$as_me:$LINENO: checking for shared libgcc" >&5
72159 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
72160 ac_save_CFLAGS="$CFLAGS"
72161 CFLAGS=' -lgcc_s'
72162 if test x$gcc_no_link = xyes; then
72163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72165 { (exit 1); exit 1; }; }
72167 cat >conftest.$ac_ext <<_ACEOF
72168 /* confdefs.h. */
72169 _ACEOF
72170 cat confdefs.h >>conftest.$ac_ext
72171 cat >>conftest.$ac_ext <<_ACEOF
72172 /* end confdefs.h. */
72175 main ()
72177 return 0;
72179 return 0;
72181 _ACEOF
72182 rm -f conftest.$ac_objext conftest$ac_exeext
72183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72184 (eval $ac_link) 2>conftest.er1
72185 ac_status=$?
72186 grep -v '^ *+' conftest.er1 >conftest.err
72187 rm -f conftest.er1
72188 cat conftest.err >&5
72189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72190 (exit $ac_status); } &&
72191 { ac_try='test -z "$ac_c_werror_flag"
72192 || test ! -s conftest.err'
72193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72194 (eval $ac_try) 2>&5
72195 ac_status=$?
72196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72197 (exit $ac_status); }; } &&
72198 { ac_try='test -s conftest$ac_exeext'
72199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72200 (eval $ac_try) 2>&5
72201 ac_status=$?
72202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72203 (exit $ac_status); }; }; then
72204 glibcxx_shared_libgcc=yes
72205 else
72206 echo "$as_me: failed program was:" >&5
72207 sed 's/^/| /' conftest.$ac_ext >&5
72209 glibcxx_shared_libgcc=no
72211 rm -f conftest.err conftest.$ac_objext \
72212 conftest$ac_exeext conftest.$ac_ext
72213 CFLAGS="$ac_save_CFLAGS"
72214 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
72215 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
72218 # For GNU ld, we need at least this version. The format is described in
72219 # GLIBCXX_CHECK_LINKER_FEATURES above.
72220 glibcxx_min_gnu_ld_version=21400
72221 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
72223 # Check to see if unspecified "yes" value can win, given results above.
72224 # Change "yes" into either "no" or a style name.
72225 if test $enable_symvers = yes; then
72226 if test $with_gnu_ld = yes &&
72227 test $glibcxx_shared_libgcc = yes;
72228 then
72229 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
72230 enable_symvers=gnu
72231 else
72232 # The right tools, the right setup, but too old. Fallbacks?
72233 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
72234 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
72235 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
72236 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
72237 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
72238 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
72239 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
72240 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
72241 if test $glibcxx_gnu_ld_version -ge 21200 ; then
72242 # Globbing fix is present, proper block support is not.
72243 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72244 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72245 enable_symvers=no
72246 else
72247 # 2.11 or older.
72248 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72249 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72250 enable_symvers=no
72253 else
72254 # just fail for now
72255 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
72256 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
72257 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
72258 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
72259 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
72260 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
72261 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72262 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72263 enable_symvers=no
72267 # Everything parsed; figure out what file to use.
72268 case $enable_symvers in
72270 SYMVER_MAP=config/linker-map.dummy
72272 gnu)
72273 SYMVER_MAP=config/linker-map.gnu
72274 cat >>confdefs.h <<\_ACEOF
72275 #define _GLIBCXX_SYMVER 1
72276 _ACEOF
72279 esac
72284 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
72285 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
72288 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
72290 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
72291 # Do checks for resource limit functions.
72293 setrlimit_have_headers=yes
72297 for ac_header in unistd.h sys/time.h sys/resource.h
72299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
72300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72301 echo "$as_me:$LINENO: checking for $ac_header" >&5
72302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72304 echo $ECHO_N "(cached) $ECHO_C" >&6
72306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72308 else
72309 # Is the header compilable?
72310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72312 cat >conftest.$ac_ext <<_ACEOF
72313 /* confdefs.h. */
72314 _ACEOF
72315 cat confdefs.h >>conftest.$ac_ext
72316 cat >>conftest.$ac_ext <<_ACEOF
72317 /* end confdefs.h. */
72318 $ac_includes_default
72319 #include <$ac_header>
72320 _ACEOF
72321 rm -f conftest.$ac_objext
72322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72323 (eval $ac_compile) 2>conftest.er1
72324 ac_status=$?
72325 grep -v '^ *+' conftest.er1 >conftest.err
72326 rm -f conftest.er1
72327 cat conftest.err >&5
72328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72329 (exit $ac_status); } &&
72330 { ac_try='test -z "$ac_c_werror_flag"
72331 || test ! -s conftest.err'
72332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72333 (eval $ac_try) 2>&5
72334 ac_status=$?
72335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72336 (exit $ac_status); }; } &&
72337 { ac_try='test -s conftest.$ac_objext'
72338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72339 (eval $ac_try) 2>&5
72340 ac_status=$?
72341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72342 (exit $ac_status); }; }; then
72343 ac_header_compiler=yes
72344 else
72345 echo "$as_me: failed program was:" >&5
72346 sed 's/^/| /' conftest.$ac_ext >&5
72348 ac_header_compiler=no
72350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72352 echo "${ECHO_T}$ac_header_compiler" >&6
72354 # Is the header present?
72355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72357 cat >conftest.$ac_ext <<_ACEOF
72358 /* confdefs.h. */
72359 _ACEOF
72360 cat confdefs.h >>conftest.$ac_ext
72361 cat >>conftest.$ac_ext <<_ACEOF
72362 /* end confdefs.h. */
72363 #include <$ac_header>
72364 _ACEOF
72365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72367 ac_status=$?
72368 grep -v '^ *+' conftest.er1 >conftest.err
72369 rm -f conftest.er1
72370 cat conftest.err >&5
72371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72372 (exit $ac_status); } >/dev/null; then
72373 if test -s conftest.err; then
72374 ac_cpp_err=$ac_c_preproc_warn_flag
72375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72376 else
72377 ac_cpp_err=
72379 else
72380 ac_cpp_err=yes
72382 if test -z "$ac_cpp_err"; then
72383 ac_header_preproc=yes
72384 else
72385 echo "$as_me: failed program was:" >&5
72386 sed 's/^/| /' conftest.$ac_ext >&5
72388 ac_header_preproc=no
72390 rm -f conftest.err conftest.$ac_ext
72391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72392 echo "${ECHO_T}$ac_header_preproc" >&6
72394 # So? What about this header?
72395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72396 yes:no: )
72397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72401 ac_header_preproc=yes
72403 no:yes:* )
72404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
72407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
72408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
72411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
72412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72417 cat <<\_ASBOX
72418 ## ----------------------------------------- ##
72419 ## Report this to the package-unused lists. ##
72420 ## ----------------------------------------- ##
72421 _ASBOX
72423 sed "s/^/$as_me: WARNING: /" >&2
72425 esac
72426 echo "$as_me:$LINENO: checking for $ac_header" >&5
72427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72429 echo $ECHO_N "(cached) $ECHO_C" >&6
72430 else
72431 eval "$as_ac_Header=\$ac_header_preproc"
72433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72438 cat >>confdefs.h <<_ACEOF
72439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72440 _ACEOF
72442 else
72443 setrlimit_have_headers=no
72446 done
72448 # If don't have the headers, then we can't run the tests now, and we
72449 # won't be seeing any of these during testsuite compilation.
72450 if test $setrlimit_have_headers = yes; then
72451 # Can't do these in a loop, else the resulting syntax is wrong.
72453 cat >conftest.$ac_ext <<_ACEOF
72454 /* confdefs.h. */
72455 _ACEOF
72456 cat confdefs.h >>conftest.$ac_ext
72457 cat >>conftest.$ac_ext <<_ACEOF
72458 /* end confdefs.h. */
72459 #include <unistd.h>
72460 #include <sys/time.h>
72461 #include <sys/resource.h>
72464 main ()
72466 int f = RLIMIT_DATA ;
72468 return 0;
72470 _ACEOF
72471 rm -f conftest.$ac_objext
72472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72473 (eval $ac_compile) 2>conftest.er1
72474 ac_status=$?
72475 grep -v '^ *+' conftest.er1 >conftest.err
72476 rm -f conftest.er1
72477 cat conftest.err >&5
72478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72479 (exit $ac_status); } &&
72480 { ac_try='test -z "$ac_c_werror_flag"
72481 || test ! -s conftest.err'
72482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72483 (eval $ac_try) 2>&5
72484 ac_status=$?
72485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72486 (exit $ac_status); }; } &&
72487 { ac_try='test -s conftest.$ac_objext'
72488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72489 (eval $ac_try) 2>&5
72490 ac_status=$?
72491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72492 (exit $ac_status); }; }; then
72493 glibcxx_mresult=1
72494 else
72495 echo "$as_me: failed program was:" >&5
72496 sed 's/^/| /' conftest.$ac_ext >&5
72498 glibcxx_mresult=0
72500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72502 cat >>confdefs.h <<_ACEOF
72503 #define HAVE_LIMIT_DATA $glibcxx_mresult
72504 _ACEOF
72508 cat >conftest.$ac_ext <<_ACEOF
72509 /* confdefs.h. */
72510 _ACEOF
72511 cat confdefs.h >>conftest.$ac_ext
72512 cat >>conftest.$ac_ext <<_ACEOF
72513 /* end confdefs.h. */
72514 #include <unistd.h>
72515 #include <sys/time.h>
72516 #include <sys/resource.h>
72519 main ()
72521 int f = RLIMIT_RSS ;
72523 return 0;
72525 _ACEOF
72526 rm -f conftest.$ac_objext
72527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72528 (eval $ac_compile) 2>conftest.er1
72529 ac_status=$?
72530 grep -v '^ *+' conftest.er1 >conftest.err
72531 rm -f conftest.er1
72532 cat conftest.err >&5
72533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72534 (exit $ac_status); } &&
72535 { ac_try='test -z "$ac_c_werror_flag"
72536 || test ! -s conftest.err'
72537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72538 (eval $ac_try) 2>&5
72539 ac_status=$?
72540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72541 (exit $ac_status); }; } &&
72542 { ac_try='test -s conftest.$ac_objext'
72543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72544 (eval $ac_try) 2>&5
72545 ac_status=$?
72546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72547 (exit $ac_status); }; }; then
72548 glibcxx_mresult=1
72549 else
72550 echo "$as_me: failed program was:" >&5
72551 sed 's/^/| /' conftest.$ac_ext >&5
72553 glibcxx_mresult=0
72555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72557 cat >>confdefs.h <<_ACEOF
72558 #define HAVE_LIMIT_RSS $glibcxx_mresult
72559 _ACEOF
72563 cat >conftest.$ac_ext <<_ACEOF
72564 /* confdefs.h. */
72565 _ACEOF
72566 cat confdefs.h >>conftest.$ac_ext
72567 cat >>conftest.$ac_ext <<_ACEOF
72568 /* end confdefs.h. */
72569 #include <unistd.h>
72570 #include <sys/time.h>
72571 #include <sys/resource.h>
72574 main ()
72576 int f = RLIMIT_VMEM ;
72578 return 0;
72580 _ACEOF
72581 rm -f conftest.$ac_objext
72582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72583 (eval $ac_compile) 2>conftest.er1
72584 ac_status=$?
72585 grep -v '^ *+' conftest.er1 >conftest.err
72586 rm -f conftest.er1
72587 cat conftest.err >&5
72588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72589 (exit $ac_status); } &&
72590 { ac_try='test -z "$ac_c_werror_flag"
72591 || test ! -s conftest.err'
72592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72593 (eval $ac_try) 2>&5
72594 ac_status=$?
72595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72596 (exit $ac_status); }; } &&
72597 { ac_try='test -s conftest.$ac_objext'
72598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72599 (eval $ac_try) 2>&5
72600 ac_status=$?
72601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72602 (exit $ac_status); }; }; then
72603 glibcxx_mresult=1
72604 else
72605 echo "$as_me: failed program was:" >&5
72606 sed 's/^/| /' conftest.$ac_ext >&5
72608 glibcxx_mresult=0
72610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72612 cat >>confdefs.h <<_ACEOF
72613 #define HAVE_LIMIT_VMEM $glibcxx_mresult
72614 _ACEOF
72618 cat >conftest.$ac_ext <<_ACEOF
72619 /* confdefs.h. */
72620 _ACEOF
72621 cat confdefs.h >>conftest.$ac_ext
72622 cat >>conftest.$ac_ext <<_ACEOF
72623 /* end confdefs.h. */
72624 #include <unistd.h>
72625 #include <sys/time.h>
72626 #include <sys/resource.h>
72629 main ()
72631 int f = RLIMIT_AS ;
72633 return 0;
72635 _ACEOF
72636 rm -f conftest.$ac_objext
72637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72638 (eval $ac_compile) 2>conftest.er1
72639 ac_status=$?
72640 grep -v '^ *+' conftest.er1 >conftest.err
72641 rm -f conftest.er1
72642 cat conftest.err >&5
72643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72644 (exit $ac_status); } &&
72645 { ac_try='test -z "$ac_c_werror_flag"
72646 || test ! -s conftest.err'
72647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72648 (eval $ac_try) 2>&5
72649 ac_status=$?
72650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72651 (exit $ac_status); }; } &&
72652 { ac_try='test -s conftest.$ac_objext'
72653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72654 (eval $ac_try) 2>&5
72655 ac_status=$?
72656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72657 (exit $ac_status); }; }; then
72658 glibcxx_mresult=1
72659 else
72660 echo "$as_me: failed program was:" >&5
72661 sed 's/^/| /' conftest.$ac_ext >&5
72663 glibcxx_mresult=0
72665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72667 cat >>confdefs.h <<_ACEOF
72668 #define HAVE_LIMIT_AS $glibcxx_mresult
72669 _ACEOF
72673 cat >conftest.$ac_ext <<_ACEOF
72674 /* confdefs.h. */
72675 _ACEOF
72676 cat confdefs.h >>conftest.$ac_ext
72677 cat >>conftest.$ac_ext <<_ACEOF
72678 /* end confdefs.h. */
72679 #include <unistd.h>
72680 #include <sys/time.h>
72681 #include <sys/resource.h>
72684 main ()
72686 int f = RLIMIT_FSIZE ;
72688 return 0;
72690 _ACEOF
72691 rm -f conftest.$ac_objext
72692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72693 (eval $ac_compile) 2>conftest.er1
72694 ac_status=$?
72695 grep -v '^ *+' conftest.er1 >conftest.err
72696 rm -f conftest.er1
72697 cat conftest.err >&5
72698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72699 (exit $ac_status); } &&
72700 { ac_try='test -z "$ac_c_werror_flag"
72701 || test ! -s conftest.err'
72702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72703 (eval $ac_try) 2>&5
72704 ac_status=$?
72705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72706 (exit $ac_status); }; } &&
72707 { ac_try='test -s conftest.$ac_objext'
72708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72709 (eval $ac_try) 2>&5
72710 ac_status=$?
72711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72712 (exit $ac_status); }; }; then
72713 glibcxx_mresult=1
72714 else
72715 echo "$as_me: failed program was:" >&5
72716 sed 's/^/| /' conftest.$ac_ext >&5
72718 glibcxx_mresult=0
72720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72722 cat >>confdefs.h <<_ACEOF
72723 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
72724 _ACEOF
72728 # Check for rlimit, setrlimit.
72729 if test "${ac_setrlimit+set}" = set; then
72730 echo $ECHO_N "(cached) $ECHO_C" >&6
72731 else
72733 cat >conftest.$ac_ext <<_ACEOF
72734 /* confdefs.h. */
72735 _ACEOF
72736 cat confdefs.h >>conftest.$ac_ext
72737 cat >>conftest.$ac_ext <<_ACEOF
72738 /* end confdefs.h. */
72739 #include <unistd.h>
72740 #include <sys/time.h>
72741 #include <sys/resource.h>
72744 main ()
72746 struct rlimit r;
72747 setrlimit(0, &r);
72749 return 0;
72751 _ACEOF
72752 rm -f conftest.$ac_objext
72753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72754 (eval $ac_compile) 2>conftest.er1
72755 ac_status=$?
72756 grep -v '^ *+' conftest.er1 >conftest.err
72757 rm -f conftest.er1
72758 cat conftest.err >&5
72759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72760 (exit $ac_status); } &&
72761 { ac_try='test -z "$ac_c_werror_flag"
72762 || test ! -s conftest.err'
72763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72764 (eval $ac_try) 2>&5
72765 ac_status=$?
72766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72767 (exit $ac_status); }; } &&
72768 { ac_try='test -s conftest.$ac_objext'
72769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72770 (eval $ac_try) 2>&5
72771 ac_status=$?
72772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72773 (exit $ac_status); }; }; then
72774 ac_setrlimit=yes
72775 else
72776 echo "$as_me: failed program was:" >&5
72777 sed 's/^/| /' conftest.$ac_ext >&5
72779 ac_setrlimit=no
72781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72787 echo "$as_me:$LINENO: checking for testsuite resource limits support" >&5
72788 echo $ECHO_N "checking for testsuite resource limits support... $ECHO_C" >&6
72789 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72790 ac_res_limits=yes
72791 cat >>confdefs.h <<\_ACEOF
72792 #define _GLIBCXX_RES_LIMITS 1
72793 _ACEOF
72795 else
72796 ac_res_limits=no
72798 echo "$as_me:$LINENO: result: $ac_res_limits" >&5
72799 echo "${ECHO_T}$ac_res_limits" >&6
72802 # Look for setenv, so that extended locale tests can be performed.
72804 echo "$as_me:$LINENO: checking for setenv declaration" >&5
72805 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72806 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72807 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72808 echo $ECHO_N "(cached) $ECHO_C" >&6
72809 else
72813 ac_ext=cc
72814 ac_cpp='$CXXCPP $CPPFLAGS'
72815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72819 cat >conftest.$ac_ext <<_ACEOF
72820 /* confdefs.h. */
72821 _ACEOF
72822 cat confdefs.h >>conftest.$ac_ext
72823 cat >>conftest.$ac_ext <<_ACEOF
72824 /* end confdefs.h. */
72825 #include <stdlib.h>
72827 main ()
72829 setenv(0, 0, 0);
72831 return 0;
72833 _ACEOF
72834 rm -f conftest.$ac_objext
72835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72836 (eval $ac_compile) 2>conftest.er1
72837 ac_status=$?
72838 grep -v '^ *+' conftest.er1 >conftest.err
72839 rm -f conftest.er1
72840 cat conftest.err >&5
72841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72842 (exit $ac_status); } &&
72843 { ac_try='test -z "$ac_cxx_werror_flag"
72844 || test ! -s conftest.err'
72845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72846 (eval $ac_try) 2>&5
72847 ac_status=$?
72848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72849 (exit $ac_status); }; } &&
72850 { ac_try='test -s conftest.$ac_objext'
72851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72852 (eval $ac_try) 2>&5
72853 ac_status=$?
72854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72855 (exit $ac_status); }; }; then
72856 glibcxx_cv_func_setenv_use=yes
72857 else
72858 echo "$as_me: failed program was:" >&5
72859 sed 's/^/| /' conftest.$ac_ext >&5
72861 glibcxx_cv_func_setenv_use=no
72863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72864 ac_ext=c
72865 ac_cpp='$CPP $CPPFLAGS'
72866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72874 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72875 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72876 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72878 for ac_func in setenv
72880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72881 echo "$as_me:$LINENO: checking for $ac_func" >&5
72882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72883 if eval "test \"\${$as_ac_var+set}\" = set"; then
72884 echo $ECHO_N "(cached) $ECHO_C" >&6
72885 else
72886 if test x$gcc_no_link = xyes; then
72887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72889 { (exit 1); exit 1; }; }
72891 cat >conftest.$ac_ext <<_ACEOF
72892 /* confdefs.h. */
72893 _ACEOF
72894 cat confdefs.h >>conftest.$ac_ext
72895 cat >>conftest.$ac_ext <<_ACEOF
72896 /* end confdefs.h. */
72897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72899 #define $ac_func innocuous_$ac_func
72901 /* System header to define __stub macros and hopefully few prototypes,
72902 which can conflict with char $ac_func (); below.
72903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72904 <limits.h> exists even on freestanding compilers. */
72906 #ifdef __STDC__
72907 # include <limits.h>
72908 #else
72909 # include <assert.h>
72910 #endif
72912 #undef $ac_func
72914 /* Override any gcc2 internal prototype to avoid an error. */
72915 #ifdef __cplusplus
72916 extern "C"
72918 #endif
72919 /* We use char because int might match the return type of a gcc2
72920 builtin and then its argument prototype would still apply. */
72921 char $ac_func ();
72922 /* The GNU C library defines this for functions which it implements
72923 to always fail with ENOSYS. Some functions are actually named
72924 something starting with __ and the normal name is an alias. */
72925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72926 choke me
72927 #else
72928 char (*f) () = $ac_func;
72929 #endif
72930 #ifdef __cplusplus
72932 #endif
72935 main ()
72937 return f != $ac_func;
72939 return 0;
72941 _ACEOF
72942 rm -f conftest.$ac_objext conftest$ac_exeext
72943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72944 (eval $ac_link) 2>conftest.er1
72945 ac_status=$?
72946 grep -v '^ *+' conftest.er1 >conftest.err
72947 rm -f conftest.er1
72948 cat conftest.err >&5
72949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72950 (exit $ac_status); } &&
72951 { ac_try='test -z "$ac_c_werror_flag"
72952 || test ! -s conftest.err'
72953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72954 (eval $ac_try) 2>&5
72955 ac_status=$?
72956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72957 (exit $ac_status); }; } &&
72958 { ac_try='test -s conftest$ac_exeext'
72959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72960 (eval $ac_try) 2>&5
72961 ac_status=$?
72962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72963 (exit $ac_status); }; }; then
72964 eval "$as_ac_var=yes"
72965 else
72966 echo "$as_me: failed program was:" >&5
72967 sed 's/^/| /' conftest.$ac_ext >&5
72969 eval "$as_ac_var=no"
72971 rm -f conftest.err conftest.$ac_objext \
72972 conftest$ac_exeext conftest.$ac_ext
72974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72976 if test `eval echo '${'$as_ac_var'}'` = yes; then
72977 cat >>confdefs.h <<_ACEOF
72978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72979 _ACEOF
72982 done
72987 if test $enable_symvers = no; then
72988 enable_abi_check=no
72989 else
72990 case "$host" in
72991 *-*-cygwin*)
72992 enable_abi_check=no ;;
72994 enable_abi_check=yes ;;
72995 esac
72997 else
72998 # Only build this as native, since automake does not understand
72999 # CXX_FOR_BUILD.
73000 enable_abi_check=no
73003 # Export file names for ABI checking.
73004 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
73011 # Propagate the target-specific source directories through the build chain.
73012 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
73013 # uses it, and it only gets used in this file.)
73014 ATOMICITY_SRCDIR=config/${atomicity_dir}
73015 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
73016 OS_INC_SRCDIR=config/${os_include_dir}
73021 # Determine cross-compile flags and AM_CONDITIONALs.
73022 #AC_SUBST(GLIBCXX_IS_NATIVE)
73023 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
73024 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
73025 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
73028 if test $is_hosted = yes; then
73029 GLIBCXX_HOSTED_TRUE=
73030 GLIBCXX_HOSTED_FALSE='#'
73031 else
73032 GLIBCXX_HOSTED_TRUE='#'
73033 GLIBCXX_HOSTED_FALSE=
73039 if test $enable_libstdcxx_pch = yes; then
73040 GLIBCXX_BUILD_PCH_TRUE=
73041 GLIBCXX_BUILD_PCH_FALSE='#'
73042 else
73043 GLIBCXX_BUILD_PCH_TRUE='#'
73044 GLIBCXX_BUILD_PCH_FALSE=
73050 if test $enable_cheaders = c; then
73051 GLIBCXX_C_HEADERS_C_TRUE=
73052 GLIBCXX_C_HEADERS_C_FALSE='#'
73053 else
73054 GLIBCXX_C_HEADERS_C_TRUE='#'
73055 GLIBCXX_C_HEADERS_C_FALSE=
73061 if test $enable_cheaders = c_std; then
73062 GLIBCXX_C_HEADERS_C_STD_TRUE=
73063 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
73064 else
73065 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
73066 GLIBCXX_C_HEADERS_C_STD_FALSE=
73072 if test $c_compatibility = yes; then
73073 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
73074 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
73075 else
73076 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
73077 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
73083 if test $enable_libstdcxx_debug = yes; then
73084 GLIBCXX_BUILD_DEBUG_TRUE=
73085 GLIBCXX_BUILD_DEBUG_FALSE='#'
73086 else
73087 GLIBCXX_BUILD_DEBUG_TRUE='#'
73088 GLIBCXX_BUILD_DEBUG_FALSE=
73094 if test $enable_symvers != no; then
73095 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
73096 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
73097 else
73098 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
73099 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
73105 if test $enable_wchar_t = yes; then
73106 GLIBCXX_TEST_WCHAR_T_TRUE=
73107 GLIBCXX_TEST_WCHAR_T_FALSE='#'
73108 else
73109 GLIBCXX_TEST_WCHAR_T_TRUE='#'
73110 GLIBCXX_TEST_WCHAR_T_FALSE=
73116 if test $enable_abi_check = yes; then
73117 GLIBCXX_TEST_ABI_TRUE=
73118 GLIBCXX_TEST_ABI_FALSE='#'
73119 else
73120 GLIBCXX_TEST_ABI_TRUE='#'
73121 GLIBCXX_TEST_ABI_FALSE=
73127 cat >confcache <<\_ACEOF
73128 # This file is a shell script that caches the results of configure
73129 # tests run on this system so they can be shared between configure
73130 # scripts and configure runs, see configure's option --config-cache.
73131 # It is not useful on other systems. If it contains results you don't
73132 # want to keep, you may remove or edit it.
73134 # config.status only pays attention to the cache file if you give it
73135 # the --recheck option to rerun configure.
73137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73139 # following values.
73141 _ACEOF
73143 # The following way of writing the cache mishandles newlines in values,
73144 # but we know of no workaround that is simple, portable, and efficient.
73145 # So, don't put newlines in cache variables' values.
73146 # Ultrix sh set writes to stderr and can't be redirected directly,
73147 # and sets the high bit in the cache file unless we assign to the vars.
73149 (set) 2>&1 |
73150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
73151 *ac_space=\ *)
73152 # `set' does not quote correctly, so add quotes (double-quote
73153 # substitution turns \\\\ into \\, and sed turns \\ into \).
73154 sed -n \
73155 "s/'/'\\\\''/g;
73156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73159 # `set' quotes correctly as required by POSIX, so do not add quotes.
73160 sed -n \
73161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73163 esac;
73165 sed '
73166 t clear
73167 : clear
73168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73169 t end
73170 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73171 : end' >>confcache
73172 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73173 if test -w $cache_file; then
73174 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73175 cat confcache >$cache_file
73176 else
73177 echo "not updating unwritable cache $cache_file"
73180 rm -f confcache
73182 if test ${multilib} = yes; then
73183 multilib_arg="--enable-multilib"
73184 else
73185 multilib_arg=
73188 # Export all the install information.
73190 glibcxx_toolexecdir=no
73191 glibcxx_toolexeclibdir=no
73192 glibcxx_prefixdir=$prefix
73194 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
73195 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
73197 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
73198 if test "${with_gxx_include_dir+set}" = set; then
73199 withval="$with_gxx_include_dir"
73200 case "$withval" in
73201 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
73202 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
73203 { (exit 1); exit 1; }; } ;;
73204 no) gxx_include_dir=no ;;
73205 *) gxx_include_dir=$withval ;;
73206 esac
73207 else
73208 gxx_include_dir=no
73210 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
73211 echo "${ECHO_T}$gxx_include_dir" >&6
73213 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
73214 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
73215 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
73216 if test "${enable_version_specific_runtime_libs+set}" = set; then
73217 enableval="$enable_version_specific_runtime_libs"
73218 case "$enableval" in
73219 yes) version_specific_libs=yes ;;
73220 no) version_specific_libs=no ;;
73221 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
73222 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
73223 { (exit 1); exit 1; }; };;
73224 esac
73225 else
73226 version_specific_libs=no
73228 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
73229 echo "${ECHO_T}$version_specific_libs" >&6
73231 # Default case for install directory for include files.
73232 if test $version_specific_libs = no && test $gxx_include_dir = no; then
73233 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
73236 # Version-specific runtime libs processing.
73237 if test $version_specific_libs = yes; then
73238 # Need the gcc compiler version to know where to install libraries
73239 # and header files if --enable-version-specific-runtime-libs option
73240 # is selected. FIXME: these variables are misnamed, there are
73241 # no executables installed in _toolexecdir or _toolexeclibdir.
73242 if test x"$gxx_include_dir" = x"no"; then
73243 gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
73245 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
73246 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
73249 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
73250 # Install a library built with a cross compiler in tooldir, not libdir.
73251 if test x"$glibcxx_toolexecdir" = x"no"; then
73252 if test -n "$with_cross_host" &&
73253 test x"$with_cross_host" != x"no"; then
73254 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
73255 glibcxx_toolexeclibdir='${toolexecdir}/lib'
73256 else
73257 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
73258 glibcxx_toolexeclibdir='${libdir}'
73260 multi_os_directory=`$CXX -print-multi-os-directory`
73261 case $multi_os_directory in
73262 .) ;; # Avoid trailing /.
73263 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
73264 esac
73267 echo "$as_me:$LINENO: checking for install location" >&5
73268 echo $ECHO_N "checking for install location... $ECHO_C" >&6
73269 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
73270 echo "${ECHO_T}$gxx_include_dir" >&6
73278 # Export all the include and flag information to Makefiles.
73280 # Used for every C++ compile we perform.
73281 GLIBCXX_INCLUDES="\
73282 -I$glibcxx_builddir/include/$host_alias \
73283 -I$glibcxx_builddir/include \
73284 -I$glibcxx_srcdir/libsupc++"
73286 # For Canadian crosses, pick this up too.
73287 if test $CANADIAN = yes; then
73288 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
73291 # Stuff in the actual top level. Currently only used by libsupc++ to
73292 # get unwind* headers from the gcc dir.
73293 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
73294 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
73296 # Now, export this to all the little Makefiles....
73301 # Optimization flags that are probably a good idea for thrill-seekers. Just
73302 # uncomment the lines below and make, everything else is ready to go...
73303 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
73304 OPTIMIZE_CXXFLAGS=
73307 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
73311 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73312 grep "enable shared" > /dev/null;
73313 then
73314 LIBSUPCXX_PICFLAGS=-prefer-pic
73315 else
73316 LIBSUPCXX_PICFLAGS=
73320 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73322 ac_config_files="$ac_config_files scripts/check_survey"
73324 ac_config_files="$ac_config_files scripts/testsuite_flags"
73327 ac_config_commands="$ac_config_commands default"
73330 cat >confcache <<\_ACEOF
73331 # This file is a shell script that caches the results of configure
73332 # tests run on this system so they can be shared between configure
73333 # scripts and configure runs, see configure's option --config-cache.
73334 # It is not useful on other systems. If it contains results you don't
73335 # want to keep, you may remove or edit it.
73337 # config.status only pays attention to the cache file if you give it
73338 # the --recheck option to rerun configure.
73340 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73341 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73342 # following values.
73344 _ACEOF
73346 # The following way of writing the cache mishandles newlines in values,
73347 # but we know of no workaround that is simple, portable, and efficient.
73348 # So, don't put newlines in cache variables' values.
73349 # Ultrix sh set writes to stderr and can't be redirected directly,
73350 # and sets the high bit in the cache file unless we assign to the vars.
73352 (set) 2>&1 |
73353 case `(ac_space=' '; set | grep ac_space) 2>&1` in
73354 *ac_space=\ *)
73355 # `set' does not quote correctly, so add quotes (double-quote
73356 # substitution turns \\\\ into \\, and sed turns \\ into \).
73357 sed -n \
73358 "s/'/'\\\\''/g;
73359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73362 # `set' quotes correctly as required by POSIX, so do not add quotes.
73363 sed -n \
73364 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73366 esac;
73368 sed '
73369 t clear
73370 : clear
73371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73372 t end
73373 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73374 : end' >>confcache
73375 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73376 if test -w $cache_file; then
73377 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73378 cat confcache >$cache_file
73379 else
73380 echo "not updating unwritable cache $cache_file"
73383 rm -f confcache
73385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73386 # Let make expand exec_prefix.
73387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73391 # trailing colons and then remove the whole line if VPATH becomes empty
73392 # (actually we leave an empty line to preserve line numbers).
73393 if test "x$srcdir" = x.; then
73394 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73395 s/:*\$(srcdir):*/:/;
73396 s/:*\${srcdir}:*/:/;
73397 s/:*@srcdir@:*/:/;
73398 s/^\([^=]*=[ ]*\):*/\1/;
73399 s/:*$//;
73400 s/^[^=]*=[ ]*$//;
73404 DEFS=-DHAVE_CONFIG_H
73406 ac_libobjs=
73407 ac_ltlibobjs=
73408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73409 # 1. Remove the extension, and $U if already installed.
73410 ac_i=`echo "$ac_i" |
73411 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73412 # 2. Add them.
73413 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73414 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73415 done
73416 LIBOBJS=$ac_libobjs
73418 LTLIBOBJS=$ac_ltlibobjs
73421 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73422 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73423 Usually this means the macro was only invoked conditionally." >&5
73424 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73425 Usually this means the macro was only invoked conditionally." >&2;}
73426 { (exit 1); exit 1; }; }
73428 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73429 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73430 Usually this means the macro was only invoked conditionally." >&5
73431 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73432 Usually this means the macro was only invoked conditionally." >&2;}
73433 { (exit 1); exit 1; }; }
73435 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73436 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73437 Usually this means the macro was only invoked conditionally." >&5
73438 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73439 Usually this means the macro was only invoked conditionally." >&2;}
73440 { (exit 1); exit 1; }; }
73442 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73443 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73444 Usually this means the macro was only invoked conditionally." >&5
73445 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73446 Usually this means the macro was only invoked conditionally." >&2;}
73447 { (exit 1); exit 1; }; }
73449 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73450 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73451 Usually this means the macro was only invoked conditionally." >&5
73452 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73453 Usually this means the macro was only invoked conditionally." >&2;}
73454 { (exit 1); exit 1; }; }
73456 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73457 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73458 Usually this means the macro was only invoked conditionally." >&5
73459 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73460 Usually this means the macro was only invoked conditionally." >&2;}
73461 { (exit 1); exit 1; }; }
73463 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73464 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73465 Usually this means the macro was only invoked conditionally." >&5
73466 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73467 Usually this means the macro was only invoked conditionally." >&2;}
73468 { (exit 1); exit 1; }; }
73470 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73471 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73472 Usually this means the macro was only invoked conditionally." >&5
73473 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73474 Usually this means the macro was only invoked conditionally." >&2;}
73475 { (exit 1); exit 1; }; }
73477 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73478 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73479 Usually this means the macro was only invoked conditionally." >&5
73480 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73481 Usually this means the macro was only invoked conditionally." >&2;}
73482 { (exit 1); exit 1; }; }
73484 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73485 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73486 Usually this means the macro was only invoked conditionally." >&5
73487 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73488 Usually this means the macro was only invoked conditionally." >&2;}
73489 { (exit 1); exit 1; }; }
73492 : ${CONFIG_STATUS=./config.status}
73493 ac_clean_files_save=$ac_clean_files
73494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73495 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73497 cat >$CONFIG_STATUS <<_ACEOF
73498 #! $SHELL
73499 # Generated by $as_me.
73500 # Run this file to recreate the current configuration.
73501 # Compiler output produced by configure, useful for debugging
73502 # configure, is in config.log if it exists.
73504 debug=false
73505 ac_cs_recheck=false
73506 ac_cs_silent=false
73507 SHELL=\${CONFIG_SHELL-$SHELL}
73508 _ACEOF
73510 cat >>$CONFIG_STATUS <<\_ACEOF
73511 ## --------------------- ##
73512 ## M4sh Initialization. ##
73513 ## --------------------- ##
73515 # Be Bourne compatible
73516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73517 emulate sh
73518 NULLCMD=:
73519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73520 # is contrary to our usage. Disable this feature.
73521 alias -g '${1+"$@"}'='"$@"'
73522 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73523 set -o posix
73525 DUALCASE=1; export DUALCASE # for MKS sh
73527 # Support unset when possible.
73528 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73529 as_unset=unset
73530 else
73531 as_unset=false
73535 # Work around bugs in pre-3.0 UWIN ksh.
73536 $as_unset ENV MAIL MAILPATH
73537 PS1='$ '
73538 PS2='> '
73539 PS4='+ '
73541 # NLS nuisances.
73542 for as_var in \
73543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73545 LC_TELEPHONE LC_TIME
73547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73548 eval $as_var=C; export $as_var
73549 else
73550 $as_unset $as_var
73552 done
73554 # Required to use basename.
73555 if expr a : '\(a\)' >/dev/null 2>&1; then
73556 as_expr=expr
73557 else
73558 as_expr=false
73561 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73562 as_basename=basename
73563 else
73564 as_basename=false
73568 # Name of the executable.
73569 as_me=`$as_basename "$0" ||
73570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73571 X"$0" : 'X\(//\)$' \| \
73572 X"$0" : 'X\(/\)$' \| \
73573 . : '\(.\)' 2>/dev/null ||
73574 echo X/"$0" |
73575 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73576 /^X\/\(\/\/\)$/{ s//\1/; q; }
73577 /^X\/\(\/\).*/{ s//\1/; q; }
73578 s/.*/./; q'`
73581 # PATH needs CR, and LINENO needs CR and PATH.
73582 # Avoid depending upon Character Ranges.
73583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73586 as_cr_digits='0123456789'
73587 as_cr_alnum=$as_cr_Letters$as_cr_digits
73589 # The user is always right.
73590 if test "${PATH_SEPARATOR+set}" != set; then
73591 echo "#! /bin/sh" >conf$$.sh
73592 echo "exit 0" >>conf$$.sh
73593 chmod +x conf$$.sh
73594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73595 PATH_SEPARATOR=';'
73596 else
73597 PATH_SEPARATOR=:
73599 rm -f conf$$.sh
73603 as_lineno_1=$LINENO
73604 as_lineno_2=$LINENO
73605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73606 test "x$as_lineno_1" != "x$as_lineno_2" &&
73607 test "x$as_lineno_3" = "x$as_lineno_2" || {
73608 # Find who we are. Look in the path if we contain no path at all
73609 # relative or not.
73610 case $0 in
73611 *[\\/]* ) as_myself=$0 ;;
73612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73613 for as_dir in $PATH
73615 IFS=$as_save_IFS
73616 test -z "$as_dir" && as_dir=.
73617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73618 done
73621 esac
73622 # We did not find ourselves, most probably we were run as `sh COMMAND'
73623 # in which case we are not to be found in the path.
73624 if test "x$as_myself" = x; then
73625 as_myself=$0
73627 if test ! -f "$as_myself"; then
73628 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73629 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73630 { (exit 1); exit 1; }; }
73632 case $CONFIG_SHELL in
73634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73635 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73637 IFS=$as_save_IFS
73638 test -z "$as_dir" && as_dir=.
73639 for as_base in sh bash ksh sh5; do
73640 case $as_dir in
73642 if ("$as_dir/$as_base" -c '
73643 as_lineno_1=$LINENO
73644 as_lineno_2=$LINENO
73645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73646 test "x$as_lineno_1" != "x$as_lineno_2" &&
73647 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
73648 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73649 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73650 CONFIG_SHELL=$as_dir/$as_base
73651 export CONFIG_SHELL
73652 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73653 fi;;
73654 esac
73655 done
73656 done
73658 esac
73660 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73661 # uniformly replaced by the line number. The first 'sed' inserts a
73662 # line-number line before each line; the second 'sed' does the real
73663 # work. The second script uses 'N' to pair each line-number line
73664 # with the numbered line, and appends trailing '-' during
73665 # substitution so that $LINENO is not a special case at line end.
73666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73667 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
73668 sed '=' <$as_myself |
73669 sed '
73671 s,$,-,
73672 : loop
73673 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73674 t loop
73675 s,-$,,
73676 s,^['$as_cr_digits']*\n,,
73677 ' >$as_me.lineno &&
73678 chmod +x $as_me.lineno ||
73679 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73680 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73681 { (exit 1); exit 1; }; }
73683 # Don't try to exec as it changes $[0], causing all sort of problems
73684 # (the dirname of $[0] is not the place where we might find the
73685 # original and so on. Autoconf is especially sensible to this).
73686 . ./$as_me.lineno
73687 # Exit status is that of the last command.
73688 exit
73692 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73693 *c*,-n*) ECHO_N= ECHO_C='
73694 ' ECHO_T=' ' ;;
73695 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73696 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
73697 esac
73699 if expr a : '\(a\)' >/dev/null 2>&1; then
73700 as_expr=expr
73701 else
73702 as_expr=false
73705 rm -f conf$$ conf$$.exe conf$$.file
73706 echo >conf$$.file
73707 if ln -s conf$$.file conf$$ 2>/dev/null; then
73708 # We could just check for DJGPP; but this test a) works b) is more generic
73709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73710 if test -f conf$$.exe; then
73711 # Don't use ln at all; we don't have any links
73712 as_ln_s='cp -p'
73713 else
73714 as_ln_s='ln -s'
73716 elif ln conf$$.file conf$$ 2>/dev/null; then
73717 as_ln_s=ln
73718 else
73719 as_ln_s='cp -p'
73721 rm -f conf$$ conf$$.exe conf$$.file
73723 if mkdir -p . 2>/dev/null; then
73724 as_mkdir_p=:
73725 else
73726 test -d ./-p && rmdir ./-p
73727 as_mkdir_p=false
73730 as_executable_p="test -f"
73732 # Sed expression to map a string onto a valid CPP name.
73733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73735 # Sed expression to map a string onto a valid variable name.
73736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73739 # IFS
73740 # We need space, tab and new line, in precisely that order.
73741 as_nl='
73743 IFS=" $as_nl"
73745 # CDPATH.
73746 $as_unset CDPATH
73748 exec 6>&1
73750 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73751 # report actual input values of CONFIG_FILES etc. instead of their
73752 # values after options handling. Logging --version etc. is OK.
73753 exec 5>>config.log
73755 echo
73756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73757 ## Running $as_me. ##
73758 _ASBOX
73759 } >&5
73760 cat >&5 <<_CSEOF
73762 This file was extended by package-unused $as_me version-unused, which was
73763 generated by GNU Autoconf 2.59. Invocation command line was
73765 CONFIG_FILES = $CONFIG_FILES
73766 CONFIG_HEADERS = $CONFIG_HEADERS
73767 CONFIG_LINKS = $CONFIG_LINKS
73768 CONFIG_COMMANDS = $CONFIG_COMMANDS
73769 $ $0 $@
73771 _CSEOF
73772 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73773 echo >&5
73774 _ACEOF
73776 # Files that config.status was made for.
73777 if test -n "$ac_config_files"; then
73778 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73781 if test -n "$ac_config_headers"; then
73782 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73785 if test -n "$ac_config_links"; then
73786 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73789 if test -n "$ac_config_commands"; then
73790 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73793 cat >>$CONFIG_STATUS <<\_ACEOF
73795 ac_cs_usage="\
73796 \`$as_me' instantiates files from templates according to the
73797 current configuration.
73799 Usage: $0 [OPTIONS] [FILE]...
73801 -h, --help print this help, then exit
73802 -V, --version print version number, then exit
73803 -q, --quiet do not print progress messages
73804 -d, --debug don't remove temporary files
73805 --recheck update $as_me by reconfiguring in the same conditions
73806 --file=FILE[:TEMPLATE]
73807 instantiate the configuration file FILE
73808 --header=FILE[:TEMPLATE]
73809 instantiate the configuration header FILE
73811 Configuration files:
73812 $config_files
73814 Configuration headers:
73815 $config_headers
73817 Configuration commands:
73818 $config_commands
73820 Report bugs to <bug-autoconf@gnu.org>."
73821 _ACEOF
73823 cat >>$CONFIG_STATUS <<_ACEOF
73824 ac_cs_version="\\
73825 package-unused config.status version-unused
73826 configured by $0, generated by GNU Autoconf 2.59,
73827 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73829 Copyright (C) 2003 Free Software Foundation, Inc.
73830 This config.status script is free software; the Free Software Foundation
73831 gives unlimited permission to copy, distribute and modify it."
73832 srcdir=$srcdir
73833 INSTALL="$INSTALL"
73834 _ACEOF
73836 cat >>$CONFIG_STATUS <<\_ACEOF
73837 # If no file are specified by the user, then we need to provide default
73838 # value. By we need to know if files were specified by the user.
73839 ac_need_defaults=:
73840 while test $# != 0
73842 case $1 in
73843 --*=*)
73844 ac_option=`expr "x$1" : 'x\([^=]*\)='`
73845 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73846 ac_shift=:
73849 ac_option=$1
73850 ac_optarg=$2
73851 ac_shift=shift
73853 *) # This is not an option, so the user has probably given explicit
73854 # arguments.
73855 ac_option=$1
73856 ac_need_defaults=false;;
73857 esac
73859 case $ac_option in
73860 # Handling of the options.
73861 _ACEOF
73862 cat >>$CONFIG_STATUS <<\_ACEOF
73863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73864 ac_cs_recheck=: ;;
73865 --version | --vers* | -V )
73866 echo "$ac_cs_version"; exit 0 ;;
73867 --he | --h)
73868 # Conflict between --help and --header
73869 { { echo "$as_me:$LINENO: error: ambiguous option: $1
73870 Try \`$0 --help' for more information." >&5
73871 echo "$as_me: error: ambiguous option: $1
73872 Try \`$0 --help' for more information." >&2;}
73873 { (exit 1); exit 1; }; };;
73874 --help | --hel | -h )
73875 echo "$ac_cs_usage"; exit 0 ;;
73876 --debug | --d* | -d )
73877 debug=: ;;
73878 --file | --fil | --fi | --f )
73879 $ac_shift
73880 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73881 ac_need_defaults=false;;
73882 --header | --heade | --head | --hea )
73883 $ac_shift
73884 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73885 ac_need_defaults=false;;
73886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
73888 ac_cs_silent=: ;;
73890 # This is an error.
73891 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73892 Try \`$0 --help' for more information." >&5
73893 echo "$as_me: error: unrecognized option: $1
73894 Try \`$0 --help' for more information." >&2;}
73895 { (exit 1); exit 1; }; } ;;
73897 *) ac_config_targets="$ac_config_targets $1" ;;
73899 esac
73900 shift
73901 done
73903 ac_configure_extra_args=
73905 if $ac_cs_silent; then
73906 exec 6>/dev/null
73907 ac_configure_extra_args="$ac_configure_extra_args --silent"
73910 _ACEOF
73911 cat >>$CONFIG_STATUS <<_ACEOF
73912 if \$ac_cs_recheck; then
73913 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73914 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73917 _ACEOF
73919 cat >>$CONFIG_STATUS <<_ACEOF
73921 # INIT-COMMANDS section.
73925 srcdir="$srcdir"
73926 host="$host"
73927 target="$target"
73928 with_multisubdir="$with_multisubdir"
73929 with_multisrctop="$with_multisrctop"
73930 with_target_subdir="$with_target_subdir"
73931 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73932 multi_basedir="$multi_basedir"
73933 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73934 CC="$CC"
73936 # Variables needed in config.status (file generation) which aren't already
73937 # passed by autoconf.
73938 SUBDIRS="$SUBDIRS"
73941 _ACEOF
73945 cat >>$CONFIG_STATUS <<\_ACEOF
73946 for ac_config_target in $ac_config_targets
73948 case "$ac_config_target" in
73949 # Handling of arguments.
73950 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73951 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73952 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73953 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73954 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73955 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73956 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73957 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73958 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73959 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73960 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73961 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73964 { (exit 1); exit 1; }; };;
73965 esac
73966 done
73968 # If the user did not use the arguments to specify the items to instantiate,
73969 # then the envvar interface is used. Set only those that are not.
73970 # We use the long form for the default assignment because of an extremely
73971 # bizarre bug on SunOS 4.1.3.
73972 if $ac_need_defaults; then
73973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73978 # Have a temporary directory for convenience. Make it in the build tree
73979 # simply because there is no reason to put it here, and in addition,
73980 # creating and moving files from /tmp can sometimes cause problems.
73981 # Create a temporary directory, and hook for its removal unless debugging.
73982 $debug ||
73984 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73985 trap '{ (exit 1); exit 1; }' 1 2 13 15
73988 # Create a (secure) tmp directory for tmp files.
73991 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73992 test -n "$tmp" && test -d "$tmp"
73993 } ||
73995 tmp=./confstat$$-$RANDOM
73996 (umask 077 && mkdir $tmp)
73997 } ||
73999 echo "$me: cannot create a temporary directory in ." >&2
74000 { (exit 1); exit 1; }
74003 _ACEOF
74005 cat >>$CONFIG_STATUS <<_ACEOF
74008 # CONFIG_FILES section.
74011 # No need to generate the scripts if there are no CONFIG_FILES.
74012 # This happens for instance when ./config.status config.h
74013 if test -n "\$CONFIG_FILES"; then
74014 # Protect against being on the right side of a sed subst in config.status.
74015 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
74016 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
74017 s,@SHELL@,$SHELL,;t t
74018 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
74019 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
74020 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
74021 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
74022 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
74023 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
74024 s,@exec_prefix@,$exec_prefix,;t t
74025 s,@prefix@,$prefix,;t t
74026 s,@program_transform_name@,$program_transform_name,;t t
74027 s,@bindir@,$bindir,;t t
74028 s,@sbindir@,$sbindir,;t t
74029 s,@libexecdir@,$libexecdir,;t t
74030 s,@datadir@,$datadir,;t t
74031 s,@sysconfdir@,$sysconfdir,;t t
74032 s,@sharedstatedir@,$sharedstatedir,;t t
74033 s,@localstatedir@,$localstatedir,;t t
74034 s,@libdir@,$libdir,;t t
74035 s,@includedir@,$includedir,;t t
74036 s,@oldincludedir@,$oldincludedir,;t t
74037 s,@infodir@,$infodir,;t t
74038 s,@mandir@,$mandir,;t t
74039 s,@build_alias@,$build_alias,;t t
74040 s,@host_alias@,$host_alias,;t t
74041 s,@target_alias@,$target_alias,;t t
74042 s,@DEFS@,$DEFS,;t t
74043 s,@ECHO_C@,$ECHO_C,;t t
74044 s,@ECHO_N@,$ECHO_N,;t t
74045 s,@ECHO_T@,$ECHO_T,;t t
74046 s,@LIBS@,$LIBS,;t t
74047 s,@libtool_VERSION@,$libtool_VERSION,;t t
74048 s,@multi_basedir@,$multi_basedir,;t t
74049 s,@build@,$build,;t t
74050 s,@build_cpu@,$build_cpu,;t t
74051 s,@build_vendor@,$build_vendor,;t t
74052 s,@build_os@,$build_os,;t t
74053 s,@host@,$host,;t t
74054 s,@host_cpu@,$host_cpu,;t t
74055 s,@host_vendor@,$host_vendor,;t t
74056 s,@host_os@,$host_os,;t t
74057 s,@target@,$target,;t t
74058 s,@target_cpu@,$target_cpu,;t t
74059 s,@target_vendor@,$target_vendor,;t t
74060 s,@target_os@,$target_os,;t t
74061 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
74062 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
74063 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
74064 s,@CYGPATH_W@,$CYGPATH_W,;t t
74065 s,@PACKAGE@,$PACKAGE,;t t
74066 s,@VERSION@,$VERSION,;t t
74067 s,@ACLOCAL@,$ACLOCAL,;t t
74068 s,@AUTOCONF@,$AUTOCONF,;t t
74069 s,@AUTOMAKE@,$AUTOMAKE,;t t
74070 s,@AUTOHEADER@,$AUTOHEADER,;t t
74071 s,@MAKEINFO@,$MAKEINFO,;t t
74072 s,@AMTAR@,$AMTAR,;t t
74073 s,@install_sh@,$install_sh,;t t
74074 s,@STRIP@,$STRIP,;t t
74075 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
74076 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
74077 s,@mkdir_p@,$mkdir_p,;t t
74078 s,@AWK@,$AWK,;t t
74079 s,@SET_MAKE@,$SET_MAKE,;t t
74080 s,@am__leading_dot@,$am__leading_dot,;t t
74081 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
74082 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
74083 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
74084 s,@CC@,$CC,;t t
74085 s,@ac_ct_CC@,$ac_ct_CC,;t t
74086 s,@EXEEXT@,$EXEEXT,;t t
74087 s,@OBJEXT@,$OBJEXT,;t t
74088 s,@CXX@,$CXX,;t t
74089 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
74090 s,@CFLAGS@,$CFLAGS,;t t
74091 s,@CXXFLAGS@,$CXXFLAGS,;t t
74092 s,@LN_S@,$LN_S,;t t
74093 s,@AS@,$AS,;t t
74094 s,@ac_ct_AS@,$ac_ct_AS,;t t
74095 s,@AR@,$AR,;t t
74096 s,@ac_ct_AR@,$ac_ct_AR,;t t
74097 s,@RANLIB@,$RANLIB,;t t
74098 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
74099 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
74100 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
74101 s,@MAINT@,$MAINT,;t t
74102 s,@LIBTOOL@,$LIBTOOL,;t t
74103 s,@CXXCPP@,$CXXCPP,;t t
74104 s,@CPPFLAGS@,$CPPFLAGS,;t t
74105 s,@enable_shared@,$enable_shared,;t t
74106 s,@enable_static@,$enable_static,;t t
74107 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
74108 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
74109 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
74110 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
74111 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
74112 s,@CSTDIO_H@,$CSTDIO_H,;t t
74113 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
74114 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
74115 s,@CPP@,$CPP,;t t
74116 s,@EGREP@,$EGREP,;t t
74117 s,@check_msgfmt@,$check_msgfmt,;t t
74118 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
74119 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
74120 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
74121 s,@USE_NLS@,$USE_NLS,;t t
74122 s,@CLOCALE_H@,$CLOCALE_H,;t t
74123 s,@CCODECVT_H@,$CCODECVT_H,;t t
74124 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
74125 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
74126 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
74127 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
74128 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
74129 s,@CMONEY_CC@,$CMONEY_CC,;t t
74130 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
74131 s,@CTIME_H@,$CTIME_H,;t t
74132 s,@CTIME_CC@,$CTIME_CC,;t t
74133 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
74134 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
74135 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
74136 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
74137 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
74138 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
74139 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
74140 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
74141 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
74142 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
74143 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
74144 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
74145 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
74146 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
74147 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
74148 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
74149 s,@WERROR@,$WERROR,;t t
74150 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
74151 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
74152 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
74153 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
74154 s,@LIBICONV@,$LIBICONV,;t t
74155 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
74156 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
74157 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
74158 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
74159 s,@baseline_dir@,$baseline_dir,;t t
74160 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
74161 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
74162 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
74163 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
74164 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
74165 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
74166 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
74167 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
74168 s,@gxx_include_dir@,$gxx_include_dir,;t t
74169 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
74170 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
74171 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
74172 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
74173 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
74174 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
74175 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
74176 s,@LIBOBJS@,$LIBOBJS,;t t
74177 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
74178 CEOF
74180 _ACEOF
74182 cat >>$CONFIG_STATUS <<\_ACEOF
74183 # Split the substitutions into bite-sized pieces for seds with
74184 # small command number limits, like on Digital OSF/1 and HP-UX.
74185 ac_max_sed_lines=48
74186 ac_sed_frag=1 # Number of current file.
74187 ac_beg=1 # First line for current file.
74188 ac_end=$ac_max_sed_lines # Line after last line for current file.
74189 ac_more_lines=:
74190 ac_sed_cmds=
74191 while $ac_more_lines; do
74192 if test $ac_beg -gt 1; then
74193 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
74194 else
74195 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
74197 if test ! -s $tmp/subs.frag; then
74198 ac_more_lines=false
74199 else
74200 # The purpose of the label and of the branching condition is to
74201 # speed up the sed processing (if there are no `@' at all, there
74202 # is no need to browse any of the substitutions).
74203 # These are the two extra sed commands mentioned above.
74204 (echo ':t
74205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
74206 if test -z "$ac_sed_cmds"; then
74207 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
74208 else
74209 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
74211 ac_sed_frag=`expr $ac_sed_frag + 1`
74212 ac_beg=$ac_end
74213 ac_end=`expr $ac_end + $ac_max_sed_lines`
74215 done
74216 if test -z "$ac_sed_cmds"; then
74217 ac_sed_cmds=cat
74219 fi # test -n "$CONFIG_FILES"
74221 _ACEOF
74222 cat >>$CONFIG_STATUS <<\_ACEOF
74223 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
74224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74225 case $ac_file in
74226 - | *:- | *:-:* ) # input from stdin
74227 cat >$tmp/stdin
74228 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74230 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74232 * ) ac_file_in=$ac_file.in ;;
74233 esac
74235 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
74236 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74238 X"$ac_file" : 'X\(//\)[^/]' \| \
74239 X"$ac_file" : 'X\(//\)$' \| \
74240 X"$ac_file" : 'X\(/\)' \| \
74241 . : '\(.\)' 2>/dev/null ||
74242 echo X"$ac_file" |
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 { if $as_mkdir_p; then
74249 mkdir -p "$ac_dir"
74250 else
74251 as_dir="$ac_dir"
74252 as_dirs=
74253 while test ! -d "$as_dir"; do
74254 as_dirs="$as_dir $as_dirs"
74255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74257 X"$as_dir" : 'X\(//\)[^/]' \| \
74258 X"$as_dir" : 'X\(//\)$' \| \
74259 X"$as_dir" : 'X\(/\)' \| \
74260 . : '\(.\)' 2>/dev/null ||
74261 echo X"$as_dir" |
74262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74264 /^X\(\/\/\)$/{ s//\1/; q; }
74265 /^X\(\/\).*/{ s//\1/; q; }
74266 s/.*/./; q'`
74267 done
74268 test ! -n "$as_dirs" || mkdir $as_dirs
74269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74271 { (exit 1); exit 1; }; }; }
74273 ac_builddir=.
74275 if test "$ac_dir" != .; then
74276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74277 # A "../" for each directory in $ac_dir_suffix.
74278 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74279 else
74280 ac_dir_suffix= ac_top_builddir=
74283 case $srcdir in
74284 .) # No --srcdir option. We are building in place.
74285 ac_srcdir=.
74286 if test -z "$ac_top_builddir"; then
74287 ac_top_srcdir=.
74288 else
74289 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74290 fi ;;
74291 [\\/]* | ?:[\\/]* ) # Absolute path.
74292 ac_srcdir=$srcdir$ac_dir_suffix;
74293 ac_top_srcdir=$srcdir ;;
74294 *) # Relative path.
74295 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74296 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74297 esac
74299 # Do not use `cd foo && pwd` to compute absolute paths, because
74300 # the directories may not exist.
74301 case `pwd` in
74302 .) ac_abs_builddir="$ac_dir";;
74304 case "$ac_dir" in
74305 .) ac_abs_builddir=`pwd`;;
74306 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74307 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74308 esac;;
74309 esac
74310 case $ac_abs_builddir in
74311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74313 case ${ac_top_builddir}. in
74314 .) ac_abs_top_builddir=$ac_abs_builddir;;
74315 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74316 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74317 esac;;
74318 esac
74319 case $ac_abs_builddir in
74320 .) ac_abs_srcdir=$ac_srcdir;;
74322 case $ac_srcdir in
74323 .) ac_abs_srcdir=$ac_abs_builddir;;
74324 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74325 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74326 esac;;
74327 esac
74328 case $ac_abs_builddir in
74329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74331 case $ac_top_srcdir in
74332 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74333 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74334 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74335 esac;;
74336 esac
74339 case $INSTALL in
74340 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74341 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74342 esac
74344 if test x"$ac_file" != x-; then
74345 { echo "$as_me:$LINENO: creating $ac_file" >&5
74346 echo "$as_me: creating $ac_file" >&6;}
74347 rm -f "$ac_file"
74349 # Let's still pretend it is `configure' which instantiates (i.e., don't
74350 # use $as_me), people would be surprised to read:
74351 # /* config.h. Generated by config.status. */
74352 if test x"$ac_file" = x-; then
74353 configure_input=
74354 else
74355 configure_input="$ac_file. "
74357 configure_input=$configure_input"Generated from `echo $ac_file_in |
74358 sed 's,.*/,,'` by configure."
74360 # First look for the input files in the build tree, otherwise in the
74361 # src tree.
74362 ac_file_inputs=`IFS=:
74363 for f in $ac_file_in; do
74364 case $f in
74365 -) echo $tmp/stdin ;;
74366 [\\/$]*)
74367 # Absolute (can't be DOS-style, as IFS=:)
74368 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74369 echo "$as_me: error: cannot find input file: $f" >&2;}
74370 { (exit 1); exit 1; }; }
74371 echo "$f";;
74372 *) # Relative
74373 if test -f "$f"; then
74374 # Build tree
74375 echo "$f"
74376 elif test -f "$srcdir/$f"; then
74377 # Source tree
74378 echo "$srcdir/$f"
74379 else
74380 # /dev/null tree
74381 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74382 echo "$as_me: error: cannot find input file: $f" >&2;}
74383 { (exit 1); exit 1; }; }
74384 fi;;
74385 esac
74386 done` || { (exit 1); exit 1; }
74387 _ACEOF
74388 cat >>$CONFIG_STATUS <<_ACEOF
74389 sed "$ac_vpsub
74390 $extrasub
74391 _ACEOF
74392 cat >>$CONFIG_STATUS <<\_ACEOF
74394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74395 s,@configure_input@,$configure_input,;t t
74396 s,@srcdir@,$ac_srcdir,;t t
74397 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74398 s,@top_srcdir@,$ac_top_srcdir,;t t
74399 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74400 s,@builddir@,$ac_builddir,;t t
74401 s,@abs_builddir@,$ac_abs_builddir,;t t
74402 s,@top_builddir@,$ac_top_builddir,;t t
74403 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74404 s,@INSTALL@,$ac_INSTALL,;t t
74405 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74406 rm -f $tmp/stdin
74407 if test x"$ac_file" != x-; then
74408 mv $tmp/out $ac_file
74409 else
74410 cat $tmp/out
74411 rm -f $tmp/out
74414 # Run the commands associated with the file.
74415 case $ac_file in
74416 scripts/check_survey ) chmod +x scripts/check_survey ;;
74417 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74418 esac
74419 done
74420 _ACEOF
74421 cat >>$CONFIG_STATUS <<\_ACEOF
74424 # CONFIG_HEADER section.
74427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74428 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74430 # ac_d sets the value in "#define NAME VALUE" lines.
74431 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
74432 ac_dB='[ ].*$,\1#\2'
74433 ac_dC=' '
74434 ac_dD=',;t'
74435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74436 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
74437 ac_uB='$,\1#\2define\3'
74438 ac_uC=' '
74439 ac_uD=',;t'
74441 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74443 case $ac_file in
74444 - | *:- | *:-:* ) # input from stdin
74445 cat >$tmp/stdin
74446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74450 * ) ac_file_in=$ac_file.in ;;
74451 esac
74453 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74454 echo "$as_me: creating $ac_file" >&6;}
74456 # First look for the input files in the build tree, otherwise in the
74457 # src tree.
74458 ac_file_inputs=`IFS=:
74459 for f in $ac_file_in; do
74460 case $f in
74461 -) echo $tmp/stdin ;;
74462 [\\/$]*)
74463 # Absolute (can't be DOS-style, as IFS=:)
74464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74465 echo "$as_me: error: cannot find input file: $f" >&2;}
74466 { (exit 1); exit 1; }; }
74467 # Do quote $f, to prevent DOS paths from being IFS'd.
74468 echo "$f";;
74469 *) # Relative
74470 if test -f "$f"; then
74471 # Build tree
74472 echo "$f"
74473 elif test -f "$srcdir/$f"; then
74474 # Source tree
74475 echo "$srcdir/$f"
74476 else
74477 # /dev/null tree
74478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74479 echo "$as_me: error: cannot find input file: $f" >&2;}
74480 { (exit 1); exit 1; }; }
74481 fi;;
74482 esac
74483 done` || { (exit 1); exit 1; }
74484 # Remove the trailing spaces.
74485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
74487 _ACEOF
74489 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74490 # `conftest.undefs', that substitutes the proper values into
74491 # config.h.in to produce config.h. The first handles `#define'
74492 # templates, and the second `#undef' templates.
74493 # And first: Protect against being on the right side of a sed subst in
74494 # config.status. Protect against being in an unquoted here document
74495 # in config.status.
74496 rm -f conftest.defines conftest.undefs
74497 # Using a here document instead of a string reduces the quoting nightmare.
74498 # Putting comments in sed scripts is not portable.
74500 # `end' is used to avoid that the second main sed command (meant for
74501 # 0-ary CPP macros) applies to n-ary macro definitions.
74502 # See the Autoconf documentation for `clear'.
74503 cat >confdef2sed.sed <<\_ACEOF
74504 s/[\\&,]/\\&/g
74505 s,[\\$`],\\&,g
74506 t clear
74507 : clear
74508 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74509 t end
74510 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74511 : end
74512 _ACEOF
74513 # If some macros were called several times there might be several times
74514 # the same #defines, which is useless. Nevertheless, we may not want to
74515 # sort them, since we want the *last* AC-DEFINE to be honored.
74516 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74517 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74518 rm -f confdef2sed.sed
74520 # This sed command replaces #undef with comments. This is necessary, for
74521 # example, in the case of _POSIX_SOURCE, which is predefined and required
74522 # on some systems where configure will not decide to define it.
74523 cat >>conftest.undefs <<\_ACEOF
74524 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74525 _ACEOF
74527 # Break up conftest.defines because some shells have a limit on the size
74528 # of here documents, and old seds have small limits too (100 cmds).
74529 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74530 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74531 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74532 echo ' :' >>$CONFIG_STATUS
74533 rm -f conftest.tail
74534 while grep . conftest.defines >/dev/null
74536 # Write a limited-size here document to $tmp/defines.sed.
74537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74538 # Speed up: don't consider the non `#define' lines.
74539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
74540 # Work around the forget-to-reset-the-flag bug.
74541 echo 't clr' >>$CONFIG_STATUS
74542 echo ': clr' >>$CONFIG_STATUS
74543 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74544 echo 'CEOF
74545 sed -f $tmp/defines.sed $tmp/in >$tmp/out
74546 rm -f $tmp/in
74547 mv $tmp/out $tmp/in
74548 ' >>$CONFIG_STATUS
74549 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74550 rm -f conftest.defines
74551 mv conftest.tail conftest.defines
74552 done
74553 rm -f conftest.defines
74554 echo ' fi # grep' >>$CONFIG_STATUS
74555 echo >>$CONFIG_STATUS
74557 # Break up conftest.undefs because some shells have a limit on the size
74558 # of here documents, and old seds have small limits too (100 cmds).
74559 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
74560 rm -f conftest.tail
74561 while grep . conftest.undefs >/dev/null
74563 # Write a limited-size here document to $tmp/undefs.sed.
74564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74565 # Speed up: don't consider the non `#undef'
74566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
74567 # Work around the forget-to-reset-the-flag bug.
74568 echo 't clr' >>$CONFIG_STATUS
74569 echo ': clr' >>$CONFIG_STATUS
74570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74571 echo 'CEOF
74572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74573 rm -f $tmp/in
74574 mv $tmp/out $tmp/in
74575 ' >>$CONFIG_STATUS
74576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74577 rm -f conftest.undefs
74578 mv conftest.tail conftest.undefs
74579 done
74580 rm -f conftest.undefs
74582 cat >>$CONFIG_STATUS <<\_ACEOF
74583 # Let's still pretend it is `configure' which instantiates (i.e., don't
74584 # use $as_me), people would be surprised to read:
74585 # /* config.h. Generated by config.status. */
74586 if test x"$ac_file" = x-; then
74587 echo "/* Generated by configure. */" >$tmp/config.h
74588 else
74589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
74591 cat $tmp/in >>$tmp/config.h
74592 rm -f $tmp/in
74593 if test x"$ac_file" != x-; then
74594 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74596 echo "$as_me: $ac_file is unchanged" >&6;}
74597 else
74598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74600 X"$ac_file" : 'X\(//\)[^/]' \| \
74601 X"$ac_file" : 'X\(//\)$' \| \
74602 X"$ac_file" : 'X\(/\)' \| \
74603 . : '\(.\)' 2>/dev/null ||
74604 echo X"$ac_file" |
74605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74607 /^X\(\/\/\)$/{ s//\1/; q; }
74608 /^X\(\/\).*/{ s//\1/; q; }
74609 s/.*/./; q'`
74610 { if $as_mkdir_p; then
74611 mkdir -p "$ac_dir"
74612 else
74613 as_dir="$ac_dir"
74614 as_dirs=
74615 while test ! -d "$as_dir"; do
74616 as_dirs="$as_dir $as_dirs"
74617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74619 X"$as_dir" : 'X\(//\)[^/]' \| \
74620 X"$as_dir" : 'X\(//\)$' \| \
74621 X"$as_dir" : 'X\(/\)' \| \
74622 . : '\(.\)' 2>/dev/null ||
74623 echo X"$as_dir" |
74624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74626 /^X\(\/\/\)$/{ s//\1/; q; }
74627 /^X\(\/\).*/{ s//\1/; q; }
74628 s/.*/./; q'`
74629 done
74630 test ! -n "$as_dirs" || mkdir $as_dirs
74631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74633 { (exit 1); exit 1; }; }; }
74635 rm -f $ac_file
74636 mv $tmp/config.h $ac_file
74638 else
74639 cat $tmp/config.h
74640 rm -f $tmp/config.h
74642 # Compute $ac_file's index in $config_headers.
74643 _am_stamp_count=1
74644 for _am_header in $config_headers :; do
74645 case $_am_header in
74646 $ac_file | $ac_file:* )
74647 break ;;
74649 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74650 esac
74651 done
74652 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74653 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74654 X$ac_file : 'X\(//\)[^/]' \| \
74655 X$ac_file : 'X\(//\)$' \| \
74656 X$ac_file : 'X\(/\)' \| \
74657 . : '\(.\)' 2>/dev/null ||
74658 echo X$ac_file |
74659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74661 /^X\(\/\/\)$/{ s//\1/; q; }
74662 /^X\(\/\).*/{ s//\1/; q; }
74663 s/.*/./; q'`/stamp-h$_am_stamp_count
74664 done
74665 _ACEOF
74666 cat >>$CONFIG_STATUS <<\_ACEOF
74669 # CONFIG_COMMANDS section.
74671 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74672 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74673 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74674 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74675 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74676 X"$ac_dest" : 'X\(//\)[^/]' \| \
74677 X"$ac_dest" : 'X\(//\)$' \| \
74678 X"$ac_dest" : 'X\(/\)' \| \
74679 . : '\(.\)' 2>/dev/null ||
74680 echo X"$ac_dest" |
74681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74683 /^X\(\/\/\)$/{ s//\1/; q; }
74684 /^X\(\/\).*/{ s//\1/; q; }
74685 s/.*/./; q'`
74686 { if $as_mkdir_p; then
74687 mkdir -p "$ac_dir"
74688 else
74689 as_dir="$ac_dir"
74690 as_dirs=
74691 while test ! -d "$as_dir"; do
74692 as_dirs="$as_dir $as_dirs"
74693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74695 X"$as_dir" : 'X\(//\)[^/]' \| \
74696 X"$as_dir" : 'X\(//\)$' \| \
74697 X"$as_dir" : 'X\(/\)' \| \
74698 . : '\(.\)' 2>/dev/null ||
74699 echo X"$as_dir" |
74700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74702 /^X\(\/\/\)$/{ s//\1/; q; }
74703 /^X\(\/\).*/{ s//\1/; q; }
74704 s/.*/./; q'`
74705 done
74706 test ! -n "$as_dirs" || mkdir $as_dirs
74707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74709 { (exit 1); exit 1; }; }; }
74711 ac_builddir=.
74713 if test "$ac_dir" != .; then
74714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74715 # A "../" for each directory in $ac_dir_suffix.
74716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74717 else
74718 ac_dir_suffix= ac_top_builddir=
74721 case $srcdir in
74722 .) # No --srcdir option. We are building in place.
74723 ac_srcdir=.
74724 if test -z "$ac_top_builddir"; then
74725 ac_top_srcdir=.
74726 else
74727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74728 fi ;;
74729 [\\/]* | ?:[\\/]* ) # Absolute path.
74730 ac_srcdir=$srcdir$ac_dir_suffix;
74731 ac_top_srcdir=$srcdir ;;
74732 *) # Relative path.
74733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74735 esac
74737 # Do not use `cd foo && pwd` to compute absolute paths, because
74738 # the directories may not exist.
74739 case `pwd` in
74740 .) ac_abs_builddir="$ac_dir";;
74742 case "$ac_dir" in
74743 .) ac_abs_builddir=`pwd`;;
74744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74745 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74746 esac;;
74747 esac
74748 case $ac_abs_builddir in
74749 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74751 case ${ac_top_builddir}. in
74752 .) ac_abs_top_builddir=$ac_abs_builddir;;
74753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74755 esac;;
74756 esac
74757 case $ac_abs_builddir in
74758 .) ac_abs_srcdir=$ac_srcdir;;
74760 case $ac_srcdir in
74761 .) ac_abs_srcdir=$ac_abs_builddir;;
74762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74764 esac;;
74765 esac
74766 case $ac_abs_builddir in
74767 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74769 case $ac_top_srcdir in
74770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74773 esac;;
74774 esac
74777 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74778 echo "$as_me: executing $ac_dest commands" >&6;}
74779 case $ac_dest in
74780 default-1 )
74781 # Only add multilib support code if we just rebuilt the top-level
74782 # Makefile.
74783 case " $CONFIG_FILES " in
74784 *" Makefile "*)
74785 ac_file=Makefile . ${multi_basedir}/config-ml.in
74787 esac ;;
74788 default ) if test -n "$CONFIG_FILES"; then
74789 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74790 # that multilib installs will end up installed in the correct place.
74791 # The testsuite needs it for multilib-aware ABI baseline files.
74792 # To work around this not being passed down from config-ml.in ->
74793 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74794 # append it here. Only modify Makefiles that have just been created.
74796 # Also, get rid of this simulated-VPATH thing that automake does.
74797 cat > vpsed << \_EOF
74798 s!`test -f '$<' || echo '$(srcdir)/'`!!
74799 _EOF
74800 for i in $SUBDIRS; do
74801 case $CONFIG_FILES in
74802 *${i}/Makefile*)
74803 #echo "Adding MULTISUBDIR to $i/Makefile"
74804 sed -f vpsed $i/Makefile > tmp
74805 grep '^MULTISUBDIR =' Makefile >> tmp
74806 mv tmp $i/Makefile
74808 esac
74809 done
74810 rm vpsed
74812 (cd include && ${MAKE-make})
74814 esac
74815 done
74816 _ACEOF
74818 cat >>$CONFIG_STATUS <<\_ACEOF
74820 { (exit 0); exit 0; }
74821 _ACEOF
74822 chmod +x $CONFIG_STATUS
74823 ac_clean_files=$ac_clean_files_save
74826 # configure is writing to config.log, and then calls config.status.
74827 # config.status does its own redirection, appending to config.log.
74828 # Unfortunately, on DOS this fails, as config.log is still kept open
74829 # by configure, so config.status won't be able to write to it; its
74830 # output is simply discarded. So we exec the FD to /dev/null,
74831 # effectively closing config.log, so it can be properly (re)opened and
74832 # appended to by config.status. When coming back to configure, we
74833 # need to make the FD available again.
74834 if test "$no_create" != yes; then
74835 ac_cs_success=:
74836 ac_config_status_args=
74837 test "$silent" = yes &&
74838 ac_config_status_args="$ac_config_status_args --quiet"
74839 exec 5>/dev/null
74840 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74841 exec 5>>config.log
74842 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74843 # would make configure fail if this is the last instruction.
74844 $ac_cs_success || { (exit 1); exit 1; }